|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsst.ccs.config.remote.ConfigurationServiceImpl
public class ConfigurationServiceImpl
A raw implementation of Configuration Service that delegates to a ConfigurationFacade object.
| Field Summary | |
|---|---|
static ConfigurationServiceImpl |
ON_HIBERNATE
|
static ConfigurationServiceImpl |
ON_LOCAL_FILES
|
| Constructor Summary | |
|---|---|
ConfigurationServiceImpl(ConfigurationFacade facade)
|
|
| Method Summary | |
|---|---|
void |
createPreparedConfiguration(String subsystemName,
String configName,
String tag,
String user)
generates in the database a special entry with a merge of description and configuration |
ProfileResult |
deprecateConfigProfile(String name,
String tag)
Deprecates a valid Configuration Profile. |
DescriptionResult |
deprecateSubsystemDescription(String subsystemName,
String tag)
Deprecates a registered subsystem. |
ConfigProfile |
getActiveConfigProfile(String name,
String tag)
gets an active ConfigProfile with anme and tag |
SubsystemDescription |
getActiveSubsystemDescription(String name,
String tag)
fetch the active Description with name and tag |
String |
getActiveValueAt(String subsystemName,
String parameterPath,
long date)
gets the value of a parameter for a subsystem which was active at a moment in time. |
ConfigProfile |
getConfigRunningAt(String subsystemName,
long date)
Returns the Configuration which was running for a given subsystem at a moment in time |
ConfigProfile |
getConfigValidAt(String name,
String tag,
long date)
Gets a ConfigProfile which was (or is) valid at a precise moment. |
ConfigurationFacade |
getFacade()
|
MachineConfiguration |
getMachineConfiguration(String macAddress)
get the machine configuration for a specific machine |
ConfigProfile |
getNext(ConfigProfile current)
Gets a (deprecated or "alive") ConfigProfile with same name and tag as the argument |
ConfigProfile |
getPrevious(ConfigProfile current)
gets a (deprecated) ConfigProfile with same name and tag as the argument. |
SubsystemDescription |
getPrevious(SubsystemDescription current)
Gets the (deprecated) SubsystemDescription with same characteritics as the argument |
String |
getValueValidAt(String profileName,
String profileTag,
String parameterPath,
long date)
Gets the value of a Parameter which was valid at a moment in time. |
ParameterConfiguration |
modifyParmConf(ParameterConfiguration engineeringModeParm)
Registers a modification to a ParameterConfiguration operated through ConfigProfile.temporaryChangeConfigurationValue |
ProfileResult |
registerConfigProfile(ConfigProfile newProfile)
Registers a new ConfigProfile in the configuration service. |
ProfileResult |
registerConfiguration(String subsystemName,
String configurationName,
String tag,
String user,
int level,
Properties props)
typical remote service: a local properties structure is base for creating a new ConfigProfile |
void |
registerMachineConfiguration(MachineConfiguration machineConfiguration)
registers in the database a machineConfiguration entry |
DescriptionResult |
registerSubsystemDescription(SubsystemDescription newDescription)
Registers in the configuration service a new subsystem description (created through Factories code. |
List<?> |
simpleHQLRequest(String hqlString)
can send a simple HQL request to the underlying Database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static ConfigurationServiceImpl ON_HIBERNATE
public static ConfigurationServiceImpl ON_LOCAL_FILES
| Constructor Detail |
|---|
public ConfigurationServiceImpl(ConfigurationFacade facade)
| Method Detail |
|---|
public ConfigurationFacade getFacade()
public DescriptionResult registerSubsystemDescription(SubsystemDescription newDescription)
throws RemoteException
ConfigurationService
registerSubsystemDescription in interface ConfigurationServicenewDescription - do not use this object any more after the call
RemoteException
public DescriptionResult deprecateSubsystemDescription(String subsystemName,
String tag)
throws RemoteException
ConfigurationService
deprecateSubsystemDescription in interface ConfigurationServiceRemoteException
public SubsystemDescription getActiveSubsystemDescription(String name,
String tag)
throws RemoteException
ConfigurationService
getActiveSubsystemDescription in interface ConfigurationServiceRemoteException
public ProfileResult registerConfigProfile(ConfigProfile newProfile)
throws RemoteException
ConfigurationService
registerConfigProfile in interface ConfigurationServicenewProfile - do not use this object any more after the call
RemoteException
public ProfileResult registerConfiguration(String subsystemName,
String configurationName,
String tag,
String user,
int level,
Properties props)
throws RemoteException
ConfigurationService
registerConfiguration in interface ConfigurationServiceRemoteException
public ProfileResult deprecateConfigProfile(String name,
String tag)
throws RemoteException
ConfigurationService
deprecateConfigProfile in interface ConfigurationServicename - configuration name
RemoteException
public ConfigProfile getActiveConfigProfile(String name,
String tag)
throws RemoteException
ConfigurationService
getActiveConfigProfile in interface ConfigurationServiceRemoteException
public ParameterConfiguration modifyParmConf(ParameterConfiguration engineeringModeParm)
throws RemoteException
ConfigurationService
modifyParmConf in interface ConfigurationServiceengineeringModeParm - a ParameterConfiguration object which is registered in a registered
ConfigProfile object in engineering mode (see Factories.copyProfile
and register the resulting profile before calling this method)
RemoteException
public ConfigProfile getConfigRunningAt(String subsystemName,
long date)
throws RemoteException
ConfigurationServiceNOTE: this method will not work on "dummy local services"
getConfigRunningAt in interface ConfigurationServiceRemoteException
public String getActiveValueAt(String subsystemName,
String parameterPath,
long date)
throws RemoteException
ConfigurationServiceNOTE: this method will not work on "dummy local services"
getActiveValueAt in interface ConfigurationServiceRemoteException
public ConfigProfile getConfigValidAt(String name,
String tag,
long date)
throws RemoteException
ConfigurationServiceNOTE: this method will not work on "dummy local services"
getConfigValidAt in interface ConfigurationServiceRemoteException
public String getValueValidAt(String profileName,
String profileTag,
String parameterPath,
long date)
throws RemoteException
ConfigurationServiceNOTE: this method will not work on "dummy local services"
there is no need for a susbsystem name since at a moment in time there is only one subsystem known to a combintaiton of config name and tag.
getValueValidAt in interface ConfigurationServiceRemoteException
public ConfigProfile getPrevious(ConfigProfile current)
throws RemoteException
ConfigurationService
getPrevious in interface ConfigurationServiceRemoteException
public ConfigProfile getNext(ConfigProfile current)
throws RemoteException
ConfigurationService
getNext in interface ConfigurationServiceRemoteException
public SubsystemDescription getPrevious(SubsystemDescription current)
throws RemoteException
ConfigurationService
getPrevious in interface ConfigurationServiceRemoteException
public void createPreparedConfiguration(String subsystemName,
String configName,
String tag,
String user)
throws RemoteException
ConfigurationService
createPreparedConfiguration in interface ConfigurationServiceRemoteException
public void registerMachineConfiguration(MachineConfiguration machineConfiguration)
throws RemoteException
ConfigurationService
registerMachineConfiguration in interface ConfigurationServiceRemoteException
public MachineConfiguration getMachineConfiguration(String macAddress)
throws RemoteException
ConfigurationService
getMachineConfiguration in interface ConfigurationServiceRemoteException
public List<?> simpleHQLRequest(String hqlString)
throws RemoteException
ConfigurationServiceNOTE: this method will not work on "dummy local services"
simpleHQLRequest in interface ConfigurationServiceRemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||