Class Daemon
- java.lang.Object
-
- fr.paris.lutece.portal.service.daemon.Daemon
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
AccountLifeTimeDaemon,AnonymizationDaemon,IndexerDaemon,MailSenderDaemon,ThreadLauncherDaemon
public abstract class Daemon extends Object implements Runnable
Interfaces for Daemons Service.
-
-
Field Summary
Fields Modifier and Type Field Description static intRESULT_FAILEDA daemon has processed but it has failedstatic intRESULT_PROCESSINGA daemon is processing so its result is not yet knownstatic intRESULT_SUCCESSA daemon has processed and it was successfulstatic intRESULT_UNKNOWNThe result for this daemon is not yet known.static intSTATUS_RUNNINGstatic intSTATUS_STOPPED
-
Constructor Summary
Constructors Constructor Description Daemon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLastRunLogs()Returns the LastRunLogsStringgetPluginName()Gets the plugin nameintgetResult()Returns the ResultvoidsetLastRunLogs(String strLastRunLogs)Sets the LastRunLogsvoidsetPluginName(String pluginName)Sets the plugin namevoidsetResult(int nResult)Sets the Result
-
-
-
Field Detail
-
STATUS_STOPPED
public static final int STATUS_STOPPED
- See Also:
- Constant Field Values
-
STATUS_RUNNING
public static final int STATUS_RUNNING
- See Also:
- Constant Field Values
-
RESULT_UNKNOWN
public static final int RESULT_UNKNOWN
The result for this daemon is not yet known.- See Also:
- Constant Field Values
-
RESULT_SUCCESS
public static final int RESULT_SUCCESS
A daemon has processed and it was successful- See Also:
- Constant Field Values
-
RESULT_FAILED
public static final int RESULT_FAILED
A daemon has processed but it has failed- See Also:
- Constant Field Values
-
RESULT_PROCESSING
public static final int RESULT_PROCESSING
A daemon is processing so its result is not yet known- See Also:
- Constant Field Values
-
-
Method Detail
-
getPluginName
public String getPluginName()
Gets the plugin name- Returns:
- the plugin name
-
setPluginName
public void setPluginName(String pluginName)
Sets the plugin name- Parameters:
pluginName- The plugin name
-
getLastRunLogs
public String getLastRunLogs()
Returns the LastRunLogs- Returns:
- The LastRunLogs
-
setLastRunLogs
public void setLastRunLogs(String strLastRunLogs)
Sets the LastRunLogs- Parameters:
strLastRunLogs- The LastRunLogs
-
getResult
public int getResult()
Returns the Result- Returns:
- The Result
-
setResult
public void setResult(int nResult)
Sets the Result- Parameters:
nResult- The Result
-
-