com.ibm.commerce.command

Class AsyncControllerCommandImpl

  • All Implemented Interfaces:
    AccCommand, AsyncCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
    Direct Known Subclasses:
    ContractTCDeployCmdImpl, ImportIntelligentOfferAssociationsCmdImpl, ScheduledContractDeployCmdImpl


    public class AsyncControllerCommandImpl
    extends ControllerCommandImpl
    implements AsyncCommand
    This class is the default implementation of a controller command that implements the AsyncCommand interface. A long running job that needs to be scheduled by the scheduler can extends from this class. An AsyncControllerCommandImpl will be invoked by the scheduler. The scheduler will not update the SCHSTATUS table when it returns from the execute method of the AsyncControllerCommandImpl. Instead, the command will be passed the job instance id (from the SCHSTATUS table) and the job reference id (from the SCHCONFIG table). The command would typically dispatch a job to be run on a separate thread and then return. The job will update the SCHSTATUS table when it finishes execution.
    See Also:
    Serialized Form
    • Constructor Detail

      • AsyncControllerCommandImpl

        public AsyncControllerCommandImpl()
        This is the default constructor for this class. It calls the constructor from the superclass.
    • Method Detail

      • getJobInstanceId

        public final java.lang.Long getJobInstanceId()
        This method gets the instance id for this job as set in the SCHSTATUS table.
        Specified by:
        getJobInstanceId in interface AsyncCommand
        Returns:
        This method returns the job instance id.
      • getJobReferenceId

        public final java.lang.Long getJobReferenceId()
        This method gets the reference id for this job as set in the SCHCONFIG table.
        Specified by:
        getJobReferenceId in interface AsyncCommand
        Returns:
        This method returns the job reference id.
      • setJobInstanceId

        public final void setJobInstanceId(java.lang.Long val)
        This method sets the instance id for this job as set in the SCHSTATUS table.
        Specified by:
        setJobInstanceId in interface AsyncCommand
        Parameters:
        val - This is the job instance id.
      • setJobReferenceId

        public final void setJobReferenceId(java.lang.Long val)
        This method sets the reference id for this job as set in the SCHCONFIG table.
        Specified by:
        setJobReferenceId in interface AsyncCommand
        Parameters:
        val - This is the job reference id.