Class MsgStoreIncrementRetriesCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, MsgStoreIncrementRetriesCmd, Protectable, ToolsControllerCommand,,,,,,

    public class MsgStoreIncrementRetriesCmdImpl
    implements MsgStoreIncrementRetriesCmd
    This is the default implementation of MsgStoreIncrementRetriesCmd. The validateParameters method retrieves the msg_id and transport_id from the request properties. Next, performExecute increments the retry count in the MSGSTORE table for all the messages identified by the msg_id and transport_id. The msg_id attribute value can be comma delimited to identify multiple values.
    See Also:
    Serialized Form
    • Field Detail


        public static final java.lang.String COPYRIGHT
        IBM Copyright field
        See Also:
        Constant Field Values
    • Constructor Detail

      • MsgStoreIncrementRetriesCmdImpl

        public MsgStoreIncrementRetriesCmdImpl()
        The MsgStoreIncrementRetriesCmdImpl default constructor calls its parents constructor.
    • Method Detail

      • isGeneric

        public boolean isGeneric()
        This method checks to see if this is a generic command. A generic command can be called by a generic user. The default is false.
        Specified by:
        isGeneric in interface ControllerCommand
        isGeneric in class ControllerCommandImpl
        True if this command can be called by a generic user, otherwise false.
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method checks whether this command is ready to execute.
        Specified by:
        isReadyToCallExecute in interface
        isReadyToCallExecute in class AbstractECTargetableCommand
        True if this command is ready to be executed, otherwise false.
      • isRetriable

        public boolean isRetriable()
        This method checks to see if this command may be retried after errors (for example, rollback exceptions).
        Specified by:
        isRetriable in interface ControllerCommand
        isRetriable in class ControllerCommandImpl
        True if this command may be retried, otherwise false.
      • performExecute

        public void performExecute()
                            throws ECException
        The business logic for this controller command. This method uses the MsgStoreAccessBean to retrieve entries from MSGSTORE based on msg_id and transport_id and increments the retry count by one. msg_id can contain multiple values by using a "," (comma) as a delimiter.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class AbstractECTargetableCommand
        ECException - Raised with messages _ERR_ADM_FINDEREXCEPTION, _ERR_ADM_CREATEEXCEPTION, _ERR_ADM_REMOTEEXCEPTION, _ERR_ADM_NAMINGEXCEPTION when the MsgStoreBean throws any exception.
      • validateParameters

        public void validateParameters()
                                throws ECException
        ControllerCommandImpl calls checkParameter in performExecute. It is the responsibility of the command writers to implement this method if they want to perform server side parameter checking. They should either call checkParameters inside their performExecute method or call super.performExecute() as the first statement in the performExecute method. This retrieves attributes from the request properties using key names msg_id and transport_id
        Specified by:
        validateParameters in interface ECCommand
        validateParameters in class AbstractECTargetableCommand
        ECException - Raised with message _ERR_CMD_MISSING_PARAM if msg_id or transport_id is not found in the request properties (PrameterNotFoundException)