com.adventnet.utils.agent
Class DynamicSnmpProxy
java.lang.Object
|
+--com.adventnet.snmp.snmp2.agent.Cache
|
+--com.adventnet.snmp.snmp2.agent.BaseSnmpStore
|
+--com.adventnet.snmp.snmp2.agent.SnmpStore
|
+--com.adventnet.snmp.snmp2.agent.SnmpProxy
|
+--com.adventnet.utils.agent.DynamicSnmpProxy
- class DynamicSnmpProxy
- extends SnmpProxy
- See Also:
- Serialized Form
| Fields inherited from class com.adventnet.snmp.snmp2.agent.SnmpProxy |
agentHost,
agentPortNumber,
agentTimeOut,
api,
community,
pdu,
proxySession,
registeredOid,
retries,
status,
userBasedCommunityPolicy |
| Fields inherited from class com.adventnet.snmp.snmp2.agent.Cache |
cache,
debug |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.SnmpProxy |
addRegistrationListener,
getAgentHost,
getAgentPortNumber,
getAgentTimeOut,
getkey,
getRegisteredOid,
getRespPdu,
getRespPdu,
getRetries,
getRowStatus,
getSubidList,
getVersion,
initProxySession,
isProxySessionAlive,
isProxyTimeOuts,
isUserBasedCommunityPolicy,
removeRegistrationListener,
setAgentHost,
setAgentPortNumber,
setAgentTimeOut,
setCommunity,
setProxyTimeOuts,
setRegisteredOid,
setRetries,
setRowStatus,
setUserBasedCommunityPolicy,
setVersion,
startProxySession,
stopProxySession |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.BaseSnmpStore |
closeAll,
createProtocolOptions,
finalize,
getSnmpAPI,
getSnmpSession,
getSnmpSession,
initSession,
initSnmpStore,
isAlive,
isDebug,
killSnmpAgent,
setDebug |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
COMMUNITYBASED
static final int COMMUNITYBASED
INSTANCEBASED
static final int INSTANCEBASED
entryTable
java.util.Hashtable entryTable
entryVector
java.util.Vector entryVector
registeredOid
java.lang.String registeredOid
revertingToFirstInstance
boolean revertingToFirstInstance
DynamicSnmpProxy
DynamicSnmpProxy(int proxyBehavior)
sort
void sort()
sort
public static void sort(java.util.Vector toSort)
swap
static void swap(java.util.Vector x,
int i,
int j)
isLessThan
static boolean isLessThan(int[] obj1,
int[] obj2)
getMatchedEntry
DynamicRegistrationEntry getMatchedEntry(int[] aoid,
byte command)
getUptoColumnOID
public static int[] getUptoColumnOID(int[] oid,
int pos)
handleGetNext
int handleGetNext(VarBindRequestEvent ve,
DynamicRegistrationEntry entry)
throws AgentSnmpException
getRequest
public void getRequest(VarBindRequestEvent pe)
throws AgentSnmpException
- method handles GetRequests from the manager.
Implementation of the VarBindRequestListener interface.
- Overrides:
- getRequest in class SnmpProxy
- Parameters:
pe - the VarBindRequestEvent contains varbinds and information
about the manager.- Throws:
- AgentSnmpException - thrown if any error occurs.
getNextRequest
public void getNextRequest(VarBindRequestEvent pe,
AgentResource agentSource)
throws AgentSnmpException
- method handles GetNextRequests from the manager
Implementation of the VarBindRequestListener interface.
- Overrides:
- getNextRequest in class SnmpProxy
- Parameters:
pe - the VarBindRequestEvent contains varbinds and information
about the manager.- Throws:
- AgentSnmpException - thrown if any error occurs.
setRequest
public void setRequest(VarBindRequestEvent pe)
throws AgentSnmpException
- method handles setRequest from the manager
Implementation of the VarBindRequestListener interface.
- Overrides:
- setRequest in class SnmpProxy
- Parameters:
pe - the VarBindRequestEvent contains varbinds and information
about the manager.- Throws:
- AgentSnmpException - thrown if any error occurs.