Class DaemonEntry


  • public final class DaemonEntry
    extends java.lang.Object
    this class is used to manage daemons declaration
    • Constructor Summary

      Constructors 
      Constructor Description
      DaemonEntry()
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getClassName()
      Returns the ClassName
      DaemonThread getDaemonThread()
      Returns the thread which start the daemon task
      java.lang.String getDescriptionKey()
      Returns the DescriptionKey
      java.lang.String getId()
      Returns the Id
      long getInterval()
      Returns the Interval of time in seconds between two executions
      java.lang.String getLastRunDate()
      Returns the LastRunDate
      java.lang.String getLastRunLogs()
      Returns the LastRunLogs
      java.lang.String getNameKey()
      Returns the NameKey
      java.lang.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​(java.lang.String strClassName)
      Sets the ClassName
      void setDescriptionKey​(java.lang.String strDescriptionKey)
      Sets the DescriptionKey
      void setId​(java.lang.String strId)
      Sets the Id
      void setInterval​(long lInterval)
      Sets the interval
      void setIsRunning​(boolean bIsRunning)
      Set running daemon status
      void setLastRunDate​(java.util.Date dateLastRunDate)
      Sets the LastRunDate
      void setLastRunLogs​(java.lang.String strLastRunLogs)
      Sets the LastRunLogs
      void setNameKey​(java.lang.String strNameKey)
      Sets the NameKey
      void setOnStartUp​(boolean bOnStartup)
      Sets the OnStartUp property
      void setPluginName​(java.lang.String strPluginName)
      Sets the PluginName
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DaemonEntry

        public DaemonEntry()
        Constructor
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns the Id
        Returns:
        The Id
      • setId

        public void setId​(java.lang.String strId)
        Sets the Id
        Parameters:
        strId - The Id
      • getNameKey

        public java.lang.String getNameKey()
        Returns the NameKey
        Returns:
        The NameKey
      • setNameKey

        public void setNameKey​(java.lang.String strNameKey)
        Sets the NameKey
        Parameters:
        strNameKey - The NameKey
      • getDescriptionKey

        public java.lang.String getDescriptionKey()
        Returns the DescriptionKey
        Returns:
        The DescriptionKey
      • setDescriptionKey

        public void setDescriptionKey​(java.lang.String strDescriptionKey)
        Sets the DescriptionKey
        Parameters:
        strDescriptionKey - The DescriptionKey
      • getClassName

        public java.lang.String getClassName()
        Returns the ClassName
        Returns:
        The ClassName
      • setClassName

        public void setClassName​(java.lang.String strClassName)
        Sets the ClassName
        Parameters:
        strClassName - The ClassName
      • loadDaemon

        public void loadDaemon()
                        throws java.lang.ClassNotFoundException,
                               java.lang.InstantiationException,
                               java.lang.IllegalAccessException
        Load the daemon
        Throws:
        java.lang.ClassNotFoundException - If an error occured
        java.lang.InstantiationException - If an error occured
        java.lang.IllegalAccessException - If an error occured
      • getDaemonThread

        public DaemonThread 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

        public java.lang.String getPluginName()
        Returns the PluginName
        Returns:
        The PluginName
      • setPluginName

        public void setPluginName​(java.lang.String strPluginName)
        Sets the PluginName
        Parameters:
        strPluginName - The PluginName
      • getLastRunDate

        public java.lang.String getLastRunDate()
        Returns the LastRunDate
        Returns:
        The LastRunDate
      • setLastRunDate

        public void setLastRunDate​(java.util.Date dateLastRunDate)
        Sets the LastRunDate
        Parameters:
        dateLastRunDate - The LastRunDate
      • getLastRunLogs

        public java.lang.String getLastRunLogs()
        Returns the LastRunLogs
        Returns:
        The LastRunLogs
      • setLastRunLogs

        public void setLastRunLogs​(java.lang.String strLastRunLogs)
        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