Class BookkeepingExecutorXV5Impl
java.lang.Object
edu.wustl.cse231s.v5.impl.AbstractV5Impl
edu.wustl.cse231s.v5.impl.executor.AbstractExecutorV5Impl
edu.wustl.cse231s.v5.impl.executor.ExecutorV5Impl
edu.wustl.cse231s.v5.impl.executor.BookkeepingExecutorXV5Impl
- All Implemented Interfaces:
V5Impl
- Author:
- Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wustl.cse231s.v5.impl.executor.AbstractExecutorV5Impl
AbstractExecutorV5Impl.Context, AbstractExecutorV5Impl.FinishContext -
Field Summary
Fields inherited from class edu.wustl.cse231s.v5.impl.executor.AbstractExecutorV5Impl
contextStack -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidasync(CheckedRunnable body)voidfinish(RegisterAccumulatorsOption registerAccumulatorsOption, CheckedRunnable body)voidforasync(int min, int maxExclusive, CheckedIntConsumer body)voidforasync(ChunkedOption chunkedOption, int min, int maxExclusive, CheckedIntConsumer body)<T> voidforasync(Iterable<T> iterable, CheckedConsumer<T> body)<T> voidforasync(T[] array, CheckedConsumer<T> body)voidforasync2d(int minA, int maxExclusiveA, int minB, int maxExclusiveB, CheckedIntIntConsumer body)voidforasync2d(ChunkedOption chunkedOption, int minA, int maxExclusiveA, int minB, int maxExclusiveB, CheckedIntIntConsumer body)<R> Future<R>future(CheckedCallable<R> body)voidlaunch(CheckedRunnable body)voidMethods inherited from class edu.wustl.cse231s.v5.impl.executor.ExecutorV5Impl
createFinishContext, future, getMetricsMethods inherited from class edu.wustl.cse231s.v5.impl.executor.AbstractExecutorV5Impl
asyncTasks, doWork, finish, getCurrentContext, newDoubleFinishAccumulator, newIntegerFinishAccumulator, newReducerFinishAccumulator, numWorkerThreads, shutdownNow, split
-
Constructor Details
-
BookkeepingExecutorXV5Impl
-
-
Method Details
-
getCurrentActivity
- Specified by:
getCurrentActivityin interfaceV5Impl- Overrides:
getCurrentActivityin classExecutorV5Impl
-
getBookkeeping
- Specified by:
getBookkeepingin interfaceV5Impl- Overrides:
getBookkeepingin classExecutorV5Impl
-
launch
- Specified by:
launchin interfaceV5Impl- Overrides:
launchin classAbstractV5Impl- Throws:
InterruptedExceptionExecutionException
-
async
- Specified by:
asyncin interfaceV5Impl- Overrides:
asyncin classAbstractExecutorV5Impl
-
finish
public void finish(RegisterAccumulatorsOption registerAccumulatorsOption, CheckedRunnable body) throws InterruptedException, ExecutionException- Specified by:
finishin interfaceV5Impl- Overrides:
finishin classAbstractExecutorV5Impl- Throws:
InterruptedExceptionExecutionException
-
future
- Specified by:
futurein interfaceV5Impl- Overrides:
futurein classAbstractExecutorV5Impl
-
forasync
public void forasync(int min, int maxExclusive, CheckedIntConsumer body) throws InterruptedException, ExecutionException- Specified by:
forasyncin interfaceV5Impl- Overrides:
forasyncin classAbstractV5Impl- Throws:
InterruptedExceptionExecutionException
-
forasync
public <T> void forasync(T[] array, CheckedConsumer<T> body) throws InterruptedException, ExecutionException- Specified by:
forasyncin interfaceV5Impl- Overrides:
forasyncin classAbstractV5Impl- Throws:
InterruptedExceptionExecutionException
-
forasync
public <T> void forasync(Iterable<T> iterable, CheckedConsumer<T> body) throws InterruptedException, ExecutionException- Specified by:
forasyncin interfaceV5Impl- Overrides:
forasyncin classAbstractV5Impl- Throws:
InterruptedExceptionExecutionException
-
forasync
public void forasync(ChunkedOption chunkedOption, int min, int maxExclusive, CheckedIntConsumer body) throws InterruptedException, ExecutionException- Specified by:
forasyncin interfaceV5Impl- Overrides:
forasyncin classAbstractV5Impl- Throws:
InterruptedExceptionExecutionException
-
forasync2d
public void forasync2d(int minA, int maxExclusiveA, int minB, int maxExclusiveB, CheckedIntIntConsumer body) throws InterruptedException, ExecutionException- Specified by:
forasync2din interfaceV5Impl- Overrides:
forasync2din classAbstractV5Impl- Throws:
InterruptedExceptionExecutionException
-
forasync2d
public void forasync2d(ChunkedOption chunkedOption, int minA, int maxExclusiveA, int minB, int maxExclusiveB, CheckedIntIntConsumer body) throws InterruptedException, ExecutionException- Specified by:
forasync2din interfaceV5Impl- Overrides:
forasync2din classAbstractV5Impl- Throws:
InterruptedExceptionExecutionException
-
resetBookkeeping
public void resetBookkeeping()- Specified by:
resetBookkeepingin interfaceV5Impl- Overrides:
resetBookkeepingin classExecutorV5Impl
-