Class ArqCubeNameService

java.lang.Object
org.arquillian.cube.openshift.impl.dns.ArqCubeNameService
All Implemented Interfaces:
InvocationHandler, INameService

public class ArqCubeNameService extends Object implements INameService
CENameService/ArqCubeNameService
Author:
Rob Cernich, fspolti
  • Constructor Details

    • ArqCubeNameService

      public ArqCubeNameService()
  • Method Details

    • setRoutes

      public static void setRoutes(io.fabric8.openshift.api.model.RouteList routeList, String routerHost)
    • lookupAllHostAddr

      public InetAddress[] lookupAllHostAddr(String host) throws UnknownHostException
      Description copied from interface: INameService
      Lookup a host mapping by name. Retrieve the IP addresses associated with a host
      Specified by:
      lookupAllHostAddr in interface INameService
      Parameters:
      host - the specified hostname
      Returns:
      array of IP addresses for the requested host
      Throws:
      UnknownHostException - if no IP address for the host could be found
    • getHostByAddr

      public String getHostByAddr(byte[] addr) throws UnknownHostException
      Description copied from interface: INameService
      Lookup the host corresponding to the IP address provided
      Specified by:
      getHostByAddr in interface INameService
      Parameters:
      addr - byte array representing an IP address
      Returns:
      String representing the host name mapping
      Throws:
      UnknownHostException - if no host found for the specified IP address