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 intcompareTo(HealthStateView other)booleanequals(Object o)StringgetName()HealthCheckTypegetType()inthashCode()booleanisCritical()booleanisHealthy()voidsetCritical(boolean critical)voidsetHealthy(boolean healthy)voidsetName(String name)voidsetType(HealthCheckType type)StringtoString()
-
-
-
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:
compareToin interfaceComparable<HealthStateView>
-
-