Class EplContextParallel
java.lang.Object
org.eclipse.epsilon.eol.execute.context.EolContext
org.eclipse.epsilon.eol.execute.context.concurrent.EolContextParallel
org.eclipse.epsilon.erl.execute.context.concurrent.ErlContextParallel
org.eclipse.epsilon.epl.execute.context.concurrent.EplContextParallel
- All Implemented Interfaces:
IEolContextParallel,IEolContext,IEplContextParallel,IEplContext,IErlContextParallel,IErlContext
- Since:
- 1.6
- Author:
- Sina Madani
-
Field Summary
FieldsFields inherited from class org.eclipse.epsilon.eol.execute.context.concurrent.EolContextParallel
executorServiceFields inherited from class org.eclipse.epsilon.eol.execute.context.EolContext
assertionsEnabled, asyncStatementsQueue, classpathNativeTypeDelegate, errorStream, executorFactory, extendedProperties, frameStack, introspectionManager, methodContributorRegistry, modelRepository, module, nativeTypeDelegates, operationFactory, outputStream, prettyPrinterManager, profilingEnabled, userInput, warningStreamFields inherited from interface org.eclipse.epsilon.eol.execute.context.concurrent.IEolContextParallel
NUM_THREADS_CONFIG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IEplContextCasts the IModule to IErlModuleCan be used to obtain an optimal execution context while executing in parallel.voidMethods inherited from class org.eclipse.epsilon.erl.execute.context.concurrent.ErlContextParallel
createThreadLocalExecutorFactory, executeJob, getExecutorFactory, setExecutorFactory, setProfilingEnabledMethods inherited from class org.eclipse.epsilon.eol.execute.context.concurrent.EolContextParallel
beginParallelTask, clearExecutor, clearThreadLocals, convertToParallel, createThreadLocalFrameStack, createThreadLocalOperationContributorRegistry, dispose, endParallelTask, getExecutorService, getFrameStack, getParallelism, initDelegateThreadLocal, initThreadLocals, isParallel, newExecutorService, nullifyThreadLocals, parallelGet, parallelGet, parallelSet, removeAll, setFrameStack, setParallelism, toString, useThreadLocalValueMethods inherited from class org.eclipse.epsilon.eol.execute.context.EolContext
getAsyncStatementsQueue, getErrorStream, getExtendedProperties, getIntrospectionManager, getModelRepository, getNativeTypeDelegates, getOperationContributorRegistry, getOperationFactory, getOutputStream, getPrettyPrinterManager, getUserInput, getWarningStream, isAssertionsEnabled, isProfilingEnabled, setAssertionsEnabled, setErrorStream, setExtendedProperties, setIntrospectionManager, setModelRepository, setModule, setNativeTypeDelegates, setOperationFactory, setOutputStream, setPrettyPrinterManager, setUserInput, setWarningStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.epsilon.eol.execute.context.IEolContext
dispose, getAsyncStatementsQueue, getErrorStream, getExtendedProperties, getFrameStack, getIntrospectionManager, getModelRepository, getNativeTypeDelegates, getOperationContributorRegistry, getOperationFactory, getOutputStream, getPrettyPrinterManager, getUserInput, getWarningStream, isAssertionsEnabled, isProfilingEnabled, setAssertionsEnabled, setErrorStream, setExecutorFactory, setExtendedProperties, setFrameStack, setIntrospectionManager, setModelRepository, setModule, setNativeTypeDelegates, setOperationFactory, setOutputStream, setPrettyPrinterManager, setProfilingEnabled, setUserInput, setWarningStreamMethods inherited from interface org.eclipse.epsilon.eol.execute.context.concurrent.IEolContextParallel
beginParallelTask, beginParallelTask, endParallelTask, ensureNotNested, executeAll, executeAny, getExecutorService, getParallelism, isParallel, isParallelisationLegal, setParallelismMethods inherited from interface org.eclipse.epsilon.erl.execute.context.IErlContext
getExecutorFactory
-
Field Details
-
matchModel
-
-
Constructor Details
-
EplContextParallel
public EplContextParallel() -
EplContextParallel
public EplContextParallel(int parallelism) -
EplContextParallel
-
-
Method Details
-
setPatternMatchTrace
- Specified by:
setPatternMatchTracein interfaceIEplContext
-
getPatternMatchTrace
- Specified by:
getPatternMatchTracein interfaceIEplContext
-
createShadowThreadLocalContext
- Overrides:
createShadowThreadLocalContextin classErlContextParallel
-
getShadow
Description copied from class:EolContextParallelCan be used to obtain an optimal execution context while executing in parallel. If execution is currently not parallel, then this context itself is returned.- Overrides:
getShadowin classErlContextParallel- Returns:
- A ThreadLocal copy of this context if in parallel, or this context otherwise.
-
getModule
Description copied from interface:IErlContextCasts the IModule to IErlModule- Specified by:
getModulein interfaceIEolContext- Specified by:
getModulein interfaceIEplContext- Specified by:
getModulein interfaceIErlContext- Overrides:
getModulein classErlContextParallel- See Also:
-