@MappedSuperclass public abstract class ConfigProfile extends Object implements Serializable
Important notice : for the moment an active configuration profile has a name and a tag. This combination is unique amongst active profile. BUT this is not the case once data of this type has been "pushed in history" :
| Modifier | Constructor and Description |
|---|---|
protected |
ConfigProfile() |
protected |
ConfigProfile(String name,
String subsystemName,
String tag,
String userName,
int level) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addParameterConfigurations(ParameterConfiguration... parameterConfigurations)
registers a list of parameter configurations
|
boolean |
equals(Object o) |
ParameterConfiguration |
fetch(PathObject path)
gets a ParameterConfiguration based on its PathObject
|
ParameterConfiguration |
fetch(String pathName) |
void |
generateConfigProperties(PrintWriter printer)
prints to a property file a template that represents this ConfigProfile
|
List<ParameterConfiguration> |
getAllReconfigurationFailures()
after a failed repair gets all the failed Modifications
|
Map<String,List<ParameterConfiguration>> |
getConfigurationMap()
for each component (key in the resulting map) builds a list of
parameterName/value contained in the Profile.
|
long |
getEndTimestamp() |
protected abstract long |
getId() |
int |
getLevel() |
abstract org.lsst.gruth.jutils.DescriptiveNode |
getModifiedConfigurationData()
prepares a new executable configuration data with these modified parameters.
|
abstract Set<? extends ParameterConfiguration> |
getModifiedParameters() |
String |
getName() |
long |
getPreviousConfigID()
may return the id of a previous ConfigProfile (0L if none)
|
String |
getRemarks() |
long |
getStartTimestamp() |
abstract SubsystemDescription |
getSubsystemDescription() |
String |
getSubsystemName() |
String |
getTag() |
String |
getUserName() |
String |
getValueAt(ParameterPath path,
long date) |
String |
getValueAt(String parameterPath,
long date)
gives the value of a given parameter at a given date on a ConfigProfile object.
|
int |
hashCode() |
boolean |
isBeenInEngineeringMode() |
boolean |
isChangingStaticData() |
boolean |
isReadOnly() |
abstract void |
mergeProperties(Properties props)
populates this configProfile with values extracted from a Properties object.
|
void |
modifyParameterConfiguration(String pathName,
String value)
creates and add a ParameterConfiguration and adds it to the profile
(based on the pathName of the parameter)
|
abstract void |
removeParameterConfigurations(ParameterConfiguration... parameterConfigurations)
removes a list of parameter configurations
|
List<String> |
reportFailures()
lists the failures as String.
|
void |
setBeenInEngineeringMode(boolean beenInEngineeringMode) |
protected abstract void |
setId(long id) |
void |
setRemarks(String remarks)
no influence on behaviour.
|
protected void |
setStartTimestamp(long startTimestamp) |
void |
setSubsystemName(String subsystemName) |
abstract void |
temporaryChangeConfigurationValue(ParameterConfiguration parameter,
long time,
String value,
boolean checked) |
abstract ParameterConfiguration |
temporaryChangeConfigurationValue(String parameterPath,
long time,
String value,
boolean checked) |
String |
toString() |
protected abstract long getId()
protected abstract void setId(long id)
public abstract SubsystemDescription getSubsystemDescription()
public abstract Set<? extends ParameterConfiguration> getModifiedParameters()
public abstract void temporaryChangeConfigurationValue(ParameterConfiguration parameter, long time, String value, boolean checked)
public abstract ParameterConfiguration temporaryChangeConfigurationValue(String parameterPath, long time, String value, boolean checked)
public boolean isReadOnly()
public boolean isBeenInEngineeringMode()
public void setBeenInEngineeringMode(boolean beenInEngineeringMode)
public String getName()
public boolean isChangingStaticData()
public String getSubsystemName()
public void setSubsystemName(String subsystemName)
public String getTag()
public long getStartTimestamp()
protected void setStartTimestamp(long startTimestamp)
public long getEndTimestamp()
public String getUserName()
public int getLevel()
public String getRemarks()
public void setRemarks(String remarks)
remarks - public long getPreviousConfigID()
public ParameterConfiguration fetch(PathObject path)
path - public ParameterConfiguration fetch(String pathName)
public Map<String,List<ParameterConfiguration>> getConfigurationMap()
public void modifyParameterConfiguration(String pathName, String value)
pathName - value - public List<ParameterConfiguration> getAllReconfigurationFailures()
public void generateConfigProperties(PrintWriter printer)
printer - public abstract void mergeProperties(Properties props)
props - IllegalArgumentException - if this profile is read only or if a value is illegalpublic abstract void addParameterConfigurations(ParameterConfiguration... parameterConfigurations)
parameterConfigurations - ImmutableStateException - if the object is already registered in databaseIllegalArgumentException - if levels are incompatiblesIllegalArgumentException - if the corresponding parameter descriptions are not alive in the current
subsystem descriptionpublic abstract void removeParameterConfigurations(ParameterConfiguration... parameterConfigurations)
parameterConfigurations - ImmutableStateException - if operated on an object registered to the databasepublic abstract org.lsst.gruth.jutils.DescriptiveNode getModifiedConfigurationData()
public String getValueAt(String parameterPath, long date)
parameterPath - date - public String getValueAt(ParameterPath path, long date)
Copyright © 2015 LSST. All rights reserved.