Class ActionJob

All Implemented Interfaces:
FrankElement, HasApplicationContext, HasName, HasTransactionAttribute, IConfigurable, IScopeProvider, NameAware, ConfigurableLifecycle, IJob, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
Direct Known Subclasses:
IbisActionJob

public class ActionJob extends AbstractJobDef
Job which can stop/start adapters and receivers.
  • Constructor Details

    • ActionJob

      public ActionJob()
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      Description copied from interface: IConfigurable
      Configure this component.

      configure() is called once at startup of the framework in the configure method of the owner of this IConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in the configure(), to improve performance.

      In the case of a container, this will propagate the configure signal to all components that apply.

      Specified by:
      configure in interface IConfigurable
      Overrides:
      configure in class AbstractJobDef
      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • execute

      public void execute()
      Description copied from class: AbstractJobDef
      Is wrapped around a Locker and exceptions will be managed automatically.
      Specified by:
      execute in class AbstractJobDef
    • setAction

      @Mandatory public void setAction(ActionJob.AvailableAction action)
    • setConfigurationName

      public void setConfigurationName(String configurationName)
      Configuration on which job operates
    • setAdapterName

      @Mandatory public void setAdapterName(String adapterName)
      Adapter on which job operates
    • setReceiverName

      public void setReceiverName(String receiverName)
      Receiver on which job operates