Class EtlContextParallel
- 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.etl.execute.context.concurrent.EtlContextParallel
-
- All Implemented Interfaces:
IEolContextParallel
,IEolContext
,IErlContextParallel
,IErlContext
,IEtlContextParallel
,IEtlContext
public class EtlContextParallel extends ErlContextParallel implements IEtlContextParallel
- Since:
- 1.6
- Author:
- Sina Madani
-
-
Field Summary
Fields Modifier and Type Field Description protected ITransformationStrategy
transformationStrategy
protected TransformationTrace
transformationTrace
-
Fields inherited from class org.eclipse.epsilon.eol.execute.context.concurrent.EolContextParallel
executorService
-
Fields 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, warningStream
-
Fields inherited from interface org.eclipse.epsilon.eol.execute.context.concurrent.IEolContextParallel
NUM_THREADS_CONFIG
-
-
Constructor Summary
Constructors Modifier Constructor Description EtlContextParallel()
EtlContextParallel(int parallelism)
protected
EtlContextParallel(IEolContext other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IEtlContext
createShadowThreadLocalContext()
IEtlModule
getModule()
Casts the IModule to IErlModuleIEtlContext
getShadow()
Can be used to obtain an optimal execution context while executing in parallel.ITransformationStrategy
getTransformationStrategy()
TransformationTrace
getTransformationTrace()
void
setTransformationStrategy(ITransformationStrategy strategy)
-
Methods inherited from class org.eclipse.epsilon.erl.execute.context.concurrent.ErlContextParallel
createThreadLocalExecutorFactory, executeJob, getExecutorFactory, setExecutorFactory, setProfilingEnabled
-
Methods 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, useThreadLocalValue
-
Methods 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, setWarningStream
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods 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, setWarningStream
-
Methods inherited from interface org.eclipse.epsilon.eol.execute.context.concurrent.IEolContextParallel
beginParallelTask, beginParallelTask, endParallelTask, ensureNotNested, executeAll, executeAny, getExecutorService, getParallelism, isParallel, isParallelisationLegal, setParallelism
-
Methods inherited from interface org.eclipse.epsilon.erl.execute.context.IErlContext
getExecutorFactory
-
-
-
-
Field Detail
-
transformationTrace
protected TransformationTrace transformationTrace
-
transformationStrategy
protected ITransformationStrategy transformationStrategy
-
-
Constructor Detail
-
EtlContextParallel
public EtlContextParallel()
-
EtlContextParallel
public EtlContextParallel(int parallelism)
-
EtlContextParallel
protected EtlContextParallel(IEolContext other)
-
-
Method Detail
-
getTransformationTrace
public TransformationTrace getTransformationTrace()
- Specified by:
getTransformationTrace
in interfaceIEtlContext
-
getTransformationStrategy
public ITransformationStrategy getTransformationStrategy()
- Specified by:
getTransformationStrategy
in interfaceIEtlContext
-
setTransformationStrategy
public void setTransformationStrategy(ITransformationStrategy strategy)
- Specified by:
setTransformationStrategy
in interfaceIEtlContext
-
getModule
public IEtlModule getModule()
Description copied from interface:IErlContext
Casts the IModule to IErlModule- Specified by:
getModule
in interfaceIEolContext
- Specified by:
getModule
in interfaceIErlContext
- Specified by:
getModule
in interfaceIEtlContext
- Overrides:
getModule
in classErlContextParallel
- See Also:
IEolContext.getModule()
-
createShadowThreadLocalContext
protected IEtlContext createShadowThreadLocalContext()
- Overrides:
createShadowThreadLocalContext
in classErlContextParallel
-
getShadow
public IEtlContext getShadow()
Description copied from class:EolContextParallel
Can 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:
getShadow
in classErlContextParallel
- Returns:
- A ThreadLocal copy of this context if in parallel, or this context otherwise.
-
-