public class SendTransactedMsgCmdImpl extends ControllerCommandImpl implements SendTransactedMsgCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
SendTransactedMsgCmdImpl()
Constructs the SendTransactedMsg object by calling its parents constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
afterFail(java.lang.Long msg_id,
java.lang.Integer tran_id,
java.lang.Integer retries,
java.sql.Timestamp expiry)
This method updates the message in the MSGSTORE table by decrementing the
retries field by one.
|
void |
afterFailCheckExpired(java.lang.Long msg_id,
java.lang.Integer tran_id,
java.lang.Integer retries,
java.lang.String duration)
Checks whether the expiry field within the MSGSTORE table has expired.
|
void |
afterSuccess(java.lang.Long msg_id,
java.lang.Integer tran_id)
After the message is successfully sent, it will be removed from the
MSGSTORE table.
|
void |
afterSuccessKeepMessage(java.lang.Long msg_id,
java.lang.Integer tran_id)
This method stores the content of each message into the MSGARCHIVE table
|
void |
assembleMsg()
This method takes all messages from
|
int |
findNextMsgIdIndex(java.util.LinkedList messageList)
Finds the index of the next message ID to send when the previous
message cannot be found.
|
java.lang.Long[] |
getResourceOwners()
This method returns the Organization unit reference numbers for all the resources accessed by this command.
|
java.util.LinkedList |
listMessages(java.lang.Integer retriesGreaterThan)
Gets the next available message ID to send.
|
void |
performExecute()
Assembles the messages in the MsgStoreAccessBean and sends the messages.
|
void |
setRequestProperties(TypedProperty reqProperties)
This method sets the parameters that are passed to the command.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, 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, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
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, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public SendTransactedMsgCmdImpl()
public void afterFail(java.lang.Long msg_id, java.lang.Integer tran_id, java.lang.Integer retries, java.sql.Timestamp expiry)
msg_id
- The message identifiertran_id
- The transport identifierretries
- The number of retriesexpiry
- The timestamp expiry valuepublic void afterSuccess(java.lang.Long msg_id, java.lang.Integer tran_id)
msg_id
- The message identifiertran_id
- The transport identifierpublic void afterSuccessKeepMessage(java.lang.Long msg_id, java.lang.Integer tran_id)
msg_id
- The message identifiertran_id
- The transport identifierpublic void assembleMsg()
public java.lang.Long[] getResourceOwners() throws ECException
getResourceOwners
in interface AccCommand
getResourceOwners
in class ControllerCommandImpl
ECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
ECCommand#performExecute()
public void afterFailCheckExpired(java.lang.Long msg_id, java.lang.Integer tran_id, java.lang.Integer retries, java.lang.String duration)
msg_id
- The message identifiertran_id
- The transport identifierretries
- The number of retriesduration
- The expiry valuepublic java.util.LinkedList listMessages(java.lang.Integer retriesGreaterThan) throws java.lang.Exception
retriesGreaterThan
- the retries value used to search for the list of
queued messages.java.lang.Exception
public int findNextMsgIdIndex(java.util.LinkedList messageList)
messageList
- the list of queued message IDs.public void setRequestProperties(TypedProperty reqProperties) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqProperties
- This is the request parameters specified.ECException
- This is never thrown.ControllerCommand.setRequestProperties(com.ibm.commerce.datatype.TypedProperty)