void function ( HardwareState arg0 ) { if ( arg0 == HardwareState . AVAILABLE ) { resourceStatePolicy . onHardUp ( ) ; } else { resourceStatePolicy . onHardDown ( ) ; } }
set the hard state of this disk dynamically . concode_field_sep ResourceStatePolicy resourceStatePolicy concode_elem_sep AmbryDataNode datanode concode_elem_sep String mountPath concode_elem_sep long rawCapacityBytes concode_field_sep String getMountPath concode_elem_sep HardwareState getState concode_elem_sep long getRawCapacityInBytes concode_elem_sep AmbryDataNode getDataNode concode_elem_sep String toString concode_elem_sep void onDiskError concode_elem_sep void onDiskOk concode_elem_sep void validate