|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SnmpTrapSenderFacade
Title: SnmpTrapSenderFacade
Description: A simplified interface to an underlying SNMP API.
The intent of this class is both to limit the available interface, and allow
the underlying SNMP library to be changed, as desired.
Method Summary | |
---|---|
void |
addTrapMessageVariable(java.lang.String applicationTrapOIDValue,
java.lang.String value)
Adds a new Varbind to the SNMP PDU. |
void |
initialize(SNMPTrapAppender appender)
This method is called to set the values of all of the class fields used as parameters to the underlying SNMP API. |
void |
sendTrap()
Sends the PDU defined by the variables of the fields of this class. |
Method Detail |
---|
void initialize(SNMPTrapAppender appender)
appender
- - An instance of the SNMPTrapAppender class. All of the
values needed to configure the trap sender will be extracted from the
Appender, via its getter methods.void sendTrap()
void addTrapMessageVariable(java.lang.String applicationTrapOIDValue, java.lang.String value)
applicationTrapOIDValue
- - formatted as an OID
E.g. "1.3.6.1.2.1.1.2.0.0.0.0" -- this OID would point to the standard
sysObjectID of the "systemName" node of the standard "system" MIB.
value
- - the text to append to the Varbind that will be added to
the SNMP PDU.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |