|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.agent.Cache
com.adventnet.snmp.snmp2.agent.BaseSnmpStore
com.adventnet.snmp.snmp2.agent.BaseSnmpAgent
com.adventnet.snmp.snmp2.agent.SnmpAgent
com.adventnet.adaptors.snmp.JMXSnmpAgent
class JMXSnmpAgent
| Field Summary |
|---|
| Fields inherited from class com.adventnet.snmp.snmp2.agent.SnmpAgent |
|---|
actionHandlerListener, homeDirectory, remoteV3Client |
| Fields inherited from class com.adventnet.snmp.snmp2.agent.BaseSnmpAgent |
|---|
AgentScheduler, api, decoder, ENABLE_SNMP_AUTHEN_TRAPS, pduRequestHdlr, port, schedulerHash, snmpLog, snmpVersion, started, startTime, statusListener, TRANSPORT_PROVIDER, trapListener, utilities, versionInInt |
| Fields inherited from class com.adventnet.snmp.snmp2.agent.BaseSnmpStore |
|---|
debugLevel, localAddress, protocol, session |
| Constructor Summary | |
|---|---|
JMXSnmpAgent(int port,
SnmpAdaptor adaptor)
|
|
JMXSnmpAgent(SnmpAdaptor adaptor)
|
|
JMXSnmpAgent(java.lang.String ipAddress,
SnmpAdaptor adaptor)
|
|
| Method Summary | |
|---|---|
boolean |
authenticate(SnmpPDU pdu,
java.lang.String community)
This method is called before the callback and related processing methods are called has a simple checks based on the community of the pdu which has been received. |
boolean |
callback(SnmpSession session,
SnmpPDU pdu,
int reqid)
The callback of SnmpClient interface for incoming PDUs which is implemented by this agent. |
void |
send(SnmpPDU newPdu)
Sends the PDU out from the agent. |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.BaseSnmpStore |
|---|
closeAll, finalize, getSnmpAPI, getSnmpSession, getSnmpSession, initSession, initSnmpStore, isAlive, isDebug |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.Cache |
|---|
getFromCache, getMibOperations, putInCache, setMibOperations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMXSnmpAgent(java.lang.String ipAddress,
SnmpAdaptor adaptor)
public JMXSnmpAgent(int port,
SnmpAdaptor adaptor)
public JMXSnmpAgent(SnmpAdaptor adaptor)
| Method Detail |
|---|
public boolean callback(SnmpSession session,
SnmpPDU pdu,
int reqid)
BaseSnmpAgentWhen a pdu reached at the session for which this SnmpAgent is registered as SnmpClient, then the client(here BaseSnmpAgent) callback is called.
callback in interface SnmpClientcallback in class SnmpAgentsession - the session on which agent is communicating.pdu - the Snmp PDU.reqid - the value of reqid.
public void send(SnmpPDU newPdu)
throws SnmpException
SnmpAgent
send in class SnmpAgentnewPdu - the response PDU.
SnmpException - on send errors or if
the session is not alive
public boolean authenticate(SnmpPDU pdu,
java.lang.String community)
SnmpAgent
authenticate in interface SnmpClientauthenticate in class SnmpAgentpdu - the Snmp PDU.community - the value of the community.
SnmpClient
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||