Uses of Class
org.kiwiproject.registry.model.ServiceInstance
Package
Description
-
Uses of ServiceInstance in org.kiwiproject.registry.client
Modifier and TypeMethodDescriptionstatic List<ServiceInstance>
ServiceInstanceFilter.filterInstancesByVersion
(List<ServiceInstance> serviceInstances, RegistryClient.InstanceQuery query) Filter the given service instances using thequery
, by minimum and/or preferred versions if specified.MultiRegistryClient.findAllServiceInstancesBy
(RegistryClient.InstanceQuery query) Attempts to find all service instances from the givenRegistryClient.InstanceQuery
.NoOpRegistryClient.findAllServiceInstancesBy
(RegistryClient.InstanceQuery query) Always returns an empty, unmodifiable list.default List<ServiceInstance>
RegistryClient.findAllServiceInstancesBy
(String serviceName) Attempts to find all service instances with the given service name.RegistryClient.findAllServiceInstancesBy
(RegistryClient.InstanceQuery query) Attempts to find all service instances from the givenRegistryClient.InstanceQuery
.static List<ServiceInstance>
ServiceInstanceFilter.findInstancesWithLatestVersion
(List<ServiceInstance> serviceInstances) Finds the latest version in the given list of service instances, then returns a new list containing only instances having that latest version.MultiRegistryClient.findServiceInstanceBy
(String serviceName, String instanceId) Attempts to find a service instance with the given service name and the given instance id.NoOpRegistryClient.findServiceInstanceBy
(String serviceName, String instanceId) Always returns an empty Optional.default Optional<ServiceInstance>
RegistryClient.findServiceInstanceBy
(String serviceName) Attempts to find a service instance with the given service name.RegistryClient.findServiceInstanceBy
(String serviceName, String instanceId) Attempts to find a service instance with the given service name and the given instance id.default Optional<ServiceInstance>
RegistryClient.findServiceInstanceBy
(RegistryClient.InstanceQuery query) Attempts to find a service instance from the givenRegistryClient.InstanceQuery
.MultiRegistryClient.retrieveAllRegisteredInstances()
Retrieves all registered service instances from the registry.NoOpRegistryClient.retrieveAllRegisteredInstances()
Always returns an empty, unmodifiable list.RegistryClient.retrieveAllRegisteredInstances()
Retrieves all registered service instances from the registry.Modifier and TypeMethodDescriptionstatic boolean
ServiceInstanceFilter.versionIsAtLeast
(ServiceInstance instance, String version) Is the version of theServiceInstance
the same or higher thanversion
?static boolean
ServiceInstanceFilter.versionIsExactly
(ServiceInstance instance, String version) Is the version of theServiceInstance
the same asversion
?Modifier and TypeMethodDescriptionstatic List<ServiceInstance>
ServiceInstanceFilter.filterInstancesByVersion
(List<ServiceInstance> serviceInstances, RegistryClient.InstanceQuery query) Filter the given service instances using thequery
, by minimum and/or preferred versions if specified.static List<ServiceInstance>
ServiceInstanceFilter.findInstancesWithLatestVersion
(List<ServiceInstance> serviceInstances) Finds the latest version in the given list of service instances, then returns a new list containing only instances having that latest version. -
Uses of ServiceInstance in org.kiwiproject.registry.consul.client
Modifier and TypeMethodDescriptionConsulRegistryClient.findAllServiceInstancesBy
(RegistryClient.InstanceQuery query) ConsulRegistryClient.findServiceInstanceBy
(String serviceName, String instanceId) ConsulRegistryClient.retrieveAllRegisteredInstances()
Returns all registered services in Consul. -
Uses of ServiceInstance in org.kiwiproject.registry.consul.server
Modifier and TypeMethodDescriptionConsulRegistryService.createCandidateFrom
(ServiceInfo serviceInfo) ConsulRegistryService.register
(ServiceInstance serviceToRegister) ConsulRegistryService.updateStatus
(ServiceInstance.Status newStatus) Modifier and TypeMethodDescriptionConsulHelpers.newDefaultMetadata
(ServiceInstance serviceInstance) Creates a map with default metadata items that theConsulRegistryClient
will be looking for when it converts a registered service back into aServiceInstance
.ConsulRegistryService.register
(ServiceInstance serviceToRegister) -
Uses of ServiceInstance in org.kiwiproject.registry.eureka.client
Modifier and TypeMethodDescriptionEurekaRegistryClient.findAllServiceInstancesBy
(RegistryClient.InstanceQuery query) EurekaRegistryClient.findServiceInstanceBy
(String serviceName, String instanceId) EurekaRegistryClient.retrieveAllRegisteredInstances()
-
Uses of ServiceInstance in org.kiwiproject.registry.eureka.common
Modifier and TypeMethodDescriptionEurekaInstance.toServiceInstance()
EurekaInstance.toServiceInstance
(NativeRegistryData nativeRegistryData) Modifier and TypeMethodDescriptionstatic EurekaInstance
EurekaInstance.fromServiceInstance
(ServiceInstance serviceInstance) -
Uses of ServiceInstance in org.kiwiproject.registry.eureka.server
Modifier and TypeMethodDescriptionEurekaRegistryService.createCandidateFrom
(ServiceInfo serviceInfo) EurekaRegistryService.register
(ServiceInstance serviceToRegister) EurekaRegistryService.updateStatus
(ServiceInstance.Status newStatus) Modifier and TypeMethodDescriptionEurekaRegistryService.register
(ServiceInstance serviceToRegister) -
Uses of ServiceInstance in org.kiwiproject.registry.model
Modifier and TypeMethodDescriptionServiceInstance.ServiceInstanceBuilder.build()
static ServiceInstance
ServiceInstance.fromServiceInfo
(ServiceInfo serviceInfo) Returns a newServiceInstanceBuilder
built from a givenServiceInfo
.ServiceInstance.withHostName
(String hostName) ServiceInstance.withInstanceId
(String instanceId) ServiceInstance.withMetadata
(Map<String, String> metadata) Used to store extra data in a discovery service for this instanceServiceInstance.withNativeRegistryData
(Map<String, Object> nativeRegistryData) Used to store native registry data that includes data mapped intoServiceInstance
as well as any additional information that is not mapped.ServiceInstance.withStatus
(ServiceInstance.Status status) -
Uses of ServiceInstance in org.kiwiproject.registry.server
Modifier and TypeMethodDescriptionNoopRegistryService.createCandidateFrom
(ServiceInfo serviceInfo) RegistryService.createCandidateFrom
(ServiceInfo serviceInfo) Creates a newServiceInstance
instance from aServiceInfo
that can be registered with the registry server.NoopRegistryService.register
(ServiceInstance serviceToRegister) RegistryService.register
(ServiceInstance serviceToRegister) Registers aServiceInstance
with the registry server and returns a new instance containing information about the registered instance.NoopRegistryService.updateStatus
(ServiceInstance.Status newStatus) RegistryService.updateStatus
(ServiceInstance.Status newStatus) Sends an update to the registry server to inform of a service status changeModifier and TypeMethodDescriptionNoopRegistryService.register
(ServiceInstance serviceToRegister) RegistryService.register
(ServiceInstance serviceToRegister) Registers aServiceInstance
with the registry server and returns a new instance containing information about the registered instance.