|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This is an interface that the application must implement if the user wishes to take some actions before or after connecting to the TL1Agent. Eventhough it is optional to implement this interface,in some cases this interface is indispensable.
For example,there are devices which send banners before accepting the connection,and also some devices which expect a particular sequence of characters,like "\n\r;" etc before sending the log-in message.In such circumstances,this interface provides a useful means to succesfully establish connection with the device. Registering this handler should have to be done before opening the session. The implementation of this interface should be registered with TL1Session as follows.
session.setConnectionHandler(ConnectionHandlerImpl)
where session is the instance of TL1Session and ConnectionHandlerImpl is
the implementation of this interface.
Click here to view the source file ConnectionHandlerImpl.java
TL1Session.setConnectionHandler(com.adventnet.tl1.ConnectionHandler),
TL1Session.removeConnectionHandler(),
TL1Session| Method Summary | |
void |
postConnect(TL1Session session)
This callback method is invoked after establishing connection with the TL1 Agent. |
void |
preConnect(TL1Session session)
This callback method is invoked before establishing connection with the TL1 Agent. |
| Method Detail |
public void preConnect(TL1Session session)
session - TL1Session instance.public void postConnect(TL1Session session)
session - TL1Session instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||