| Package | Description |
|---|---|
| org.apache.curator.x.discovery | |
| org.apache.curator.x.discovery.details | |
| org.apache.curator.x.discovery.strategies |
| Modifier and Type | Method and Description |
|---|---|
ServiceInstance<T> |
ServiceInstanceBuilder.build()
Return a new instance with the currently set values
|
ServiceInstance<T> |
ServiceProvider.getInstance()
Return an instance for a single use.
|
ServiceInstance<T> |
ProviderStrategy.getInstance(InstanceProvider<T> instanceProvider)
Given a source of instances, return one of them for a single use.
|
ServiceInstance<T> |
ServiceDiscovery.queryForInstance(String name,
String id)
Return a service instance POJO
|
| Modifier and Type | Method and Description |
|---|---|
Collection<ServiceInstance<T>> |
ServiceProvider.getAllInstances()
Return the current available set of instances IMPORTANT: users
should not hold on to the instance returned.
|
List<ServiceInstance<T>> |
ServiceCache.getInstances()
Return the current list of instances.
|
Collection<ServiceInstance<T>> |
ServiceDiscovery.queryForInstances(String name)
Return all known instances for the given service
|
| Modifier and Type | Method and Description |
|---|---|
String |
UriSpec.build(ServiceInstance<?> serviceInstance)
Build into a UriSpec string
|
String |
UriSpec.build(ServiceInstance<?> serviceInstance,
Map<String,Object> variables)
Build into a UriSpec string
|
void |
ServiceProvider.noteError(ServiceInstance<T> instance)
Take note of an error connecting to the given instance.
|
void |
ServiceDiscovery.registerService(ServiceInstance<T> service)
Register/re-register a service
|
ServiceDiscoveryBuilder<T> |
ServiceDiscoveryBuilder.thisInstance(ServiceInstance<T> thisInstance)
Optional - instance that represents the service that is running.
|
void |
ServiceDiscovery.unregisterService(ServiceInstance<T> service)
Unregister/remove a service instance
|
void |
ServiceDiscovery.updateService(ServiceInstance<T> service)
Update a service
|
| Modifier and Type | Method and Description |
|---|---|
ServiceInstance<T> |
JsonInstanceSerializer.deserialize(byte[] bytes) |
ServiceInstance<T> |
InstanceSerializer.deserialize(byte[] bytes)
Deserialize a byte array into an instance
|
ServiceInstance<T> |
ServiceProviderImpl.getInstance()
Return an instance for a single use.
|
ServiceInstance<T> |
ServiceDiscoveryImpl.queryForInstance(String name,
String id)
Return a service instance POJO
|
| Modifier and Type | Method and Description |
|---|---|
Collection<ServiceInstance<T>> |
ServiceProviderImpl.getAllInstances()
Return the current available set of instances IMPORTANT: users
should not hold on to the instance returned.
|
List<ServiceInstance<T>> |
ServiceCacheImpl.getInstances() |
List<ServiceInstance<T>> |
InstanceProvider.getInstances()
Return the current available set of instances
|
Collection<ServiceInstance<T>> |
ServiceDiscoveryImpl.queryForInstances(String name)
Return all known instances for the given service
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ServiceDiscoveryImpl.internalRegisterService(ServiceInstance<T> service) |
void |
ServiceProviderImpl.noteError(ServiceInstance<T> instance) |
void |
ServiceDiscoveryImpl.registerService(ServiceInstance<T> service)
Register/re-register/update a service instance
|
byte[] |
JsonInstanceSerializer.serialize(ServiceInstance<T> instance) |
byte[] |
InstanceSerializer.serialize(ServiceInstance<T> instance)
Serialize an instance into bytes
|
void |
ServiceDiscoveryImpl.unregisterService(ServiceInstance<T> service)
Unregister/remove a service instance
|
void |
ServiceDiscoveryImpl.updateService(ServiceInstance<T> service) |
| Constructor and Description |
|---|
ServiceDiscoveryImpl(org.apache.curator.framework.CuratorFramework client,
String basePath,
InstanceSerializer<T> serializer,
ServiceInstance<T> thisInstance,
boolean watchInstances) |
| Modifier and Type | Method and Description |
|---|---|
ServiceInstance<T> |
StickyStrategy.getInstance(InstanceProvider<T> instanceProvider) |
ServiceInstance<T> |
RoundRobinStrategy.getInstance(InstanceProvider<T> instanceProvider) |
ServiceInstance<T> |
RandomStrategy.getInstance(InstanceProvider<T> instanceProvider) |
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.