org.apache.sandesha2.util
Class TerminateManager
java.lang.Object
org.apache.sandesha2.util.TerminateManager
- public class TerminateManager
- extends java.lang.Object
Contains logic to remove all the storad data of a sequence.
Methods of this are called by sending side and the receiving side when appropriate
- Author:
- Chamikara Jayalath
Method Summary |
static void |
addTerminateSequenceMessage(RMMsgContext referenceMessage,
java.lang.String outSequenceId,
java.lang.String internalSequenceId)
|
static void |
cleanReceivingSideAfterInvocation(org.apache.axis2.context.ConfigurationContext configContext,
java.lang.String sequenceID)
When InOrder invocation is anabled this had to be called to clean the data left by the
above method. |
static void |
cleanReceivingSideOnTerminateMessage(org.apache.axis2.context.ConfigurationContext configContext,
java.lang.String sequenceID)
Called by the receiving side to remove data related to a sequence. |
static void |
terminateSendingSide(org.apache.axis2.context.ConfigurationContext configContext,
java.lang.String internalSequenceID,
boolean serverSide)
This is called by the sending side to clean data related to a sequence. |
static void |
timeOutSendingSideSequence(org.apache.axis2.context.ConfigurationContext context,
java.lang.String internalSequenceID,
boolean serverside)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
receivingSideCleanMap
public static java.util.HashMap receivingSideCleanMap
TerminateManager
public TerminateManager()
cleanReceivingSideOnTerminateMessage
public static void cleanReceivingSideOnTerminateMessage(org.apache.axis2.context.ConfigurationContext configContext,
java.lang.String sequenceID)
throws SandeshaException
- Called by the receiving side to remove data related to a sequence.
e.g. After sending the TerminateSequence message. Calling this methods will complete all
the data if InOrder invocation is not sequired.
- Parameters:
configContext
- sequenceID
-
- Throws:
SandeshaException
cleanReceivingSideAfterInvocation
public static void cleanReceivingSideAfterInvocation(org.apache.axis2.context.ConfigurationContext configContext,
java.lang.String sequenceID)
throws SandeshaException
- When InOrder invocation is anabled this had to be called to clean the data left by the
above method. This had to be called after the Invocation of the Last Message.
- Parameters:
configContext
- sequenceID
-
- Throws:
SandeshaException
terminateSendingSide
public static void terminateSendingSide(org.apache.axis2.context.ConfigurationContext configContext,
java.lang.String internalSequenceID,
boolean serverSide)
throws SandeshaException
- This is called by the sending side to clean data related to a sequence.
e.g. after sending the TerminateSequence message.
- Parameters:
configContext
-
- Throws:
SandeshaException
timeOutSendingSideSequence
public static void timeOutSendingSideSequence(org.apache.axis2.context.ConfigurationContext context,
java.lang.String internalSequenceID,
boolean serverside)
throws SandeshaException
- Throws:
SandeshaException
addTerminateSequenceMessage
public static void addTerminateSequenceMessage(RMMsgContext referenceMessage,
java.lang.String outSequenceId,
java.lang.String internalSequenceId)
throws SandeshaException
- Throws:
SandeshaException
Copyright © 2005-2006 Apache Web Services. All Rights Reserved.