Class MessageForwardingProcessorView
- java.lang.Object
-
- org.apache.synapse.message.processor.impl.forwarder.MessageForwardingProcessorView
-
- All Implemented Interfaces:
MessageForwardingProcessorViewMBean
public class MessageForwardingProcessorView extends Object implements MessageForwardingProcessorViewMBean
-
-
Constructor Summary
Constructors Constructor Description MessageForwardingProcessorView(ScheduledMessageForwardingProcessor 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 via associated endpoints.
-
-
-
Constructor Detail
-
MessageForwardingProcessorView
public MessageForwardingProcessorView(ScheduledMessageForwardingProcessor processor) throws Exception
- Throws:
Exception
-
-
Method Detail
-
resendAll
public void resendAll() throws ExceptionDescription copied from interface:MessageForwardingProcessorViewMBeantry resending all messages stored in the message store via associated endpoints.- Specified by:
resendAllin interfaceMessageForwardingProcessorViewMBean- Throws:
Exception
-
deleteAll
public void deleteAll() throws ExceptionDescription copied from interface:MessageForwardingProcessorViewMBeanDelete all the Messages in Message store- Specified by:
deleteAllin interfaceMessageForwardingProcessorViewMBean- Throws:
Exception
-
messageIdList
public List<String> messageIdList() throws Exception
Description copied from interface:MessageForwardingProcessorViewMBeanGet the Message IDs of all stored Messages in the Message store- Specified by:
messageIdListin interfaceMessageForwardingProcessorViewMBean- Returns:
- a list of message ID values
- Throws:
Exception
-
resend
public void resend(String messageID) throws Exception
Description copied from interface:MessageForwardingProcessorViewMBeanResend the Message with the given id return false if fail to re try deliver the message- Specified by:
resendin interfaceMessageForwardingProcessorViewMBean- Parameters:
messageID- ID of the message to be resent- Throws:
Exception
-
delete
public void delete(String messageID) throws Exception
Description copied from interface:MessageForwardingProcessorViewMBeanDelete the Message with Given id- Specified by:
deletein interfaceMessageForwardingProcessorViewMBean- Parameters:
messageID- ID of the message to be deleted- Throws:
Exception
-
getEnvelope
public String getEnvelope(String messageID) throws Exception
Description copied from interface:MessageForwardingProcessorViewMBeanGet the SOAP envelope of the given Message with given ID- Specified by:
getEnvelopein interfaceMessageForwardingProcessorViewMBean- 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 interfaceMessageForwardingProcessorViewMBean- Returns:
- the number of Messages stored in the store.
-
isActive
public boolean isActive()
Description copied from interface:MessageForwardingProcessorViewMBeanGet the Status of the Message Processor- Specified by:
isActivein interfaceMessageForwardingProcessorViewMBean- Returns:
- status of the Processor
-
activate
public void activate()
Description copied from interface:MessageForwardingProcessorViewMBeanActivate the Message Processor. This will resume processing the Messages if its in deactivated state and reset the Send attempt count.- Specified by:
activatein interfaceMessageForwardingProcessorViewMBean
-
deactivate
public void deactivate()
Description copied from interface:MessageForwardingProcessorViewMBeanDeactivate the Message Processor This will stop the processing of Messages.- Specified by:
deactivatein interfaceMessageForwardingProcessorViewMBean
-
isTaskLocationKnown
public boolean isTaskLocationKnown()
Description copied from interface:MessageForwardingProcessorViewMBeanChecks if the task location linked to this Message Processor is known- Specified by:
isTaskLocationKnownin interfaceMessageForwardingProcessorViewMBean- Returns:
- true if the task location linked to this Message Processor is known
-
-