Interface Checkable<K,V>

All Known Subinterfaces:
FsVolumeSpi
All Known Implementing Classes:
FsVolumeImpl, StorageLocation

@Private @Unstable public interface Checkable<K,V>
A Checkable is an object whose health can be probed by invoking its check(K) method. e.g. a Checkable instance may represent a single hardware resource.
  • Method Summary

    Modifier and Type
    Method
    Description
    check(K context)
    Query the health of this object.
  • Method Details

    • check

      V check(K context) throws Exception
      Query the health of this object. This method may hang indefinitely depending on the status of the target resource.
      Parameters:
      context - for the probe operation. May be null depending on the implementation.
      Returns:
      result of the check operation.
      Throws:
      Exception - encountered during the check operation. An exception indicates that the check failed.