public class ReverseDNSRunnable
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
ReverseDNSRunnable(java.lang.String ipAddress)
Simple constructor which also pre-sets hostName attribute for failover situations.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get()
Getter method to buildIdentifier result of lookup.
|
void |
run()
Runnable implementation to thread the work done in this class, allowing the
implementer to set a thread timeout and thereby short-circuit the lookup.
|
void |
set(java.lang.String hostName)
Glorified setter with logging.
|
java.lang.String |
toString() |
public ReverseDNSRunnable(java.lang.String ipAddress)
ipAddress
- the ip address on which reverse DNS will be done.public void run()
run
in interface java.lang.Runnable
public void set(java.lang.String hostName)
hostName
- the resolved hostnamepublic java.lang.String get()
public java.lang.String toString()
toString
in class java.lang.Object