*/
public class PartialHistoryBackend implements IStateHistoryBackend {
+ private final @NonNull String fSSID;
+
/**
* A partial history needs the state input plugin to re-generate state
* between checkpoints.
/**
* Constructor
*
+ * @param ssid
+ * The state system's ID
* @param partialInput
* The state change input object that was used to build the
* upstream state system. This partial history will make its own
* Configuration parameter indicating how many trace events there
* should be between each checkpoint
*/
- public PartialHistoryBackend(ITmfStateProvider partialInput, PartialStateSystem pss,
- IStateHistoryBackend realBackend, long granularity) {
+ public PartialHistoryBackend(@NonNull String ssid,
+ ITmfStateProvider partialInput,
+ PartialStateSystem pss,
+ IStateHistoryBackend realBackend,
+ long granularity) {
if (granularity <= 0 || partialInput == null || pss == null ||
partialInput.getAssignedStateSystem() != pss) {
throw new IllegalArgumentException();
final long startTime = realBackend.getStartTime();
+ fSSID = ssid;
fPartialInput = partialInput;
fPartialSS = pss;
/* The request will countDown the checkpoints latch once it's finished */
}
+ @Override
+ public String getSSID() {
+ return fSSID;
+ }
+
@Override
public long getStartTime() {
return fInnerHistory.getStartTime();