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