Package org.openas2.schedule
Class SchedulerComponent
- java.lang.Object
-
- org.openas2.BaseComponent
-
- org.openas2.schedule.SchedulerComponent
-
- All Implemented Interfaces:
Component
public class SchedulerComponent extends BaseComponent
Scheduler module for periodic tasks.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAMETER_THREADS
-
Constructor Summary
Constructors Constructor Description SchedulerComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Component lifecycle hook.voidinit(Session session, java.util.Map<java.lang.String,java.lang.String> parameters)Component lifecycle hook.-
Methods inherited from class org.openas2.BaseComponent
getName, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParameter
-
-
-
-
Field Detail
-
PARAMETER_THREADS
public static final java.lang.String PARAMETER_THREADS
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(Session session, java.util.Map<java.lang.String,java.lang.String> parameters) throws OpenAS2Exception
Description copied from interface:ComponentComponent 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:
initin interfaceComponent- Overrides:
initin classBaseComponent- Parameters:
session- the component uses this object to access other componentsparameters- configuration values for the component- Throws:
OpenAS2Exception- If an error occurs while initializing the component- See Also:
Session
-
destroy
public void destroy() throws java.lang.ExceptionDescription copied from interface:ComponentComponent lifecycle hook. If lifecycle ofComponentrequires a destroy function this method can be used.- Specified by:
destroyin interfaceComponent- Overrides:
destroyin classBaseComponent- Throws:
java.lang.Exception- Something went wrong- See Also:
Component.init(Session, Map),Session
-
-