com.adventnet.adaptors.tl1
Class TL1Adaptor.MyTL1Agent

java.lang.Object
  |
  +--com.adventnet.agent.tl1.TL1Agent
        |
        +--com.adventnet.adaptors.tl1.TL1Adaptor.MyTL1Agent
Enclosing class:
TL1Adaptor

class TL1Adaptor.MyTL1Agent
extends com.adventnet.agent.tl1.TL1Agent


Inner classes inherited from class com.adventnet.agent.tl1.TL1Agent
com.adventnet.agent.tl1.TL1Agent.SessionTimeOutMaintainer
 
Fields inherited from class com.adventnet.agent.tl1.TL1Agent
ackFlag, acknow, ackSenderFlag, ackTime, api, authFlag, autoTable, autoVec, builtCommands, builtCommandsName, builtInFlag, channelFlag, craftSession, delay, formatter, inhibitFlag, isAutoAlreadySent, isCraftSessionAlive, isResponseSent, isSent, mainView, monitor, monitorFlag, requestVector, securityFlag, selfMonitor, server, sessionTimeOutTable, standAloneFlag, timeOutSeconds, tl1Log, vendorName
 
Constructor Summary
TL1Adaptor.MyTL1Agent()
           
 
Method Summary
 void callback(TL1Session session, java.lang.String message, java.lang.String ctag, byte type)
          This method will be invoked whenever a message is received from the agent and parsing is disabled.
 boolean callback(TL1Session session, TL1Message message, java.lang.String ctag)
          This is implemented for sending response messages for the input message got through the session.
 void processErrorMessage(TL1Session session, java.lang.String err)
          This method will be invoked, if the syntax of the message received from the agent is not compliant to TL1 standards.
 
Methods inherited from class com.adventnet.agent.tl1.TL1Agent
, addMultiProtocolCommand, checkValidAckCode, clearAutoMessages, displayAutoMessages, enableBuiltInCommands, enableCraftInterface, enableSelfMonitorSupport, exceptionToResponseInfo, getAckTime, getAllSession, getAsyncMode, getATag, getBuiltInCommands, getCommandRegistry, getDebugLevel, getInstanceOfCommand, getMaxThreads, getMonitorDataReference, getMultiProtocolCommand, getResponsePacketSize, getServerSession, getServerSession, getSessionList, getStandAlone, getTargetId, getTL1MessageFormatterReference, getTL1TcpTableInfo, isActive, isAuthenticationEnabled, isAutoAckEnabled, isAutoInhibitMode, isBuiltIncommand, isCraftSession, isCraftSessionAlive, isValidSyntax, processAutonomous, processMessage, processModule, registerRRCommandsWithCommandRegistry, registerSecondModifierWithCommandRegistry, registerWithCommandRegistry, sendAckMessage, sendAutonomousMessage, sendMessage, setAckTime, setAsyncMode, setATag, setAutoAckEnabled, setAutoInhibitMode, setChannelSecurityFile, setCommandSecurityFile, setCraftFlag, setCraftSession, setDebugLevel, setMaxThreads, setOperationHandlerFileName, setOperationSecurityFile, setPort, setPorts, setResourceHandlerFileName, setResourceSecurityFile, setResponsePacketSize, setSecurityEnabled, setSecurityFlags, setSecurityLogFile, setSecurityLogSize, setSessionsWithATag, setSessionTimeOutInSeconds, setSessionTimeTable, setStandAlone, setTargetId, setUserRequestHandler, setUserSecurityFile, startAgents, stopAgent, stopAgents, storeAutoInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TL1Adaptor.MyTL1Agent

public TL1Adaptor.MyTL1Agent()
                      throws java.lang.Exception
Method Detail

callback

public boolean callback(TL1Session session,
                        TL1Message message,
                        java.lang.String ctag)
Description copied from class: com.adventnet.agent.tl1.TL1Agent
This is implemented for sending response messages for the input message got through the session.
Overrides:
callback in class com.adventnet.agent.tl1.TL1Agent
Tags copied from class: com.adventnet.agent.tl1.TL1Agent
Parameters:
session - - TL1Session through which to send message.
message - - Input message for which response is to be sent.

callback

public void callback(TL1Session session,
                     java.lang.String message,
                     java.lang.String ctag,
                     byte type)
Description copied from interface: TL1Client
This method will be invoked whenever a message is received from the agent and parsing is disabled. Here the application may specify what has to be done with the output message from the TL1 Agent(ie whether to print the message on to the console or save it to a file in a database...etc.)
Overrides:
callback in class com.adventnet.agent.tl1.TL1Agent
Tags copied from interface: TL1Client
Parameters:
session - TL1Session instance.
responseString - The raw/unparsed data received in the form of a String.
tag - This tag is the Correlation Tag of the responseString which could be either an acknowledgement/response message. message
This tag is the Autonomously Generated Correlation Tag (ATAG), if the responseString is an autonomous message.
mesgType - Type of message as byte. This byte constant can be any one of the four bytes, viz

TL1API.INPUT_MESSAGE ,
TL1API.ACK_MESSAGE ,
TL1API.RESPONSE_MESSAGE and
TL1API.AUTONOMOUS_MESSAGE.
If it is an invalid message this byte constant value is -1.


processErrorMessage

public void processErrorMessage(TL1Session session,
                                java.lang.String err)
Description copied from interface: TL1Client
This method will be invoked, if the syntax of the message received from the agent is not compliant to TL1 standards.
Overrides:
processErrorMessage in class com.adventnet.agent.tl1.TL1Agent
Tags copied from interface: TL1Client
Parameters:
session - TL1Session instance.
errorMsg - Error String.