|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--uk.co.westhawk.snmp.stack.Pdu | +--uk.co.westhawk.snmp.stack.GetNextPdu | +--uk.co.westhawk.snmp.pdu.InterfaceGetNextPduStub
The class InterfaceGetNextPduStub. This file is auto generated by the StubBrowser utility, using Mibble. See the uk/co/westhawk/stub/ directory. Make sure that you replace the package name and classname placeholders. Also, move this file to the correct package directory. If these things are not done, this class will not compile correctly!!
Field Summary | |
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
|
Fields inherited from class uk.co.westhawk.snmp.stack.Pdu |
added, answered, context, encodedPacket, errind, errstat, msg_type, reqVarbinds, respVarbinds, snmpv3MsgId |
Constructor Summary | |
InterfaceGetNextPduStub(SnmpContextBasisFace con)
Constructor. |
|
InterfaceGetNextPduStub(SnmpContextBasisFace con,
java.util.Observer o)
Constructor that will send the first request immediately. |
Method Summary | |
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. |
Methods inherited from class uk.co.westhawk.snmp.stack.Pdu |
addOid, addOid, addOid, addOid, addOid, addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, isExpectingResponse, isTimedOut, notifyObservers, printVars, send, send, send, sendme, setErrorIndex, setErrorStatus, setErrorStatus, setMsgType, setRetryIntervals, tell_them, toString, waitForSelf |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
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
Constructor Detail |
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
receivedMethod Detail |
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 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()
public java.lang.String toString()
Pdu
toString
in class Pdu
|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |