Class AppointmentImportDaemon

java.lang.Object
fr.paris.lutece.portal.service.daemon.Daemon
fr.paris.lutece.plugins.appointment.modules.importer.service.AppointmentImportDaemon
All Implemented Interfaces:
Runnable

public final class AppointmentImportDaemon extends fr.paris.lutece.portal.service.daemon.Daemon
Daemon which creates the appointments.

A batch is taken atomically before being processed, so that several instances of the webapp never process the same batch. A batch left in PROCESSING for longer than appointment-importer.processing.timeoutMinutes (the instance stopped while processing it) is taken over; the row that was being saved at that moment is put in error, since its appointment may have been created.

A file is closed by the instance that closes its last batch. When two instances close the last two batches of a file at the same time, each may still see the other batch running: the next run closes such a file.

  • Field Summary

    Fields inherited from class fr.paris.lutece.portal.service.daemon.Daemon

    RESULT_FAILED, RESULT_PROCESSING, RESULT_SUCCESS, RESULT_UNKNOWN, STATUS_RUNNING, STATUS_STOPPED
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
     

    Methods inherited from class fr.paris.lutece.portal.service.daemon.Daemon

    appendLastRunLogs, getLastRunLogs, getPluginName, getResult, setLastRunLogs, setPluginName, setResult

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AppointmentImportDaemon

      public AppointmentImportDaemon()
  • Method Details

    • run

      public void run()