|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.commons.config.AbstractBasicResourceManager org.deegree.observation.persistence.ObservationStoreManager
public class ObservationStoreManager
The class TODO add class documentation here.
Field Summary |
---|
Fields inherited from class org.deegree.commons.config.AbstractBasicResourceManager |
---|
dir, idToState, workspace |
Constructor Summary | |
---|---|
ObservationStoreManager()
|
Method Summary | |
---|---|
ResourceState |
activate(String id)
Activates the resource with the given identifier. |
static boolean |
containsDatastore(String datastoreId)
|
ResourceState |
deactivate(String id)
Deactivates the resource with the given identifier. |
static void |
destroy()
|
static ObservationDatastore |
get(String id)
Returns the ObservationDatastore instance with the specified identifier. |
static Collection<ObservationDatastore> |
getAll()
Returns all active ObservationDatastore s. |
static ObservationDatastore |
getDatastoreById(String datastoreId)
|
Class<? extends ResourceManager>[] |
getDependencies()
|
ResourceManagerMetadata |
getMetadata()
|
protected ResourceProvider |
getProvider(File file)
|
static Map<String,ObservationStoreProvider> |
getProviders()
Returns all available providers. |
static void |
init(File osDir)
|
protected void |
remove(String id)
|
void |
shutdown()
Is called upon workspace shutdown. |
void |
startup(DeegreeWorkspace workspace)
Is called upon workspace startup. |
Methods inherited from class org.deegree.commons.config.AbstractBasicResourceManager |
---|
createResource, deleteResource, getState, getStates, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.deegree.commons.config.ResourceManager |
---|
createResource, deleteResource, getState, getStates |
Constructor Detail |
---|
public ObservationStoreManager()
Method Detail |
---|
public static void init(File osDir)
osDir
- public static ObservationDatastore get(String id)
ObservationDatastore
instance with the specified identifier.
id
- identifier of the observation store instance
ObservationDatastore
instance or null if no such instance has been createdpublic static Collection<ObservationDatastore> getAll()
ObservationDatastore
s.
ObservationDatastore
s instance, may be empty but never null
public static Map<String,ObservationStoreProvider> getProviders()
public static ObservationDatastore getDatastoreById(String datastoreId) throws ObservationDatastoreException
datastoreId
-
ObservationDatastoreException
public static boolean containsDatastore(String datastoreId)
datastoreId
-
public static void destroy()
public Class<? extends ResourceManager>[] getDependencies()
getDependencies
in interface ResourceManager
public void shutdown()
ResourceManager
shutdown
in interface ResourceManager
public void startup(DeegreeWorkspace workspace)
ResourceManager
startup
in interface ResourceManager
public ResourceManagerMetadata getMetadata()
getMetadata
in interface ResourceManager
public ResourceState activate(String id)
ResourceManager
activate
in interface ResourceManager
id
- resource identifier, must not be null
null
public ResourceState deactivate(String id)
ResourceManager
deactivate
in interface ResourceManager
id
- resource identifier, must not be null
null
protected ResourceProvider getProvider(File file)
getProvider
in class AbstractBasicResourceManager
protected void remove(String id)
remove
in class AbstractBasicResourceManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |