Interface DNSOperations

All Superinterfaces:
AutoCloseable, Closeable, org.apache.hadoop.service.Service
All Known Implementing Classes:
RegistryDNS

@Public @Evolving public interface DNSOperations extends org.apache.hadoop.service.Service
DNS Operations.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service

    org.apache.hadoop.service.Service.STATE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(String path, ServiceRecord record)
    Delete a service's registered endpoints.
    void
    register(String path, ServiceRecord record)
    Register a service based on a service record.

    Methods inherited from interface org.apache.hadoop.service.Service

    close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStop
  • Method Details

    • register

      void register(String path, ServiceRecord record) throws IOException
      Register a service based on a service record.
      Parameters:
      path - the ZK path.
      record - record providing DNS registration info.
      Throws:
      IOException - Any other IO Exception.
    • delete

      void delete(String path, ServiceRecord record) throws IOException
      Delete a service's registered endpoints. If the operation returns without an error then the entry has been deleted.
      Parameters:
      path - the ZK path.
      record - service record
      Throws:
      IOException - Any other IO Exception