public class ThreadedPermutationWorkerFactory extends PermutationWorkerFactory
Modifier and Type | Field and Description |
---|---|
static String |
MAX_THREADS_PROPERTY
A Java system property that can be used to change the number of in-process
threads used.
|
FACTORY_IMPL_PROPERTY, WORKERS_AUTO
Constructor and Description |
---|
ThreadedPermutationWorkerFactory() |
Modifier and Type | Method and Description |
---|---|
Collection<com.google.gwt.dev.PermutationWorker> |
getWorkers(TreeLogger logger,
UnifiedAst unifiedAst,
int numWorkers)
Return some number of PermutationWorkers.
|
void |
init(TreeLogger logger)
Initialize the PermutationWorkerFactory.
|
boolean |
isLocal()
Indicates if the PermutationWorkers created by the factory consume
computational or memory resources on the local system, as opposed to the
per-permutation work being performed on a remote system.
|
compilePermutations, compilePermutations
public static final String MAX_THREADS_PROPERTY
public Collection<com.google.gwt.dev.PermutationWorker> getWorkers(TreeLogger logger, UnifiedAst unifiedAst, int numWorkers) throws UnableToCompleteException
PermutationWorkerFactory
getWorkers
in class PermutationWorkerFactory
unifiedAst
- a UnifiedAstnumWorkers
- the desired number of workersnumWorkers
UnableToCompleteException
public void init(TreeLogger logger) throws UnableToCompleteException
PermutationWorkerFactory
init
in class PermutationWorkerFactory
UnableToCompleteException
public boolean isLocal()
PermutationWorkerFactory
isLocal
in class PermutationWorkerFactory
Copyright © 2018. All rights reserved.