|
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.examplev3.ReceiveTrap
The ReceiveTrap receives traps.
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.
SnmpContextv3
Field Summary |
Fields inherited from interface uk.co.westhawk.snmp.event.RequestPduListener |
version_id |
Fields inherited from interface uk.co.westhawk.snmp.event.RawPduListener |
version_id |
Fields inherited from interface uk.co.westhawk.snmp.event.TrapListener |
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)
Received a pdu request. |
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.Observer
public void destroy()
public void trapReceived(TrapEvent evt)
TrapListener
trapReceived
in interface TrapListener
public void requestPduReceived(RequestPduEvent evt)
requestPduReceived
in interface RequestPduListener
public void rawPduReceived(RawPduEvent evt)
RawPduListener
rawPduReceived
in interface RawPduListener
public 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 |