com.ibm.commerce.messaging.commands

Class MsgStoreIncrementRetriesCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, MsgStoreIncrementRetriesCmd, Protectable, ToolsControllerCommand, 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


    public class MsgStoreIncrementRetriesCmdImpl
    extends com.ibm.commerce.messaging.commands.MessagingAdminCmd
    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

      • COPYRIGHT

        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
        Overrides:
        isGeneric in class ControllerCommandImpl
        Returns:
        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 com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        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
        Overrides:
        isRetriable in class ControllerCommandImpl
        Returns:
        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 com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        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
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECException - Raised with message _ERR_CMD_MISSING_PARAM if msg_id or transport_id is not found in the request properties (PrameterNotFoundException)