Overview | Package | Class | Tree | Deprecated | Index | Help
| SNMP Stack 5_1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uk.co.westhawk.examplev1
Class test_threads

    java.lang.Object
      |
      +--uk.co.westhawk.examplev1.test_threads

All Implemented Interfaces:
  java.util.Observer

public class test_threads
extends java.lang.Object
implements java.util.Observer

The test_threads application does a MIB tree walk on various hosts. It will start with the OID as configured in the properties file.

The hosts, 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 `test_threads.properties`. If this file does not exist, the application will use default parameters.

Version:
  $Revision: 1.4 $ $Date: 2006/01/17 17:49:50 $
Author:
  Birgit Arkesteijn
See Also:
  `GetNextPdu`

Field Summary
`SnmpContext[]` | `contexts`
`static java.lang.String` | `HOSTS`

Constructor Summary
`test_threads(java.lang.String propertiesFilename)` Constructor.

Method Summary
`void` | `init()`
`static void` | `main(java.lang.String[] args)`
`void` | `startWalk(SnmpContext cont)`
`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`

Field Detail

### HOSTS

    public static final java.lang.String HOSTS

See Also:
  Constant Field Values

### contexts

    public SnmpContext[] contexts

Constructor Detail

### test_threads

    public test_threads(java.lang.String propertiesFilename)

  Constructor.

Parameters:
  `propertiesFilename` - The name of the properties file. Can be null.

Method Detail

### init

    public void init()

### startWalk

    public void startWalk(SnmpContext cont)
                   throws java.io.IOException,
                          PduException

    `java.io.IOException`
    `PduException`

### 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 GetNextPdu variable
    `ov` - the varbind
  See Also:
    `GetNextPdu`, `varbind`

### main

    public static void main(java.lang.String[] args)

Overview | Package | Class | Tree | Deprecated | Index | Help
| SNMP Stack 5_1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD