org.lsst.ccs.config
Class RunHistory
java.lang.Object
org.lsst.ccs.config.RunHistory
- All Implemented Interfaces:
- Serializable
@Entity
public class RunHistory
- extends Object
- implements Serializable
Entries int his table are generated by reading the status bus where subsystem advertise their startup.
Though there is a "endTimestamp" it is possible that the end of an execution is "missed" by the system.
So finding the configuration at a precise moment in time may be complex.
this can be done either by sorting (should be performed during a day task)
or as a direct operation
in this last case two operations should correlate:
- When creating a new entry with same subsystem name
get all entries with same subsystem and where "timenext" is zero.
put the timenext at current value and if "endTimeStampLimit" is max put the current time
- when looking for a precise entry in time.
just operate a comparison between starttime and endTimeLimit
- Author:
- bamade
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunHistory
public RunHistory(String subsystemName,
String configurationName,
String tag,
long startTimestamp)
getId
public long getId()
getSubsystemName
public String getSubsystemName()
getConfigurationName
public String getConfigurationName()
getTag
public String getTag()
getStartTimestamp
public long getStartTimestamp()
isStartGuessed
public boolean isStartGuessed()
setStartGuessed
public void setStartGuessed(boolean startGuessed)
isEndGuessed
public boolean isEndGuessed()
setEndGuessed
public void setEndGuessed(boolean endGuessed)
getEndTimestampLimit
public long getEndTimestampLimit()
setEndTimestampLimit
public void setEndTimestampLimit(long endTimestampLimit)
getTimeNext
public long getTimeNext()
setTimeNext
public void setTimeNext(long timeNext)
Copyright © 2013 LSST. All Rights Reserved.