Package io.dropwizard.health
Class HealthStateView
- java.lang.Object
-
- io.dropwizard.health.HealthStateView
-
- All Implemented Interfaces:
Comparable<HealthStateView>
public final class HealthStateView extends Object implements Comparable<HealthStateView>
-
-
Constructor Summary
Constructors Constructor Description HealthStateView(@NotNull String name, boolean healthy, @NotNull HealthCheckType type, boolean critical)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(HealthStateView other)
boolean
equals(Object o)
String
getName()
HealthCheckType
getType()
int
hashCode()
boolean
isCritical()
boolean
isHealthy()
void
setCritical(boolean critical)
void
setHealthy(boolean healthy)
void
setName(String name)
void
setType(HealthCheckType type)
String
toString()
-
-
-
Constructor Detail
-
HealthStateView
public HealthStateView(@NotNull @NotNull String name, boolean healthy, @NotNull @NotNull HealthCheckType type, boolean critical)
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
isHealthy
public boolean isHealthy()
-
setHealthy
public void setHealthy(boolean healthy)
-
getType
public HealthCheckType getType()
-
setType
public void setType(HealthCheckType type)
-
isCritical
public boolean isCritical()
-
setCritical
public void setCritical(boolean critical)
-
compareTo
public int compareTo(HealthStateView other)
- Specified by:
compareTo
in interfaceComparable<HealthStateView>
-
-