public class DefaultCoverageStore extends AbstractDisposable implements CoverageStore, CoverageStoreProviderServices, DataStoreInitializer
BASE_NEWPARAMETERS_PROVIDER_DEFINITION_FULLNAME, BASE_NEWPARAMETERS_PROVIDER_DEFINITION_NAME, BASE_PARAMETERS_PROVIDER_DEFINITION_FULLNAME, BASE_PARAMETERS_PROVIDER_DEFINITION_NAME, PROVIDER_PARAMTER_FULLNAME, PROVIDER_PARAMTER_NAMEFEATURE_METADATA_DEFINITION_NAME, METADATA_CONTAINERNAME, METADATA_CRS, METADATA_DEFINITION_NAME, METADATA_ENVELOPE, METADATA_FEATURETYPE, METADATA_PROVIDER, SPATIAL_METADATA_DEFINITION_NAME| Constructor and Description |
|---|
DefaultCoverageStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor)
Provides each value of this Store to the provided
Visitor. |
void |
accept(Visitor visitor,
DataQuery dataQuery)
Provides each value of this Store to the provided
Visitor. |
void |
addObserver(Observer o) |
boolean |
allowWrite() |
void |
beginComplexNotification()
Sets the Observable in complex notification mode.
|
void |
clear() |
void |
close() |
CoverageSelection |
createDefaultCoverageSelection() |
DataQuery |
createQuery()
Returns a new instance of a
DataQuery. |
DataSet |
createSelection()
Creates a new selection.
|
void |
delegate(DynObject dynObject) |
void |
deleteObserver(Observer o) |
void |
deleteObservers() |
void |
disableNotifications()
Disable the notification of events to registered Observers.
|
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
void |
enableNotifications()
Enable (default) the notification of events to registered Observers.
|
void |
endComplexNotification()
Ends the complex notification mode.
|
Iterator |
getChildren()
Returns an iterator over this store children
|
CoverageStore |
getCoverageStore() |
DataSet |
getDataSet()
Returns all available data.
|
DataSet |
getDataSet(DataQuery dataQuery)
Returns a subset of data taking into account the properties and
restrictions of the DataQuery.
|
void |
getDataSet(DataQuery dataQuery,
Observer observer)
Loads a subset of data taking into account the properties and
restrictions of the DataQuery.
|
void |
getDataSet(Observer observer)
Loads all available data and notifies the observer for each loaded block of data.
|
DynClass |
getDynClass() |
Object |
getDynValue(String name) |
DataServerExplorer |
getExplorer()
Returns the DataServerExplorer to which this DataStore belongs, if there
is any.
|
String |
getFullName()
Returns a more descriptive name for the store that getName.
|
Interval |
getInterval()
Gets the
Interval of the store, that means the temporal
interval where the store has valid data. |
DataManager |
getManager() |
Set |
getMetadataChildren()
Returns an unsorted set of child Metadata objects.
|
Object |
getMetadataID()
Returns the unique identifier of the Metadata.
|
String |
getMetadataName()
Returns the name of the Metadata, which allows to identify the type in
the Metadata registry.
|
String |
getName()
Returns the name associated to the store.
|
DataStoreParameters |
getParameters()
Return the of parameters of this store
|
CoverageStoreProvider |
getProvider() |
String |
getProviderName()
Return the provider name that use this store.
|
DataSet |
getSelection()
Returns the selected set of data
|
PersistentState |
getState() |
DataStore |
getStore()
Return the Store instance
|
Collection |
getTimes()
Gets all the possible values of time for which the store has data.
|
Collection |
getTimes(Interval interval)
Gets all the possible values of time for which the store has data
and intersects with an interval.
|
boolean |
hasDynValue(String name) |
void |
implement(DynClass dynClass) |
void |
intializePhase1(DataManager dataManager,
DataStoreParameters parameters) |
void |
intializePhase2(DataStoreProvider provider) |
Object |
invokeDynMethod(int code,
Object[] args) |
Object |
invokeDynMethod(String name,
Object[] args) |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
notifyChange(String notification) |
void |
notifyChange(String notification,
Command command) |
void |
notifyChange(String notification,
Resource resource) |
void |
open() |
void |
refresh()
Refreshes this store state.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setDynValue(String name,
Object value) |
void |
setSelection(DataSet selection)
Sets the current data selection with the given data set.
|
dispose, disposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisposepublic void intializePhase1(DataManager dataManager, DataStoreParameters parameters) throws InitializeException
intializePhase1 in interface DataStoreInitializerInitializeExceptionpublic void intializePhase2(DataStoreProvider provider) throws InitializeException
intializePhase2 in interface DataStoreInitializerInitializeExceptionpublic DataSet createSelection() throws DataException
DataStorecreateSelection in interface DataStoreDataExceptionpublic Iterator getChildren()
DataStoregetChildren in interface DataStorepublic DataSet getDataSet() throws DataException
DataStoregetDataSet in interface DataStoreDataException - if there is any error while loading the datapublic DataSet getDataSet(DataQuery dataQuery) throws DataException
DataStoregetDataSet in interface DataStoredataQuery - defines the properties of the requested dataDataException - if there is any error while loading the datapublic void accept(Visitor visitor) throws BaseException
DataStoreVisitor.
The values received through the Visitor.visit(Object) method
may be transient, reused or externally modifiable, so they can't
be used to be stored in any external form out of the visit method.
If you need to store any of the values out of the
Visitor.visit(Object) method execution, create a copy or clone
the received value in order to be stored.accept in interface DataStoreaccept in interface Visitablevisitor - the visitor to apply to each value.BaseException - if there is an error while performing the visitpublic void accept(Visitor visitor, DataQuery dataQuery) throws BaseException
DataStoreVisitor.
The values received through the Visitor.visit(Object) method
may be transient, reused or externally modifiable, so they can't
be used to be stored in any external form out of the visit method.
If you need to store any of the values out of the
Visitor.visit(Object) method execution, create a copy or clone
the received value in order to be stored.accept in interface DataStorevisitor - the visitor to apply to each value.dataQuery - defines the properties of the data to visitBaseException - if there is an error while performing the visitpublic void getDataSet(Observer observer) throws DataException
DataStoregetDataSet in interface DataStoreobserver - to be notified for each block of data loadedDataException - if there is any error while loading the datapublic void getDataSet(DataQuery dataQuery, Observer observer) throws DataException
DataStoregetDataSet in interface DataStoredataQuery - defines the properties of the requested dataobserver - to be notified for each block of data loadedDataException - if there is any error while loading the datapublic DataServerExplorer getExplorer() throws DataException, ValidateDataParametersException
DataStoregetExplorer in interface DataStorenull if this was not accessed through any
DataServerExplorer.DataExceptionValidateDataParametersExceptionpublic DataStoreParameters getParameters()
DataStoregetParameters in interface DataStorepublic DataSet getSelection() throws DataException
DataStoregetSelection in interface DataStoreDataExceptionpublic void refresh()
throws DataException
DataStorerefresh in interface DataStoreDataExceptionpublic void setSelection(DataSet selection) throws DataException
DataStoresetSelection in interface DataStoreDataExceptionpublic void beginComplexNotification()
ComplexObservablebeginComplexNotification in interface ComplexObservablepublic void disableNotifications()
ComplexObservabledisableNotifications in interface ComplexObservablepublic void enableNotifications()
ComplexObservableenableNotifications in interface ComplexObservablepublic void endComplexNotification()
ComplexObservable
If a observer is a ComplexObserver, it will be notified with a
single DefaultComplexNotification instead of each of the notifications.
Some important notes to take into account when calling this method.
Observer is processing a notification another Observer is
registered to the source Observable, it won't get any of the
notifications currently being notified, but future ones.endComplexNotification in interface ComplexObservablepublic void addObserver(Observer o)
addObserver in interface Observablepublic void deleteObserver(Observer o)
deleteObserver in interface Observablepublic void deleteObservers()
deleteObservers in interface Observablepublic PersistentState getState() throws PersistenceException
PersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic Object getMetadataID()
MetadatagetMetadataID in interface Metadatapublic DynClass getDynClass()
getDynClass in interface DynObjectpublic Object getDynValue(String name) throws DynFieldNotFoundException
getDynValue in interface DynObjectDynFieldNotFoundExceptionpublic boolean hasDynValue(String name)
hasDynValue in interface DynObjectpublic Object invokeDynMethod(String name, Object[] args) throws DynMethodException
invokeDynMethod in interface DynObjectDynMethodExceptionpublic Object invokeDynMethod(int code, Object[] args) throws DynMethodException
invokeDynMethod in interface DynObjectDynMethodExceptionpublic void setDynValue(String name, Object value) throws DynFieldNotFoundException
setDynValue in interface DynObjectDynFieldNotFoundExceptionpublic Set getMetadataChildren()
MetadatagetMetadataChildren in interface Metadatapublic String getMetadataName()
MetadatagetMetadataName in interface Metadatapublic CoverageSelection createDefaultCoverageSelection() throws DataException
createDefaultCoverageSelection in interface CoverageStoreProviderServicesDataExceptionpublic DataManager getManager()
getManager in interface CoverageStoreProviderServicespublic CoverageStoreProvider getProvider()
getProvider in interface CoverageStoreProviderServicespublic void notifyChange(String notification)
notifyChange in interface CoverageStoreProviderServicespublic void notifyChange(String notification, Command command)
notifyChange in interface CoverageStoreProviderServicespublic void notifyChange(String notification, Resource resource)
notifyChange in interface CoverageStoreProviderServicespublic void open()
throws OpenException
OpenExceptionpublic void close()
throws CloseException
CloseExceptionprotected void doDispose()
throws BaseException
AbstractDisposableAbstractDisposable.dispose() method, to be
implemented by child classes.doDispose in class AbstractDisposableBaseExceptionAbstractDisposable.dispose()public boolean allowWrite()
public DataQuery createQuery()
DataStoreDataQuery.createQuery in interface DataStoreDataQuery instance.public DataStore getStore()
DataStoreProviderServicesgetStore in interface DataStoreProviderServicespublic CoverageStore getCoverageStore()
getCoverageStore in interface CoverageStoreProviderServicespublic String getProviderName()
DataStoregetProviderName in interface DataStorepublic String getName()
DataStorepublic String getFullName()
DataStoregetFullName in interface DataStorepublic Interval getInterval()
DataStoreInterval of the store, that means the temporal
interval where the store has valid data.getInterval in interface DataStorepublic Collection getTimes()
DataStorepublic Collection getTimes(Interval interval)
DataStore