Class SchedulerComponent

  • All Implemented Interfaces:
    Component

    public class SchedulerComponent
    extends BaseComponent
    Scheduler module for periodic tasks.
    • Field Detail

      • PARAMETER_THREADS

        public static final java.lang.String PARAMETER_THREADS
        See Also:
        Constant Field Values
      • logger

        private org.apache.commons.logging.Log logger
      • executorService

        private java.util.concurrent.ScheduledExecutorService executorService
    • Constructor Detail

      • SchedulerComponent

        public SchedulerComponent()
    • Method Detail

      • init

        public void init​(Session session,
                         java.util.Map<java.lang.String,​java.lang.String> parameters)
                  throws OpenAS2Exception
        Description copied from interface: Component
        Component lifecycle hook. After creating a Component object, this method should be called to set any parameters used by the component. Component implementations typically have required parameter checking and code to start timers and threads within this method.
        Specified by:
        init in interface Component
        Overrides:
        init in class BaseComponent
        Parameters:
        session - the component uses this object to access other components
        parameters - configuration values for the component
        Throws:
        OpenAS2Exception - If an error occurs while initializing the component
        See Also:
        Session