org.openmuc.core.datamanager.impl
Class DataManagerImpl

java.lang.Object
  extended by org.openmuc.core.datamanager.impl.DataManagerImpl
All Implemented Interfaces:
DataManager

public class DataManagerImpl
extends java.lang.Object
implements DataManager


Constructor Summary
protected DataManagerImpl(org.osgi.framework.BundleContext bc, DeviceDriverManager manager, ConfigurationService configuration)
           
 
Method Summary
protected  void addDataStorage(DataStorage storage)
           
protected  void finalize()
           
 DataStorage getDataStorage(java.lang.String label, Authentication auth)
          Get the DataStorage object with the given label as identifier
protected  java.util.List<DataStorage> getDataStorages()
           
 java.util.List<java.lang.String> getDeviceDirectory()
          Get a list of all measurement and control data items provided by this DataManager
 PlantInfo getPlantInfo()
          Get Information about the plant including the plant identification/name
protected  void restart()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataManagerImpl

protected DataManagerImpl(org.osgi.framework.BundleContext bc,
                          DeviceDriverManager manager,
                          ConfigurationService configuration)
Method Detail

restart

protected void restart()

addDataStorage

protected void addDataStorage(DataStorage storage)

getDataStorage

public DataStorage getDataStorage(java.lang.String label,
                                  Authentication auth)
Description copied from interface: DataManager
Get the DataStorage object with the given label as identifier

Specified by:
getDataStorage in interface DataManager
Parameters:
label - unique identification of the DataStorage
auth - username / secret
Returns:
reference to the demanded DataStorage object

getDeviceDirectory

public java.util.List<java.lang.String> getDeviceDirectory()
Description copied from interface: DataManager
Get a list of all measurement and control data items provided by this DataManager

Specified by:
getDeviceDirectory in interface DataManager

getDataStorages

protected java.util.List<DataStorage> getDataStorages()

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

getPlantInfo

public PlantInfo getPlantInfo()
Description copied from interface: DataManager
Get Information about the plant including the plant identification/name

Specified by:
getPlantInfo in interface DataManager