public abstract class PermutationWorkerFactory extends Object
init(com.google.gwt.core.ext.TreeLogger)
called immediately after
construction.Modifier and Type | Field and Description |
---|---|
static String |
FACTORY_IMPL_PROPERTY
The name of the system property used to define the workers.
|
static int |
WORKERS_AUTO
This value can be passed into
#setLocalWorkers(int) to indicate
that a heuristic should be used to determine the total number of local
workers. |
Constructor and Description |
---|
PermutationWorkerFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
compilePermutations(TreeLogger logger,
CompilerContext compilerContext,
Precompilation precompilation,
int localWorkers,
List<FileBackedObject<PermutationResult>> resultFiles)
Compiles all Permutations in a Precompilation and returns an array of Files
that can be consumed by Link using the system-default
PermutationWorkersFactories.
|
static void |
compilePermutations(TreeLogger logger,
CompilerContext compilerContext,
Precompilation precompilation,
Permutation[] permutations,
int localWorkers,
List<FileBackedObject<PermutationResult>> resultFiles)
Compiles a subset of the Permutations in a Precompilation and returns an
array of Files that can be consumed by Link using the system-default
PermutationWorkersFactories.
|
abstract Collection<com.google.gwt.dev.PermutationWorker> |
getWorkers(TreeLogger logger,
UnifiedAst unifiedAst,
int numWorkers)
Return some number of PermutationWorkers.
|
abstract void |
init(TreeLogger logger)
Initialize the PermutationWorkerFactory.
|
abstract 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.
|
public static final String FACTORY_IMPL_PROPERTY
public static final int WORKERS_AUTO
#setLocalWorkers(int)
to indicate
that a heuristic should be used to determine the total number of local
workers.public static void compilePermutations(TreeLogger logger, CompilerContext compilerContext, Precompilation precompilation, int localWorkers, List<FileBackedObject<PermutationResult>> resultFiles) throws UnableToCompleteException
UnableToCompleteException
public static void compilePermutations(TreeLogger logger, CompilerContext compilerContext, Precompilation precompilation, Permutation[] permutations, int localWorkers, List<FileBackedObject<PermutationResult>> resultFiles) throws UnableToCompleteException
UnableToCompleteException
public abstract Collection<com.google.gwt.dev.PermutationWorker> getWorkers(TreeLogger logger, UnifiedAst unifiedAst, int numWorkers) throws UnableToCompleteException
unifiedAst
- a UnifiedAstnumWorkers
- the desired number of workersnumWorkers
UnableToCompleteException
public abstract void init(TreeLogger logger) throws UnableToCompleteException
UnableToCompleteException
public abstract boolean isLocal()
Copyright © 2018. All rights reserved.