Class Daemon
java.lang.Object
fr.paris.lutece.portal.service.daemon.Daemon
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
AccountLifeTimeDaemon,AnonymizationDaemon,IndexerDaemon,MailSenderDaemon,ThreadLauncherDaemon
Interfaces for Daemons Service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA daemon has processed but it has failedstatic final intA daemon is processing so its result is not yet knownstatic final intA daemon has processed and it was successfulstatic final intThe result for this daemon is not yet known.static final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendLastRunLogs(String strLastRunLogsPart) Append to LastRunLogsReturns the LastRunLogsGets the plugin nameintReturns the ResultvoidsetLastRunLogs(String strLastRunLogs) Sets the LastRunLogsvoidsetPluginName(String pluginName) Sets the plugin namevoidsetResult(int nResult) Sets the Result
-
Field Details
-
STATUS_STOPPED
public static final int STATUS_STOPPED- See Also:
-
STATUS_RUNNING
public static final int STATUS_RUNNING- See Also:
-
RESULT_UNKNOWN
public static final int RESULT_UNKNOWNThe result for this daemon is not yet known.- See Also:
-
RESULT_SUCCESS
public static final int RESULT_SUCCESSA daemon has processed and it was successful- See Also:
-
RESULT_FAILED
public static final int RESULT_FAILEDA daemon has processed but it has failed- See Also:
-
RESULT_PROCESSING
public static final int RESULT_PROCESSINGA daemon is processing so its result is not yet known- See Also:
-
-
Constructor Details
-
Daemon
public Daemon()
-
-
Method Details
-
getPluginName
Gets the plugin name- Returns:
- the plugin name
-
setPluginName
Sets the plugin name- Parameters:
pluginName- The plugin name
-
getLastRunLogs
Returns the LastRunLogs- Returns:
- The LastRunLogs
-
setLastRunLogs
Sets the LastRunLogs- Parameters:
strLastRunLogs- The LastRunLogs
-
appendLastRunLogs
Append to LastRunLogs- Parameters:
strLastRunLogsPart- The LastRunLogs part
-
getResult
public int getResult()Returns the Result- Returns:
- The Result
-
setResult
public void setResult(int nResult) Sets the Result- Parameters:
nResult- The Result
-