Package uk.co.westhawk.snmp.pdu
Class InterfaceGetNextPduStub
java.lang.Object
java.util.Observable
uk.co.westhawk.snmp.stack.Pdu
uk.co.westhawk.snmp.stack.GetNextPdu
uk.co.westhawk.snmp.pdu.InterfaceGetNextPduStub
- Direct Known Subclasses:
InterfaceGetNextPdu
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!!
- Since:
- 4_14
- Version:
- $Revision: 3.4 $ $Date: 2006/11/29 16:12:50 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]
static final String[]
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final int
static final int
static final int
static final String[]
static final String
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Constructor that will send the first request immediately. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOids
(int index) This method sets the column index.void
The method addOids is the basis for the GetNext functionality.int
long
int
int
long
long
long
boolean
isValid()
Returns if this set of values is valid.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. )toString()
Returns the string representation of the PDU.Methods inherited from class uk.co.westhawk.snmp.stack.Pdu
addOid, addOid, addOid, addOid, addOid, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, getRetryIntervals, isTimedOut, notifyObservers, send, send, setRetryIntervals, waitForSelf
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
-
Field Details
-
sysUpTime_OID
- See Also:
-
ifNumber_OID
- See Also:
-
ifIndex_OID
- See Also:
-
ifDescr_OID
- See Also:
-
ifSpeed_OID
- See Also:
-
ifOperStatus_OID
- See Also:
-
ifInOctets_OID
- See Also:
-
ifOutOctets_OID
- See Also:
-
NO_SCAL
public static final int NO_SCAL- See Also:
-
NO_COL
public static final int NO_COL- See Also:
-
NO_OID
public static final int NO_OID- See Also:
-
scal_oids
-
col_oids
-
all_oids
-
-
Constructor Details
-
InterfaceGetNextPduStub
Constructor.- Parameters:
con
- The context of the request
-
InterfaceGetNextPduStub
public InterfaceGetNextPduStub(SnmpContextBasisFace con, Observer o) throws PduException, IOException Constructor that will send the first request immediately.- Parameters:
con
- The context of the requesto
- the Observer that will be notified when the answer is received- Throws:
PduException
IOException
-
-
Method Details
-
addOids
The method addOids is the basis for the GetNext functionality. If old is null, it initialises the varbinds from all_oids. If old is not null, it copies the column OIDs from the old InterfaceGetNextPduStub object. so the request continues where the previous one left. Note, the scalars and the columns OIDs are handled differently. The scalars are always copied from the original scal_oids, only the column OIDs are copied from the old InterfaceGetNextPduStub object. -
addOids
public void addOids(int index) This method sets the column index. By doing this, the request will return (only) this index. The index parameters only applies to the column OIDs. The scalars are copied from the original scal_oids. -
setSysUpTime
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. ) -
getSysUpTime
public long getSysUpTime() -
setIfNumber
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. ) -
getIfNumber
public int getIfNumber() -
setIfIndex
ifIndex OBJECT-TYPE ( Syntax: [UNIVERSAL 2] INTEGER Access: read-only Status: mandatory Description: A unique value for each interface. Its value ranges between 1 and the value of ifNumber. The value for each interface must remain constant at least from one re-initialization of the entity's network management system to the next re- initialization. ) -
getIfIndex
public int getIfIndex() -
setIfDescr
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. This string should include the name of the manufacturer, the product name and the version of the hardware interface. ) -
getIfDescr
-
setIfSpeed
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. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. ) -
getIfSpeed
public long getIfSpeed() -
setIfOperStatus
ifOperStatus OBJECT-TYPE ( Syntax: [UNIVERSAL 2] INTEGER (1 | 2 | 3) Access: read-only Status: mandatory Description: The current operational state of the interface. The testing(3) state indicates that no operational packets can be passed. ) -
getIfOperStatusStr
-
getIfOperStatus
public int getIfOperStatus() -
setIfInOctets
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. ) -
getIfInOctets
public long getIfInOctets() -
setIfOutOctets
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. ) -
getIfOutOctets
public long getIfOutOctets() -
isValid
public boolean isValid()Returns if this set of values is valid. -
toString
Description copied from class:Pdu
Returns the string representation of the PDU.
-