public class SnmpTarget
extends java.lang.Object
TestSuite
,
TrapTestSuite
Modifier and Type | Field and Description |
---|---|
static int[] |
_interval |
static java.lang.String |
ADO |
static java.lang.String |
APASSW |
static java.lang.String |
APROTO |
static java.lang.String |
AUTH |
static java.lang.String |
BIND |
static java.lang.String |
COMMENT |
static java.lang.String |
COMMUNITY |
static java.lang.String |
CONTEXT |
static java.lang.String |
GET |
static java.lang.String |
GETBULK |
static java.lang.String |
GETNEXT |
static java.lang.String |
HOST |
static java.lang.String |
ID |
static java.lang.String |
INFORM |
static java.lang.String |
MAX_REP |
static java.lang.String |
NAME |
static java.lang.String |
NET |
static java.lang.String |
NON_REP |
static java.lang.String |
OID |
static java.lang.String |
PDO |
static java.lang.String |
PORT |
static java.lang.String |
PPASSW |
static java.lang.String |
PPROTO |
static java.lang.String |
PRIV |
static java.lang.String |
REQUEST |
static java.lang.String |
SET |
static java.lang.String |
SNMPv2c |
static java.lang.String |
SNMPv3 |
static java.lang.String |
SOCKET_TYPE |
static java.lang.String |
STD |
static java.lang.String |
TCP |
static java.lang.String |
TYPE |
static java.lang.String |
USERNAME |
static java.lang.String |
USM |
static java.lang.String |
VALUE |
static java.lang.String |
VARIABLE |
static java.lang.String |
VERSION |
static java.lang.String |
VNO |
static java.lang.String |
YES |
Constructor and Description |
---|
SnmpTarget()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a property change listener.
|
SnmpContextBasisFace |
createContext(org.w3c.dom.Node node)
Returns the snmp context specified in node.
|
ListeningContextPool |
createListeningContext(org.w3c.dom.Node node)
Returns the trap context specified in node.
|
java.util.Vector |
getOids(org.w3c.dom.Node node)
Returns the varbind list of OIDs specified in node.
|
int |
getPort(org.w3c.dom.Node node,
int defValue)
Returns the port number specified in node.
|
java.lang.String |
getSocketType(org.w3c.dom.Node node)
Returns the socket type specified in node.
|
void |
performGetNextRequest(SnmpContextBasisFace con,
java.lang.String oid,
int[] retry_intervals)
Performs a GetNextRequest with the specified context and OID.
|
void |
performRequest(org.w3c.dom.Element node)
Performs one request specified by node.
|
void |
performTest(org.w3c.dom.Node node)
Performs one or more tests specified by node.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a property change listener.
|
void |
setUsm(SnmpContextv3Face c,
org.w3c.dom.Node node)
Sets the USM properties in the context according to node.
|
void |
setWriter(java.io.PrintWriter w)
Sets the writer to be used for all output.
|
protected void |
tellThemWeAreReady()
Fires a property change listener when all the requests have been
answered.
|
java.lang.String |
toString()
Returns the string representation of the current context.
|
public static final java.lang.String ADO
public static final java.lang.String APASSW
public static final java.lang.String APROTO
public static final java.lang.String AUTH
public static final java.lang.String BIND
public static final java.lang.String COMMENT
public static final java.lang.String COMMUNITY
public static final java.lang.String CONTEXT
public static final java.lang.String GET
public static final java.lang.String GETBULK
public static final java.lang.String GETNEXT
public static final java.lang.String HOST
public static final java.lang.String ID
public static final java.lang.String INFORM
public static final java.lang.String MAX_REP
public static final java.lang.String NAME
public static final java.lang.String NET
public static final java.lang.String NON_REP
public static final java.lang.String OID
public static final java.lang.String PORT
public static final java.lang.String PDO
public static final java.lang.String PPROTO
public static final java.lang.String PPASSW
public static final java.lang.String PRIV
public static final java.lang.String REQUEST
public static final java.lang.String SET
public static final java.lang.String SOCKET_TYPE
public static final java.lang.String STD
public static final java.lang.String TCP
public static final java.lang.String TYPE
public static final java.lang.String USERNAME
public static final java.lang.String USM
public static final java.lang.String VALUE
public static final java.lang.String VARIABLE
public static final java.lang.String VERSION
public static final java.lang.String SNMPv2c
public static final java.lang.String SNMPv3
public static final java.lang.String VNO
public static final java.lang.String YES
public static final int[] _interval
public void setWriter(java.io.PrintWriter w)
System.out
will be used.w
- The writerpublic void performTest(org.w3c.dom.Node node)
node
- The DOM nodepublic void performRequest(org.w3c.dom.Element node)
node
- The DOM nodepublic void performGetNextRequest(SnmpContextBasisFace con, java.lang.String oid, int[] retry_intervals)
con
- The contextoid
- The OIDpublic java.util.Vector getOids(org.w3c.dom.Node node)
node
- The DOM nodepublic ListeningContextPool createListeningContext(org.w3c.dom.Node node) throws java.io.IOException
node
- The DOM nodejava.io.IOException
public SnmpContextBasisFace createContext(org.w3c.dom.Node node) throws java.io.IOException
node
- The DOM nodejava.io.IOException
public java.lang.String getSocketType(org.w3c.dom.Node node)
node
- The DOM nodepublic int getPort(org.w3c.dom.Node node, int defValue)
node
- The DOM nodedefValue
- The default valuepublic void setUsm(SnmpContextv3Face c, org.w3c.dom.Node node)
c
- The SNMPv3 contextnode
- The DOM nodepublic java.lang.String toString()
toString
in class java.lang.Object
protected void tellThemWeAreReady()
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l
- The listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
- The listener