|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--com.adventnet.tl1.TL1API
The TL1API class is a utility class that monitors TL1 sessions
and tracks timeouts and retransmits of TL1 requests.
The TL1API class needs to be instantiated to use the TL1 Package.
This class is a separate thread that monitors TL1 Sessions, and contains
TL1 Parameters.
TL1API is the foundation for creating any low-level applications.
To use the low-level API instantiate an TL1API and run the start() method.
From there, you can create TL1 sessions, and perform TL1 operations.
A single instance of TL1API can manage several sessions.
While forming the TL1Session,the TL1API instance given as the argument
monitors that particular session.
TL1API api = new TL1API(); api.start(); TL1Session session = new TL1Session(api);
TL1Session| Field Summary | |
static byte |
ACK_MESSAGE
Constant for TL1AckMessage type |
static byte |
AUTONOMOUS_MESSAGE
Constant for TL1AutoMessage type |
static byte |
INPUT_MESSAGE
Constants for TL1InputMessage type |
static byte |
INVALID_TL1_MESSAGE
Constant for Invalid TL1 Message type |
(package private) int |
MONITOR_SLEEP
|
static byte |
RESPONSE_MESSAGE
Constant for TL1ResponseMessage type |
(package private) boolean |
threadStop
|
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY,
values |
| Constructor Summary | |
TL1API()
Default constructor that creates an instance of the TL1API object |
|
| Method Summary | |
void |
addTL1Session(TL1Session sess)
This method is used to add TL1Session to the list of sessions which are managed under this TL1API instance. |
java.util.Vector |
checkResponses()
Checks each session to see if there are any outstanding responses. |
void |
close()
This method stops the API thread which monitors the session for timeouts and retries and also closes all the TL1Sessions registered in this TL1API. |
int |
genCTag()
To generate a unique C-Tag field which serves as a request id. |
java.util.Vector |
getSessionList()
This method is used to get the List of TL1Sessions managed under this TL1API instance. |
void |
removeTL1Session(TL1Session sess)
This method is used to remove TL1Session from the list of sessions maintained by the TL1API instance. |
void |
run()
This method starts the API thread which monitors the sessions to look for the requests which have timedout and retransmits the request if required. |
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static byte INPUT_MESSAGE
public static byte ACK_MESSAGE
public static byte RESPONSE_MESSAGE
public static byte AUTONOMOUS_MESSAGE
public static byte INVALID_TL1_MESSAGE
boolean threadStop
int MONITOR_SLEEP
| Constructor Detail |
public TL1API()
| Method Detail |
public void addTL1Session(TL1Session sess)
sess - The TL1Session instance to be managed.removeTL1Session(com.adventnet.tl1.TL1Session),
TL1Sessionpublic void removeTL1Session(TL1Session sess)
sess - The TL1Session instance to be removed.TL1Sessionpublic java.util.Vector getSessionList()
public int genCTag()
public java.util.Vector checkResponses()
TL1Sessionpublic void run()
public void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||