public class ServiceRegistryMethods extends Object
foo.bar.HelloYouGloop API, then you can use methods here for an instance using
foo.bar.HelloYouas the argument.
Constructor and Description |
---|
ServiceRegistryMethods(io.toro.martini.service.ServiceRegistry serviceRegistry) |
Modifier and Type | Method and Description |
---|---|
static String |
getHostUri(String serviceName)
Returns a hostname or ip address of an instance that can be used to service the uri
|
static GloopModel |
getServiceInstance(String serviceName)
Returns an Optional potentially containing information about an instance that can service the uri
|
static Optional<org.springframework.cloud.client.ServiceInstance> |
getServiceInstanceOptional(String serviceName)
Returns an Optional potentially containing information about an instance that can service the name
|
static GloopModel |
getServiceInstances(String serviceName)
Returns a list of all supporting instances, containing information about these instances that can service the uri
|
static Set<org.springframework.cloud.client.ServiceInstance> |
getServiceInstancesSet(String serviceName)
Returns a list of all supporting instances, containing information about these instances that can service the uri
|
static Set<String> |
getServices()
Returns a list of services currently known to the service registry
|
public ServiceRegistryMethods(io.toro.martini.service.ServiceRegistry serviceRegistry)
public static Set<String> getServices()
public static Optional<org.springframework.cloud.client.ServiceInstance> getServiceInstanceOptional(String serviceName)
public static Set<org.springframework.cloud.client.ServiceInstance> getServiceInstancesSet(String serviceName)
@GloopObjectParameter(value="serviceInstance{\nserviceInstance#io.toro.martini.service.ServiceInstance{\n}\n}\n") public static GloopModel getServiceInstance(String serviceName)
@GloopObjectParameter(value="serviceInstances{\nserviceInstances#io.toro.martini.service.ServiceInstance[]{\n}\n}\n") public static GloopModel getServiceInstances(String serviceName)
Copyright © 2023. All rights reserved.