Interface DNSOperations
- All Superinterfaces:
AutoCloseable,Closeable,Service
DNS Operations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
Service.STATE -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(String path, ServiceRecord record) Delete a service's registered endpoints.voidregister(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
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
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
-