|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITracking
The purpose of ITracking
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).
ITracking
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 :
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(java.lang.Object pNativeTracking)
Extracts from the native message the tracking information fills in the fields of this object. |
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. |
Method Detail |
---|
void setTrackingId(java.lang.String pTrackingId) throws java.lang.IllegalArgumentException
pTrackingId
- a unique string
java.lang.IllegalArgumentException
- if the tracking id is null
java.lang.String getTrackingId()
void assignAppInfo(java.util.Collection pApplicationInfo) throws java.lang.IllegalArgumentException
pApplicationInfo
- a collection of string elements
java.lang.IllegalArgumentException
- if an element of the collection isn't a string instance.void setApplicationInfo(java.util.ArrayList pApplicationInfo) throws java.lang.IllegalArgumentException
pApplicationInfo
- a collection of string
java.lang.IllegalArgumentException
- if an element of the collection isn't a string instance.java.util.ArrayList getApplicationInfo()
ArrayList
of String elementsjava.util.Iterator applicationInfo()
List.iterator()
int applicationInfoSize()
void addApplicationInfo(java.lang.String pApplicationInfo)
pApplicationInfo
- the element to add to the collectionList.add(java.lang.Object)
java.lang.String applicationInfoAt(int pIndex) throws java.lang.IndexOutOfBoundsException
pIndex
- the position of the application information. Must be a value between 1
and
applicationInfoSize()
java.lang.IndexOutOfBoundsException
- if the index is out of boundsapplicationInfoSize()
java.lang.Object toNative() throws RaccoonException
RaccoonException
- if the process fails to convert this element to a native tracking element.
RaccoonException
- if the tracking id isn't assigned.boolean fromNative(java.lang.Object pNativeTracking) throws java.lang.IllegalArgumentException
pNativeTracking
- 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.java.lang.String toString()
ITracking[id="$TrackingId$", appInfo[id=1]="Some application info"]]
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |