Class VolumeFailureSummary
java.lang.Object
org.apache.hadoop.hdfs.server.protocol.VolumeFailureSummary
Summarizes information about data volume failures on a DataNode.
-
Constructor Summary
ConstructorsConstructorDescriptionVolumeFailureSummary(String[] failedStorageLocations, long lastVolumeFailureDate, long estimatedCapacityLostTotal) Creates a new VolumeFailureSummary. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns estimate of capacity lost.String[]Returns each storage location that has failed, sorted.longReturns the date/time of the last volume failure in milliseconds since epoch.
-
Constructor Details
-
VolumeFailureSummary
public VolumeFailureSummary(String[] failedStorageLocations, long lastVolumeFailureDate, long estimatedCapacityLostTotal) Creates a new VolumeFailureSummary.- Parameters:
failedStorageLocations- storage locations that have failedlastVolumeFailureDate- date/time of last volume failure in milliseconds since epochestimatedCapacityLostTotal- estimate of capacity lost in bytes
-
-
Method Details
-
getFailedStorageLocations
Returns each storage location that has failed, sorted.- Returns:
- each storage location that has failed, sorted
-
getLastVolumeFailureDate
public long getLastVolumeFailureDate()Returns the date/time of the last volume failure in milliseconds since epoch.- Returns:
- date/time of last volume failure in milliseconds since epoch
-
getEstimatedCapacityLostTotal
public long getEstimatedCapacityLostTotal()Returns estimate of capacity lost. This is said to be an estimate, because in some cases it's impossible to know the capacity of the volume, such as if we never had a chance to query its capacity before the failure occurred.- Returns:
- estimate of capacity lost in bytes
-