public class InterfaceGetNextPduStub extends GetNextPdu
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_ifDescr |
protected int |
_ifIndex |
protected long |
_ifInOctets |
protected int |
_ifNumber |
protected int |
_ifOperStatus |
protected java.util.HashMap |
_ifOperStatusMap |
protected long |
_ifOutOctets |
protected long |
_ifSpeed |
protected long |
_sysUpTime |
protected boolean |
_valid |
static java.lang.String[] |
all_oids |
static java.lang.String[] |
col_oids |
static java.lang.String |
ifDescr_OID |
static java.lang.String |
ifIndex_OID |
static java.lang.String |
ifInOctets_OID |
static java.lang.String |
ifNumber_OID |
static java.lang.String |
ifOperStatus_OID |
static java.lang.String |
ifOutOctets_OID |
static java.lang.String |
ifSpeed_OID |
static int |
NO_COL |
static int |
NO_OID |
static int |
NO_SCAL |
static java.lang.String[] |
scal_oids |
static java.lang.String |
sysUpTime_OID |
added, answered, context, encodedPacket, errind, errstat, msg_type, reqVarbinds, respVarbinds, snmpv3MsgId
Constructor and Description |
---|
InterfaceGetNextPduStub(SnmpContextBasisFace con)
Constructor.
|
InterfaceGetNextPduStub(SnmpContextBasisFace con,
java.util.Observer o)
Constructor that will send the first request immediately.
|
Modifier and Type | Method and Description |
---|---|
void |
addOids(int index)
This method sets the column index.
|
void |
addOids(InterfaceGetNextPduStub old)
The method addOids is the basis for the GetNext functionality.
|
java.lang.String |
getIfDescr() |
int |
getIfIndex() |
long |
getIfInOctets() |
int |
getIfNumber() |
int |
getIfOperStatus() |
java.lang.String |
getIfOperStatusStr() |
long |
getIfOutOctets() |
long |
getIfSpeed() |
long |
getSysUpTime() |
boolean |
isValid()
Returns if this set of values is valid.
|
protected void |
new_value(int n,
varbind res)
The value of the request is set.
|
void |
setIfDescr(AsnObject new_value)
ifDescr
OBJECT-TYPE (
Syntax: [UNIVERSAL 4] OCTET STRING (SIZE (0..255))
Access: read-only
Status: mandatory
Description: A textual string containing information about the
interface.
|
void |
setIfIndex(AsnObject new_value)
ifIndex
OBJECT-TYPE (
Syntax: [UNIVERSAL 2] INTEGER
Access: read-only
Status: mandatory
Description: A unique value for each interface.
|
void |
setIfInOctets(AsnObject new_value)
ifInOctets
OBJECT-TYPE (
Syntax: [APPLICATION 1] INTEGER (0..4294967295)
Access: read-only
Status: mandatory
Description: The total number of octets received on the
interface, including framing characters.
)
|
void |
setIfNumber(AsnObject new_value)
ifNumber
OBJECT-TYPE (
Syntax: [UNIVERSAL 2] INTEGER
Access: read-only
Status: mandatory
Description: The number of network interfaces (regardless of
their current state) present on this system.
)
|
void |
setIfOperStatus(AsnObject new_value)
ifOperStatus
OBJECT-TYPE (
Syntax: [UNIVERSAL 2] INTEGER (1 | 2 | 3)
Access: read-only
Status: mandatory
Description: The current operational state of the interface.
|
void |
setIfOutOctets(AsnObject new_value)
ifOutOctets
OBJECT-TYPE (
Syntax: [APPLICATION 1] INTEGER (0..4294967295)
Access: read-only
Status: mandatory
Description: The total number of octets transmitted out of the
interface, including framing characters.
)
|
void |
setIfSpeed(AsnObject new_value)
ifSpeed
OBJECT-TYPE (
Syntax: [APPLICATION 2] INTEGER (0..4294967295)
Access: read-only
Status: mandatory
Description: An estimate of the interface's current bandwidth
in bits per second.
|
void |
setSysUpTime(AsnObject new_value)
sysUpTime
OBJECT-TYPE (
Syntax: [APPLICATION 3] INTEGER (0..4294967295)
Access: read-only
Status: mandatory
Description: The time (in hundredths of a second) since the
network management portion of the system was last
re-initialized.
)
|
java.lang.String |
toString()
Returns the string representation of the PDU.
|
addOid, addOid, addOid, addOid, addOid, addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, getRetryIntervals, isExpectingResponse, isTimedOut, notifyObservers, printVars, send, send, send, sendme, setErrorIndex, setErrorStatus, setErrorStatus, setMsgType, setRetryIntervals, tell_them, toString, waitForSelf
public static final java.lang.String sysUpTime_OID
public static final java.lang.String ifNumber_OID
public static final java.lang.String ifIndex_OID
public static final java.lang.String ifDescr_OID
public static final java.lang.String ifSpeed_OID
public static final java.lang.String ifOperStatus_OID
public static final java.lang.String ifInOctets_OID
public static final java.lang.String ifOutOctets_OID
public static final int NO_SCAL
public static final int NO_COL
public static final int NO_OID
public static final java.lang.String[] scal_oids
public static final java.lang.String[] col_oids
public static final java.lang.String[] all_oids
protected long _sysUpTime
protected int _ifNumber
protected int _ifIndex
protected java.lang.String _ifDescr
protected long _ifSpeed
protected java.util.HashMap _ifOperStatusMap
protected int _ifOperStatus
protected long _ifInOctets
protected long _ifOutOctets
protected boolean _valid
public InterfaceGetNextPduStub(SnmpContextBasisFace con)
con
- The context of the requestpublic InterfaceGetNextPduStub(SnmpContextBasisFace con, java.util.Observer o) throws PduException, java.io.IOException
con
- The context of the requesto
- the Observer that will be notified when the answer is
receivedPduException
java.io.IOException
public void addOids(InterfaceGetNextPduStub old)
public void addOids(int index)
protected void new_value(int n, varbind res)
new_value
in class Pdu
n
- the index of the valueres
- the valuePdu.new_value(int, uk.co.westhawk.snmp.stack.varbind)
public void setSysUpTime(AsnObject new_value)
public long getSysUpTime()
public void setIfNumber(AsnObject new_value)
public int getIfNumber()
public void setIfIndex(AsnObject new_value)
public int getIfIndex()
public void setIfDescr(AsnObject new_value)
public java.lang.String getIfDescr()
public void setIfSpeed(AsnObject new_value)
public long getIfSpeed()
public void setIfOperStatus(AsnObject new_value)
public java.lang.String getIfOperStatusStr()
public int getIfOperStatus()
public void setIfInOctets(AsnObject new_value)
public long getIfInOctets()
public void setIfOutOctets(AsnObject new_value)
public long getIfOutOctets()
public boolean isValid()