|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.daemon.DaemonEntry
public final class DaemonEntry
this class is used to manage daemons declaration
| Constructor Summary | |
|---|---|
DaemonEntry()
Constructor |
|
| Method Summary | |
|---|---|
String |
getClassName()
Returns the ClassName |
protected Daemon |
getDaemon()
Returns the daemon associated to the entry |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DaemonEntry()
| Method Detail |
|---|
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 ClassName
public void loadDaemon()
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
ClassNotFoundException - If an error occured
InstantiationException - If an error occured
IllegalAccessException - If an error occuredprotected Daemon getDaemon()
public 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 false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||