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.
GetNextPdu
Modifier and Type | Field and Description |
---|---|
SnmpContext[] |
contexts |
static java.lang.String |
HOSTS |
Constructor and Description |
---|
test_threads(java.lang.String propertiesFilename)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final java.lang.String HOSTS
public SnmpContext[] contexts
public test_threads(java.lang.String propertiesFilename)
propertiesFilename
- The name of the properties file. Can be
null.public void init()
public void startWalk(SnmpContext cont) throws java.io.IOException, PduException
java.io.IOException
PduException
public void update(java.util.Observable obs, java.lang.Object ov)
update
in interface java.util.Observer
obs
- the GetNextPdu variableov
- the varbindGetNextPdu
,
varbind
public static void main(java.lang.String[] args)