Skip navigation links

Oracle Fusion Middleware B2B Sequence Manager Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1.7)

E28181-04


oracle.tip.b2b.utility
Class SequenceManagerUtility

java.lang.Object
  extended by oracle.tip.b2b.utility.SequenceManagerUtility

All Implemented Interfaces:
java.io.Serializable

public class SequenceManagerUtility
extends java.lang.Object
implements java.io.Serializable
See Also:
Serialized Form

Constructor Summary
SequenceManagerUtility()
           
SequenceManagerUtility(java.util.Properties jndiprops)
           

 

Method Summary
 java.util.List<java.lang.String> discardFirstSequenceMessageByTarget(java.lang.String target)
          This method discards/deletes the first messages on the target
 java.util.List<java.lang.String> discardFirstSequenceMessageByTarget(java.lang.String target, java.lang.String direction)
          This method discards/deletes the first messages on the target and direction
 java.util.List<java.lang.String> discardSequencedMessageByMessageId(java.lang.String msgId)
          This method discards/deletes the messages based on the message id
 java.util.List<java.lang.String> discardSequencedMessageByState(java.lang.String state)
          This method discards/deletes the messages based on the state
 java.util.List<java.lang.String> discardSequencedMessageByStateAndTarget(java.lang.String target, java.lang.String state)
          This method discards/deletes the messages based on the target and state
 java.util.List<java.lang.String> discardSequencedMessageByStateAndTarget(java.lang.String target, java.lang.String state, java.lang.String direction)
          This method discards/deletes the messages based on the target, state and direction
 java.util.List<java.lang.String> discardSequencedMessageByTarget(java.lang.String target)
          This method discards/deletes the messages based on the target
 java.util.List<java.lang.String> discardSequencedMessageByTarget(java.lang.String target, java.lang.String direction)
          This method discards/deletes the messages based on the target
 java.util.List<java.lang.String> getSequenceMessagesByState(java.lang.String state)
          lists all the message ids based on the state
 java.util.List<java.lang.String> getSequenceMessagesByTarget(java.lang.String target)
          lists all the message ids based on the target
 java.util.List<java.lang.String> getSequenceMessagesByTargetAndState(java.lang.String target, java.lang.String state)
          lists all the message ids based on the target and state
 java.util.List<java.lang.String> getSequenceMsgs(java.lang.String option, java.lang.String values)
          To get the list of sequenced messages based on the target/state/messageid
 java.lang.String getStateByTarget(java.lang.String target)
          returns the state of the given target
 java.lang.String getStateByTarget(java.lang.String target, java.lang.String direction)
          returns the state of the given target
 java.util.List<java.lang.String> listSequenceTargets()
           
 boolean pauseSequenceTarget(java.lang.String target)
          This method will pause the particular sequence target
 boolean pauseSequenceTarget(java.lang.String target, java.lang.String direction)
          This method will pause the particular sequence target with direction
 boolean processSequenceMessageByMessageId(java.lang.String messageId)
          This method will process the particular message Id.
 boolean resumeSequenceTarget(java.lang.String target)
          This method will resume the particular sequence target
 boolean resumeSequenceTarget(java.lang.String target, java.lang.String direction)
          This method will resume the particular sequence target with direction

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

SequenceManagerUtility

public SequenceManagerUtility()

SequenceManagerUtility

public SequenceManagerUtility(java.util.Properties jndiprops)

Method Detail

listSequenceTargets

public java.util.List<java.lang.String> listSequenceTargets()
                                                     throws java.lang.Exception
Returns:
the list of targets with the state
Throws:
java.lang.Exception

discardSequencedMessageByStateAndTarget

public java.util.List<java.lang.String> discardSequencedMessageByStateAndTarget(java.lang.String target,
                                                                                java.lang.String state)
                                                                         throws java.lang.Exception
This method discards/deletes the messages based on the target and state
Parameters:
target - target Name
state - state name
Returns:
list of message ids got discarded/deleted
Throws:
java.lang.Exception

discardSequencedMessageByStateAndTarget

public java.util.List<java.lang.String> discardSequencedMessageByStateAndTarget(java.lang.String target,
                                                                                java.lang.String state,
                                                                                java.lang.String direction)
                                                                         throws java.lang.Exception
This method discards/deletes the messages based on the target, state and direction
Parameters:
target - target Name
state - state name
direction -
Returns:
list of message ids got discarded/deleted
Throws:
java.lang.Exception

discardSequencedMessageByState

public java.util.List<java.lang.String> discardSequencedMessageByState(java.lang.String state)
                                                                throws java.lang.Exception
This method discards/deletes the messages based on the state
Parameters:
state - state name
Returns:
list of message ids got discarded/deleted
Throws:
java.lang.Exception

discardSequencedMessageByTarget

public java.util.List<java.lang.String> discardSequencedMessageByTarget(java.lang.String target)
                                                                 throws java.lang.Exception
