Class DaemonEntry
java.lang.Object
fr.paris.lutece.portal.service.daemon.DaemonEntry
this class is used to manage daemons declaration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the ClassNameReturns the thread which start the daemon taskReturns the DescriptionKeygetId()Returns the IdlongReturns the Interval of time in seconds between two executionsReturns the LastRunDateReturns the LastRunLogsReturns the NameKeyReturns the PluginNamebooleanChecks if the daemon is runningvoidLoad the daemonbooleanIndicates if the daemon must be process on system startupvoidsetClassName(String strClassName) Sets the ClassNamevoidsetDescriptionKey(String strDescriptionKey) Sets the DescriptionKeyvoidSets the IdvoidsetInterval(long lInterval) Sets the intervalvoidsetIsRunning(boolean bIsRunning) Set running daemon statusvoidsetLastRunDate(Date dateLastRunDate) Sets the LastRunDatevoidsetLastRunLogs(String strLastRunLogs) Sets the LastRunLogsvoidsetNameKey(String strNameKey) Sets the NameKeyvoidsetOnStartUp(boolean bOnStartup) Sets the OnStartUp propertyvoidsetPluginName(String strPluginName) Sets the PluginName
-
Constructor Details
-
DaemonEntry
public DaemonEntry()Constructor
-
-
Method Details
-
getId
Returns the Id- Returns:
- The Id
-
setId
Sets the Id- Parameters:
strId- The Id
-
getNameKey
Returns the NameKey- Returns:
- The NameKey
-
setNameKey
Sets the NameKey- Parameters:
strNameKey- The NameKey
-
getDescriptionKey
Returns the DescriptionKey- Returns:
- The DescriptionKey
-
setDescriptionKey
Sets the DescriptionKey- Parameters:
strDescriptionKey- The DescriptionKey
-
getClassName
Returns the ClassName- Returns:
- The ClassName
-
setClassName
Sets the ClassName- Parameters:
strClassName- The ClassName
-
loadDaemon
public void loadDaemon() throws ClassNotFoundException, InstantiationException, IllegalAccessExceptionLoad the daemon- Throws:
ClassNotFoundException- If an error occuredInstantiationException- If an error occuredIllegalAccessException- If an error occured
-
getDaemonThread
Returns the thread which start the daemon task- Returns:
- The thread
-
getInterval
public long getInterval()Returns the Interval of time in seconds between two executions- Returns:
- _lInterval the interval of time
-
onStartup
public boolean onStartup()Indicates if the daemon must be process on system startup- Returns:
- _bOnStartup
-
isRunning
public boolean isRunning()Checks if the daemon is running- Returns:
- True if the thread is running, otherwise false
-
setIsRunning
public void setIsRunning(boolean bIsRunning) Set running daemon status- Parameters:
bIsRunning- True if the thread is running, otherwise false
-
getPluginName
Returns the PluginName- Returns:
- The PluginName
-
setPluginName
Sets the PluginName- Parameters:
strPluginName- The PluginName
-
getLastRunDate
Returns the LastRunDate- Returns:
- The LastRunDate
-
setLastRunDate
Sets the LastRunDate- Parameters:
dateLastRunDate- The LastRunDate
-
getLastRunLogs
Returns the LastRunLogs- Returns:
- The LastRunLogs
-
setLastRunLogs
Sets the LastRunLogs- Parameters:
strLastRunLogs- The LastRunLogs
-
setInterval
public void setInterval(long lInterval) Sets the interval- Parameters:
lInterval- The interval
-
setOnStartUp
public void setOnStartUp(boolean bOnStartup) Sets the OnStartUp property- Parameters:
bOnStartup- True if the daemon should be launched on startup, otherwise false
-