Class Overview
Represents an SNMP IpAddress.
This API is a Sun Microsystems internal API and is subject
to change without notice.
Summary
[Expand]
Inherited Constants |
From interface
com.sun.jmx.snmp.SnmpDataTypeEnums
int |
ApplFlag |
|
int |
BitStringTag |
|
int |
BooleanTag |
|
int |
Counter64Tag |
|
int |
CounterTag |
|
int |
CtxtFlag |
|
int |
GaugeTag |
|
int |
IntegerTag |
|
int |
IpAddressTag |
|
int |
NsapTag |
|
int |
NullTag |
|
int |
ObjectIdentiferTag |
|
int |
OctetStringTag |
|
int |
OpaqueTag |
|
int |
SequenceTag |
|
int |
TableTag |
|
int |
TimeticksTag |
|
int |
UintegerTag |
|
int |
UnknownSyntaxTag |
|
int |
errEndOfMibViewTag |
|
int |
errNoSuchInstanceTag |
|
int |
errNoSuchObjectTag |
|
|
[Expand]
Inherited Fields |
From class
com.sun.jmx.snmp.SnmpOid
protected
int |
componentCount |
|
protected
long[] |
components |
|
|
Public Constructors |
|
SnmpIpAddress(byte[] bytes)
Constructs a new SnmpIpAddress from the specified bytes array.
|
|
SnmpIpAddress(long addr)
Constructs a new SnmpIpAddress from the specified long value.
|
|
SnmpIpAddress(String dotAddress)
Constructs a new SnmpIpAddress from a dot-formatted String .
|
|
SnmpIpAddress(long b1, long b2, long b3, long b4)
Constructs a new SnmpIpAddress from four long values.
|
Public Methods |
static
void
|
appendToOid(SnmpOid source, SnmpOid dest)
Appends an SnmpOid representing an SnmpIpAddress to another OID.
|
byte[]
|
byteValue()
Converts the address value to its byte array form.
|
final
String
|
getTypeName()
Returns a textual description of the type object.
|
static
int
|
nextOid(long[] index, int start)
Scans an index OID, skips the address value and returns the position
of the next value.
|
String
|
stringValue()
Converts the address to its String form.
|
static
SnmpOid
|
toOid(long[] index, int start)
Extracts the ip address from an index OID and returns its
value converted as an SnmpOid .
|
[Expand]
Inherited Methods |
From class
com.sun.jmx.snmp.SnmpOid
void
|
addToOid(long[] arg0)
|
void
|
addToOid(String arg0)
|
void
|
append(SnmpOid arg0)
|
void
|
append(long arg0)
|
static
void
|
appendToOid(SnmpOid arg0, SnmpOid arg1)
|
Object
|
clone()
Creates and returns a copy of this object.
|
int
|
compareTo(SnmpOid arg0)
|
synchronized
final
SnmpValue
|
duplicate()
Same as clone, but you cannot perform cloning using this object because
clone is protected.
|
boolean
|
equals(Object arg0)
Indicates whether some other object is "equal to" this one.
|
int
|
getLength()
|
final
long
|
getOidArc(int arg0)
|
static
SnmpOidTable
|
getSnmpOidTable()
|
String
|
getTypeName()
Returns a textual description of the object.
|
int
|
hashCode()
Returns a hash code value for the object.
|
void
|
insert(long arg0)
|
void
|
insert(int arg0)
|
boolean
|
isValid()
|
final
long[]
|
longValue(boolean arg0)
|
long[]
|
longValue()
|
static
int
|
nextOid(long[] arg0, int arg1)
|
String
|
resolveVarName(String arg0)
|
static
void
|
setSnmpOidTable(SnmpOidTable arg0)
|
Boolean
|
toBoolean()
|
Byte[]
|
toByte()
|
Integer
|
toInteger()
|
Long
|
toLong()
|
String
|
toOctetString()
|
SnmpOid
|
toOid()
Returns the value encoded as an OID.
|
static
SnmpOid
|
toOid(long[] arg0, int arg1)
|
String
|
toString()
Returns a string representation of the object.
|
|
From class
com.sun.jmx.snmp.SnmpValue
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Public Constructors
public
SnmpIpAddress
(byte[] bytes)
Constructs a new SnmpIpAddress
from the specified bytes array.
Parameters
bytes
| The four bytes composing the address. |
public
SnmpIpAddress
(long addr)
Constructs a new SnmpIpAddress
from the specified long value.
Parameters
addr
| The initialization value.
|
public
SnmpIpAddress
(String dotAddress)
Constructs a new SnmpIpAddress
from a dot-formatted String
.
The dot-formatted String
is formulated x.x.x.x .
Parameters
dotAddress
| The initialization value. |
public
SnmpIpAddress
(long b1, long b2, long b3, long b4)
Constructs a new SnmpIpAddress
from four long values.
Parameters
b1
| Byte 1. |
b2
| Byte 2. |
b3
| Byte 3. |
b4
| Byte 4. |
Public Methods
public
static
void
appendToOid
(SnmpOid source, SnmpOid dest)
Appends an SnmpOid
representing an SnmpIpAddress
to another OID.
Parameters
source
| An OID representing an SnmpIpAddress value. |
dest
| Where source should be appended.
|
public
byte[]
byteValue
()
Converts the address value to its byte array form.
Returns
- The byte array representation of the value.
public
final
String
getTypeName
()
Returns a textual description of the type object.
Returns
- ASN.1 textual description.
public
static
int
nextOid
(long[] index, int start)
Scans an index OID, skips the address value and returns the position
of the next value.
Parameters
index
| The index array. |
start
| The position in the index array. |
Returns
- The position of the next value.
public
String
stringValue
()
Converts the address to its String
form.
Same as toString()
. Exists only to follow a naming scheme.
Returns
- The
String
representation of the value.
public
static
SnmpOid
toOid
(long[] index, int start)
Extracts the ip address from an index OID and returns its
value converted as an SnmpOid
.
Parameters
index
| The index array. |
start
| The position in the index array. |
Returns
- The OID representing the ip address value.