@InterfaceAudience.Public @InterfaceStability.Evolving public interface DNSOperations extends Service
Modifier and Type | Method and 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.
|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStop
void register(String path, ServiceRecord record) throws IOException
path
- the ZK path.record
- record providing DNS registration info.IOException
- Any other IO Exception.void delete(String path, ServiceRecord record) throws IOException
path
- the ZK path.record
- service recordIOException
- Any other IO ExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.