Package alluxio.examples
Class Performance.AlluxioReadWorker
- java.lang.Object
-
- java.lang.Thread
-
- alluxio.examples.Performance.Worker
-
- alluxio.examples.Performance.AlluxioReadWorker
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- Performance
public static class Performance.AlluxioReadWorker extends Performance.Worker
A worker in Alluxio for read operations.
-
-
Field Summary
-
Fields inherited from class alluxio.examples.Performance.Worker
mBuf, mLeft, mRight, mWorkerId
-
-
Constructor Summary
Constructors Constructor Description AlluxioReadWorker(int id, int left, int right, java.nio.ByteBuffer buf, alluxio.client.file.FileSystem fs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadPartition()Reads a partition.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
-
AlluxioReadWorker
public AlluxioReadWorker(int id, int left, int right, java.nio.ByteBuffer buf, alluxio.client.file.FileSystem fs)- Parameters:
id- the id of the workerleft- the id of the worker on the leftright- the id of the worker on the rightbuf- the buffer to readfs- the filesystem client to use
-
-
Method Detail
-
readPartition
public void readPartition() throws java.io.IOException, alluxio.exception.AlluxioExceptionReads a partition.- Throws:
java.io.IOExceptionalluxio.exception.AlluxioException
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
-