Class ReverseDNSRunnable
- java.lang.Object
-
- org.apereo.cas.support.spnego.util.ReverseDNSRunnable
-
- All Implemented Interfaces:
java.lang.Runnable
public class ReverseDNSRunnable extends java.lang.Object implements java.lang.RunnableUtility class to perform DNS work in a threaded, timeout-able way Adapted from: http://thushw.blogspot.com/2009/11/resolving-domain-names-quickly-with.html.- Since:
- 4.1
-
-
Constructor Summary
Constructors Constructor Description ReverseDNSRunnable(java.lang.String ipAddress)Simple constructor which also pre-sets hostName attribute for failover situations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()Runnable implementation to thread the work done in this class, allowing the implementer to set a thread timeout and thereby short-circuit the lookup.voidset(java.lang.String hostName)Glorified setter with logging.
-
-
-
Method Detail
-
run
public 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.- Specified by:
runin interfacejava.lang.Runnable
-
set
public void set(java.lang.String hostName)
Glorified setter with logging.- Parameters:
hostName- the resolved hostname
-
-