uk.co.westhawk.examplev3
Class ReceiveTrap
java.lang.Object
|
+--uk.co.westhawk.examplev3.ReceiveTrap
- All Implemented Interfaces:
- java.util.EventListener, java.util.Observer, TrapListener
- public class ReceiveTrap
- extends java.lang.Object
- implements TrapListener, java.util.Observer
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.
- Version:
- $Revision: 1.4 $ $Date: 2002/11/04 17:55:13 $
- Author:
- Birgit Arkesteijn
- See Also:
SnmpContextv3
Constructor Summary |
ReceiveTrap(java.lang.String propertiesFilename)
Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReceiveTrap
public ReceiveTrap(java.lang.String propertiesFilename)
- Constructor.
- Parameters:
propertiesFilename
- The name of the properties file. Can be
null.
init
public void init()
update
public void update(java.util.Observable obs,
java.lang.Object ov)
- Specified by:
update
in interface java.util.Observer
destroy
public void destroy()
trapReceived
public void trapReceived(TrapEvent evt)
- Description copied from interface:
TrapListener
- Invoked when a trap is received.
- Specified by:
trapReceived
in interface TrapListener
main
public static void main(java.lang.String[] args)