Package org.apache.hadoop.hbase.io
Class MetricsIO
java.lang.Object
org.apache.hadoop.hbase.io.MetricsIO
-
Field Summary
Modifier and TypeFieldDescriptionprivate static MetricsIO
private final MetricsIOSource
private final MetricsIOWrapper
-
Constructor Summary
ConstructorDescriptionMetricsIO
(MetricsIOSource source, MetricsIOWrapper wrapper) MetricsIO
(MetricsIOWrapper wrapper) -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricsIO
Get a static instance for the MetricsIO so that accessors access the same instance.void
void
updateFsPreadTime
(long t) void
updateFsReadTime
(long t) void
updateFsWriteTime
(long t)
-
Field Details
-
instance
-
source
-
wrapper
-
-
Constructor Details
-
MetricsIO
MetricsIO(MetricsIOWrapper wrapper) -
MetricsIO
MetricsIO(MetricsIOSource source, MetricsIOWrapper wrapper)
-
-
Method Details
-
getInstance
Get a static instance for the MetricsIO so that accessors access the same instance. We want to lazy initialize so that correct process name is in place. See HBASE-27966 for more details. -
getMetricsSource
-
getWrapper
-
updateFsReadTime
-
updateFsPreadTime
-
updateFsWriteTime
-
incrSlowFsRead
-