public class MultipleRecorderElement extends AbstractMultipleRecorderElement
ContributingRecorderElement because it passes the
same recorded value to all represented recorder elements.| Modifier and Type | Field and Description |
|---|---|
private boolean |
elementResources
Consider the individual accountable resources
of the stored elements in addition to those configured for this
group (
true) or this group only (false). |
| Modifier | Constructor and Description |
|---|---|
protected |
MultipleRecorderElement(MonitoringGroupConfiguration conf,
RecorderElement[] elements,
boolean distributeValues,
boolean elementResources)
Creates a recorder element.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
enableRecording(RecorderElement elt,
ResourceType resource)
Returns whether the given element should record the specified resource.
|
RecorderElement |
getContributing(int index)
Returns a contributing recording element, i.e. one of the elements
assigned to individual variants in a variability configuration.
|
(package private) RecorderElement |
getContributing(int index,
RecorderElementFactory factory,
int max)
Returns the currently relevant recorder element (in case that
multiple subelements are supported).
|
int |
getContributingSize()
Returns the number of contributing recording elements, i.e. the elements
recording individual variants in a variability configuration.
|
boolean |
hasDebugStates(DebugState state)
Returns if this instance has the given
state selected. |
boolean |
isVisible()
Returns whether this element is a pseudo element and should not be
visible to the user.
|
addNetBytes, copy, countAccountable, distributeIntValue, distributeLongValue, ensureSize, firstElement, getCpuTimeTicks, getElement, getElementCount, getFileIn, getFileOut, getIoRead, getIoWrite, getMemAllocated, getMemUse, getNetIn, getNetOut, getStartCpuTime, getStartSystemTime, getSystemTimeTicks, hasElement, memoryAllocated, memoryFreed, readIo, setCpuTimeTicks, setElement, startTimeRecording, stopTimeRecording, timeCorrection, updateMemoryFreedFromJvm, wasRecorded, writeIoaccountResource, checkConf, createForTest, getConfiguration, getGroupAccounting, getInstanceRecorderElement, getResources, getVarId, instanceRecorderElements, instanceRecorderIds, isIndirectAccounting, setVarIdprivate boolean elementResources
true) or this group only (false).protected MultipleRecorderElement(MonitoringGroupConfiguration conf, RecorderElement[] elements, boolean distributeValues, boolean elementResources)
conf - the monitoring group configurationelements - the set of elements to be storeddistributeValues - account the fraction of the values according to
the accountable elements or the entire value (indirect)elementResources - consider the individual accountable resources
of the stored elements in addition to those configured for this
group (true) or this group only (false)public boolean hasDebugStates(DebugState state)
state selected.hasDebugStates in class RecorderElementstate - the state to be testedtrue if the state is selected, false
elseRecorderElement getContributing(int index, RecorderElementFactory factory, int max)
getContributing in class RecorderElementindex - the index of the sub elementfactory - a factory to create new elements if neededmax - the (current) number of maximum required subelements (
variabilities)public RecorderElement getContributing(int index)
getContributing in class RecorderElementindex - the element to be returnedjava.lang.ArrayIndexOutOfBoundsException - if
index<0 || index>=getContributingSize()public int getContributingSize()
getContributingSize in class RecorderElementpublic boolean isVisible()
isVisible in class RecorderElementtrue if this element is visible, false
elseprotected boolean enableRecording(RecorderElement elt, ResourceType resource)
enableRecording in class AbstractMultipleRecorderElementelt - the element to be consideredresource - the resource to be testedtrue if recording should be done,
false else