Class SlowDiskReports
java.lang.Object
org.apache.hadoop.hdfs.server.protocol.SlowDiskReports
A class that allows a DataNode to communicate information about all
its disks that appear to be slow.
The wire representation of this structure is a list of
SlowDiskReportProto messages.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumLists the types of operations on which disk latencies are measured. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SlowDiskReportsAn object representing a SlowDiskReports with no entries. -
Method Summary
Modifier and TypeMethodDescriptionstatic SlowDiskReportsbooleanReturn true if the two objects represent the same set slow disk entries.inthashCode()boolean
-
Field Details
-
EMPTY_REPORT
An object representing a SlowDiskReports with no entries. Should be used instead of null or creating new objects when there are no slow peers to report.
-
-
Method Details
-
create
public static SlowDiskReports create(@Nullable Map<String, Map<SlowDiskReports.DiskOp, Double>> slowDisks) -
getSlowDisks
-
haveSlowDisks
public boolean haveSlowDisks() -
equals
Return true if the two objects represent the same set slow disk entries. Primarily for unit testing convenience. -
hashCode
public int hashCode()
-