Package org.apache.hadoop.hbase.io
Class MetricsIO
java.lang.Object
org.apache.hadoop.hbase.io.MetricsIO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static MetricsIOprivate final MetricsIOSourceprivate final MetricsIOWrapper -
Constructor Summary
ConstructorsConstructorDescriptionMetricsIO(MetricsIOSource source, MetricsIOWrapper wrapper) MetricsIO(MetricsIOWrapper wrapper) -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricsIOGet a static instance for the MetricsIO so that accessors access the same instance.voidvoidupdateFsPreadTime(long t) voidupdateFsReadTime(long t) voidupdateFsWriteTime(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
-