Package edu.byu.hbll.box
Class SourceHealth
- java.lang.Object
-
- edu.byu.hbll.box.SourceHealth
-
public class SourceHealth extends Object
A snapshot of the health of a particular source.- Author:
- Charles Draper
-
-
Constructor Summary
Constructors Constructor Description SourceHealth(String sourceName, boolean healthy, String message)
Creates a newSourceHealth
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
Returns a status message (generally null if healthy).String
getSourceName()
Returns the source name.boolean
isHealthy()
Returns whether the source is healthy or not.
-
-
-
Constructor Detail
-
SourceHealth
public SourceHealth(String sourceName, boolean healthy, String message)
Creates a newSourceHealth
.- Parameters:
sourceName
- the source namehealthy
- whether the source is healthy or notmessage
- a status message (generally null if healthy)
-
-
Method Detail
-
getSourceName
public String getSourceName()
Returns the source name.- Returns:
- the source name
-
isHealthy
public boolean isHealthy()
Returns whether the source is healthy or not.- Returns:
- whether the source is healthy or not
-
getMessage
public String getMessage()
Returns a status message (generally null if healthy).- Returns:
- a status message (generally null if healthy)
-
-