|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsst.ccs.config.FIleBasedDAO
public class FIleBasedDAO
Creates a dummy file-based Configuration database. all history operations are unsupported (as are SQL requests). The numbering scheme for ID are negative values and so can be detected
| Constructor Summary | |
|---|---|
FIleBasedDAO()
|
|
FIleBasedDAO(boolean notFromFile)
dummy constructor used by MemoryDAO |
|
| Method Summary | |
|---|---|
void |
begin()
starts a transaction |
void |
close()
claose all |
void |
deleteActiveConfigProfile(org.lsst.ccs.config.AConfigProfile oldProfile)
delectes the active profile from DB |
void |
deleteActiveSubsystemDescription(org.lsst.ccs.config.ASubsystemDescription oldDescription)
deletes an active description |
void |
end()
end a transaction |
void |
fail()
failure: must close transaction |
void |
fail(Throwable th)
same as fail but a Throwable can be used to log. |
org.lsst.ccs.config.AConfigProfile |
getActiveConfigProfile(String name,
String tag)
get configProfile with name and tag |
Collection<org.lsst.ccs.config.AConfigProfile> |
getActiveProfilesForSubsystem(org.lsst.ccs.config.ASubsystemDescription description)
gets the active configProfiles that references an active SubsystemDescription |
org.lsst.ccs.config.ASubsystemDescription |
getActiveSubsystemDescription(long id)
gets a subsystem descirption by it"s id |
org.lsst.ccs.config.ASubsystemDescription |
getActiveSubsystemDescription(String name,
String tag)
gets a SubsystemDescription in the corresponding active object table. |
org.lsst.ccs.config.GhostSubsystemDescription |
getGhostDescription(long id)
returns ghost with corresponding id |
MachineConfiguration |
getMachineConfiguration(String macAddress)
get a machine configuration.. |
PreparedConfiguration |
getPreparedConfiguration(String subsystemName,
String configName,
String tag)
returns a prepared Configuration |
Collection<org.lsst.ccs.config.PastConfigProfile> |
getProfilesForSubsystem(org.lsst.ccs.config.GhostSubsystemDescription description)
get the deprecated ConfigProfile that referenced a subsystemDescription (active or deprecated) |
void |
modifyParmConfig(org.lsst.ccs.config.AParameterConfiguration config)
registers a modified parameter |
void |
saveConfigProfile(org.lsst.ccs.config.AConfigProfile newProfile)
saves the new argument: ID is modified and argument becomes immutable. |
void |
saveGhostDescriptions(org.lsst.ccs.config.GhostSubsystemDescription ghosts)
saves the argument |
void |
saveMachineConfiguration(MachineConfiguration machineConfiguration)
saves a machine configuration |
void |
savePastProfile(org.lsst.ccs.config.PastConfigProfile deprecatedProfile)
saves argument |
void |
savePreparedConfiguration(PreparedConfiguration preparedConfiguration)
saves a preparedConfiguration |
void |
saveRun(RunHistory runHistory)
saves a run history |
void |
saveSubsystemDescription(org.lsst.ccs.config.ASubsystemDescription newDescription)
saves the argument: which must now becomes immutable and be numbered (with an ID) |
List<?> |
simpleHQLRequest(String hqlString)
execut simple request (read only: select of From) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FIleBasedDAO()
public FIleBasedDAO(boolean notFromFile)
notFromFile - | Method Detail |
|---|
public void begin()
DBInterface
begin in interface DBInterfacepublic void end()
DBInterface
end in interface DBInterfacepublic void fail()
DBInterface
fail in interface DBInterfacepublic void fail(Throwable th)
DBInterface
fail in interface DBInterfacepublic void saveSubsystemDescription(org.lsst.ccs.config.ASubsystemDescription newDescription)
DBInterface
saveSubsystemDescription in interface DBInterfacepublic void saveGhostDescriptions(org.lsst.ccs.config.GhostSubsystemDescription ghosts)
DBInterface
saveGhostDescriptions in interface DBInterface
public org.lsst.ccs.config.ASubsystemDescription getActiveSubsystemDescription(String name,
String tag)
DBInterface
getActiveSubsystemDescription in interface DBInterfacepublic org.lsst.ccs.config.ASubsystemDescription getActiveSubsystemDescription(long id)
DBInterface
getActiveSubsystemDescription in interface DBInterfacepublic org.lsst.ccs.config.GhostSubsystemDescription getGhostDescription(long id)
DBInterface
getGhostDescription in interface DBInterfacepublic void deleteActiveSubsystemDescription(org.lsst.ccs.config.ASubsystemDescription oldDescription)
DBInterface
deleteActiveSubsystemDescription in interface DBInterfacepublic void saveConfigProfile(org.lsst.ccs.config.AConfigProfile newProfile)
DBInterface
saveConfigProfile in interface DBInterfacepublic void savePastProfile(org.lsst.ccs.config.PastConfigProfile deprecatedProfile)
DBInterface
savePastProfile in interface DBInterface
public org.lsst.ccs.config.AConfigProfile getActiveConfigProfile(String name,
String tag)
DBInterface
getActiveConfigProfile in interface DBInterfacepublic void deleteActiveConfigProfile(org.lsst.ccs.config.AConfigProfile oldProfile)
DBInterface
deleteActiveConfigProfile in interface DBInterfacepublic void modifyParmConfig(org.lsst.ccs.config.AParameterConfiguration config)
DBInterface
modifyParmConfig in interface DBInterfacepublic Collection<org.lsst.ccs.config.AConfigProfile> getActiveProfilesForSubsystem(org.lsst.ccs.config.ASubsystemDescription description)
DBInterface
getActiveProfilesForSubsystem in interface DBInterfacepublic Collection<org.lsst.ccs.config.PastConfigProfile> getProfilesForSubsystem(org.lsst.ccs.config.GhostSubsystemDescription description)
DBInterface
getProfilesForSubsystem in interface DBInterfacepublic void saveRun(RunHistory runHistory)
DBInterface
saveRun in interface DBInterfacepublic void savePreparedConfiguration(PreparedConfiguration preparedConfiguration)
DBInterface
savePreparedConfiguration in interface DBInterface
public PreparedConfiguration getPreparedConfiguration(String subsystemName,
String configName,
String tag)
DBInterface
getPreparedConfiguration in interface DBInterfacepublic void saveMachineConfiguration(MachineConfiguration machineConfiguration)
DBInterface
saveMachineConfiguration in interface DBInterfacepublic MachineConfiguration getMachineConfiguration(String macAddress)
DBInterface
getMachineConfiguration in interface DBInterfacepublic List<?> simpleHQLRequest(String hqlString)
DBInterface
simpleHQLRequest in interface DBInterfacepublic void close()
DBInterface
close in interface DBInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||