org.deegree.rendering.r3d.multiresolution.persistence
Class BatchedMTStoreManager

java.lang.Object
  extended by org.deegree.commons.config.AbstractBasicResourceManager
      extended by org.deegree.rendering.r3d.multiresolution.persistence.BatchedMTStoreManager
All Implemented Interfaces:
ResourceManager

public class BatchedMTStoreManager
extends AbstractBasicResourceManager

The class TODO add class documentation here.

Version:
$Revision: 31619 $, $Date: 2011-08-23 14:56:28 +0200 (Tue, 23 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from class org.deegree.commons.config.AbstractBasicResourceManager
dir, idToState
 
Constructor Summary
BatchedMTStoreManager()
           
 
Method Summary
 ResourceState<BatchedMTStore> activate(String id)
          Activates the resource with the given identifier.
 ResourceState<BatchedMTStore> deactivate(String id)
          Deactivates the resource with the given identifier.
static BatchedMTStore get(String id)
          Returns the BatchedMTStore instance with the specified identifier.
static Collection<BatchedMTStore> getAll()
          Returns all active BatchedMTStores.
 Class<? extends ResourceManager>[] getDependencies()
           
 ResourceManagerMetadata<BatchedMTStore> getMetadata()
           
protected  ResourceProvider getProvider(File file)
           
 void init(File configLocation)
          Initializes the BatchedMTStoreManager by loading all BatchedMTStore configurations from the given directory.
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
 

Constructor Detail

BatchedMTStoreManager

public BatchedMTStoreManager()
Method Detail

init

public void init(File configLocation)
Initializes the BatchedMTStoreManager by loading all BatchedMTStore configurations from the given directory.

Parameters:
configLocation - containing BatchedMT manager configurations

get

public static BatchedMTStore get(String id)
Returns the BatchedMTStore instance with the specified identifier.

Parameters:
id - identifier of the BatchedMT store instance
Returns:
the corresponding BatchedMTStore instance or null if no such instance has been created

getAll

public static Collection<BatchedMTStore> getAll()
Returns all active BatchedMTStores.

Returns:
the BatchedMTStores instance, may be empty but never null

getDependencies

public Class<? extends ResourceManager>[] getDependencies()
Returns:
an empty array if there are no dependencies

shutdown

public void shutdown()
Description copied from interface: ResourceManager
Is called upon workspace shutdown.


startup

public void startup(DeegreeWorkspace workspace)
Description copied from interface: ResourceManager
Is called upon workspace startup.


getMetadata

public ResourceManagerMetadata<BatchedMTStore> getMetadata()
Returns:
a metadata object, may be null

activate

public ResourceState<BatchedMTStore> activate(String id)
Description copied from interface: ResourceManager
Activates the resource with the given identifier.

Parameters:
id - resource identifier, must not be null
Returns:
resource state after activation (may be unsuccessful), but never null

deactivate

public ResourceState<BatchedMTStore> deactivate(String id)
Description copied from interface: ResourceManager
Deactivates the resource with the given identifier.

Parameters:
id - resource identifier, must not be null
Returns:
resource state after deactivation (may be unsuccessful), but never null

getProvider

protected ResourceProvider getProvider(File file)
Specified by:
getProvider in class AbstractBasicResourceManager

remove

protected void remove(String id)
Specified by:
remove in class AbstractBasicResourceManager


Copyright © 2011. All Rights Reserved.