Package alluxio.examples
Class Performance.GeneralWorker
- java.lang.Object
-
- java.lang.Thread
-
- alluxio.examples.Performance.Worker
-
- alluxio.examples.Performance.GeneralWorker
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- Performance
public static class Performance.GeneralWorker extends Performance.Worker
A general worker.
-
-
Field Summary
-
Fields inherited from class alluxio.examples.Performance.Worker
mBuf, mLeft, mRight, mWorkerId
-
-
Constructor Summary
Constructors Constructor Description GeneralWorker(int id, int left, int right, java.nio.ByteBuffer buf, boolean oneToMany, boolean memoryOnly, java.lang.String msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmemoryCopyPartition()Copies a partition in memory.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
-
GeneralWorker
public GeneralWorker(int id, int left, int right, java.nio.ByteBuffer buf, boolean oneToMany, boolean memoryOnly, java.lang.String msg)- Parameters:
id- the id of the workerleft- the id of the worker on the leftright- the id of the worker on the rightbuf- the buffered used by the workeroneToMany- true if the message should be written, false if it should be readmemoryOnly- true if the data should reside in memory, false otherwisemsg- the message to use
-
-