|
WebNMS TL1 API Release 4 Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.tl1.TL1Session
This class must be used for establishing connection with TL1Devices. It provides a transport independent interface for sending and receiving of TL1 messages between the manager and TL1Device. By default, the transport protocol used is TCP.
Each TL1Session is managed by the TL1API which provides configurable threads to receive and process TL1 Messages.
To associate a TL1Session with the TL1API,
TL1API api = new TL1API();
TL1Session session = new TL1Session(api);
Communication modes
There are two modes in TL1Session,
i) Normal mode : This mode supports synchronous and asynchronous mechanisms for sending messages. The messages sent and received through this mode are parsed using the message parser(TL1MessageParser by default).
session = new TL1Session(api);
-or-
session = new TL1Session(api, false);
-or-
session = new TL1Session(api, new com.adventnet.tl1.parser.TL1MessageParser());
ii) Craft mode : This is TL1 Cut-through. You can use this mode to send and receive any messages. This mode supports only asynchronous mechanism to send and receive messages and it does not includes any parsing of messages.
session = new TL1Session(api, true);
If the TL1Session is in the agent mode then the queueing of the messages is not taken place. So the timeout, retries, setAppendFront and setAppendFront also have no effect.
session.isSetToAgentMode();
Opening a Connection
You must use the open method for establishing a connection with a TL1Device. Before opening the connection, you must first set the transport protocol on this TL1Session. By default the transport protocol is set to TcpTransportImpl.
session.setTransportProvider(new com.adventnet.tl1.telnet.TelnetTransportImpl());
In the case of TCP, you can use the open(host, port) method for opening a connection.
session.open("192.168.9.85", 30002);
If you want to use a transport protocol other than TCP, you must use the open(Hashtable) method where Hashtable contains the connection parameters.
Hashtable params = new Hashtable();
params.put("REMOTE_HOST", "192.168.9.85");
params.put("REMOTE_PORT", "30002");
session.open(params);
To notify the application of the connection failure with the TL1 Agent, you
must implement the ConnectionListener and register it with this session.
session.setConnectionListener(connectionListenerImpl);
Parsing Messages
By default, the TL1MessageParser is used for parsing the messages. You can also plug-in your own parser for parsing the messages by implementing the TL1parser interface. This parser implementation should be registered with this TL1Session in the following way,
session.setParser(parserImpl);
To parse the messages, you need to do this.
String str = "ACT-USER::ROOT:::FACTORY1%;";
TL1Message mesg = session.getParser().createTL1Message(str);
Sending Messages
You can send messages to the TL1 Agent in two ways.
i) Synchronous Communication (Applicable only for Normal mode).
session.syncSend(str.getBytes());
-or-
session.syncSend(mesg);
ii) Asynchronous Communication
String tcid = session.addTL1Client(tl1clientImpl);
session.send(str.getBytes()); // Normal mode.
-or-
session.send(mesg); // Normal mode.
-or-
session.send(mesg, tcid); // Normal mode.
-or-
session.send(str.getBytes(), true); // Normal mode.
-or-
session.send(str.getBytes(), false); // Craft mode.
To get the responses from the device without implementing the TL1Client interface,
Vector mtagV = session.checkRequests();
for(int i = 0; i < mtagV.size(); i++)
{
TL1Message input = session.getRequest(mtag);
responseV = session.getResponses(mtag);
}
To get notifications from the device,
Vector mtagV = session.checkNotifications();
for(int i = 0; i < mtagV.size(); i++)
{
notificationV = session.getNotifications(mtag);
}
To close the connection with the agent, use the close method.
session.close();
This method stops the TL1RECEIVE_N_PROCESS_TASK, TL1MONITOR_TASK and TL1LOGGER_THREAD. But the TL1CALLBACK_N_TIMEOUT_TASK is not stopped.
To cleanup all the session properties ,use the cleanup method. This method stops all the tasks, and set all the session variables to it's default value. This method should be called only if the session is in TL1Session.CLOSED or TL1Session.CONNECTION_DOWN state.
session.cleanup();
TL1API,
TL1Client,
ConnectionHandler,
ConnectionListener,
MessageFormatter,
MessageRationalizer,
IdleTimeMonitor,
TL1Parser,
TL1Message,
TL1TransportProvider, Serialized Form| Field Summary | |
static java.lang.String |
ALIVE
Static constant represents the Alive state of the session. |
static java.lang.String |
CLOSED
Static constant represents the Closed state of the session. |
static java.lang.String |
CONNECTION_DOWN
Static constant represents the ConnectionDown state because the TL1Device snaps the Connection of this session. |
static byte |
INVALID_TL1_MESSAGE
Static constant for invalid TL1Message in the callback. |
static java.lang.String |
NASCENT
Static constant represents the Nascent state of the session. |
static byte |
PARSER_EXCEPTION
Static constant for parser exception in the callback. |
static byte |
TIMEOUT
Static constant for timeout in the callback. |
| Constructor Summary | |
TL1Session(TL1API api)
Constructs a TL1Session with TL1API instance. |
|
TL1Session(TL1API api,
boolean mode)
Constructs a TL1Session with TL1API instance. |
|
TL1Session(TL1API api,
TL1Parser parser)
Constructor a TL1Session with TL1API instance. |
|
| Method Summary | |
void |
addLog(LogRecord record)
Adds the logrecord in the queue associated with this TL1Session. |
void |
addLogger(java.lang.String loggerId,
Logger logger)
Register the logger implementation with this TL1Session to receive TL1Session all events and transaction between the manager and the agent. |
java.lang.String |
addTL1Client(TL1Client client)
Register the client implementation with this TL1Session to receive messages using callbacks. |
java.util.Vector |
checkNotifications()
Gets the autonomous tag of all the notifications received from the agent which exists in the queue. |
java.util.Vector |
checkRequests()
Gets the correlation tag of all the pending requests in this Session. |
void |
cleanup()
This method is used to cleanup the threads associated with this session like (TL1API.RECEIVE_N_PROCESS, TL1API.CALLBACK_N_TIMEOUT etc..) , close the logstream if any associated with this session and all the TL1Session properties will get thier default values. |
void |
close()
Closes the tcp connection to the device but the (TL1API.Callback_N_Timeout ) thread associated with this session will not be dequed. |
void |
dropInputMsgInCallback(boolean flag)
Drop the TL1InputMessages in callback. |
java.lang.String |
getAppendEnd()
Gets the string appended to the end of each Input Message. |
java.lang.String |
getAppendFront()
Gets the string appended to the front of each Input Message. |
ConnectionEvent |
getConnectionEvent()
Gets the connection event of the Session at present. |
ConnectionHandler |
getConnectionHandler()
Gets the ConnectionHandler instance registered with this session. |
ConnectionListener |
getConnectionListener()
Gets the ConnectionListener instance registered with this session. |
java.util.Hashtable |
getConnectionProperties()
Gets the connection parameters as a Hashtable. |
IdleTimeMonitor |
getIdleTimeMonitor()
Gets the registered IdleTimeMonitor implementation. |
long |
getInputInterval()
Gets the input interval set for this session. |
Logger |
getLogger(java.lang.String loggerId)
Gets the Logger for the given loggerId. |
java.lang.String[] |
getLoggerIdList()
Gets the LoggerId lists associated with this Session. |
int |
getLogQueueSize(java.lang.String logrecordtype)
Gets the size of the logrecord queue associated with this session for the particular type. |
MessageFormatter |
getMessageFormatter()
Gets the MessageFormatter implementation registered with this Session. |
MessageRationalizer |
getMessageRationalizer()
Gets the MessageRationalizer implementation registered with this Session. |
int |
getNotificationQueueSize()
Gets the size of the notification queue associated with this Session. |
java.util.Vector |
getNotifications(java.lang.String mtag)
Gets all the notifications for the given autonomous tag. |
long |
getOutputInterval()
Gets the output interval set for this session. |
TL1Parser |
getParser()
Gets the TL1 parser instance registered with this Session. |
TL1Message |
getRequest(java.lang.String mtag)
Gets the request message for the given correlation tag. |
int |
getRequestQueueSize()
Gets the size of the request queue associated with this session. |
java.util.Vector |
getResponses(java.lang.String mtag)
Gets all the responses for the given correlation tag. |
int |
getRetries()
Gets the number of retries before the timeout period. |
java.lang.String |
getServerSessionId()
Gets the serversession id for this Session to which it connects. |
java.lang.Object |
getSessionClassifier()
Gets the details set on this Session using the setSessionClassifier method. |
java.lang.String |
getSessionId()
Gets the session id for this Session. |
java.util.Hashtable |
getSessionProperties()
Gets the properties associated with this Session as a Hashtable. |
java.lang.String |
getState()
Gets the Session state of this Session. |
int |
getTimeout()
Gets the timeout value. |
TL1Client |
getTL1Client(java.lang.String clientId)
Gets the TL1Client for the given clientId. |
java.lang.String |
getTL1ClientId(java.lang.String mtag)
Gets the clientId for the given Message tag. |
java.lang.String[] |
getTL1ClientIdList()
Gets the TL1ClientId lists associated with this Session. |
java.util.Vector |
getTL1Clients()
Deprecated. Since WebNMS TL1 API 4. Use getTL1Client(String clientId). |
TL1TransportProvider |
getTransportProvider()
Gets the TL1TransportProvider implementation registered with this session. |
boolean |
isAccruePartial()
To get the mode of processing the partial messages. |
boolean |
isConnected()
Check the status of this Session. |
boolean |
isDroppedInputMsgInCallback()
Method to get the status of the flag which indicates whether or not the echo of TL1InputMessage is dropped in the callback(..) |
boolean |
isSetToAgentMode()
To get the mode (Manager/Agent) of session. |
java.lang.String |
open(java.util.Hashtable params)
Establishes a connection with the TL1 device using the parameters specified in the Hashtable. |
java.lang.String |
open(java.lang.String remoteHost,
int remotePort)
Establishes a socket(TCP) connection with the TL1 device. |
void |
removeConnectionHandler()
Unsubscribe the ConnectionHandler implementation from this Session. |
void |
removeConnectionListener()
Unsubscribe the ConnectionListener implementation from this Session. |
void |
removeIdleTimeMonitor()
Unregisters the IdleTimeMonitor with this session. |
void |
removeLogger(java.lang.String loggerId)
Unsubscribe the Logger implementation from the session. |
void |
removeMessageFormatter()
Unsubscribes the MessageFormatter implementation from this Session. |
void |
removeMessageRationalizer()
Unsubscribes the MessageRationalizer implementation from this Session. |
boolean |
removeTL1Client(java.lang.String clientId)
Unsubscribe the client implementation from receiving callbacks. |
java.lang.String |
send(byte[] tl1Message)
Sends a non-blocking request to the TL1 device. |
java.lang.String |
send(byte[] tl1Message,
boolean parseFlag)
Sends a non-blocking message to the TL1 entity (manager or agent). |
java.lang.String |
send(TL1Message msg)
Sends a non-blocking request to the TL1 device. |
java.lang.String |
send(TL1Message msg,
java.lang.String tcid)
Sends a non-blocking request to the TL1 device. |
void |
setAccruePartial(boolean accruePartial)
This method is used to specify how the message is to be handled, if the message is recieved in parts(that is the whole message is not received at the same time,but rather the message is received only in several pieces before the terminating semi-colon is received). |
void |
setAppendEnd(java.lang.String suffix)
Appends the given String to the end of each Input Message before it sends to the TL1Device. |
void |
setAppendFront(java.lang.String prefix)
Appends the given String to the front of each Input Message before it sends to the TL1Device. |
void |
setConnectionHandler(ConnectionHandler connHandler)
Register the ConnectionHandler implementation with this Session. |
void |
setConnectionListener(ConnectionListener connListener)
Register the ConnectionListener implementation with this Session. |
void |
setIdleTimeMonitor(long inputInvl,
long outputInvl,
IdleTimeMonitor idleTmMon)
Registers the IdleTimeMonitor with this session for idle time monitoring of both Input and Output Messages. |
boolean |
setKeepAlive(TL1Message tl1message,
int freq)
Maintain connection with the device when messages are not sent by the application for a long time. |
void |
setLog(boolean log)
Provides a mechanism for logging messages. |
void |
setLogQueueSize(int queueSize)
Sets the size of the info and raw logrecord queue, associated with this session. |
void |
setLogQueueSize(int queueSize,
java.lang.String logrecordtype)
Sets the size of the info or raw logrecord queue, associated with this session depends on the LogRecord type. |
void |
setMessageFormatter(MessageFormatter mesgFormatter)
Register the MessageFormatter implementation with this Session for modifying the messages sent to the device and also received from the device. |
void |
setMessageRationalizer(MessageRationalizer rationalizer)
Register the MessageRationalizer implementation with this Session for rationalizing the messages sent to the device and also received from the device. |
void |
setNotificationQueueSize(int size)
Set the size of the notification queue in non-blocking mode which stores all the autonomous messages. |
void |
setParser(TL1Parser par)
Set the parser instance with this Session for parsing the messages. |
void |
setRequestQueueSize(int size)
Set the size of the request queue in the case of non-blocking mode. |
void |
setRetries(int retries)
Set the number of retries to be performed before timeout. |
void |
setSessionClassifier(java.lang.Object obj)
Stores application specific details. |
void |
setTimeout(int timeout)
Set the timeout value. |
void |
setToAgentMode(boolean flag)
Setting the flag to true will function the session as an Agent, helping the user to send any TL1Message. |
void |
setTransportProvider(TL1TransportProvider provider)
Register the transport protocol implementation with this Session for communication between the manage and the agent. |
void |
startKeepAlive()
Starts the keep alive process after setting the necessary parameters like TL1Message and keepalive interval. |
void |
stopKeepAlive()
Stops the keep alive process. |
TL1Message |
syncSend(byte[] msg)
Sends a request to the TL1 device in blocking mode. |
TL1Message |
syncSend(TL1Message msg)
Sends a request to the TL1 device in blocking mode. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final byte TIMEOUT
public static final byte PARSER_EXCEPTION
public static final byte INVALID_TL1_MESSAGE
public static final java.lang.String NASCENT
public static final java.lang.String ALIVE
public static final java.lang.String CONNECTION_DOWN
public static final java.lang.String CLOSED
| Constructor Detail |
public TL1Session(TL1API api)
api - instance of TL1API.If it is null, then new default TL1API()
is instantiated.
public TL1Session(TL1API api,
boolean mode)
api - instance of TL1API.If it is null, then by default new
TL1API() is instantiated.mode - true to set it in Craft mode or false to set it in Normal mode.
public TL1Session(TL1API api,
TL1Parser parser)
api - instance of TL1API.If it is null, then new default TL1API()
is instantiated.parser - instance of TL1Parser.| Method Detail |
public java.lang.String getState()
public void setToAgentMode(boolean flag)
flag - - true means session will function as Agent,
false means session will function as Manager.public boolean isSetToAgentMode()
setToAgentMode(boolean)public java.lang.String getServerSessionId()
public void setLog(boolean log)
If the log file already exists with the same name, the session creates a new file with a different count. These log files will be generated in the logs directory from where the application runs.
Upon creating a log file for a particular session, you can start/stop writing in the log file as and when needed by enabling or disabling the boolean value.
log - flag to enable and disable the logging mechanism.
public void addLogger(java.lang.String loggerId,
Logger logger)
logger - Logger implementation.
logerId - String value. It updates the Logger implementation if
the same loggerId is already presents in this session.
public java.lang.String[] getLoggerIdList()
public Logger getLogger(java.lang.String loggerId)
loggerId - String, represents the loggerId.
public void removeLogger(java.lang.String loggerId)
clientId - Unique id that has been given during the
addLogger method.
public void setLogQueueSize(int queueSize)
queueSize - int value greater than zero.
public void setLogQueueSize(int queueSize,
java.lang.String logrecordtype)
queueSize - int value greater than zero.logrecordtype - Type of the LogRecord, either
LogRecord.INFO or LogRecord.RAW.
public int getLogQueueSize(java.lang.String logrecordtype)
logrecordtype - Type of the LogRecord, either
LogRecord.INFO or LogRecord.RAW.public void addLog(LogRecord record)
record - LogRecord to be added in the queue.
public java.util.Vector getTL1Clients()
public java.lang.String addTL1Client(TL1Client client)
throws TL1Exception
This method should be called only after the open method since it expects a valid session id.
client - TL1Client implementation.
If - the TL1Client is already registered or if connection is not
established with any TL1 device.TL1Clientpublic TL1Client getTL1Client(java.lang.String clientId)
clientId - String, represents the TL1ClientId.
public java.lang.String[] getTL1ClientIdList()
public java.lang.String getTL1ClientId(java.lang.String mtag)
If the messsage is sent with the particular valid clientId then it will return the same clientId. If the message is sent without clientId then this method will return the clientId as "ALL". If it is invalid message tag then this method will return null.
mtag - Message tag as a String, whose clientId is needed.
public boolean removeTL1Client(java.lang.String clientId)
clientId - Unique id obtained using the addTL1Client method.
true, if the TL1Client is unsubscribed or false
otherwise.public void setMessageFormatter(MessageFormatter mesgFormatter)
mesgFormatter - MessageFormatter instance.
MessageFormatterpublic void setAccruePartial(boolean accruePartial)
flag - true if partial message is to be accumulated till the end
of the message,else false which means that the partial messages will
be sent to the application immediately,without waiting for the end of
the message.public boolean isAccruePartial()
True - Partial messages get accumulated till the terminating character, that is,the semicolon is received,otherwise false. By default this flag will be true.
public void removeMessageFormatter()
public MessageFormatter getMessageFormatter()
MessageFormatterpublic void setMessageRationalizer(MessageRationalizer rationalizer)
rationalizer - MessageRationlizer instance.
public MessageRationalizer getMessageRationalizer()
public void removeMessageRationalizer()
public void setConnectionHandler(ConnectionHandler connHandler)
connHandler - ConnectionHandler instance.
ConnectionHandlerpublic void removeConnectionHandler()
public ConnectionHandler getConnectionHandler()
ConnectionHandlerpublic void setConnectionListener(ConnectionListener connListener)
connListener - ConnectionListener instance.
ConnectionListenerpublic void removeConnectionListener()
public ConnectionListener getConnectionListener()
public TL1TransportProvider getTransportProvider()
public void setTransportProvider(TL1TransportProvider provider)
provider - TL1TransportProvider implementation.
TL1TransportProvider,
TcpTransportImplpublic java.lang.String getSessionId()
public java.util.Hashtable getSessionProperties()
public java.util.Hashtable getConnectionProperties()
public java.lang.String open(java.util.Hashtable params)
throws TL1Exception
This method must be called after registering the transport protocol implementation with this Session if the transport protocol used is different from TCP. Upon establishing the connection, this method returns a unique session id. Calling this open method again in the preconnect of the ConnectionHandler, will make the loop infinite.
Once the connection is successfully established, the receive and process tasks are started based on the settings made in the TL1API.
params - Hashtable containing parameters needed for establishing
a connection with the TL1 device.
TL1Exception - If the given parameters is invalid.(i.e.
null or Invalid Host etc). It throws even if you open already
open TL1Session.ConnectionDownException - If error occurs while establishing
a connection
public java.lang.String open(java.lang.String remoteHost,
int remotePort)
throws TL1Exception
Once the connection is successfully established, the receive and process tasks are started based on the settings made in the TL1API.
remoteHost - Host name of the device as a String.remotePort - Port number as an int.
TL1Exception - If the given parameters is invalid.(i.e.
null or Invalid Host etc). It throws even if you open already
open TL1Session.ConnectionDownException - If error occurs while establishing
a connection
public boolean setKeepAlive(TL1Message tl1message,
int freq)
tl1message - Keep Alive message.freq - Keep Alive interval as int value.
true, If the mode is Normal and the keep alive
message is an instance of TL1InputMessage and interval is greater
than zero. false otherwise.startKeepAlive(),
stopKeepAlive()public void startKeepAlive()
stopKeepAlive()public void stopKeepAlive()
startKeepAlive()
public void setIdleTimeMonitor(long inputInvl,
long outputInvl,
IdleTimeMonitor idleTmMon)
inputInvl - idle time allowed between two Input messages.outputInvl - idle time allowed between two Output messages.idleTmMon - IdleTimeMonitor implementation.
public IdleTimeMonitor getIdleTimeMonitor()
public void removeIdleTimeMonitor()
public long getInputInterval()
public long getOutputInterval()
public void dropInputMsgInCallback(boolean flag)
flag - If flag is set to false, echoed TL1InputMessages
will be given to the application's callback method registered. If the flag
is set to true, input messages are dropped.public boolean isDroppedInputMsgInCallback()
true indicates that echo of TL1InputMessage is dropped.
false indicates that echo of TL1InputMessage is not dropped.
public void setParser(TL1Parser par)
You can write your own TL1 parser implementing the TL1Parser interface and set it in this Session for parsing the messages. By default, Session uses the default message parser (com.adventnet.tl1.parser.TL1MessageParser).
par - Implementation of TL1Parser.
TL1Parser,
TL1MessageParserpublic TL1Parser getParser()
TL1Parserpublic java.util.Vector checkRequests()
getResponses(java.lang.String),
setRequestQueueSize(int)public java.util.Vector checkNotifications()
public TL1Message getRequest(java.lang.String mtag)
mtag - message tag for which request message is needed.
public java.util.Vector getResponses(java.lang.String mtag)
mtag - Message tag as a String, whose response is needed.
public java.util.Vector getNotifications(java.lang.String mtag)
mtag - Message tag as a String whose notification is needed.
public java.lang.String send(TL1Message msg)
throws TL1Exception
In the case of Agent mode, this method sends any TL1Message (except INVALID_TL1_MESSAGE) without queuing.
msg - request message as an instance of TL1Message.
TL1Exception - If the message is not a TL1InputMessage
or if TL1Message is null or invalid and if it in craftmode.ConnectionDownException - if there is a problem while
sending the message to the peer.
public java.lang.String send(TL1Message msg,
java.lang.String tcid)
throws TL1Exception
In the case of Agent mode, this method sends any TL1Message (except INVALID_TL1_MESSAGE) without queuing.
msg - request message as an instance of TL1Message.tcid - TL1Client ID as a String.
TL1Exception - If the message is not a TL1InputMessage
or if TL1Message/client is null or if the client id is invalid.ConnectionDownException - if there is a problem while
sending the message to the peer.
public java.lang.String send(byte[] tl1Message)
throws TL1ParserException,
TL1Exception
tl1Message - request message as a byte[].
TL1Exception - If the message is not a TL1InputMessage
or if TL1Message is null or invalid and if it in craftmode.TL1ParserException - if the message is not compliant with the
bellcore standards.ConnectionDownException - if there is a problem while
sending the message to the peer.
public java.lang.String send(byte[] tl1Message,
boolean parseFlag)
throws TL1ParserException,
TL1Exception
If the parseFlag is set to true, this method parses
the given byte array before sending it to the device. If the parseFlag
is set to false, this method sends the byte array as a raw
data.
The method returns the correlation tag of the request sent if the
if the parseFlag is set to true. It returns -1 if the
flag is not set (craft mode).
In all cases, the responses are given to all the clients registered with this Session.
tl1Message - request message as a byte[].parseFlag - boolean value which indicates whether the message
has to be parsed or not.
true indicates message has to be parsed (normal mode).
false indicates message not to be parser(normal mode as well as craft mode).
TL1Exception - If the message is not a TL1InputMessage
or if TL1Message is null or invalid and if it in craftmode.TL1ParserException - if the message is not compliant with the
bellcore standards.ConnectionDownException - if there is a problem while
sending the message to the peer.
public TL1Message syncSend(byte[] msg)
throws TL1ParserException,
TL1Exception
msg - request message as a byte[].
TL1Exception - If the message is not a TL1InputMessage
or if TL1Message is null or invalid and if it in craftmode.TL1ParserException - if the message is not compliant with the
bellcore standards.ConnectionDownException - if there is a problem while
sending the message to the peer.
public TL1Message syncSend(TL1Message msg)
throws TL1Exception
msg - Request message to be sent to the device as an instance
of TL1Message.
TL1Exception - If the message is not a TL1InputMessage
or if TL1Message is null or invalid and if it is in craftmode.ConnectionDownException - if there is a problem while
sending the message to the peer.public boolean isConnected()
true if connection exists.
false otherwise.
public void close()
throws TL1Exception
TL1Exception - if there is a problem while closing the
connection with the device or if the Session is in
TL1Session.CLOSED state.public void cleanup()
public int getRetries()
public void setRetries(int retries)
retries - The retries value(greater than zero) to be used by the
session.public int getTimeout()
public void setTimeout(int timeout)
Note : The timeout value in the application should be greater than the timeout set in the Session.
timeout - The timeout value to be used for monitoring the request.
TL1InputMessage.setTimeout(int)public void setAppendFront(java.lang.String prefix)
prefix - String to be appended at the front of each Input Message.
TL1InputMessage.setAppendFront(java.lang.String),
isSetToAgentMode()public java.lang.String getAppendFront()
TL1InputMessage.getAppendFront()public void setAppendEnd(java.lang.String suffix)
suffix - String to be appended at the end of each Input Message.
TL1InputMessage.setAppendEnd(java.lang.String),
isSetToAgentMode()public java.lang.String getAppendEnd()
TL1InputMessage.getAppendEnd()public void setSessionClassifier(java.lang.Object obj)
obj - Object instance.public java.lang.Object getSessionClassifier()
public ConnectionEvent getConnectionEvent()
public void setRequestQueueSize(int size)
size - int value greater than zero.public int getRequestQueueSize()
public void setNotificationQueueSize(int size)
size - int value greater than zeropublic int getNotificationQueueSize()
|
WebNMS TL1 API Release 4 Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||