|
SNMP Stack 5_1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--uk.co.westhawk.examplev2c.ReceiveTrap
The ReceiveTrap receives traps and request pdus.
The host, port, etc can be configured
in the properties file.
The name of the properties file can be passed as first argument to
this application. If there is no such argument, it will look for
ReceiveTrap.properties. If this file does not exist, the
application will use default parameters.
On UNIX and Linux you will have to run this application as root.
SnmpContextv2c| Field Summary |
| Fields inherited from interface uk.co.westhawk.snmp.event.RawPduListener |
version_id |
| Fields inherited from interface uk.co.westhawk.snmp.event.TrapListener |
version_id |
| Fields inherited from interface uk.co.westhawk.snmp.event.RequestPduListener |
version_id |
| Constructor Summary | |
ReceiveTrap(java.lang.String propertiesFilename)
Constructor. |
|
| Method Summary | |
void |
destroy()
|
void |
init()
|
static void |
main(java.lang.String[] args)
|
void |
rawPduReceived(RawPduEvent evt)
Invoked when a pdu is received. |
void |
requestPduReceived(RequestPduEvent evt)
Invoked when a pdu is received. |
void |
trapReceived(TrapEvent evt)
Invoked when a trap is received. |
void |
update(java.util.Observable obs,
java.lang.Object ov)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReceiveTrap(java.lang.String propertiesFilename)
propertiesFilename - The name of the properties file. Can be
null.| Method Detail |
public void init()
public void update(java.util.Observable obs,
java.lang.Object ov)
update in interface java.util.Observerpublic void destroy()
public void trapReceived(TrapEvent evt)
TrapListener
trapReceived in interface TrapListenerpublic void requestPduReceived(RequestPduEvent evt)
RequestPduListener
requestPduReceived in interface RequestPduListenerpublic void rawPduReceived(RawPduEvent evt)
RawPduListener
rawPduReceived in interface RawPduListenerpublic static void main(java.lang.String[] args)
|
SNMP Stack 5_1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||