|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.sandesha2.client.SandeshaClient
public class SandeshaClient
Contains all the Sandesha2Constants of Sandesha2. Please see sub-interfaces to see grouped data.
Constructor Summary | |
---|---|
SandeshaClient()
|
Method Summary | |
---|---|
static void |
closeSequence(org.apache.axis2.client.ServiceClient serviceClient)
User can close the sequence defined by the passed serviceClient. |
static void |
closeSequence(org.apache.axis2.client.ServiceClient serviceClient,
java.lang.String sequenceKey)
|
static java.lang.String |
createSequence(org.apache.axis2.client.ServiceClient serviceClient,
boolean offer)
Clients can use this to create a sequence sequence. |
static void |
createSequence(org.apache.axis2.client.ServiceClient serviceClient,
boolean offer,
java.lang.String sequenceKey)
This could be used to create sequences with a given sequence key. |
static void |
createSequnce(org.apache.axis2.client.ServiceClient serviceClient,
boolean offer,
java.lang.String sequenceKey)
Deprecated. |
static void |
forceDispatchOfInboundMessages(org.apache.axis2.context.ConfigurationContext configContext,
java.lang.String sequenceID,
boolean allowLaterDeliveryOfMissingMessages)
Forces any inbound messages currently on the specified inOrder inbound sequence to be dispatched out of order. |
static SequenceReport |
getIncomingSequenceReport(java.lang.String sequenceID,
org.apache.axis2.context.ConfigurationContext configCtx)
|
static java.util.List<SequenceReport> |
getIncomingSequenceReports(org.apache.axis2.context.ConfigurationContext configCtx)
Users can get a list of sequenceReports each describing a incoming sequence, which are the sequences the client work as a RMD. |
static java.lang.Exception |
getLastSendError(org.apache.axis2.client.ServiceClient serviceClient)
Gets the last error that occured on a send to an endpoint. |
static long |
getLastSendErrorTimestamp(org.apache.axis2.client.ServiceClient serviceClient)
Gets the timestamp from which the last error that occured on a send to an endpoint. |
static SequenceReport |
getOutgoingSequenceReport(org.apache.axis2.client.ServiceClient serviceClient)
Users can get a SequenceReport of the sequence defined by the information given from the passed serviceClient object. |
static SequenceReport |
getOutgoingSequenceReport(java.lang.String internalSequenceID,
org.apache.axis2.context.ConfigurationContext configurationContext)
|
static SequenceReport |
getOutgoingSequenceReport(java.lang.String internalSequenceID,
org.apache.axis2.context.ConfigurationContext configurationContext,
boolean createTransaction)
|
static SequenceReport |
getOutgoingSequenceReport(java.lang.String to,
java.lang.String sequenceKey,
org.apache.axis2.context.ConfigurationContext configurationContext)
|
static SandeshaReport |
getSandeshaReport(org.apache.axis2.context.ConfigurationContext configurationContext)
SandeshaReport gives the details of all incoming and outgoing sequences. |
static java.lang.String |
getSequenceID(org.apache.axis2.client.ServiceClient serviceClient)
|
static void |
sendAckRequest(org.apache.axis2.client.ServiceClient serviceClient)
|
static void |
sendAckRequest(org.apache.axis2.client.ServiceClient serviceClient,
java.lang.String sequenceKey)
|
static void |
setPolicyBean(org.apache.axis2.client.ServiceClient serviceClient,
SandeshaPolicyBean policyBean)
|
static void |
terminateSequence(org.apache.axis2.client.ServiceClient serviceClient)
User can terminate the sequence defined by the passed serviceClient. |
static void |
terminateSequence(org.apache.axis2.client.ServiceClient serviceClient,
java.lang.String sequenceKey)
|
static void |
waitUntilSequenceCompleted(org.apache.axis2.client.ServiceClient serviceClient)
This blocks the system until the messages u have sent hv been completed. |
static void |
waitUntilSequenceCompleted(org.apache.axis2.client.ServiceClient serviceClient,
long maxWaitingTime)
This blocks the system until the messages u have sent hv been completed or until the given time interval exceeds. |
static void |
waitUntilSequenceCompleted(org.apache.axis2.client.ServiceClient serviceClient,
long maxWaitingTime,
java.lang.String sequenceKey)
|
static void |
waitUntilSequenceCompleted(org.apache.axis2.client.ServiceClient serviceClient,
java.lang.String sequenceKey)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SandeshaClient()
Method Detail |
---|
public static SequenceReport getOutgoingSequenceReport(org.apache.axis2.client.ServiceClient serviceClient) throws SandeshaException
serviceClient
-
SandeshaException
public static SequenceReport getOutgoingSequenceReport(java.lang.String to, java.lang.String sequenceKey, org.apache.axis2.context.ConfigurationContext configurationContext) throws SandeshaException
SandeshaException
public static SequenceReport getOutgoingSequenceReport(java.lang.String internalSequenceID, org.apache.axis2.context.ConfigurationContext configurationContext) throws SandeshaException
SandeshaException
public static SequenceReport getOutgoingSequenceReport(java.lang.String internalSequenceID, org.apache.axis2.context.ConfigurationContext configurationContext, boolean createTransaction) throws SandeshaException
SandeshaException
public static java.util.List<SequenceReport> getIncomingSequenceReports(org.apache.axis2.context.ConfigurationContext configCtx) throws SandeshaException
configCtx
-
SandeshaException
public static SandeshaReport getSandeshaReport(org.apache.axis2.context.ConfigurationContext configurationContext) throws SandeshaException
configurationContext
-
SandeshaException
public static void createSequence(org.apache.axis2.client.ServiceClient serviceClient, boolean offer, java.lang.String sequenceKey) throws SandeshaException
serviceClient
- - A configured ServiceClient to be used to invoke RM messages. This need to have Sandesha2 engaged.offer
- - Weather a sequence should be offered for obtaining response messages.sequenceKey
- The sequenceKey of the newly generated sequence.
SandeshaException
public static java.lang.String createSequence(org.apache.axis2.client.ServiceClient serviceClient, boolean offer) throws SandeshaException
serviceClient
- - A configured ServiceClient to be used to invoke RM messages. This need to have Sandesha2 engaged.offer
- - Weather a sequence should be offered for obtaining response messages.
SandeshaException
public static void createSequnce(org.apache.axis2.client.ServiceClient serviceClient, boolean offer, java.lang.String sequenceKey) throws SandeshaException
SandeshaException
public static void terminateSequence(org.apache.axis2.client.ServiceClient serviceClient) throws SandeshaException
serviceClient
-
SandeshaException
public static void terminateSequence(org.apache.axis2.client.ServiceClient serviceClient, java.lang.String sequenceKey) throws SandeshaException
SandeshaException
public static void closeSequence(org.apache.axis2.client.ServiceClient serviceClient) throws SandeshaException
serviceClient
-
SandeshaException
public static void closeSequence(org.apache.axis2.client.ServiceClient serviceClient, java.lang.String sequenceKey) throws SandeshaException
SandeshaException
public static void waitUntilSequenceCompleted(org.apache.axis2.client.ServiceClient serviceClient) throws SandeshaException
serviceClient
-
SandeshaException
public static void waitUntilSequenceCompleted(org.apache.axis2.client.ServiceClient serviceClient, java.lang.String sequenceKey) throws SandeshaException
SandeshaException
public static void waitUntilSequenceCompleted(org.apache.axis2.client.ServiceClient serviceClient, long maxWaitingTime) throws SandeshaException
serviceClient
- maxWaitingTime
-
SandeshaException
public static void waitUntilSequenceCompleted(org.apache.axis2.client.ServiceClient serviceClient, long maxWaitingTime, java.lang.String sequenceKey) throws SandeshaException
SandeshaException
public static java.lang.String getSequenceID(org.apache.axis2.client.ServiceClient serviceClient) throws SandeshaException
SandeshaException
public static void sendAckRequest(org.apache.axis2.client.ServiceClient serviceClient) throws SandeshaException
SandeshaException
public static void sendAckRequest(org.apache.axis2.client.ServiceClient serviceClient, java.lang.String sequenceKey) throws SandeshaException
SandeshaException
public static void forceDispatchOfInboundMessages(org.apache.axis2.context.ConfigurationContext configContext, java.lang.String sequenceID, boolean allowLaterDeliveryOfMissingMessages) throws SandeshaException
configContext
- sequenceID
- allowLaterDeliveryOfMissingMessages
- if true, messages skipped over during this
action will be invoked if they arrive on the system at a later time.
Otherwise messages skipped over will be ignored
SandeshaException
public static SequenceReport getIncomingSequenceReport(java.lang.String sequenceID, org.apache.axis2.context.ConfigurationContext configCtx) throws SandeshaException
SandeshaException
public static java.lang.Exception getLastSendError(org.apache.axis2.client.ServiceClient serviceClient) throws SandeshaException
serviceClient
-
SandeshaException
.
public static long getLastSendErrorTimestamp(org.apache.axis2.client.ServiceClient serviceClient) throws SandeshaException
serviceClient
-
SandeshaException
public static void setPolicyBean(org.apache.axis2.client.ServiceClient serviceClient, SandeshaPolicyBean policyBean) throws SandeshaException
SandeshaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |