Package alluxio.examples
Class Performance.AlluxioWriterWorker
- java.lang.Object
-
- java.lang.Thread
-
- alluxio.examples.Performance.Worker
-
- alluxio.examples.Performance.AlluxioWriterWorker
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- Performance
public static class Performance.AlluxioWriterWorker extends Performance.Worker
A worker in Alluxio for write operations.
-
-
Field Summary
-
Fields inherited from class alluxio.examples.Performance.Worker
mBuf, mLeft, mRight, mWorkerId
-
-
Constructor Summary
Constructors Constructor Description AlluxioWriterWorker(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 voidrun()voidwritePartition()Writes a partition.-
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
-
AlluxioWriterWorker
public AlluxioWriterWorker(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 writefs- the filesystem client to use
-
-
Method Detail
-
writePartition
public void writePartition() throws java.io.IOException, alluxio.exception.AlluxioExceptionWrites a partition.- Throws:
java.io.IOExceptionalluxio.exception.AlluxioException
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
-