|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.discovery.components.IPPollAddress
An IPPollAddress contains an IP Address, retry count, an associated timeout, and the JSDT client name of the ICMP service monitor instance that generated the request. The address is stored in a dotted decimal format. The timeout should be stored in 1/1000th of a second.
Field Summary | |
private String |
m_address
The dotted decimal IPv4 address for the poll. |
private String |
m_jsdtSenderName
The JSDT client name of the ICMP service monitor instance that generated this request. |
private long |
m_retries
The number of times to attempt to contact the remote. |
private long |
m_timeout
The timeout for the poller in 1/1000th of a second. |
Constructor Summary | |
private |
IPPollAddress()
The default constructor is marked private and will always throw an UnsupportedOperationException. |
|
IPPollAddress(String ipAddress,
long timeout,
long 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. |
String |
getAddress()
Returns the current IPv4 address for this object in the dotted decimal format. |
long |
getRetries()
Returns the current number of retries set for this address. |
String |
getSenderName()
Returns the JSDT client name associated with the ICMP service monitor responsible for generating this request. |
long |
getTimeout()
Returns the timeout in 1/1000th of a second increments. |
void |
setSenderName(String sender)
Sets the JSDT client name associated with this request |
Methods inherited from class java.lang.Object |
|
Field Detail |
private String m_jsdtSenderName
private String m_address
private long m_timeout
private long m_retries
Constructor Detail |
private IPPollAddress() throws UnsupportedOperationException
The default constructor is marked private and will always throw an UnsupportedOperationException. This is to prevent the use of the default constructor.
UnsupportedOperationException
- Always thrown.public IPPollAddress(String ipAddress, long timeout, long 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.Method Detail |
public long getTimeout()
Returns the timeout in 1/1000th of a second increments.
public long getRetries()
Returns the current number of retries set for this address.
public String getAddress()
Returns the current IPv4 address for this object in the dotted decimal format.
public String getSenderName()
Returns the JSDT client name associated with the ICMP service monitor responsible for generating this request.
public void setSenderName(String sender)
Sets the JSDT client name associated with this request
sender
- The JSDT client name which sent this request.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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |