|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.snmpadaptor4j.api.opennms.OpennmsSupport
net.sf.snmpadaptor4j.api.opennms.OpennmsSnmpDaemon
public class OpennmsSnmpDaemon
SNMP daemon implementation for joesnmp API.
| Field Summary | |
|---|---|
protected SnmpMib |
snmpMib
SNMP Management Information Base (MIB). |
| Fields inherited from class net.sf.snmpadaptor4j.api.opennms.OpennmsSupport |
|---|
logger |
| Method Summary | |
|---|---|
boolean |
isStarted()
Returns TRUE if the SNMP daemon is started. |
protected static org.opennms.protocols.snmp.SnmpSyntax |
newSnmpValue(AttributeAccessor attributeAccessor)
Creates and returns a new SnmpSyntax by a AttributeAccessor. |
protected void |
sendPduPacket(org.opennms.protocols.snmp.SnmpAgentSession session,
org.opennms.protocols.snmp.SnmpPeer peer,
org.opennms.protocols.snmp.SnmpPduPacket pdu)
Sends a SnmpPduPacket. |
protected static void |
setValue(AttributeAccessor attributeAccessor,
org.opennms.protocols.snmp.SnmpSyntax newValue)
Sets a new value to AttributeAccessor. |
void |
SnmpAgentSessionError(org.opennms.protocols.snmp.SnmpAgentSession session,
int error,
Object ref)
|
org.opennms.protocols.snmp.SnmpPduRequest |
snmpReceivedGet(org.opennms.protocols.snmp.SnmpPduPacket pdu,
boolean getNext)
|
void |
snmpReceivedPdu(org.opennms.protocols.snmp.SnmpAgentSession session,
InetAddress manager,
int port,
org.opennms.protocols.snmp.SnmpOctetString community,
org.opennms.protocols.snmp.SnmpPduPacket pdu)
|
org.opennms.protocols.snmp.SnmpPduRequest |
snmpReceivedSet(org.opennms.protocols.snmp.SnmpPduPacket pdu)
|
void |
start()
Starts the SNMP daemon. |
void |
stop()
Stops the SNMP daemon. |
String |
toString()
|
| Methods inherited from class net.sf.snmpadaptor4j.api.opennms.OpennmsSupport |
|---|
newJmxValue, newSnmpValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final SnmpMib snmpMib
| Method Detail |
|---|
public final void start()
throws Exception
SnmpDaemon
start in interface SnmpDaemonException - Exception if an error has occurred.public final void stop()
SnmpDaemon
stop in interface SnmpDaemonpublic final boolean isStarted()
SnmpDaemonTRUE if the SNMP daemon is started.
isStarted in interface SnmpDaemonTRUE if the SNMP daemon is started.
public final void SnmpAgentSessionError(org.opennms.protocols.snmp.SnmpAgentSession session,
int error,
Object ref)
SnmpAgentSessionError in interface org.opennms.protocols.snmp.SnmpAgentHandler
public final void snmpReceivedPdu(org.opennms.protocols.snmp.SnmpAgentSession session,
InetAddress manager,
int port,
org.opennms.protocols.snmp.SnmpOctetString community,
org.opennms.protocols.snmp.SnmpPduPacket pdu)
snmpReceivedPdu in interface org.opennms.protocols.snmp.SnmpAgentHandler
protected void sendPduPacket(org.opennms.protocols.snmp.SnmpAgentSession session,
org.opennms.protocols.snmp.SnmpPeer peer,
org.opennms.protocols.snmp.SnmpPduPacket pdu)
throws Exception
SnmpPduPacket.
session - SNMP session.peer - Request destination.pdu - Request.
Exception - Exception if an error has occurred.
public final org.opennms.protocols.snmp.SnmpPduRequest snmpReceivedGet(org.opennms.protocols.snmp.SnmpPduPacket pdu,
boolean getNext)
snmpReceivedGet in interface org.opennms.protocols.snmp.SnmpAgentHandlerpublic org.opennms.protocols.snmp.SnmpPduRequest snmpReceivedSet(org.opennms.protocols.snmp.SnmpPduPacket pdu)
snmpReceivedSet in interface org.opennms.protocols.snmp.SnmpAgentHandler
protected static org.opennms.protocols.snmp.SnmpSyntax newSnmpValue(AttributeAccessor attributeAccessor)
throws Exception
SnmpSyntax by a AttributeAccessor.
attributeAccessor - AttributeAccessor containing all the necessary data for create the SnmpSyntax.
SnmpSyntax.
Exception - Exception if an error has occurred.
protected static void setValue(AttributeAccessor attributeAccessor,
org.opennms.protocols.snmp.SnmpSyntax newValue)
throws Exception
AttributeAccessor.
attributeAccessor - AttributeAccessor to update.newValue - New value encapsulated to an object SnmpSyntax.
Exception - Exception if an error has occurred.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||