|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.snmp.SnmpValue
javax.management.snmp.SnmpInt
com.sun.management.snmp
in
preference to classes in this package. This class may be removed
in a future version of Java DMK.
Represents an SNMP integer.
Field Summary | |
protected long |
value
Deprecated. This is where the value is stored. |
Fields inherited from interface javax.management.snmp.SnmpDataTypeEnums |
ApplFlag, BitStringTag, BooleanTag, Counter64Tag, CounterTag, CtxtFlag, errEndOfMibViewTag, errNoSuchInstanceTag, errNoSuchObjectTag, GaugeTag, IntegerTag, IpAddressTag, NsapTag, NullTag, ObjectIdentiferTag, OctetStringTag, OpaqueTag, SequenceTag, TableTag, TimeticksTag, UintegerTag, UnknownSyntaxTag |
Constructor Summary | |
SnmpInt(boolean v)
Deprecated. Constructs a new SnmpInt from the specified boolean value. |
|
SnmpInt(Enumerated v)
Deprecated. Constructs a new SnmpInt from the specified Enumerated value. |
|
SnmpInt(int v)
Deprecated. Constructs a new SnmpInt from the specified integer value. |
|
SnmpInt(Integer v)
Deprecated. Constructs a new SnmpInt from the specified Integer value. |
|
SnmpInt(long v)
Deprecated. Constructs a new SnmpInt from the specified long value. |
|
SnmpInt(Long v)
Deprecated. Constructs a new SnmpInt from the specified Long value. |
Method Summary | |
static void |
appendToOid(SnmpOid source,
SnmpOid dest)
Deprecated. Appends an SnmpOid representing an SnmpInt to another OID. |
Object |
clone()
Deprecated. Clones the SnmpInt object, making a copy of its data. |
SnmpValue |
duplicate()
Deprecated. Performs a clone action. |
String |
getTypeName()
Deprecated. Returns a textual description of the type object. |
int |
intValue()
Deprecated. Converts the integer value to its integer form. |
long |
longValue()
Deprecated. Returns the long value of this SnmpInt . |
static int |
nextOid(long[] index,
int start)
Deprecated. Scans an index OID, skips the integer value and returns the position of the next value. |
Integer |
toInteger()
Deprecated. Converts the integer value to its Integer form. |
Long |
toLong()
Deprecated. Converts the integer value to its Long form. |
SnmpOid |
toOid()
Deprecated. Converts the integer value to its SnmpOid form. |
static SnmpOid |
toOid(long[] index,
int start)
Deprecated. Extracts the integer from an index OID and returns its value converted as an SnmpOid . |
String |
toString()
Deprecated. Converts the integer value to its String form. |
Methods inherited from class javax.management.snmp.SnmpValue |
isEndOfMibViewValue, isNoSuchInstanceValue, isNoSuchObjectValue, toAsn1String |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected long value
Constructor Detail |
public SnmpInt(int v) throws IllegalArgumentException
SnmpInt
from the specified integer value.
v
- The initialization value.
IllegalArgumentException
- The specified value is smaller than Integer.MIN_VALUE
or larger than Integer.MAX_VALUE
.public SnmpInt(Integer v) throws IllegalArgumentException
SnmpInt
from the specified Integer
value.
v
- The initialization value.
IllegalArgumentException
- The specified value is smaller than Integer.MIN_VALUE
or larger than Integer.MAX_VALUE
.public SnmpInt(long v) throws IllegalArgumentException
SnmpInt
from the specified long value.
v
- The initialization value.
IllegalArgumentException
- The specified value is smaller than Integer.MIN_VALUE
or larger than Integer.MAX_VALUE
.public SnmpInt(Long v) throws IllegalArgumentException
SnmpInt
from the specified Long
value.
v
- The initialization value.
IllegalArgumentException
- The specified value is smaller than Integer.MIN_VALUE
or larger than Integer.MAX_VALUE
.public SnmpInt(Enumerated v) throws IllegalArgumentException
SnmpInt
from the specified Enumerated
value.
v
- The initialization value.
IllegalArgumentException
- The specified value is smaller than Integer.MIN_VALUE
or larger than Integer.MAX_VALUE
.Enumerated
public SnmpInt(boolean v)
SnmpInt
from the specified boolean value.
This constructor applies rfc1903 rule:
TruthValue ::= TEXTUAL-CONVENTION STATUS current DESCRIPTION "Represents a boolean value." SYNTAX INTEGER { true(1), false(2) }
v
- The initialization value.Method Detail |
public long longValue()
SnmpInt
.
public Long toLong()
Long
form.
Long
representation of the value.public int intValue()
public Integer toInteger()
Integer
form.
Integer
representation of the value.public String toString()
String
form.
String
representation of the value.public SnmpOid toOid()
SnmpOid
form.
toOid
in class SnmpValue
public static SnmpOid toOid(long[] index, int start) throws SnmpStatusException
SnmpOid
.
index
- The index array.start
- The position in the index array.
SnmpStatusException
- There is no integer value
available at the start position.public static int nextOid(long[] index, int start) throws SnmpStatusException
index
- The index array.start
- The position in the index array.
SnmpStatusException
- There is no integer value
available at the start position.public static void appendToOid(SnmpOid source, SnmpOid dest)
SnmpOid
representing an SnmpInt
to another OID.
source
- An OID representing an SnmpInt
value.dest
- Where source should be appended.public final SnmpValue duplicate()
SnmpValue
interface.
duplicate
in class SnmpValue
SnmpValue
clone.public final Object clone()
SnmpInt
object, making a copy of its data.
public String getTypeName()
getTypeName
in class SnmpValue
|
FCS Release jdmk-5_1-b34.2 2005.11.29_16:24:00_MET |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |