|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tibco.tibrv.TibrvMsgField
raccoon.tibco.tibrv.message.RvTracking
public class RvTracking
The purpose of RvTracking is to provide support for end to end tracability of documents or messages
throughout the system. It encapsulates information which is initiated by the first component to send a message
(for example, a publishing adapter) and enriched by intermediate components (for example, TIBCO Integration Manager
or receiving adapters).
RvTracking information allows first to track a message back to its source when an error occured in any given component, and second to provide status information about the progress of a business process distributed among multiple components.
The tracking information includes :
| Field Summary | |
|---|---|
static java.lang.String |
TRACKING_FIELD_NAME
The string used to name this element within a message |
static java.lang.String |
TRACKING_ID_NAME
The string used to indentify the tracking id |
| Fields inherited from class com.tibco.tibrv.TibrvMsgField |
|---|
data, id, name, type |
| Constructor Summary | |
|---|---|
RvTracking()
Default constructor, assigns the name to this instace. |
|
RvTracking(boolean pCreateNewID)
Generates a new Tracking ID if required. |
|
RvTracking(IField pField)
Convenient copy constructor |
|
| Method Summary | |
|---|---|
void |
addApplicationInfo(java.lang.String pApplicationInfo)
Adder method for applicationInfo |
java.util.Iterator |
applicationInfo()
Iterator on the elements within the collection applicationInfo |
java.lang.String |
applicationInfoAt(int pIndex)
Retrieves the application information at the specified position |
int |
applicationInfoSize()
Retrieves the number of elements within the collection applicationInfo |
void |
assignAppInfo(java.util.Collection pApplicationInfo)
Assigns to this instance the application information |
boolean |
fromNative(IBusMessage pMessage)
Parses the contents of the given IBusMessage instance and assigns it to this
message. |
boolean |
fromNative(IField pField)
Parses the contents of the given IField instance and assigns it to this message. |
boolean |
fromNative(java.lang.Object pNativeTracking)
Extracts from the native message the tracking information fills in the fields of this object |
boolean |
fromNative(com.tibco.tibrv.TibrvMsg pTibrvMsg)
Assigns to this instance the tracking information contained in the provided message. |
java.util.ArrayList |
getApplicationInfo()
Getter method for applicationInfo |
java.lang.String |
getTrackingId()
The global identifier that is unique. |
void |
setApplicationInfo(java.util.ArrayList pApplicationInfo)
Defines the application information belonging to this instance |
void |
setTrackingId(java.lang.String pTrackingId)
Defines the string the uniquely identifies this element. |
java.lang.Object |
toNative()
Converts this instance to the native representation used by the messaging layer |
java.lang.String |
toString()
Generates the String representation of this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TRACKING_ID_NAME
public static final java.lang.String TRACKING_FIELD_NAME
| Constructor Detail |
|---|
public RvTracking()
public RvTracking(boolean pCreateNewID)
pCreateNewID - create a new tracking id ?public RvTracking(IField pField)
pField - the tracking message from which the data is to be extracted| Method Detail |
|---|
public void setTrackingId(java.lang.String pTrackingId)
throws java.lang.IllegalArgumentException
If the tracking id is null or if it contains only spaces then this method will throw
an IllegalArgumentException exception.
To check if this given tracking id contains only spaces this method uses trim()
setTrackingId in interface ITrackingpTrackingId - a unique string
java.lang.IllegalArgumentException - if the tracking id is null or contains only spaces.
public java.lang.String getTrackingId()
throws java.lang.InternalError
getTrackingId in interface ITrackingnull if not defined.
java.lang.InternalError - if the contents of the tracking id are corrupted.
public void assignAppInfo(java.util.Collection pApplicationInfo)
throws java.lang.IllegalArgumentException
assignAppInfo in interface ITrackingpApplicationInfo - a collection of string elements
java.lang.IllegalArgumentException - if an element of the collection isn't a string instance.
public void setApplicationInfo(java.util.ArrayList pApplicationInfo)
throws java.lang.IllegalArgumentException
setApplicationInfo in interface ITrackingpApplicationInfo - the new value for this property, an array of string
java.lang.IllegalArgumentException - if an element of the collection isn't a string instance.public java.util.ArrayList getApplicationInfo()
getApplicationInfo in interface ITrackingpublic java.util.Iterator applicationInfo()
applicationInfo in interface ITrackingList.iterator()public int applicationInfoSize()
applicationInfoSize in interface ITracking
public java.lang.String applicationInfoAt(int pIndex)
throws java.lang.IndexOutOfBoundsException
applicationInfoAt in interface ITrackingpIndex - the position of the application information. Must be a value between 1 and
applicationInfoSize()
java.lang.IndexOutOfBoundsException - if the index is out of boundsapplicationInfoSize()public void addApplicationInfo(java.lang.String pApplicationInfo)
addApplicationInfo in interface ITrackingpApplicationInfo - the element to add to the collectionList.add(java.lang.Object)
public java.lang.Object toNative()
throws RaccoonException
toNative in interface ITrackingRaccoonException - if the process fails to convert this element to a native tracking element.
RaccoonException - if the tracking id isn't assigned.
public boolean fromNative(java.lang.Object pNativeTracking)
throws java.lang.IllegalArgumentException
fromNative in interface ITrackingpNativeTracking - the native message containing the tracking element or the tracking element.
true if the conversion was successful.
java.lang.IllegalArgumentException - if the tracking id is null or contains only spaces.
public boolean fromNative(com.tibco.tibrv.TibrvMsg pTibrvMsg)
throws java.lang.IllegalArgumentException
This method retrieves, if possible, the TibrvMsg that is named ^tracking^.
Whether it can find this field or not it will carry on.
From that message it then searches for a field named ^id^, if it can't find this field the
invocation returns false.
pTibrvMsg - the TIB/Rendezvous message that contains the tracking information.
true if the conversion was successful, false otherwise.
java.lang.IllegalArgumentException - if the tracking id is null or contains only spaces.
public boolean fromNative(IBusMessage pMessage)
throws java.lang.IllegalArgumentException
IBusMessage instance and assigns it to this
message.
pMessage - the message from which the tracking contents are to be retrieved
true if the conversion was successful, false otherwise.
java.lang.IllegalArgumentException - if the tracking id is null or contains only spaces.
public boolean fromNative(IField pField)
throws java.lang.IllegalArgumentException
IField instance and assigns it to this message.
pField - the message from which the tracking contents are to be retrieved
true if the conversion was successful, false otherwise.
java.lang.IllegalArgumentException - if pField is null or contains only spaces.public java.lang.String toString()
The result should be something like this:
ITracking[id="$TrackingId$", appInfo[id=1]="Some application info"]]
toString in interface ITrackingtoString in class com.tibco.tibrv.TibrvMsgField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||