Package org.geotools.process.impl
Class SimpleProcess
- Object
-
- AbstractProcess
-
- SimpleProcess
-
- All Implemented Interfaces:
Process
public abstract class SimpleProcess extends AbstractProcess
Provide an implementation for a simple process (ie so quick and easy it is not going to need to report progress as it goes).- Author:
- gdavis
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SimpleProcess(ProcessFactory factory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
execute(Map<String,Object> input, ProgressListener monitor)
Execute this process with the provided inputs.protected Object
get(String key)
abstract void
process()
Implement your own process here.
-
-
-
Constructor Detail
-
SimpleProcess
protected SimpleProcess(ProcessFactory factory)
-
-
Method Detail
-
execute
public final Map<String,Object> execute(Map<String,Object> input, ProgressListener monitor)
Description copied from interface:Process
Execute this process with the provided inputs.- Parameters:
input
- Input parameters for this processmonitor
- listener for handling the progress of the process- Returns:
- Map of results, (@see ProcessFactory for details), or null if canceled
-
process
public abstract void process() throws Exception
Implement your own process here.- Throws:
Exception
-
-