public class DefaultFailedMessageRetrierJmx extends ChildRuntimeInfoComponentImpl implements DefaultFailedMessageRetrierJmxMBean
log
Modifier and Type | Method and Description |
---|---|
RuntimeInfoComponent |
getParentRuntimeInfoComponent() |
protected java.lang.String |
getType() |
boolean |
retryMessage(java.io.File file)
Retry a message that has been written to the filesystem.
|
boolean |
retryMessage(SerializableMessage msg)
Retry a message.
|
protected java.lang.String |
uniqueId() |
createObjectName, getParentId, getParentObjectName, registerMBean, unregisterMBean
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParentId, getParentObjectName
createObjectName, registerMBean, unregisterMBean
protected java.lang.String getType()
getType
in class ChildRuntimeInfoComponentImpl
protected java.lang.String uniqueId()
uniqueId
in class ChildRuntimeInfoComponentImpl
public RuntimeInfoComponent getParentRuntimeInfoComponent()
getParentRuntimeInfoComponent
in interface ChildRuntimeInfoComponent
public boolean retryMessage(SerializableMessage msg) throws CoreException
DefaultFailedMessageRetrierJmxMBean
Using metadata that is already present in the message, namely Workflow.WORKFLOW_ID_KEY
, retry the message. Note that
the return code only indicates that a workflow was found, and the message was successfully submitted to the workflow. It does
not indicate anything about the successful processing (or not) of the message.
retryMessage
in interface DefaultFailedMessageRetrierJmxMBean
msg
- the messageCoreException
- if there was an error unwrapping the file using DefaultSerializableMessageTranslator
public boolean retryMessage(java.io.File file) throws java.io.IOException, CoreException
DefaultFailedMessageRetrierJmxMBean
This assumes that the contents of the file has previously been encoded using a MimeEncoder
and written out to the
filesystem. It will decode the file and then submit it using DefaultFailedMessageRetrierJmxMBean.retryMessage(SerializableMessage)
. Note that the
return code only indicates that a workflow was found, and the message was successfully submitted to the workflow. It does not
indicate anything about the successful processing (or not) of the message.
retryMessage
in interface DefaultFailedMessageRetrierJmxMBean
file
- the file, local to the adapter that contains the message to be retried.java.io.IOException
- if there was an error reading the file.CoreException
- if there was an error decoding the file using MimeEncoder
.