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 GetAllInstalledSoftware

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

All Implemented Interfaces:
  java.util.Observer

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

The GetAllInstalledSoftware application requests the information of all the currently installed software of a host, using the InstalledSoftwarePdu. This is written to test the DateAndTime functionality.

It walks the tree by creating a new InstalledSoftwarePdu out off the previous one, and it collects the values of all the interfaces.

The information will be printed to System.out .

The host, port, community name and sockettype 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 `GetAllInstalledSoftware.properties`. If this file does not exist, the application will use default parameters.

Version:
  $Revision: 1.4 $ $Date: 2006/03/23 14:43:43 $
Author:
  Birgit Arkesteijn

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

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

Constructor Detail

### GetAllInstalledSoftware

    public GetAllInstalledSoftware(java.lang.String propertiesFilename)

  Constructor.

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

Method Detail

### init

    public void init()

### start

    public void start()

### 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 InstalledSoftwarePdu variable
    `ov` - the array of varbind (not used)
  See Also:
    `InstalledSoftwarePdu`, `varbind`

### main

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

  Main. To use a properties file different from `GetAllInstalledSoftware.properties`, pass the name as first argument.

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