org.geotools.process
Class Processors

java.lang.Object
  extended by org.geotools.factory.FactoryFinder
      extended by org.geotools.process.Processors

public class Processors
extends FactoryFinder

Factory and utility methods for ProcessExecutor, and Process classes defined in this package.

Defines static methods used to access the application's default process factory implementations.

Author:
gdavis

Field Summary
 
Fields inherited from class org.geotools.factory.FactoryFinder
EMPTY_HINTS
 
Method Summary
static java.util.concurrent.Callable<java.util.Map<java.lang.String,java.lang.Object>> createCallable(Process process, java.util.Map<java.lang.String,java.lang.Object> input)
          Used to wrap a Process up as a Callable for use with an existing ExecutorService
static Process createProcess(org.opengis.feature.type.Name name)
          Look up an implementation of the named process on the classpath.
static ProcessFactory createProcessFactory(org.opengis.feature.type.Name name)
          Look up a Factory by name of a process it supports.
static java.util.Map<java.lang.String,Parameter<?>> getParameterInfo(org.opengis.feature.type.Name name)
          Look up an implementation of the named process on the classpath and describe the input parameter required.
static java.util.Set<ProcessFactory> getProcessFactories()
          Set of available ProcessFactory; each of which is responsible for one or more processes.
static java.util.Map<java.lang.String,Parameter<?>> getResultInfo(org.opengis.feature.type.Name name, java.util.Map<java.lang.String,java.lang.Object> parameters)
          Look up an implementation of the named process on the classpath and describe the expected results.
static ProcessExecutor newProcessExecutor(int nThreads, java.util.concurrent.ThreadFactory threadFactory)
           
 
Methods inherited from class org.geotools.factory.FactoryFinder
mergeSystemHints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProcessFactories

public static java.util.Set<ProcessFactory> getProcessFactories()
Set of available ProcessFactory; each of which is responsible for one or more processes.

Returns:
Set of ProcessFactory

createProcessFactory

public static ProcessFactory createProcessFactory(org.opengis.feature.type.Name name)
Look up a Factory by name of a process it supports.

Parameters:
name - Name of the Process you wish to work with
Returns:
ProcessFactory capable of creating an instanceof the named process

createProcess

public static Process createProcess(org.opengis.feature.type.Name name)
Look up an implementation of the named process on the classpath.

Parameters:
name - Name of the Process to create
Returns:
created process

getParameterInfo

public static java.util.Map<java.lang.String,Parameter<?>> getParameterInfo(org.opengis.feature.type.Name name)
Look up an implementation of the named process on the classpath and describe the input parameter required.

Parameters:
name - Name of the Process
Returns:
Description of the parameters required

getResultInfo

public static java.util.Map<java.lang.String,Parameter<?>> getResultInfo(org.opengis.feature.type.Name name,
                                                                         java.util.Map<java.lang.String,java.lang.Object> parameters)
Look up an implementation of the named process on the classpath and describe the expected results.

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...).

Parameters:
name - Name of the Process
parameters -
Returns:
Description of the parameters required

createCallable

public static java.util.concurrent.Callable<java.util.Map<java.lang.String,java.lang.Object>> createCallable(Process process,
                                                                                                             java.util.Map<java.lang.String,java.lang.Object> input)
Used to wrap a Process up as a Callable for use with an existing ExecutorService


newProcessExecutor

public static ProcessExecutor newProcessExecutor(int nThreads,
                                                 java.util.concurrent.ThreadFactory threadFactory)


Copyright © 1996-2010 Geotools. All Rights Reserved.