public class CuratorServiceRegistryComponent
extends java.lang.Object
| Constructor and Description |
|---|
CuratorServiceRegistryComponent(CuratorComponent curatorComponent) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<java.lang.String> |
getHosts()
Returns the collection of all of the host:port addresses running in the Apollo system.
|
java.util.Collection<<any>> |
getService(java.lang.String serviceName) |
java.util.Map<java.lang.String,java.util.Collection<<any>>> |
getServices() |
java.util.Map<java.net.URI,java.util.Collection<java.lang.String>> |
getServicesByHost() |
java.util.Map<java.lang.String,java.util.Collection<java.net.URI>> |
getServiceURIs() |
void |
init(CuratorComponent curatorComponent) |
<any> |
register(<any> instance) |
<any> |
register(java.lang.String serviceName,
java.lang.String serviceAddress,
int servicePort,
com.lucidworks.apollo.common.models.ResourceDescriptor payload,
java.lang.String uriSpec) |
void |
shutdown() |
void |
unregister(<any> instance) |
public CuratorServiceRegistryComponent(CuratorComponent curatorComponent)
@WhenReady public void init(CuratorComponent curatorComponent) throws java.lang.Exception
java.lang.Exception@PreDestroy
public void shutdown()
throws java.lang.Exception
java.lang.Exceptionpublic <any> register(java.lang.String serviceName,
java.lang.String serviceAddress,
int servicePort,
com.lucidworks.apollo.common.models.ResourceDescriptor payload,
java.lang.String uriSpec)
throws java.lang.Exception
java.lang.Exceptionpublic <any> register(<any> instance)
throws java.lang.Exception
java.lang.Exceptionpublic void unregister(<any> instance)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Collection<java.lang.String> getHosts()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Map<java.net.URI,java.util.Collection<java.lang.String>> getServicesByHost()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Map<java.lang.String,java.util.Collection<java.net.URI>> getServiceURIs()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Collection<<any>> getService(java.lang.String serviceName)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Map<java.lang.String,java.util.Collection<<any>>> getServices()
throws java.lang.Exception
java.lang.Exception