WebNMS TL1 API Release 4 Specification

com.adventnet.tl1
Interface ServerSessionListener


public interface ServerSessionListener

This interface must be implemented by the Agent Application in order to monitor the connections established with the TL1ServerSession.

This interface allows users to perform some action :

The implementation of this interface should be registered with TL1ServerSession.

serversession.setServerSessionListener(serverSessionListenerImpl);

where serversession is the instance of TL1ServerSession and serverSessionListenerImpl is the implementation of this interface.

Since:
TL1 API 4
See Also:
TL1ServerSession, TL1ServerSession.setServerSessionListener(com.adventnet.tl1.ServerSessionListener), TL1ServerSession.removeServerSessionListener()

Method Summary
 void tl1SessionAdded(TL1ServerSession serversession, TL1Session session)
          Invoked after establishing connection with the TL1ServerSession.
 void tl1SessionRemoved(TL1ServerSession serversession, TL1Session session)
          Invoked after removing the TL1Session from the TL1ServerSession by the Agent application.
 

Method Detail

tl1SessionAdded

public void tl1SessionAdded(TL1ServerSession serversession,
                            TL1Session session)
Invoked after establishing connection with the TL1ServerSession. You can make necessary changes in the session properties here and proceed.

Parameters:
serversession - TL1ServerSession instance.
session - TL1Session instance.

tl1SessionRemoved

public void tl1SessionRemoved(TL1ServerSession serversession,
                              TL1Session session)
Invoked after removing the TL1Session from the TL1ServerSession by the Agent application.

Parameters:
serversession - TL1ServerSession instance.
session - TL1Session instance.

WebNMS TL1 API Release 4 Specification