|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--com.adventnet.snmp.rmi.LogManagerImpl
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
| Field Summary |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
LogManagerImpl()
|
|
| Method Summary | |
void |
addLogClient(LogInterface client)
Subscribe for logging debug message. |
void |
dbg(java.lang.String dbg)
This is the method for handling debug messages. |
void |
err(java.lang.String err)
Error messages are handled by this |
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()
This method will return Log ID |
void |
out(java.lang.String out)
Log messages go here |
void |
removeLogClient()
Unsubscribe for debug messages. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LogManagerImpl()
throws java.rmi.RemoteException
| Method Detail |
public void addLogClient(LogInterface client)
throws java.rmi.RemoteException
addLogClient in interface LogManagerjava.rmi.RemoteExceptionLogInterface
public java.lang.Object getLogClient()
throws java.rmi.RemoteException
getLogClient in interface LogManagerjava.rmi.RemoteException
public void removeLogClient()
throws java.rmi.RemoteException
removeLogClient in interface LogManagerjava.rmi.RemoteExceptionLogpublic void err(java.lang.String err)
LogInterface
err in interface LogInterfacepublic void out(java.lang.String out)
out in interface LogInterfacepublic void dbg(java.lang.String dbg)
dbg in interface LogInterfacepublic int getLogID()
getLogID in interface LogManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||