Class FailoverMessageForwardingProcessorView
- java.lang.Object
-
- org.apache.synapse.message.processor.impl.failover.FailoverMessageForwardingProcessorView
-
- All Implemented Interfaces:
FailoverMessageForwardingProcessorViewMBean
public class FailoverMessageForwardingProcessorView extends Object implements FailoverMessageForwardingProcessorViewMBean
-
-
Constructor Summary
Constructors Constructor Description FailoverMessageForwardingProcessorView(FailoverScheduledMessageForwardingProcessor processor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()Activate the Message Processor.voiddeactivate()Deactivate the Message Processor This will stop the processing of Messages.voiddelete(String messageID)Delete the Message with Given idvoiddeleteAll()Delete all the Messages in Message storeStringgetEnvelope(String messageID)Get the SOAP envelope of the given Message with given IDintgetSize()booleanisActive()Get the Status of the Message ProcessorbooleanisTaskLocationKnown()Checks if the task location linked to this Message Processor is knownList<String>messageIdList()Get the Message IDs of all stored Messages in the Message storevoidresend(String messageID)Resend the Message with the given id return false if fail to re try deliver the messagevoidresendAll()try resending all messages stored in the message store.
-
-
-
Constructor Detail
-
FailoverMessageForwardingProcessorView
public FailoverMessageForwardingProcessorView(FailoverScheduledMessageForwardingProcessor processor) throws Exception
- Throws:
Exception
-
-
Method Detail
-
resendAll
public void resendAll() throws ExceptionDescription copied from interface:FailoverMessageForwardingProcessorViewMBeantry resending all messages stored in the message store.- Specified by:
resendAllin interfaceFailoverMessageForwardingProcessorViewMBean- Throws:
Exception
-
deleteAll
public void deleteAll() throws ExceptionDescription copied from interface:FailoverMessageForwardingProcessorViewMBeanDelete all the Messages in Message store- Specified by:
deleteAllin interfaceFailoverMessageForwardingProcessorViewMBean- Throws:
Exception
-
messageIdList
public List<String> messageIdList() throws Exception
Description copied from interface:FailoverMessageForwardingProcessorViewMBeanGet the Message IDs of all stored Messages in the Message store- Specified by:
messageIdListin interfaceFailoverMessageForwardingProcessorViewMBean- Returns:
- a list of message ID values
- Throws:
Exception
-
resend
public void resend(String messageID) throws Exception
Description copied from interface:FailoverMessageForwardingProcessorViewMBeanResend the Message with the given id return false if fail to re try deliver the message- Specified by:
resendin interfaceFailoverMessageForwardingProcessorViewMBean- Parameters:
messageID- ID of the message to be resent- Throws:
Exception
-
delete
public void delete(String messageID) throws Exception
Description copied from interface:FailoverMessageForwardingProcessorViewMBeanDelete the Message with Given id- Specified by:
deletein interfaceFailoverMessageForwardingProcessorViewMBean- Parameters:
messageID- ID of the message to be deleted- Throws:
Exception
-
getEnvelope
public String getEnvelope(String messageID) throws Exception
Description copied from interface:FailoverMessageForwardingProcessorViewMBeanGet the SOAP envelope of the given Message with given ID- Specified by:
getEnvelopein interfaceFailoverMessageForwardingProcessorViewMBean- Parameters:
messageID- ID of the message to be returned- Returns:
- the SOAP envelope content as a string
- Throws:
Exception
-
getSize
public int getSize()
- Specified by:
getSizein interfaceFailoverMessageForwardingProcessorViewMBean- Returns:
- the number of Messages stored in the store.
-
isActive
public boolean isActive()
Description copied from interface:FailoverMessageForwardingProcessorViewMBeanGet the Status of the Message Processor- Specified by:
isActivein interfaceFailoverMessageForwardingProcessorViewMBean- Returns:
- status of the Processor
-
activate
public void activate()
Description copied from interface:FailoverMessageForwardingProcessorViewMBeanActivate the Message Processor. This will resume processing the Messages if its in deactivated state and reset the Send attempt count.- Specified by:
activatein interfaceFailoverMessageForwardingProcessorViewMBean
-
deactivate
public void deactivate()
Description copied from interface:FailoverMessageForwardingProcessorViewMBeanDeactivate the Message Processor This will stop the processing of Messages.- Specified by:
deactivatein interfaceFailoverMessageForwardingProcessorViewMBean
-
isTaskLocationKnown
public boolean isTaskLocationKnown()
Description copied from interface:FailoverMessageForwardingProcessorViewMBeanChecks if the task location linked to this Message Processor is known- Specified by:
isTaskLocationKnownin interfaceFailoverMessageForwardingProcessorViewMBean- Returns:
- true if the task location linked to this Message Processor is known
-
-