|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.snmpadaptor4j.api.opennms.OpennmsSupport net.sf.snmpadaptor4j.api.opennms.OpennmsSnmpTrapSender
public final class OpennmsSnmpTrapSender
SNMP trap sender implementation for joesnmp API.
Nested Class Summary | |
---|---|
protected class |
OpennmsSnmpTrapSender.NullHandler
Null SNMP handler. |
Field Summary |
---|
Fields inherited from class net.sf.snmpadaptor4j.api.opennms.OpennmsSupport |
---|
logger |
Method Summary | |
---|---|
void |
close()
Closes the connection with the SNMP manager. |
String |
getName()
Returns the name given to SNMP manager. |
boolean |
isConnected()
Returns TRUE if the connection is established to the SNMP manager. |
void |
open()
Opens the connection to the SNMP manager. |
void |
send(SnmpTrap trap)
Sends a SNMP trap to the manager. |
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 |
Method Detail |
---|
public String getName()
SnmpTrapSender
getName
in interface SnmpTrapSender
public void open() throws Exception
SnmpTrapSender
open
in interface SnmpTrapSender
Exception
- Exception if an error has occurred.public void close()
SnmpTrapSender
close
in interface SnmpTrapSender
public boolean isConnected()
SnmpTrapSender
TRUE
if the connection is established to the SNMP manager.
isConnected
in interface SnmpTrapSender
TRUE
if the connection is established.public void send(SnmpTrap trap) throws Exception
SnmpTrapSender
send
in interface SnmpTrapSender
trap
- Object representing a specific or generic SNMP trap.
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 |