Modifier and Type | Method and Description |
---|---|
ServiceInstance<InstanceDetails> |
ExampleServer.getThisInstance() |
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(CuratorFramework client,
String basePath,
InstanceSerializer<T> serializer,
ServiceInstance<T> thisInstance,
boolean watchInstances) |
Modifier and Type | Method and Description |
---|---|
ServiceInstance<T> |
JsonServiceInstanceMarshaller.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 Type | Method and Description |
---|---|
List<ServiceInstance<T>> |
ServiceInstances.getServices() |
Modifier and Type | Method and Description |
---|---|
long |
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 Type | Method and Description |
---|---|
ServiceInstance<T> |
JsonServiceInstanceMarshaller.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 and Description |
---|
ServiceInstances(Collection<? extends ServiceInstance<T>> c) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
DiscoveryResource.putService(ServiceInstance<T> instance,
String name,
String id) |
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–2019 The Apache Software Foundation. All rights reserved.