Class MeasurementsDaoFactoryImpl
- java.lang.Object
-
- org.palladiosimulator.edp2.dao.impl.MeasurementsDaoFactoryImpl
-
- All Implemented Interfaces:
MeasurementsDaoFactory
- Direct Known Subclasses:
LocalDirectoryMeasurementsDaoFactory
,MemoryMeasurementsDaoFactory
public abstract class MeasurementsDaoFactoryImpl extends Object implements MeasurementsDaoFactory
-
-
Constructor Summary
Constructors Constructor Description MeasurementsDaoFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Q extends javax.measure.quantity.Quantity>
BinaryMeasurementsDao<Double,Q>createDoubleMeasurementsDao(String uuid)
Creates a DAO to access measured data of type double.<Q extends javax.measure.quantity.Quantity>
JScienceXmlMeasurementsDao<?,Q>createJScienceXmlMeasurementsDao(String uuid)
Creates a DAO to access measured data of type nominal measurement.<Q extends javax.measure.quantity.Quantity>
BinaryMeasurementsDao<Long,Q>createLongMeasurementsDao(String uuid)
Creates a DAO to access measured data of type long.BinaryMeasurementsDao<org.palladiosimulator.metricspec.Identifier,javax.measure.quantity.Dimensionless>
createNominalMeasurementsDao(String uuid, org.palladiosimulator.metricspec.TextualBaseMetricDescription metric)
boolean
isActive()
Checks if this factory is active.void
setActive(boolean newValue)
Allows to activate the factory.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.palladiosimulator.edp2.dao.MeasurementsDaoFactory
createDoubleMeasurementsDao, createLongMeasurementsDao, createNominalMeasurementsDao, getDaoRegistry
-
-
-
-
Method Detail
-
createDoubleMeasurementsDao
public <Q extends javax.measure.quantity.Quantity> BinaryMeasurementsDao<Double,Q> createDoubleMeasurementsDao(String uuid)
Description copied from interface:MeasurementsDaoFactory
Creates a DAO to access measured data of type double.- Specified by:
createDoubleMeasurementsDao
in interfaceMeasurementsDaoFactory
- Parameters:
uuid
- UUID of the AbstractMeasureProvider.- Returns:
- DAO for the measurements with the specified uuid.
-
createJScienceXmlMeasurementsDao
public <Q extends javax.measure.quantity.Quantity> JScienceXmlMeasurementsDao<?,Q> createJScienceXmlMeasurementsDao(String uuid)
Description copied from interface:MeasurementsDaoFactory
Creates a DAO to access measured data of type nominal measurement.- Specified by:
createJScienceXmlMeasurementsDao
in interfaceMeasurementsDaoFactory
- Parameters:
uuid
- UUID of the AbstractMeasureProvider.- Returns:
- DAO for the measurements with the specified uuid.
-
createLongMeasurementsDao
public <Q extends javax.measure.quantity.Quantity> BinaryMeasurementsDao<Long,Q> createLongMeasurementsDao(String uuid)
Description copied from interface:MeasurementsDaoFactory
Creates a DAO to access measured data of type long.- Specified by:
createLongMeasurementsDao
in interfaceMeasurementsDaoFactory
- Parameters:
uuid
- UUID of the AbstractMeasureProvider.- Returns:
- DAO for the measurements with the specified uuid.
-
createNominalMeasurementsDao
public BinaryMeasurementsDao<org.palladiosimulator.metricspec.Identifier,javax.measure.quantity.Dimensionless> createNominalMeasurementsDao(String uuid, org.palladiosimulator.metricspec.TextualBaseMetricDescription metric)
- Specified by:
createNominalMeasurementsDao
in interfaceMeasurementsDaoFactory
-
isActive
public boolean isActive()
Description copied from interface:MeasurementsDaoFactory
Checks if this factory is active. Active means it can be used to generate the requested DAOs. If the connection to the data store is closed it should become inactive.- Specified by:
isActive
in interfaceMeasurementsDaoFactory
- Returns:
true>
if this factory is active and all method can be used.
-
setActive
public void setActive(boolean newValue)
Description copied from interface:MeasurementsDaoFactory
Allows to activate the factory.- Specified by:
setActive
in interfaceMeasurementsDaoFactory
- Parameters:
newValue
-true
if the factory should be activated.
-
-