|
|||||||||||
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.SnmpOid
javax.management.snmp.SnmpIpAddress
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 IpAddress.
Field Summary |
Fields inherited from class javax.management.snmp.SnmpOid |
componentCount, components |
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 | |
SnmpIpAddress(byte[] bytes)
Deprecated. Constructs a new SnmpIpAddress from the specified bytes array. |
|
SnmpIpAddress(long addr)
Deprecated. Constructs a new SnmpIpAddress from the specified long value. |
|
SnmpIpAddress(long b1,
long b2,
long b3,
long b4)
Deprecated. Constructs a new SnmpIpAddress from four long values. |
|
SnmpIpAddress(String dotAddress)
Deprecated. Constructs a new SnmpIpAddress from a dot-formatted String . |
Method Summary | |
static void |
appendToOid(SnmpOid source,
SnmpOid dest)
Deprecated. Appends an SnmpOid representing an SnmpIpAddress to another OID. |
byte[] |
byteValue()
Deprecated. Converts the address value to its byte array form. |
String |
getTypeName()
Deprecated. Returns a textual description of the type object. |
static int |
nextOid(long[] index,
int start)
Deprecated. Scans an index OID, skips the address value and returns the position of the next value. |
String |
stringValue()
Deprecated. Converts the address to its String form. |
static SnmpOid |
toOid(long[] index,
int start)
Deprecated. Extracts the ip address from an index OID and returns its value converted as an SnmpOid . |
Methods inherited from class javax.management.snmp.SnmpOid |
addToOid, addToOid, append, append, clone, compareTo, duplicate, equals, getLength, getOidArc, getSnmpOidTable, hashCode, insert, insert, isValid, longValue, longValue, resolveVarName, setSnmpOidTable, toBoolean, toByte, toInteger, toLong, toOctetString, toOid, toString, toUnsignedLong |
Methods inherited from class javax.management.snmp.SnmpValue |
isEndOfMibViewValue, isNoSuchInstanceValue, isNoSuchObjectValue, toAsn1String |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SnmpIpAddress(byte[] bytes) throws IllegalArgumentException
SnmpIpAddress
from the specified bytes array.
bytes
- The four bytes composing the address.
IllegalArgumentException
- The length of the array is not equal to four.public SnmpIpAddress(long addr)
SnmpIpAddress
from the specified long value.
addr
- The initialization value.public SnmpIpAddress(String dotAddress) throws IllegalArgumentException
SnmpIpAddress
from a dot-formatted String
.
The dot-formatted String
is formulated x.x.x.x .
dotAddress
- The initialization value.
IllegalArgumentException
- The string does not correspond to an ip address.public SnmpIpAddress(long b1, long b2, long b3, long b4)
SnmpIpAddress
from four long values.
b1
- Byte 1.b2
- Byte 2.b3
- Byte 3.b4
- Byte 4.
IllegalArgumentException
- A value is outside of [0-255].Method Detail |
public byte[] byteValue()
public String stringValue()
String
form.
Same as toString()
. Exists only to follow a naming scheme.
String
representation of the value.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 ip address 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 address value
available at the start position.public static void appendToOid(SnmpOid source, SnmpOid dest)
SnmpOid
representing an SnmpIpAddress
to another OID.
source
- An OID representing an SnmpIpAddress
value.dest
- Where source should be appended.public final String getTypeName()
getTypeName
in class SnmpOid
|
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 |