public class MsgStoreIncrementRetriesCmdImpl extends com.ibm.commerce.messaging.commands.MessagingAdminCmd implements MsgStoreIncrementRetriesCmd
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.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright field
|
defaultCommandClassName, NAME
Constructor and Description |
---|
MsgStoreIncrementRetriesCmdImpl()
The MsgStoreIncrementRetriesCmdImpl default constructor calls its parents constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isGeneric()
This method checks to see if this is a generic command.
|
boolean |
isReadyToCallExecute()
This method checks whether this command is ready to execute.
|
boolean |
isRetriable()
This method checks to see if this command may be retried after errors (for example, rollback exceptions).
|
void |
performExecute()
The business logic for this controller command.
|
void |
validateParameters()
ControllerCommandImpl calls
checkParameter in performExecute. |
createSuccessResponse, createSuccessResponseForDynamicList, getOptionalParameter, getOptionalParameter, getRequiredParameter, getRequiredParameter, throwException, throwException
getViewInputProperties, setRequestProperties
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public MsgStoreIncrementRetriesCmdImpl()
public boolean isGeneric()
isGeneric
in interface ControllerCommand
isGeneric
in class ControllerCommandImpl
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
public boolean isRetriable()
isRetriable
in interface ControllerCommand
isRetriable
in class ControllerCommandImpl
public void performExecute() throws ECException
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.
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
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.public void validateParameters() throws ECException
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
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
)