Modifier and Type | Field and Description |
---|---|
private static MetricsIO |
instance |
private MetricsIOSource |
source |
private MetricsIOWrapper |
wrapper |
Constructor and Description |
---|
MetricsIO(MetricsIOSource source,
MetricsIOWrapper wrapper) |
MetricsIO(MetricsIOWrapper wrapper) |
Modifier and Type | Method and Description |
---|---|
static MetricsIO |
getInstance()
Get a static instance for the MetricsIO so that accessors access the same instance.
|
MetricsIOSource |
getMetricsSource() |
MetricsIOWrapper |
getWrapper() |
void |
incrSlowFsRead() |
void |
updateFsPreadTime(long t) |
void |
updateFsReadTime(long t) |
void |
updateFsWriteTime(long t) |
private final MetricsIOSource source
private final MetricsIOWrapper wrapper
MetricsIO(MetricsIOWrapper wrapper)
MetricsIO(MetricsIOSource source, MetricsIOWrapper wrapper)
public static MetricsIO getInstance()
public MetricsIOSource getMetricsSource()
public MetricsIOWrapper getWrapper()
public void updateFsReadTime(long t)
public void updateFsPreadTime(long t)
public void updateFsWriteTime(long t)
public void incrSlowFsRead()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.