public static class Performance.HdfsWorker extends Performance.Worker
Thread.State, Thread.UncaughtExceptionHandler
mBuf, mLeft, mRight, mWorkerId
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
HdfsWorker(int id,
int left,
int right,
ByteBuffer buf,
boolean write,
String msg) |
Modifier and Type | Method and Description |
---|---|
void |
io()
Creates IO utilization.
|
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public HdfsWorker(int id, int left, int right, ByteBuffer buf, boolean write, String msg) throws IOException
id
- the id of the workerleft
- the id of the worker on the leftright
- the id of the worker on the rightbuf
- the bufferwrite
- indicates if data is written to HDFSmsg
- the message to writeIOException
public void io() throws IOException
IOException
Copyright © 2023. All Rights Reserved.