|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
com.adventnet.snmp.proxy.ProxyForwarder
public class ProxyForwarder
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
(package private) SnmpTargetAddrTable |
addrTable
|
(package private) SnmpSession |
agentSession
|
(package private) SnmpAPI |
api
|
(package private) int |
local_port
|
(package private) SnmpSession |
managerSession
|
(package private) SnmpTargetParamsTable |
paramsTable
|
(package private) SnmpProxyTable |
proxyTable
|
(package private) java.util.Vector |
v
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ProxyForwarder(int localPort)
Constructs a ProxyForwarder instance with the given localport. |
|
ProxyForwarder(SnmpSession session,
boolean debug)
Constructs a ProxyForwarder object with the specified SnmpSession. |
|
| Method Summary | |
|---|---|
boolean |
authenticate(SnmpPDU pdu,
java.lang.String community)
This is the SnmpClient method implementation used to authenicate a PDU. |
boolean |
callback(SnmpSession sess,
SnmpPDU pdu,
int reqID)
This is the SnmpClient method implementation method that processes and forwards the result. |
void |
debugPrint(java.lang.String debugOutput)
This is the SnmpClient method implementation that prints the standard output. |
boolean |
getDebug()
Gets the debug flag on the SnmpAPI associated with this instance. |
SnmpProxyTable |
getSnmpProxyTable()
Gets the SnmpProxyTable instance corresponding to this object. |
void |
run()
The run method starts a seperate thread where processing of the packets received are done. |
void |
setDebug(boolean debug)
Enables/disables the debug flag on the SnmpAPI associated with this instance. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
SnmpAPI api
SnmpSession managerSession
SnmpSession agentSession
java.util.Vector v
int local_port
SnmpTargetAddrTable addrTable
SnmpProxyTable proxyTable
SnmpTargetParamsTable paramsTable
| Constructor Detail |
|---|
public ProxyForwarder(int localPort)
localport - The port in which the agentsession will be listening.
public ProxyForwarder(SnmpSession session,
boolean debug)
session - The SnmpSession that is used on the agent side.debug - The debug flag to be set on the SnmpAPI instance.| Method Detail |
|---|
public void setDebug(boolean debug)
debug - The debug value to be set.public boolean getDebug()
public SnmpProxyTable getSnmpProxyTable()
public boolean authenticate(SnmpPDU pdu,
java.lang.String community)
authenticate in interface SnmpClient
public boolean callback(SnmpSession sess,
SnmpPDU pdu,
int reqID)
callback in interface SnmpClientpublic void debugPrint(java.lang.String debugOutput)
debugPrint in interface SnmpClientpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||