public class OutOfCoreIOStatistics extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OutOfCoreIOStatistics.BytesDuration
Helper class to return results of statistics collector for a certain
command type
|
| Modifier and Type | Field and Description |
|---|---|
static IntConfOption |
DISK_BANDWIDTH_ESTIMATE
An estimate of disk bandwidth.
|
static IntConfOption |
IO_COMMAND_HISTORY_SIZE
How many recent IO operations should we keep track of? Any report given out
of this statistics collector is only based on most recent IO operations.
|
static IntConfOption |
STATS_PRINT_FREQUENCY
Use this option to control how frequently to print OOC statistics.
|
| Constructor and Description |
|---|
OutOfCoreIOStatistics(ImmutableClassesGiraphConfiguration conf,
int numIOThreads)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
OutOfCoreIOStatistics.BytesDuration |
getCommandTypeStats(IOCommand.IOCommandType type)
Get aggregate statistics of a given command type in the command history
|
long |
getDiskBandwidth() |
String |
toString() |
void |
update(IOCommand.IOCommandType type,
long bytesTransferred,
long duration)
Update statistics with the last IO command that is executed.
|
public static final IntConfOption DISK_BANDWIDTH_ESTIMATE
public static final IntConfOption IO_COMMAND_HISTORY_SIZE
public static final IntConfOption STATS_PRINT_FREQUENCY
public OutOfCoreIOStatistics(ImmutableClassesGiraphConfiguration conf, int numIOThreads)
conf - configurationnumIOThreads - number of disks/IO threadspublic void update(IOCommand.IOCommandType type, long bytesTransferred, long duration)
type - type of the IO command that is executedbytesTransferred - number of bytes transferred in the last IO commandduration - duration it took for the last IO command to complete
(milliseconds)public long getDiskBandwidth()
public OutOfCoreIOStatistics.BytesDuration getCommandTypeStats(IOCommand.IOCommandType type)
type - type of the command to get the statistics forCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.