uk.co.westhawk.examplev1
Class  getAllInterfaces
java.lang.Object
  |
  +--uk.co.westhawk.examplev1.getAllInterfaces
- All Implemented Interfaces: 
 - java.util.Observer, java.lang.Runnable
 
- public class getAllInterfaces
- extends java.lang.Object
- implements java.util.Observer, java.lang.Runnable
   
 The getAllInterfaces application requests the interface information 
 of all the current interfaces of a host, using the InterfaceGetNextPdu.
 
 
 It walks the tree by creating a new InterfaceGetNextPdu out off the
 previous one, and it collects the values of all the interfaces. Since
 the application is Runnable, it will send requests continuously.
 
 
 The information will be printed to System.out .
 
 
 The host, port, oid and community name 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
 getAllInterfaces.properties. If this file does not exist, the
 application will use default parameters.
 
- Version: 
 - $Revision: 1.3 $ $Date: 2002/11/04 17:55:09 $
 
- Author: 
 - Birgit Arkesteijn
 
- See Also: 
 InterfaceGetNextPdu
| 
Field Summary | 
static long | 
sleepTime
 
          Use 10 (sec) as interval | 
 
| 
Constructor Summary | 
getAllInterfaces(java.lang.String propertiesFilename)
 
          Constructor. | 
 
| 
Method Summary | 
 void | 
init()
 
            | 
static void | 
main(java.lang.String[] args)
 
          Main. | 
 void | 
run()
 
            | 
 void | 
start()
 
            | 
 void | 
update(java.util.Observable obs,
       java.lang.Object ov)
 
          Implementing the Observer interface. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
sleepTime
public static final long sleepTime
- Use 10 (sec) as interval
 
getAllInterfaces
public getAllInterfaces(java.lang.String propertiesFilename)
- Constructor.
- Parameters:
 propertiesFilename - The name of the properties file. Can be
 null.
 
 
init
public void init()
 
start
public void start()
 
run
public void run()
- Specified by: 
 run in interface java.lang.Runnable
 
update
public void update(java.util.Observable obs,
                   java.lang.Object ov)
- Implementing the Observer interface. Receiving the response from 
 the Pdu.
- Specified by: 
 update in interface java.util.Observer
 
- Parameters:
 obs - the InterfaceGetNextPdu variableov - the array of varbind (not used)- See Also: 
 InterfaceGetNextPdu, 
varbind
 
 
main
public static void main(java.lang.String[] args)
- Main. To use a properties file different from 
 
getAllInterfaces.properties, pass the name as first argument.