Uses of Class
org.apache.curator.x.discovery.ServiceInstance
-
Packages that use ServiceInstance Package Description org.apache.curator.x.discovery org.apache.curator.x.discovery.details org.apache.curator.x.discovery.strategies -
-
Uses of ServiceInstance in org.apache.curator.x.discovery
Methods in org.apache.curator.x.discovery that return ServiceInstance Modifier and Type Method Description ServiceInstance<T>
ServiceInstanceBuilder. build()
Return a new instance with the currently set valuesServiceInstance<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 POJOMethods in org.apache.curator.x.discovery that return types with arguments of type ServiceInstance 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 serviceMethods in org.apache.curator.x.discovery with parameters of type ServiceInstance Modifier and Type Method Description java.lang.String
UriSpec. build(ServiceInstance<?> serviceInstance)
Build into a UriSpec stringjava.lang.String
UriSpec. build(ServiceInstance<?> serviceInstance, java.util.Map<java.lang.String,java.lang.Object> variables)
Build into a UriSpec stringvoid
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 serviceServiceDiscoveryBuilder<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 instancevoid
ServiceDiscovery. updateService(ServiceInstance<T> service)
Update a service -
Uses of ServiceInstance in org.apache.curator.x.discovery.details
Methods in org.apache.curator.x.discovery.details that return ServiceInstance Modifier and Type Method Description ServiceInstance<T>
InstanceSerializer. deserialize(byte[] bytes)
Deserialize a byte array into an instanceServiceInstance<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 POJOMethods in org.apache.curator.x.discovery.details that return types with arguments of type ServiceInstance 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 instancesjava.util.List<ServiceInstance<T>>
ServiceCacheImpl. getInstances()
java.util.Collection<ServiceInstance<T>>
ServiceDiscoveryImpl. queryForInstances(java.lang.String name)
Return all known instances for the given serviceMethods in org.apache.curator.x.discovery.details with parameters of type ServiceInstance 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 instancebyte[]
InstanceSerializer. serialize(ServiceInstance<T> instance)
Serialize an instance into bytesbyte[]
JsonInstanceSerializer. serialize(ServiceInstance<T> instance)
void
ServiceDiscoveryImpl. unregisterService(ServiceInstance<T> service)
Unregister/remove a service instancevoid
ServiceDiscoveryImpl. updateService(ServiceInstance<T> service)
Constructors in org.apache.curator.x.discovery.details with parameters of type ServiceInstance Constructor Description ServiceDiscoveryImpl(org.apache.curator.framework.CuratorFramework client, java.lang.String basePath, InstanceSerializer<T> serializer, ServiceInstance<T> thisInstance, boolean watchInstances)
-
Uses of ServiceInstance in org.apache.curator.x.discovery.strategies
Methods in org.apache.curator.x.discovery.strategies that return ServiceInstance 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)
-