Package io.vertx.ext.consul
Class Check
- java.lang.Object
-
- io.vertx.ext.consul.Check
-
public class Check extends Object
Holds check properties- Author:
- Ruslan Sennov
-
-
Constructor Summary
Constructors Constructor Description Check()Default constructorCheckβ(JsonObject check)Constructor from JSONCheckβ(Check other)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequalsβ(Object o)StringgetId()Get the ID of checkStringgetName()Get the name of checkStringgetNode()Get the name of nodeStringgetNotes()Get the human-readable note of checkStringgetOutput()Get the output of checkStringgetServiceId()Get the ID of service with which this check associatedStringgetServiceName()Get the name of service with which this check associatedCheckStatusgetStatus()Get the status of checkinthashCode()ChecksetIdβ(String id)Set the ID of checkChecksetNameβ(String name)Set the name of checkChecksetNodeβ(String node)Set the name of nodeChecksetNotesβ(String notes)Set the human-readable note of checkChecksetOutputβ(String output)Set the output of checkChecksetServiceIdβ(String serviceId)Set the ID of service with which this check associatedChecksetServiceNameβ(String serviceName)Set the name of service with which this check associatedChecksetStatusβ(CheckStatus status)Set the status of checkJsonObjecttoJson()Convert to JSON
-
-
-
Constructor Detail
-
Check
public Check()
Default constructor
-
Check
public Checkβ(Check other)
Copy constructor- Parameters:
other- the one to copy
-
Check
public Checkβ(JsonObject check)
Constructor from JSON- Parameters:
check- the JSON
-
-
Method Detail
-
toJson
public JsonObject toJson()
Convert to JSON- Returns:
- the JSON
-
getId
public String getId()
Get the ID of check- Returns:
- the ID of check
-
getName
public String getName()
Get the name of check- Returns:
- the name of check
-
getNode
public String getNode()
Get the name of node- Returns:
- node name
-
getStatus
public CheckStatus getStatus()
Get the status of check- Returns:
- the status of check
-
getNotes
public String getNotes()
Get the human-readable note of check- Returns:
- the human-readable note of check
-
getOutput
public String getOutput()
Get the output of check- Returns:
- the output of check
-
getServiceId
public String getServiceId()
Get the ID of service with which this check associated- Returns:
- the ID of service with which this check associated
-
getServiceName
public String getServiceName()
Get the name of service with which this check associated- Returns:
- the name of service with which this check associated
-
setId
public Check setIdβ(String id)
Set the ID of check- Parameters:
id- the ID of check- Returns:
- reference to this, for fluency
-
setName
public Check setNameβ(String name)
Set the name of check- Parameters:
name- the name of check- Returns:
- reference to this, for fluency
-
setStatus
public Check setStatusβ(CheckStatus status)
Set the status of check- Parameters:
status- the status of check- Returns:
- reference to this, for fluency
-
setNotes
public Check setNotesβ(String notes)
Set the human-readable note of check- Parameters:
notes- the human-readable note of check- Returns:
- reference to this, for fluency
-
setOutput
public Check setOutputβ(String output)
Set the output of check- Parameters:
output- the output of check- Returns:
- reference to this, for fluency
-
setServiceId
public Check setServiceIdβ(String serviceId)
Set the ID of service with which this check associated- Parameters:
serviceId- the ID of service with which this check associated- Returns:
- reference to this, for fluency
-
setServiceName
public Check setServiceNameβ(String serviceName)
Set the name of service with which this check associated- Parameters:
serviceName- the name of service with which this check associated- Returns:
- reference to this, for fluency
-
setNode
public Check setNodeβ(String node)
Set the name of node- Parameters:
node- the name of node- Returns:
- reference to this, for fluency
-
-