Interface DNSOperations

All Superinterfaces:
AutoCloseable, Closeable, Service

@Public @Evolving public interface DNSOperations extends Service
DNS Operations.
  • 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