public interface ServiceRegistry<T extends ServiceInstance>
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.yarn.api.records.ApplicationId |
getApplicationId() |
ServiceInstanceSet<T> |
getInstances(String component,
long clusterReadyTimeoutMs)
Client API to get the list of instances registered via the current registry key.
|
String |
register()
Register the current instance - the implementation takes care of the endpoints to register.
|
void |
registerStateChangeListener(ServiceInstanceStateChangeListener<T> listener)
Adds state change listeners for service instances.
|
void |
start()
Start the service registry
|
void |
stop()
Stop the service registry
|
void |
unregister()
Remove the current registration cleanly (implementation defined cleanup)
|
void start()
throws IOException
IOExceptionvoid stop() throws IOException
IOExceptionString register() throws IOException
IOExceptionvoid unregister()
throws IOException
IOExceptionServiceInstanceSet<T> getInstances(String component, long clusterReadyTimeoutMs) throws IOException
component - clusterReadyTimeoutMs - The time to wait for the cluster to be ready, if it's not
started yet. 0 means do not wait.IOExceptionvoid registerStateChangeListener(ServiceInstanceStateChangeListener<T> listener) throws IOException
listener - - state change listenerIOExceptionorg.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
throws IOException
IOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.