Class BoxHealthCheck

  • All Implemented Interfaces:
    Runnable

    public class BoxHealthCheck
    extends Object
    implements Runnable
    Checks the health of all sources by attempting to query the source. If the query throws an error, then it is considered not healthy.
    Author:
    Charles Draper
    • Constructor Detail

      • BoxHealthCheck

        public BoxHealthCheck​(Registry registry)
        Creates a new BoxHealthCheck.
        Parameters:
        registry - the registry
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • getHealth

        public BoxHealth getHealth()
        Returns the health of box.
        Returns:
        the health of box