public interface ServiceRegistry
Modifier and Type | Method and Description |
---|---|
ServiceInstanceSet |
getInstances(String component)
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 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
IOException
void stop() throws IOException
IOException
String register() throws IOException
IOException
void unregister() throws IOException
IOException
ServiceInstanceSet getInstances(String component) throws IOException
component
- IOException
void registerStateChangeListener(ServiceInstanceStateChangeListener listener) throws IOException
listener
- - state change listenerIOException
Copyright © 2016 The Apache Software Foundation. All rights reserved.