public final class DaemonEntry extends Object
Constructor and Description |
---|
DaemonEntry()
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getClassName()
Returns the ClassName
|
DaemonThread |
getDaemonThread()
Returns the thread which start the daemon task
|
String |
getDescriptionKey()
Returns the DescriptionKey
|
String |
getId()
Returns the Id
|
long |
getInterval()
Returns the Interval of time in seconds between two executions
|
String |
getLastRunDate()
Returns the LastRunDate
|
String |
getLastRunLogs()
Returns the LastRunLogs
|
String |
getNameKey()
Returns the NameKey
|
String |
getPluginName()
Returns the PluginName
|
boolean |
isRunning()
Checks if the daemon is running
|
void |
loadDaemon()
Load the daemon
|
boolean |
onStartup()
Indicates if the daemon must be process on system startup
|
void |
setClassName(String strClassName)
Sets the ClassName
|
void |
setDescriptionKey(String strDescriptionKey)
Sets the DescriptionKey
|
void |
setId(String strId)
Sets the Id
|
void |
setInterval(long lInterval)
Sets the interval
|
void |
setIsRunning(boolean bIsRunning)
Set running daemon status
|
void |
setLastRunDate(Date dateLastRunDate)
Sets the LastRunDate
|
void |
setLastRunLogs(String strLastRunLogs)
Sets the LastRunLogs
|
void |
setNameKey(String strNameKey)
Sets the NameKey
|
void |
setOnStartUp(boolean bOnStartup)
Sets the OnStartUp property
|
void |
setPluginName(String strPluginName)
Sets the PluginName
|
public String getId()
public void setId(String strId)
strId
- The Idpublic String getNameKey()
public void setNameKey(String strNameKey)
strNameKey
- The NameKeypublic String getDescriptionKey()
public void setDescriptionKey(String strDescriptionKey)
strDescriptionKey
- The DescriptionKeypublic String getClassName()
public void setClassName(String strClassName)
strClassName
- The ClassNamepublic void loadDaemon() throws ClassNotFoundException, InstantiationException, IllegalAccessException
ClassNotFoundException
- If an error occuredInstantiationException
- If an error occuredIllegalAccessException
- If an error occuredpublic DaemonThread getDaemonThread()
public long getInterval()
public boolean onStartup()
public boolean isRunning()
public void setIsRunning(boolean bIsRunning)
bIsRunning
- True if the thread is running, otherwise falsepublic String getPluginName()
public void setPluginName(String strPluginName)
strPluginName
- The PluginNamepublic String getLastRunDate()
public void setLastRunDate(Date dateLastRunDate)
dateLastRunDate
- The LastRunDatepublic String getLastRunLogs()
public void setLastRunLogs(String strLastRunLogs)
strLastRunLogs
- The LastRunLogspublic void setInterval(long lInterval)
lInterval
- The intervalpublic void setOnStartUp(boolean bOnStartup)
bOnStartup
- True if the daemon should be launched on startup, otherwise falseCopyright © 2020 City of Paris. All rights reserved.