public class Service extends Object
It has at least one instance (container) and it is healthy if and only if all its instances are healthy.
The svc name is used to instruct the DiscoveryProvider and
make the svc discoverable by other services.
Svc| Constructor and Description |
|---|
Service() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkStatus(ServiceInstance.Status status)
Checks whether all the
ServiceInstances in this svc are in the specified ServiceInstance.Status. |
ServiceDescriptor |
getDescriptor() |
Set<ServiceInstance> |
getInstances() |
String |
getName() |
List<String> |
getWarnings() |
boolean |
isHealthy() |
public boolean isHealthy()
public boolean checkStatus(ServiceInstance.Status status)
ServiceInstances in this svc are in the specified ServiceInstance.Status.status - the ServiceInstance.Status to checkServiceInstances in this svc are in the specified status, false otherwise.public Set<ServiceInstance> getInstances()
ServiceInstancepublic ServiceDescriptor getDescriptor()
Copyright © 2021. All rights reserved.