org.apache.sandesha2
Class TerminateManager

java.lang.Object
  extended byorg.apache.sandesha2.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

Constructor Summary
TerminateManager()
           
 
Method Summary
static void terminateAfterInvocation(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 terminateReceivingSide(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 sequenceID)
          This is called by the sending side to clean data related to a sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerminateManager

public TerminateManager()
Method Detail

terminateReceivingSide

public static void terminateReceivingSide(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

terminateAfterInvocation

public static void terminateAfterInvocation(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 sequenceID)
                                 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 -
sequenceID -
Throws:
SandeshaException


Copyright © 2005 Apache Web Services. All Rights Reserved.