Class ServiceEntry
java.lang.Object
io.vertx.ext.consul.ServiceEntry
Holds properties of service, node and related checks
- Author:
- Ruslan Sennov
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorServiceEntry(JsonObject json) Constructor from JSONServiceEntry(ServiceEntry other) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionAggregatedStatus returns the "best" status for the list of health checks.booleanGet list of checksgetNode()Get nodeGet serviceinthashCode()Set list of checksSet nodesetService(Service service) Set servicetoJson()Convert to JSON
-
Constructor Details
-
ServiceEntry
public ServiceEntry()Default constructor -
ServiceEntry
-
ServiceEntry
-
-
Method Details
-
toJson
-
aggregatedStatus
AggregatedStatus returns the "best" status for the list of health checks. Because a given entry may have many service and node-level health checks attached, this function determines the best representative of the status as as single string using the following heuristic: critical > warning > passing- Returns:
- an aggregated status
-
getNode
-
getService
-
getChecks
-
setNode
Set node- Parameters:
node- node- Returns:
- reference to this, for fluency
-
setService
Set service- Parameters:
service- service- Returns:
- reference to this, for fluency
-
setChecks
Set list of checks- Parameters:
checks- list of checks- Returns:
- reference to this, for fluency
-
equals
-
hashCode
-