|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.model.discovery.IPPollAddress
public class IPPollAddress
This class is used to represent the polling information needed by the discovery process. Each instance encapsulates an internet address, timeout in milliseconds, and a retry count.
| Constructor Summary | |
|---|---|
IPPollAddress(String ipAddress,
long timeout,
int retries)
Constructs an IPPollAddress object with the specified parameters. |
|
| Method Summary | |
|---|---|
boolean |
equals(IPPollAddress pollAddr)
Returns true if the passed object is equal to self. |
InetAddress |
getAddress()
Returns the internet address encapsulated in the object. |
int |
getRetries()
Returns the current number of retries set for this address. |
long |
getTimeout()
Returns the timeout in 1/1000th of a second increments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IPPollAddress(String ipAddress,
long timeout,
int retries)
throws UnknownHostException
Constructs an IPPollAddress object with the specified parameters.
ipAddress - The Dotted Decimal IPv4 Address.timeout - The timeout between retries in 1/1000th of a second.retries - The number of times to attempt to contact the address.
UnknownHostException - Thrown by the InetAddress class if the hostname cannot be
resolved.| Method Detail |
|---|
public long getTimeout()
Returns the timeout in 1/1000th of a second increments.
public int getRetries()
Returns the current number of retries set for this address.
public InetAddress getAddress()
public boolean equals(IPPollAddress pollAddr)
Returns true if the passed object is equal to self. The objects must be equal in address, timeout, and the number of retries.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||