public abstract class AbstractRecorderStrategy extends java.lang.Object implements RecorderStrategy
| Modifier and Type | Field and Description |
|---|---|
private StrategyStorage |
storage
Stores the strategy storage.
|
REGISTER_END, REGISTER_FORCE| Constructor and Description |
|---|
AbstractRecorderStrategy(StrategyStorage storage)
Creates a new recorder strategy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableVariabilityDetection(boolean enable)
Enables or disables automatic variability detection.
|
protected RecorderElement |
getRecorderElement(java.lang.String id)
Returns the recorder element for the given recording group id.
|
RecorderElementMap |
getRecorderElements()
Returns the set of recorder elements used by this strategy.
|
java.lang.String |
getRecorderId(java.lang.String className)
Maps a class name to its recorder id (called in this interface usually
recId). |
StrategyStorage |
getStorage()
Returns the attached storage.
|
char |
getVariabilitySeparatorChar()
Returns the char used for separating the variability id and its
current value (in configurations).
|
boolean |
isVariabilityDetectionEnabled()
Returns if automatic variability detection is enabled.
|
void |
registerForRecording(java.lang.String className,
java.lang.String recId,
MonitoringGroupConfiguration conf,
MonitoringGroupSettings settings)
Registers a given class for recording.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassignAllTo, clearTemporaryData, endSystem, enter, enterConfiguration, exit, finishRecording, memoryAllocated, memoryFreedByRecId, notifyProgramRecordCreation, notifyTimer, notifyValueChange, printCurrentState, printStatistics, readIo, register, startRecording, stopTimeRecording, writeIoprivate StrategyStorage storage
public AbstractRecorderStrategy(StrategyStorage storage)
storage - the storage objectpublic RecorderElementMap getRecorderElements()
public java.lang.String getRecorderId(java.lang.String className)
recId).getRecorderId in interface RecorderStrategyclassName - the class name to be mappedclassNamepublic char getVariabilitySeparatorChar()
getVariabilitySeparatorChar in interface RecorderStrategypublic void registerForRecording(java.lang.String className,
java.lang.String recId,
MonitoringGroupConfiguration conf,
MonitoringGroupSettings settings)
id might be specified to which the measurements are
assigned to. Ids are unique strings without inherent semantics. If
not given, the className is used for grouping and assigning
measurements (implicit 1-groups).registerForRecording in interface RecorderStrategyclassName - the name of the class measurements should be registered
forrecId - an optional group identification (may be empty or
null)conf - additional configuration for the monitoring group derived
from settingssettings - the monitoring group settings including all configuration
information (reference should not be stored, will be freed
explicitly)public void enableVariabilityDetection(boolean enable)
enableVariabilityDetection in interface RecorderStrategyenable - true if variability detection should be
enabled, false elsepublic boolean isVariabilityDetectionEnabled()
isVariabilityDetectionEnabled in interface RecorderStrategytrue if variability detection should be
enabled, false elseprotected final RecorderElement getRecorderElement(java.lang.String id)
id - the group identificationpublic StrategyStorage getStorage()
getStorage in interface RecorderStrategy