public static class Performance.GeneralWorker extends Performance.Worker
Thread.State, Thread.UncaughtExceptionHandler
mBuf, mLeft, mRight, mWorkerId
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
GeneralWorker(int id,
int left,
int right,
ByteBuffer buf,
boolean oneToMany,
boolean memoryOnly,
String msg) |
Modifier and Type | Method and Description |
---|---|
void |
memoryCopyPartition()
Copies a partition in memory.
|
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 GeneralWorker(int id, int left, int right, ByteBuffer buf, boolean oneToMany, boolean memoryOnly, String msg)
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 usepublic void memoryCopyPartition() throws IOException
IOException
Copyright © 2023. All Rights Reserved.