This method discards/deletes the messages based on the target
Parameters:
target - target Name
Returns:
list of message ids got discarded/deleted
Throws:
java.lang.Exception

discardSequencedMessageByTarget

public java.util.List<java.lang.String> discardSequencedMessageByTarget(java.lang.String target,
                                                                        java.lang.String direction)
                                                                 throws java.lang.Exception
This method discards/deletes the messages based on the target
Parameters:
target - target Name
Returns:
list of message ids got discarded/deleted
Throws:
java.lang.Exception

discardFirstSequenceMessageByTarget

public java.util.List<java.lang.String> discardFirstSequenceMessageByTarget(java.lang.String target)
                                                                     throws java.lang.Exception
This method discards/deletes the first messages on the target
Parameters:
target - target Name
Returns:
list of message id got discarded/deleted
Throws:
java.lang.Exception

discardFirstSequenceMessageByTarget

public java.util.List<java.lang.String> discardFirstSequenceMessageByTarget(java.lang.String target,
                                                                            java.lang.String direction)
                                                                     throws java.lang.Exception
This method discards/deletes the first messages on the target and direction
Parameters:
target - target Name
direction -
Returns:
list of message id got discarded/deleted
Throws:
java.lang.Exception

discardSequencedMessageByMessageId

public java.util.List<java.lang.String> discardSequencedMessageByMessageId(java.lang.String msgId)
                                                                    throws java.lang.Exception
This method discards/deletes the messages based on the message id
Parameters:
msgId - message Id
Returns:
list of message ids got discarded/deleted
Throws:
java.lang.Exception

pauseSequenceTarget

public boolean pauseSequenceTarget(java.lang.String target)
                            throws java.lang.Exception
This method will pause the particular sequence target
Parameters:
target -
Returns:
true : if the sequece target gets paused; false: otherwise
Throws:
java.lang.Exception

pauseSequenceTarget

public boolean pauseSequenceTarget(java.lang.String target,
                                   java.lang.String direction)
                            throws java.lang.Exception
This method will pause the particular sequence target with direction
Parameters:
target -
direction -
Returns:
true : if the sequece target gets paused; false: otherwise
Throws:
java.lang.Exception

resumeSequenceTarget

public boolean resumeSequenceTarget(java.lang.String target)
                             throws java.lang.Exception
This method will resume the particular sequence target
Parameters:
target -
Returns:
true : if the sequece target gets resumed; false: otherwise
Throws:
java.lang.Exception

resumeSequenceTarget

public boolean resumeSequenceTarget(java.lang.String target,
                                    java.lang.String direction)
                             throws java.lang.Exception
This method will resume the particular sequence target with direction
Parameters:
target -
direction -
Returns:
true : if the sequence target gets resumed; false: otherwise
Throws:
java.lang.Exception

processSequenceMessageByMessageId

public boolean processSequenceMessageByMessageId(java.lang.String messageId)
                                          throws java.lang.Exception
This method will process the particular message Id. This is achieved by changing the message state to "PROCESSED"
Parameters:
messageId -
Returns:
true : if the particular message id state changed to processed; false: otherwise
Throws:
java.lang.Exception

getSequenceMsgs

public java.util.List<java.lang.String> getSequenceMsgs(java.lang.String option,
                                                        java.lang.String values)
                                                 throws java.lang.Exception
To get the list of sequenced messages based on the target/state/messageid
Parameters:
option - target
values - name of the target
Returns:
true or false
Throws:
java.lang.Exception

getSequenceMessagesByTargetAndState

public java.util.List<java.lang.String> getSequenceMessagesByTargetAndState(java.lang.String target,
                                                                            java.lang.String state)
                                                                     throws java.lang.Exception
lists all the message ids based on the target and state
Parameters:
target -
state -
Returns:
the list of message ids
Throws:
java.lang.Exception

getSequenceMessagesByTarget

public java.util.List<java.lang.String> getSequenceMessagesByTarget(java.lang.String target)
                                                             throws java.lang.Exception
lists all the message ids based on the target
Parameters:
target -
Returns:
the list of message ids
Throws:
java.lang.Exception

getSequenceMessagesByState

public java.util.List<java.lang.String> getSequenceMessagesByState(java.lang.String state)
                                                            throws java.lang.Exception
lists all the message ids based on the state
Parameters:
state -
Returns:
the list of message ids
Throws:
java.lang.Exception

getStateByTarget

public java.lang.String getStateByTarget(java.lang.String target,
                                         java.lang.String direction)
                                  throws java.lang.Exception
returns the state of the given target
Parameters:
target -
Returns:
returns the state
Throws:
java.lang.Exception

getStateByTarget

public java.lang.String getStateByTarget(java.lang.String target)
                                  throws java.lang.Exception
returns the state of the given target
Parameters:
target -
Returns:
returns the state
Throws:
java.lang.Exception

Skip navigation links

Oracle Fusion Middleware B2B Sequence Manager Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1.7)

E28181-04


Copyright © 2007, 2013, Oracle and/or its affiliates. All rights reserved.