public class IOTest extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
K |
static int |
M |
static int |
SIZE_100M |
static int |
SIZE_10M |
static int |
SIZE_1K |
static int |
SIZE_1M |
static int |
SIZE_50M |
| Constructor and Description |
|---|
IOTest(Path rootDir,
long times,
int dataLength)
Define a new IO test.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData() |
long |
getTimes() |
Statistics |
runWrite()
Writes an array of bytes to a predefined named file in the workspace of the diagnostic,
it does it the value of "times" times, when it finished writes some stats to the log file.
|
Statistics |
runWriteRead()
Writes and Reads an array of bytes to a predefined named file in the workspace of the diagnostic,
it does it the value of "times" times, when it finished writes some stats to the log file.
|
public static final int K
public static final int M
public static final int SIZE_1K
public static final int SIZE_1M
public static final int SIZE_10M
public static final int SIZE_50M
public static final int SIZE_100M
public IOTest(Path rootDir, long times, int dataLength)
times - times to write and read the data block.dataLength - number of bytes to Read/Write on the test.public long getTimes()
public byte[] getData()
public Statistics runWrite() throws IOException
IOException - on case of error.public Statistics runWriteRead() throws IOException
IOException - on case of error.Copyright © 2016–2017. All rights reserved.