@Override
  public void setState(HardwareState newState) {
    if (newState == HardwareState.AVAILABLE) {
      resourceStatePolicy.onHardUp();
    } else {
      resourceStatePolicy.onHardDown();
    }
  }
Set the hard state of this disk dynamically.
@param newState the updated {@link HardwareState}
ambry-clustermap/src/main/java/com/github/ambry/clustermap/AmbryDisk.java