@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 subsystemName,
String tag,
int level,
String categoryName,
String configName) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addParameterConfiguration(String parameterName,
String value) |
abstract void |
addParameterConfigurations(ParameterConfiguration... parameterConfigurations)
registers a list of parameter configurations
|
boolean |
equals(Object o) |
protected ParameterConfiguration |
fetch(PathObject path)
Looks if the
ConfigProfile object contains a modification for
the parameter defined by the specified PathObject |
List<ParameterConfiguration> |
getAllReconfigurationFailures()
after a failed repair gets all the failed Modifications
|
String |
getCategoryName() |
String |
getConfigName() |
long |
getEndTimestamp() |
abstract long |
getId() |
int |
getLevel() |
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 |
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 |
isChangingStaticData() |
abstract boolean |
isDirty() |
boolean |
isReadOnly() |
abstract void |
removeParameterConfigurations(ParameterConfiguration... parameterConfigurations)
removes a list of parameter configurations
|
List<String> |
reportFailures()
lists the failures as String.
|
protected abstract void |
setId(long id) |
void |
setName(String name) |
void |
setRemarks(String remarks)
no influence on behaviour.
|
protected void |
setStartTimestamp(long startTimestamp) |
void |
setSubsystemName(String subsystemName) |
abstract ParameterConfiguration |
temporaryChangeConfigurationValue(String parameterPath,
long time,
String value,
boolean checked) |
String |
toString() |
public abstract long getId()
protected abstract void setId(long id)
public abstract SubsystemDescription getSubsystemDescription()
public abstract Set<? extends ParameterConfiguration> getModifiedParameters()
public abstract ParameterConfiguration temporaryChangeConfigurationValue(String parameterPath, long time, String value, boolean checked)
public boolean isReadOnly()
public String getName()
public void setName(String name)
public boolean isChangingStaticData()
public String getSubsystemName()
public void setSubsystemName(String subsystemName)
public String getTag()
public String getCategoryName()
public String getConfigName()
public long getStartTimestamp()
protected void setStartTimestamp(long startTimestamp)
public long getEndTimestamp()
public int getLevel()
public String getRemarks()
public void setRemarks(String remarks)
remarks - public long getPreviousConfigID()
protected ParameterConfiguration fetch(PathObject path)
ConfigProfile object contains a modification for
the parameter defined by the specified PathObjectpath - parameterConfiguration that matches the specified
PathObjectpublic List<ParameterConfiguration> getAllReconfigurationFailures()
ParameterConfiguration that have failed to be
modified.public List<String> reportFailures()
public abstract void addParameterConfiguration(String parameterName, String value)
public 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 String getValueAt(String parameterPath, long date)
parameterPath - date - public String getValueAt(ParameterPath path, long date)
public abstract boolean isDirty()
ConfigProfile object contains unsaved changesCopyright © 2015 LSST. All rights reserved.