|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.outbackinc.services.protocol.snmp.SnmpVarBind
Variable Binding. contains a name, type and value for an SNMP object. The SNMP ASN.1 types are mapped to Java types via the getType() and getValue() methods as follows:
ASN.1
|
SnmpConstants
|
Java
|
NULL
|
ASN_NULL
|
null |
INTEGER and Integer32
|
ASN_INTEGER and ASN_INTEGER32
|
java.math.BigInteger |
OCTET STRING
|
ASN_OCTSTR
|
byte[ ] |
Opaque
|
ASN_OPAQUE
|
byte[ ] |
IpAddress
|
ASN_IPADDRESS
|
java.lang.String |
OBJECT IDENTIFIER
|
ASN_OID
|
java.lang.String |
Counter and Counter32
|
ASN_COUNTER and ASN_COUNTER32
|
java.lang.Long |
Gauge, Gauge32, and Unsigned32
|
ASN_GAUGE, ASN_GAUGE32, and ASN_UNSIGNED32
|
java.lang.Long |
TimeTicks
|
ASN_TIMETICKS
|
java.lang.Long |
Counter64
|
ASN_COUNTER64
|
java.math.BigInteger |
UInteger32 (historic)
|
ASN_UINTEGER32
|
java.lang.Long |
SnmpConstants
, Serialized FormConstructor Summary | |
SnmpVarBind(java.lang.String szName,
byte bType,
java.lang.Object cValueObject)
Create an SnmpVarBind with a byte type |
|
SnmpVarBind(java.lang.String szName,
short sType,
java.lang.Object cValueObject)
Create an SnmpVarBind with a short type |
Method Summary | |
java.lang.String |
getName()
Get the OID name for this varbind. |
java.lang.String |
getStringValue()
Get the varbind value as a String. |
long |
getTimeStamp()
Get the timestamp associated with this varbind. |
byte |
getType()
Get the ASN type for this varbind. |
java.lang.Object |
getValue()
Get the object value for this varbind. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SnmpVarBind(java.lang.String szName, byte bType, java.lang.Object cValueObject)
szName
- Typically the OIDbType
- Variable type (display string, counter, etc.)cValueObject
- The value of the variablepublic SnmpVarBind(java.lang.String szName, short sType, java.lang.Object cValueObject)
szName
- Typically the OIDsType
- Variable type (display string, counter, etc.)cValueObject
- The value of the variableMethod Detail |
public long getTimeStamp()
SnmpServiceConfiguration
public java.lang.String getName()
public byte getType()
SnmpConstants
public java.lang.Object getValue()
getType()
,
SnmpConstants
public java.lang.String getStringValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Home Services Products Purchase Contact Us About Us Legal Ceramics
Copyright © 2003-2008 jSNMP Enterprises All rights reserved.