public class Processors extends FactoryFinder
ProcessExecutor
, and Process
classes defined in
this package.
Defines static methods used to access the application's default process factory implementations.
EMPTY_HINTS
Modifier and Type | Method and Description |
---|---|
static void |
addProcessFactory(ProcessFactory factory)
Dynamically register a new process factory into SPI
|
static Callable<Map<String,Object>> |
createCallable(Process process,
Map<String,Object> input)
Used to wrap a Process up as a Callable for use with an existing ExecutorService
|
static Process |
createProcess(Name name)
Look up an implementation of the named process on the classpath.
|
static ProcessFactory |
createProcessFactory(Name name)
Look up a Factory by name of a process it supports.
|
static Map<String,Parameter<?>> |
getParameterInfo(Name name)
Look up an implementation of the named process on the classpath and describe the input
parameter required.
|
static Set<ProcessFactory> |
getProcessFactories()
Set of available ProcessFactory; each of which is responsible for one or more processes.
|
static Map<String,Parameter<?>> |
getResultInfo(Name name,
Map<String,Object> parameters)
Look up an implementation of the named process on the classpath and describe the expected
results.
|
static ProcessExecutor |
newProcessExecutor(int nThreads) |
static ProcessExecutor |
newProcessExecutor(int nThreads,
ThreadFactory threadFactory) |
static void |
removeProcessFactory(ProcessFactory factory)
Dynamically removes a process factory from SPI.
|
static void |
reset()
Reinitializes all static state, including the ProcessFactory service registry and reference
to the last used ProcessFactory
|
mergeSystemHints
public static void addProcessFactory(ProcessFactory factory)
factory
- public static void removeProcessFactory(ProcessFactory factory)
addProcessFactory(ProcessFactory)
factory
- public static Set<ProcessFactory> getProcessFactories()
public static ProcessFactory createProcessFactory(Name name)
name
- Name of the Process you wish to work withpublic static Process createProcess(Name name)
name
- Name of the Process to createpublic static Map<String,Parameter<?>> getParameterInfo(Name name)
name
- Name of the Processpublic static Map<String,Parameter<?>> getResultInfo(Name name, Map<String,Object> parameters)
Note the expected results are generated in part by the input parameters provided; this is to allow for processes where the output is controlled by the parameters (such as choosing a greyscale or color raster product; or choosing the version of GML produced etc...).
name
- Name of the Processparameters
- public static Callable<Map<String,Object>> createCallable(Process process, Map<String,Object> input)
public static ProcessExecutor newProcessExecutor(int nThreads)
public static ProcessExecutor newProcessExecutor(int nThreads, ThreadFactory threadFactory)
public static void reset()
Copyright © 1996–2019 Geotools. All rights reserved.