|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.snmputils.VariableBinding
com.tivoli.twg.snmputils.TimeticksVbl
Timeticks variable binding.
Field Summary | |
---|---|
static long |
MAX_VALUE
|
static long |
MIN_VALUE
|
Fields inherited from class com.tivoli.twg.snmputils.VariableBinding |
---|
oid |
Constructor Summary | |
---|---|
TimeticksVbl(java.lang.String oid,
java.util.Date valueDate)
Constructor using object type for value |
|
TimeticksVbl(java.lang.String oid,
long value)
Constructor using primitive type for value |
Method Summary | |
---|---|
void |
addToPdu(SNMPPDU pdu)
Adds the variable binding to the specified PDU |
static java.lang.String |
formatTimeValue(long timeValue)
Formats a time ticks value into a more readable string. |
static java.util.Date |
getDateInstance(long timeValue)
Takes a Timeticks value as input and returns the equivalent as a Date using the default time zone. |
static int |
getMIBType()
Describes the type of MIB I represent. |
static int |
getType()
Describes the type of variable binding I represent. |
long |
getValue()
Returns the value for this variable binding as a primitive |
java.lang.Object |
getValueAsObject()
Returns the value for this variable binding as an Object |
int |
size()
Returns the size of the variable binding |
Methods inherited from class com.tivoli.twg.snmputils.VariableBinding |
---|
getOid, setOid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long MIN_VALUE
public static final long MAX_VALUE
Constructor Detail |
public TimeticksVbl(java.lang.String oid, long value) throws java.lang.NumberFormatException
oid
- string for the OID of this variable bindingvalue
- a long to create a VariableBinding for
java.lang.NumberFormatException
- if value not in rangepublic TimeticksVbl(java.lang.String oid, java.util.Date valueDate) throws java.lang.NumberFormatException
oid
- string for the OID of this variable bindingvalueDate
- a Date object to create a value for
java.lang.NumberFormatException
- if value not in rangeMethod Detail |
public static int getType()
SNMPPDU
public static int getMIBType()
TWGMIBItem2
public long getValue()
public java.lang.Object getValueAsObject()
getValueAsObject
in class VariableBinding
public void addToPdu(SNMPPDU pdu)
addToPdu
in class VariableBinding
pdu
- SNMPPDU to add variable binding topublic int size()
size
in class VariableBinding
VariableBinding
public static java.util.Date getDateInstance(long timeValue)
timeValue
- long value (in deci-seconds to
convert to date object
public static java.lang.String formatTimeValue(long timeValue)
timeValue
- long value to format
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |