uk.co.westhawk.examplev1
Class  get_next
java.lang.Object
  |
  +--uk.co.westhawk.examplev1.get_next
- All Implemented Interfaces: 
 - java.util.Observer
 
- public class get_next
- extends java.lang.Object
- implements java.util.Observer
   
 The get_next application does a MIB tree walk, using the OneGetNextPdu. 
 It will start with the OID as configured in the properties file.
 
 
 It walks the tree by creating a new OneGetNextPdu out off the
 previous one. All 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
 get_next.properties. If this file does not exist, the
 application will use default parameters.
 
- Version: 
 - $Revision: 1.2 $ $Date: 2002/10/22 16:34:15 $
 
- Author: 
 - Birgit Arkesteijn
 
- See Also: 
 OneGetNextPdu, 
Util
| 
Constructor Summary | 
get_next(java.lang.String propertiesFilename)
 
          Constructor. | 
 
| 
Method Summary | 
 void | 
init()
 
            | 
static void | 
main(java.lang.String[] args)
 
          Main. | 
 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 | 
 
get_next
public get_next(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)
- Implementing the Observer interface. Receiving the response from 
 the Pdu.
- Specified by: 
 update in interface java.util.Observer
 
- Parameters:
 obs - the OneGetNextPdu variableov - the varbind- See Also: 
 OneGetNextPdu, 
varbind
 
 
main
public static void main(java.lang.String[] args)
- Main. To use a properties file different from 
 
get_next.properties, pass the name as first argument.