Class SourceHealth


  • public class SourceHealth
    extends Object
    A snapshot of the health of a particular source.
    Author:
    Charles Draper
    • Constructor Detail

      • SourceHealth

        public SourceHealth​(String sourceName,
                            boolean healthy,
                            String message)
        Creates a new SourceHealth.
        Parameters:
        sourceName - the source name
        healthy - whether the source is healthy or not
        message - 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)