Class ArqCubeNameService
java.lang.Object
org.arquillian.cube.openshift.impl.dns.ArqCubeNameService
- All Implemented Interfaces:
InvocationHandler,INameService
CENameService/ArqCubeNameService
- Author:
- Rob Cernich, fspolti
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHostByAddr(byte[] addr) Lookup the host corresponding to the IP address providedlookupAllHostAddr(String host) Lookup a host mapping by name.static voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.arquillian.cube.openshift.impl.dns.INameService
invoke
-
Constructor Details
-
ArqCubeNameService
public ArqCubeNameService()
-
-
Method Details
-
setRoutes
-
lookupAllHostAddr
Description copied from interface:INameServiceLookup a host mapping by name. Retrieve the IP addresses associated with a host- Specified by:
lookupAllHostAddrin interfaceINameService- Parameters:
host- the specified hostname- Returns:
- array of IP addresses for the requested host
- Throws:
UnknownHostException- if no IP address for thehostcould be found
-
getHostByAddr
Description copied from interface:INameServiceLookup the host corresponding to the IP address provided- Specified by:
getHostByAddrin interfaceINameService- Parameters:
addr- byte array representing an IP address- Returns:
Stringrepresenting the host name mapping- Throws:
UnknownHostException- if no host found for the specified IP address
-