Uses of Class
org.apache.curator.x.discovery.ServiceInstance
Packages that use ServiceInstance
Package
Description
-
Uses of ServiceInstance in discovery
Methods in discovery that return ServiceInstance -
Uses of ServiceInstance in org.apache.curator.x.discovery
Methods in org.apache.curator.x.discovery that return ServiceInstanceModifier 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 POJOMethods in org.apache.curator.x.discovery that return types with arguments of type ServiceInstanceModifier 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 serviceMethods in org.apache.curator.x.discovery with parameters of type ServiceInstanceModifier 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
Methods in org.apache.curator.x.discovery.details that return ServiceInstanceModifier 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 POJOMethods in org.apache.curator.x.discovery.details that return types with arguments of type ServiceInstanceModifier 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 serviceMethods in org.apache.curator.x.discovery.details with parameters of type ServiceInstanceModifier 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) Constructors in org.apache.curator.x.discovery.details with parameters of type ServiceInstanceModifierConstructorDescriptionServiceDiscoveryImpl
(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
Methods in org.apache.curator.x.discovery.server.entity that return ServiceInstanceModifier 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) Methods in org.apache.curator.x.discovery.server.entity that return types with arguments of type ServiceInstanceMethods in org.apache.curator.x.discovery.server.entity with parameters of type ServiceInstanceModifier 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) Method parameters in org.apache.curator.x.discovery.server.entity with type arguments of type ServiceInstanceModifier 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) Constructor parameters in org.apache.curator.x.discovery.server.entity with type arguments of type ServiceInstance -
Uses of ServiceInstance in org.apache.curator.x.discovery.server.rest
Methods in org.apache.curator.x.discovery.server.rest with parameters of type ServiceInstanceModifier 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
Methods in org.apache.curator.x.discovery.strategies that return ServiceInstanceModifier and TypeMethodDescriptionRandomStrategy.getInstance
(InstanceProvider<T> instanceProvider) RoundRobinStrategy.getInstance
(InstanceProvider<T> instanceProvider) StickyStrategy.getInstance
(InstanceProvider<T> instanceProvider)