|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsst.ccs.config.ConfigurationFacade
public class ConfigurationFacade
implements complex strategies on top of the DBInterface. Dues to cache problems there should be only one instance of this class operating on the network. services are to be addressed remotely if needed.
| Constructor Summary | |
|---|---|
ConfigurationFacade(DBInterface dao)
creates a facade object on top of a Data Access Object that implements the base services. |
|
| Method Summary | |
|---|---|
ConfigProfile |
deprecateConfigProfile(String name,
String tag)
Deprecates a ConfigProfile. |
SubsystemDescription |
deprecateSubsystemDescription(String subsystemName,
String tag)
Deprecates a Subsystem description already in the database. |
void |
endRun(String subsystemName,
String configName,
String tag,
long endTime)
marks the end of a run. |
ParameterConfiguration |
engineerParmConfig(ParameterConfiguration parameterConfiguration)
registers modified parameter during an engineering session |
org.lsst.gruth.jutils.ComponentNode |
getActiveComponentNode(MachineConfiguration machineConfiguration)
gets a ComponentNode from a MachineConfiguration object |
org.lsst.gruth.jutils.ComponentNode |
getActiveComponentNode(String subsystemName,
String configName,
String tag)
Gets a ComponentNode that can ge used to start a subsystem. |
ConfigProfile |
getActiveConfigProfile(String name,
String tag)
returns an active ConfigProfile with name and tag |
SubsystemDescription |
getActiveSubsystemDescription(String name,
String tag)
returns the active subsystem description with name and tag. |
String |
getActiveValueAt(String subsystemName,
String parameterPath,
long date)
returns the value of a parameter for a subsystem at a given date. |
ConfigProfile |
getConfigRunningAt(String subsystemName,
long date)
returns the ConfigProfile active when a subsystem was running at that date. |
ConfigProfile |
getConfigValidAt(String configName,
String configTag,
long date)
tries to get a ConfigProfile which was valid at a given date. |
MachineConfiguration |
getMachineConfiguration(String macAddress)
get a MachineConfiguration object from the database. |
ConfigProfile |
getNext(ConfigProfile current)
gets the next modified ConfigProfile with same name and tag |
ConfigProfile |
getPrevious(ConfigProfile current)
gets a previous ConfigProfile with the same name and tag. |
SubsystemDescription |
getPrevious(SubsystemDescription current)
returns the previous description with same name and tag. |
String |
getValueValidAt(String profileName,
String profileTag,
String parameterPath,
long date)
returns the value of a parameter at a given time for a given Profile. |
ConfigProfile |
registerConfigProfile(ConfigProfile newProfile)
registers a ConfigProfile in the database. |
void |
registerMachineConfiguration(MachineConfiguration machineConfiguration)
regsiters a MachineConfiguration object to the database |
PreparedConfiguration |
registerPreparedConfiguration(String subsystemName,
String configName,
String tag,
String user)
creates and registers a PreparedConfiguration. |
void |
registerRun(String subsystemName,
String configName,
String tag,
long startTime)
the run and end registrations are based on messages received from a subsystem. |
SubsystemDescription |
registerSubsystemDescription(SubsystemDescription newDescription)
registers a new (and complete) SubsystemDescription to the persistence Layer. |
void |
setDeprecationListener(DeprecationListener deprecationListener)
|
List<?> |
simpleHQLRequest(String hqlString)
forwards an HQLrequest to the DAO. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationFacade(DBInterface dao)
dao - | Method Detail |
|---|
public void setDeprecationListener(DeprecationListener deprecationListener)
public SubsystemDescription registerSubsystemDescription(SubsystemDescription newDescription)
throws PersistenceLayerException
description = facade.registerSubsystemDescription(description);if trying to save a Subsystem description already under DB management this method does nothing.
newDescription - a new SubsystemDescription with all ParameterDescriptions (this object is managed and modified
by the persistence layer)
PersistenceLayerException
IllegalArgumentException - if argument not a "new" description (generated by the factories)
public SubsystemDescription deprecateSubsystemDescription(String subsystemName,
String tag)
throws PersistenceLayerException
subsystemName - tag - use "" if there is no tag
PersistenceLayerException
public SubsystemDescription getActiveSubsystemDescription(String name,
String tag)
throws PersistenceLayerException
name - tag -
PersistenceLayerException
public ConfigProfile registerConfigProfile(ConfigProfile newProfile)
throws PersistenceLayerException
newProfile -
PersistenceLayerException
public ConfigProfile deprecateConfigProfile(String name,
String tag)
throws PersistenceLayerException
name - tag -
PersistenceLayerException
public ConfigProfile getActiveConfigProfile(String name,
String tag)
throws PersistenceLayerException
name - tag -
PersistenceLayerException
public ParameterConfiguration engineerParmConfig(ParameterConfiguration parameterConfiguration)
throws PersistenceLayerException
parameterConfiguration -
PersistenceLayerException
IllegalArgumentException - if the parameterConfiguration is not a regsitered active parameter of if
the configuration is not in engineering mode
public void registerRun(String subsystemName,
String configName,
String tag,
long startTime)
throws PersistenceLayerException
subsystemName - configName - tag - startTime -
PersistenceLayerException
public void endRun(String subsystemName,
String configName,
String tag,
long endTime)
throws PersistenceLayerException
subsystemName - configName - tag - endTime -
PersistenceLayerException
public PreparedConfiguration registerPreparedConfiguration(String subsystemName,
String configName,
String tag,
String user)
throws PersistenceLayerException
subsystemName - can be null or empty if configName is validconfigName - can be null or empty if subsystemName is validtag -
PersistenceLayerException - id db problem
IllegalArgumentException - if subsystemName and ConfigName are incompatible
public org.lsst.gruth.jutils.ComponentNode getActiveComponentNode(String subsystemName,
String configName,
String tag)
throws PersistenceLayerException
subsystemName - configName - tag -
PersistenceLayerException
public org.lsst.gruth.jutils.ComponentNode getActiveComponentNode(MachineConfiguration machineConfiguration)
throws PersistenceLayerException
machineConfiguration -
PersistenceLayerException
public void registerMachineConfiguration(MachineConfiguration machineConfiguration)
throws PersistenceLayerException
machineConfiguration -
PersistenceLayerException
public MachineConfiguration getMachineConfiguration(String macAddress)
throws PersistenceLayerException
macAddress -
PersistenceLayerException
public ConfigProfile getConfigRunningAt(String subsystemName,
long date)
throws PersistenceLayerException
subsystemName - date -
PersistenceLayerException
public ConfigProfile getConfigValidAt(String configName,
String configTag,
long date)
throws PersistenceLayerException
configName - configTag -
PersistenceLayerException
public String getActiveValueAt(String subsystemName,
String parameterPath,
long date)
throws PersistenceLayerException
subsystemName - parameterPath - date -
PersistenceLayerException
public String getValueValidAt(String profileName,
String profileTag,
String parameterPath,
long date)
throws PersistenceLayerException
profileName - profileTag - parameterPath - a String in Path syntax ("componentName//parameterName")date -
PersistenceLayerException
public ConfigProfile getPrevious(ConfigProfile current)
throws PersistenceLayerException
current -
PersistenceLayerException
public ConfigProfile getNext(ConfigProfile current)
throws PersistenceLayerException
current -
PersistenceLayerException
public SubsystemDescription getPrevious(SubsystemDescription current)
throws PersistenceLayerException
current -
PersistenceLayerException
public List<?> simpleHQLRequest(String hqlString)
throws PersistenceLayerException
hqlString -
PersistenceLayerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||