com.adventnet.snmp.rmi
Interface LogManager

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
LogManagerImpl

public interface LogManager
extends java.rmi.Remote

The LogManager class manages the redirecting of debug messages and error messages from the SnmpSession class to client which sends request. The client has to implement the LogInterface. Log Manager will generate the unique id and it will give it to clients whoever registers with LogManager and client has to set the id in SnmpTarget or SnmpRequestServer The Log Manager will call the corresponding client's debug method


Method Summary
 void addLogClient(LogInterface client)
          Subscribe for logging debug message.
 java.lang.Object getLogClient()
          Returns the client that have registered to receive log messages or null is returned if no one is registered.
 int getLogID()
          get the Log id returned by the Log Manager
 void removeLogClient()
          Unsubscribe for debug messages.
 

Method Detail

addLogClient

public void addLogClient(LogInterface client)
                  throws java.rmi.RemoteException
Subscribe for logging debug message. This method adds the client to this LogManager session, to invoke the dbg() method of the LogInterface implemented by the client.

Returns:
int unique client id for setting in SnmpPDU while sending request.
java.rmi.RemoteException
See Also:
LogInterface

getLogClient

public java.lang.Object getLogClient()
                              throws java.rmi.RemoteException
Returns the client that have registered to receive log messages or null is returned if no one is registered.

Returns:
The client that have registered for debug message or null.
java.rmi.RemoteException

removeLogClient

public void removeLogClient()
                     throws java.rmi.RemoteException
Unsubscribe for debug messages. This method removes the client interface implementation from this Log Manager session.

java.rmi.RemoteException
See Also:
Log

getLogID

public int getLogID()
             throws java.rmi.RemoteException
get the Log id returned by the Log Manager

java.rmi.RemoteException


Copyright (c)2010 ZOHO Corp., All Rights Reserved