|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsst.ccs.config.ConfigProfile
@MappedSuperclass public abstract class ConfigProfile
This class represents a set of parameter that have been modified for a given subsystem.
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" :
| Constructor Summary | |
|---|---|
protected |
ConfigProfile()
|
protected |
ConfigProfile(String name,
String tag,
String userName,
int level)
|
| Method Summary | |
|---|---|
abstract void |
addParameterConfigurations(ParameterConfiguration... parameterConfigurations)
registers a list of parameter configurations |
boolean |
equals(Object o)
|
ParameterConfiguration |
fetch(PathObject path)
|
void |
generateConfigProperties(PrintWriter printer)
prints to a property file a template that represents this ConfigProfile |
long |
getEndTimestamp()
|
protected abstract long |
getId()
|
int |
getLevel()
|
abstract org.lsst.gruth.jutils.ComponentNode |
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(String parameterPath,
long date)
gives the value of a given parameter at a given date on a ConfigProfile object. |
int |
hashCode()
|
boolean |
isBeenInEngineeringMode()
|
boolean |
isReadOnly()
|
abstract void |
mergeProperties(Properties props)
populates this configProfile with values extracted from a Properties object. |
abstract void |
removeParameterConfigurations(ParameterConfiguration... parameterConfigurations)
removes a list of parameter configurations |
protected abstract void |
setId(long id)
|
void |
setRemarks(String remarks)
no influence on behaviour. |
protected void |
setStartTimestamp(long startTimestamp)
|
abstract void |
temporaryChangeConfigurationValue(ParameterConfiguration parameter,
long time,
String value)
|
abstract ParameterConfiguration |
temporaryChangeConfigurationValue(String parameterPath,
long time,
String value)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ConfigProfile()
protected ConfigProfile(String name,
String tag,
String userName,
int level)
| Method Detail |
|---|
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)
public abstract ParameterConfiguration temporaryChangeConfigurationValue(String parameterPath,
long time,
String value)
public boolean isReadOnly()
public boolean isBeenInEngineeringMode()
public String getName()
public String getSubsystemName()
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 boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic ParameterConfiguration fetch(PathObject path)
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 database
IllegalArgumentException - if levels are incompatibles
IllegalArgumentException - 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.ComponentNode getModifiedConfigurationData()
public String getValueAt(String parameterPath,
long date)
parameterPath - date -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||