Package alluxio.examples
Class Performance.HdfsWorker
- java.lang.Object
-
- java.lang.Thread
-
- alluxio.examples.Performance.Worker
-
- alluxio.examples.Performance.HdfsWorker
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- Performance
public static class Performance.HdfsWorker extends Performance.Worker
A worker for HDFS.
-
-
Field Summary
-
Fields inherited from class alluxio.examples.Performance.Worker
mBuf, mLeft, mRight, mWorkerId
-
-
Constructor Summary
Constructors Constructor Description HdfsWorker(int id, int left, int right, java.nio.ByteBuffer buf, boolean write, java.lang.String msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidio()Creates IO utilization.voidrun()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
HdfsWorker
public HdfsWorker(int id, int left, int right, java.nio.ByteBuffer buf, boolean write, java.lang.String msg) throws java.io.IOException- Parameters:
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 write- Throws:
java.io.IOException
-
-