public class ServiceEntry extends Object
| Constructor and Description |
|---|
ServiceEntry()
Default constructor
|
ServiceEntry(JsonObject json)
Constructor from JSON
|
ServiceEntry(ServiceEntry other)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
CheckStatus |
aggregatedStatus()
AggregatedStatus returns the "best" status for the list of health checks.
|
boolean |
equals(Object o) |
List<Check> |
getChecks()
Get list of checks
|
Node |
getNode()
Get node
|
Service |
getService()
Get service
|
int |
hashCode() |
ServiceEntry |
setChecks(List<Check> checks)
Set list of checks
|
ServiceEntry |
setNode(Node node)
Set node
|
ServiceEntry |
setService(Service service)
Set service
|
JsonObject |
toJson()
Convert to JSON
|
public ServiceEntry()
public ServiceEntry(ServiceEntry other)
other - the one to copypublic ServiceEntry(JsonObject json)
json - the JSONpublic JsonObject toJson()
public CheckStatus aggregatedStatus()
public Node getNode()
public Service getService()
public ServiceEntry setNode(Node node)
node - nodepublic ServiceEntry setService(Service service)
service - servicepublic ServiceEntry setChecks(List<Check> checks)
checks - list of checksCopyright © 2023 Eclipse. All rights reserved.