public class IPPollAddress extends Object implements Serializable
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 and Description |
---|
IPPollAddress(String foreignSource,
String location,
InetAddress ipAddress,
long timeout,
int retries)
Constructs an IPPollAddress object with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Returns true if the passed object is equal to self.
|
InetAddress |
getAddress()
Returns the internet address encapsulated in the object.
|
String |
getForeignSource()
Foreign source where this address should be persisted.
|
String |
getLocation()
Network location of this address.
|
int |
getRetries()
Returns the current number of retries set for this address.
|
long |
getTimeout()
Returns the timeout in 1/1000th of a second increments.
|
String |
toString() |
public IPPollAddress(String foreignSource, String location, InetAddress ipAddress, long timeout, int retries)
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.public String getForeignSource()
public String getLocation()
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(Object object)
Returns true if the passed object is equal to self. The objects must be equal in address, timeout, and the number of retries.
equals
in class Object
pollAddr
- a IPPollAddress
object.Copyright © 2021. All rights reserved.