@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,
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() |
abstract Set<? extends ParameterConfiguration> |
getModifiedParameters() |
String |
getName() |
long |
getPreviousConfigID()
may return the id of a previous ConfigProfile (0L if none)
|
long |
getStartTimestamp() |
abstract SubsystemDescription |
getSubsystemDescription() |
String |
getSubsystemName() |
String |
getTag() |
String |
getValue(ParameterPath path) |
String |
getValue(String parameterPath)
gives the value of a given parameter at a given date on a ConfigProfile object.
|
int |
hashCode() |
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) |
protected void |
setStartTimestamp(long startTimestamp) |
void |
setSubsystemName(String subsystemName) |
String |
toString() |
public abstract long getId()
protected abstract void setId(long id)
public abstract SubsystemDescription getSubsystemDescription()
public abstract Set<? extends ParameterConfiguration> getModifiedParameters()
public boolean isReadOnly()
public String getName()
public void setName(String name)
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 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 getValue(String parameterPath)
parameterPath - public String getValue(ParameterPath path)
Copyright © 2017 LSST. All rights reserved.