java.lang.Object | |
↳ | com.sun.jmx.snmp.SnmpEngineId |
This class is handling an SnmpEngineId
data. It copes with binary as well as String
representation of an engine Id. A string format engine is an hex string starting with 0x.
This API is a Sun Microsystems internal API and is subject to change without notice.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Idem { @link
com.sun.jmx.snmp.SnmpEngineId#createEngineId(java.lang.String) }
with the ability to provide your own separator.
| |||||||||||
Generates a unique engine Id.
| |||||||||||
Generates an engine Id based on an InetAddress.
| |||||||||||
Generates a unique engine Id.
| |||||||||||
Generates an engine Id based on an InetAddress.
| |||||||||||
Generates an engine Id that is unique to the host the agent is running on.
| |||||||||||
Generates a unique engine Id.
| |||||||||||
Generates a unique engine Id.
| |||||||||||
Generates an engine Id based on the passed array.
| |||||||||||
Generates a unique engine Id. | |||||||||||
Tests
SnmpEngineId instance equality. | |||||||||||
Returns a binary engine Id.
| |||||||||||
If a string of the format <address>:<port>:<IANA number> has been provided at creation time, this string is returned.
| |||||||||||
Returns a hash code value for the object.
| |||||||||||
Translates an engine Id in an SnmpOid format.
| |||||||||||
Returns a string format engine Id.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Idem { @link com.sun.jmx.snmp.SnmpEngineId#createEngineId(java.lang.String) } with the ability to provide your own separator. This allows IPv6 address format handling (eg: providing @ as separator).
str | The string to parse. |
---|---|
separator | the separator to use. If null is provided, the default separator ":" is used. |
UnknownHostException | if the host name contained in the textual format is unknown. |
---|---|
IllegalArgumentException | when :
|
Generates a unique engine Id. The engine Id unicity is based on the host IP address and port. The IP address is the passed one, it handles IPv4 and IPv6 hosts. The creation algorithm uses the passed IANA number.
addr | The IP address the SNMPv3 Adaptor Server is listening to. |
---|---|
port | The TCP/IP port the SNMPv3 Adaptor Server is listening to. |
iana | Your enterprise IANA number. |
UnknownHostException | if the provided InetAddress is null.
|
---|
Generates an engine Id based on an InetAddress. Handles IPv4 and IPv6 addresses. The creation algorithm uses the sun IANA number (42).
addr | The IP address the SNMPv3 Adaptor Server is listening to. |
---|
UnknownHostException | if the provided
InetAddress is null.
|
---|
Generates a unique engine Id. The engine Id unicity is based on the host IP address and port. The IP address used is the localhost one. The creation algorithm uses the SUN Microsystems IANA number (42).
port | The TCP/IP port the SNMPv3 Adaptor Server is listening to. |
---|
UnknownHostException | if the local host name used to calculate the id is unknown. |
---|
Generates an engine Id based on an InetAddress. Handles IPv4 and IPv6 addresses. The creation algorithm uses the passed IANA number.
iana | Your enterprise IANA number. |
---|---|
addr | The IP address the SNMPv3 Adaptor Server is listening to. |
UnknownHostException | if the provided InetAddress is null.
|
---|
Generates an engine Id that is unique to the host the agent is running on. The engine Id unicity is system time based. The creation algorithm uses the SUN Microsystems IANA number (42).
Generates a unique engine Id. The engine Id unicity is based on the host IP address and port. The IP address is the localhost one. The creation algorithm uses the passed IANA number.
port | The TCP/IP port the SNMPv3 Adaptor Server is listening to. |
---|---|
iana | Your enterprise IANA number. |
UnknownHostException | if the local host name used to calculate the id is unknown. |
---|
Generates a unique engine Id. The engine Id unicity is based on the host IP address and port. The IP address used is the passed one. The creation algorithm uses the SUN Microsystems IANA number (42).
address | The IP address the SNMPv3 Adaptor Server is listening to. |
---|---|
port | The TCP/IP port the SNMPv3 Adaptor Server is listening to. |
if the provided address is null. | |
IllegalArgumentException |
Generates an engine Id based on the passed array.
IllegalArgumentException | when:
|
---|
Generates a unique engine Id. Hexadecimal strings as well as a textual description are supported. The textual format is as follow:
<address>:<port>:<IANA number>
The allowed formats :
str | The string to parse. |
---|
UnknownHostException | if the host name contained in the textual format is unknown. |
---|---|
IllegalArgumentException | when :
|
Tests SnmpEngineId
instance equality. Two SnmpEngineId
are equal if they have the same value.
a | the reference object with which to compare. |
---|
true
if the two SnmpEngineId
are equals, false
otherwise.
Returns a binary engine Id.
If a string of the format <address>:<port>:<IANA number> has been provided at creation time, this string is returned.
Returns a hash code value for the object. This method is
supported for the benefit of hashtables such as those provided by
java.util.Hashtable
.
The general contract of hashCode
is:
hashCode
method on each of
the two objects must produce the same integer result.
equals(java.lang.Object)
method, then calling the hashCode method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hashtables.
As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)
Translates an engine Id in an SnmpOid format. This is useful when dealing with USM MIB indexes.
The oid format is :