|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractProcessor
BufferedProcessor
public class BufferedProcessor
A coverage processor caching the result of any operations. Since a grid coverage may be expensive to compute and consumes a lot of memory, we can save a lot of resources by returning cached instances every time the same operation with the same parameters is applied on the same coverage. Coverages are cached using weak references.
Field Summary | |
---|---|
protected AbstractProcessor |
processor
The underlying processor. |
Fields inherited from class AbstractProcessor |
---|
LOGGER, OPERATION |
Constructor Summary | |
---|---|
BufferedProcessor(AbstractProcessor processor)
Creates a new buffered processor backed by the specified processor. |
|
BufferedProcessor(RenderingHints hints)
Creates a buffered processor backed by a default processor using the specified hints. |
Method Summary | |
---|---|
Coverage |
doOperation(ParameterValueGroup parameters)
Applies an operation. |
Operation |
getOperation(String name)
Returns the operation for the specified name. |
Collection |
getOperations()
Retrieves grid processing operations information. |
Methods inherited from class AbstractProcessor |
---|
getInstance, getLocale, listOperations, main, printOperations |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final AbstractProcessor processor
Constructor Detail |
---|
public BufferedProcessor(RenderingHints hints)
public BufferedProcessor(AbstractProcessor processor)
DefaultProcessor
, consider using the
constructor expecting hints instead,
for efficienty.
Method Detail |
---|
public Collection getOperations()
getOperations
in class AbstractProcessor
public Operation getOperation(String name) throws OperationNotFoundException
getOperation
in class AbstractProcessor
name
- Name of the operation.
OperationNotFoundException
- if there is no operation for the specified name.public Coverage doOperation(ParameterValueGroup parameters) throws OperationNotFoundException
doOperation
in class AbstractProcessor
parameters
- Parameters required for the operation.
OperationNotFoundException
- if there is no operation for the parameter group name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |