Uses of Class
org.apache.curator.x.discovery.ServiceInstance
Package
Description
-
Uses of ServiceInstance in discovery
-
Uses of ServiceInstance in org.apache.curator.x.discovery
Modifier and TypeMethodDescriptionServiceInstanceBuilder.build()
Return a new instance with the currently set valuesProviderStrategy.getInstance
(InstanceProvider<T> instanceProvider) Given a source of instances, return one of them for a single use.ServiceProvider.getInstance()
Return an instance for a single use.ServiceDiscovery.queryForInstance
(String name, String id) Return a service instance POJOModifier and TypeMethodDescriptionServiceProvider.getAllInstances()
Return the current available set of instances IMPORTANT: users should not hold on to the instance returned.ServiceCache.getInstances()
Return the current list of instances.ServiceDiscovery.queryForInstances
(String name) Return all known instances for the given serviceModifier and TypeMethodDescriptionUriSpec.build
(ServiceInstance<?> serviceInstance) Build into a UriSpec stringUriSpec.build
(ServiceInstance<?> serviceInstance, Map<String, 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.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
Modifier and TypeMethodDescriptionInstanceSerializer.deserialize
(byte[] bytes) Deserialize a byte array into an instanceJsonInstanceSerializer.deserialize
(byte[] bytes) ServiceProviderImpl.getInstance()
Return an instance for a single use.ServiceDiscoveryImpl.queryForInstance
(String name, String id) Return a service instance POJOModifier and TypeMethodDescriptionServiceProviderImpl.getAllInstances()
Return the current available set of instances IMPORTANT: users should not hold on to the instance returned.InstanceProvider.getInstances()
Return the current available set of instancesServiceCacheImpl.getInstances()
ServiceDiscoveryImpl.queryForInstances
(String name) Return all known instances for the given serviceModifier and TypeMethodDescriptionprotected 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) ModifierConstructorDescriptionServiceDiscoveryImpl
(CuratorFramework client, String basePath, InstanceSerializer<T> serializer, ServiceInstance<T> thisInstance, boolean watchInstances) ServiceDiscoveryImpl
(CuratorFramework client, DiscoveryPathConstructor pathConstructor, InstanceSerializer<T> serializer, ServiceInstance<T> thisInstance, boolean watchInstances) -
Uses of ServiceInstance in org.apache.curator.x.discovery.server.entity
Modifier and TypeMethodDescriptionJsonServiceInstanceMarshaller.readFrom
(Class<ServiceInstance<T>> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) Modifier and TypeMethodDescriptionlong
JsonServiceInstanceMarshaller.getSize
(ServiceInstance<T> serviceInstance, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) void
JsonServiceInstanceMarshaller.writeTo
(ServiceInstance<T> serviceInstance, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Modifier and TypeMethodDescriptionJsonServiceInstanceMarshaller.readFrom
(Class<ServiceInstance<T>> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) -
Uses of ServiceInstance in org.apache.curator.x.discovery.server.rest
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
DiscoveryResource.putService
(ServiceInstance<T> instance, String name, String id) -
Uses of ServiceInstance in org.apache.curator.x.discovery.strategies
Modifier and TypeMethodDescriptionRandomStrategy.getInstance
(InstanceProvider<T> instanceProvider) RoundRobinStrategy.getInstance
(InstanceProvider<T> instanceProvider) StickyStrategy.getInstance
(InstanceProvider<T> instanceProvider)