|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFactory
AbstractCoverageProcessor
CachingCoverageProcessor
@Buffered @ThreadSafe @Decorator(value=AbstractCoverageProcessor.class) public class CachingCoverageProcessor
A coverage processor that cache the result of operations. Given that grid coverages may be expensive to compute and consume 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.
| coverage/geotk-coverage (download) | View source code for this class |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Factory |
|---|
Factory.Availability, Factory.Organizer |
| Field Summary | |
|---|---|
protected AbstractCoverageProcessor |
processor
The underlying processor. |
| Fields inherited from class AbstractCoverageProcessor |
|---|
LOGGER, OPERATION |
| Fields inherited from class Factory |
|---|
EMPTY_HINTS, hints |
| Constructor Summary | |
|---|---|
CachingCoverageProcessor()
Creates a default caching processor. |
|
CachingCoverageProcessor(AbstractCoverageProcessor processor)
Creates a new buffered processor backed by the specified processor. |
|
CachingCoverageProcessor(Hints userHints)
Creates a caching 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<Operation> |
getOperations()
Retrieves grid processing operations information. |
| Methods inherited from class AbstractCoverageProcessor |
|---|
getInstance, getLocale, listOperations, printOperations |
| Methods inherited from class Factory |
|---|
availability, dispose, equals, getImplementationHints, hasCompatibleHints, hashCode, setOrdering, toString |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final AbstractCoverageProcessor processor
| Constructor Detail |
|---|
public CachingCoverageProcessor()
This constructor should not be invoked directly - consider using
CoverageFactoryFinder.getCoverageProcessor(Hints) instead.
public CachingCoverageProcessor(Hints userHints)
This constructor should not be invoked directly - consider using
CoverageFactoryFinder.getCoverageProcessor(Hints) instead.
userHints - An optional set of hints, or null if none.public CachingCoverageProcessor(AbstractCoverageProcessor processor)
processor - The coverage processor for which to cache the results.| Method Detail |
|---|
public Collection<Operation> getOperations()
getOperations in interface GridCoverageProcessorgetOperations in class AbstractCoverageProcessor
public Operation getOperation(String name)
throws OperationNotFoundException
getOperation in class AbstractCoverageProcessorname - Name of the operation.
OperationNotFoundException - if there is no operation for the specified name.
public Coverage doOperation(ParameterValueGroup parameters)
throws OperationNotFoundException,
CoverageProcessingException
doOperation in class AbstractCoverageProcessorparameters - Parameters required for the operation.
OperationNotFoundException - if there is no operation for the parameter group name.
CoverageProcessingException - if the operation can not be executed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||