public class MonitoringGroupSettings
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private BooleanValue |
considerContained
Stores whether accountable resources of the multi monitoring group
is authoritative or weather the contained groups should be considered.
|
private DebugState[] |
debugStates
Returns a combination of debug states for additional information to
be emitted during monitoring.
|
private BooleanValue |
distributeValues
Stores whether values in multi groups should be distributed evenly to
the contained values or whether the entire value should be added to each
group.
|
private GroupAccountingType |
gType
Stores the group accounting to be applied.
|
private java.lang.String[] |
id
Contains arbitrary ids for monitoring and grouping.
|
private InstanceIdentifierKind |
instanceIdentifierKind
Stores the instance identifier kind.
|
private static ArrayList<MonitoringGroupSettings> |
POOL
Stores instances of this class for reuse.
|
private ResourceType[] |
resources
Stores the resources to be accounted.
|
| Modifier | Constructor and Description |
|---|---|
private |
MonitoringGroupSettings()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Cleans the attributes of this instance.
|
MonitoringGroupSettings |
create()
Creates a further instance of this instances (intended as factory method
to be executed on a prototypical instance).
|
GroupAccountingType |
getAccountingType()
Returns the group accounting to be applied.
|
BooleanValue |
getConsiderContained()
Returns whether accountable resources of the multi monitoring group
is authoritative or weather the contained groups should be considered.
|
DebugState[] |
getDebugStates()
Returns a combination of debug states for additional information to
be emitted during monitoring.
|
BooleanValue |
getDistributeValues()
Returns whether values in multi groups should be distributed evenly to
the contained values or whether the entire value should be added to each
group.
|
static MonitoringGroupSettings |
getFromPool()
Returns an instance from the shared pool.
|
java.lang.String[] |
getId()
Contains arbitrary ids for monitoring and grouping.
|
InstanceIdentifierKind |
getInstanceIdentifierKind()
Returns the instance identifier kind.
|
ResourceType[] |
getResources()
Returns the resources to be accounted.
|
static void |
release(MonitoringGroupSettings instance)
Releases and clears the specified instance
to the shared pool.
|
void |
setBasics(java.lang.String[] id,
DebugState[] debugStates,
GroupAccountingType gType,
ResourceType[] resources,
InstanceIdentifierKind instanceIdentifierKind)
Sets the basic values needed for monitoring.
|
void |
setMulti(BooleanValue distributeValues,
BooleanValue considerContained)
Sets advanced values for multi monitoring groups.
|
private static final ArrayList<MonitoringGroupSettings> POOL
private java.lang.String[] id
private DebugState[] debugStates
private GroupAccountingType gType
GroupAccountingType.DEFAULT and, therefore, taken from the
global configuration.private ResourceType[] resources
ResourceType are accounted.private InstanceIdentifierKind instanceIdentifierKind
private BooleanValue distributeValues
private BooleanValue considerContained
private MonitoringGroupSettings()
public MonitoringGroupSettings create()
public void clear()
public void setBasics(java.lang.String[] id,
DebugState[] debugStates,
GroupAccountingType gType,
ResourceType[] resources,
InstanceIdentifierKind instanceIdentifierKind)
id - the recorder idsdebugStates - the intended debugging flagsgType - the group accounting typeresources - the accountable resourcesinstanceIdentifierKind - the instance identifier kindpublic void setMulti(BooleanValue distributeValues, BooleanValue considerContained)
distributeValues - whether values should be distributed evenlyconsiderContained - whether accountable resources of contained
groups should be considered or whether the group is authoritivepublic java.lang.String[] getId()
public DebugState[] getDebugStates()
public GroupAccountingType getAccountingType()
GroupAccountingType.DEFAULT and, therefore, taken from the
global configuration.public ResourceType[] getResources()
ResourceType are accounted.public InstanceIdentifierKind getInstanceIdentifierKind()
public BooleanValue getDistributeValues()
true if values should be distributed,
false if notpublic BooleanValue getConsiderContained()
true if the contained groups values should be
considered, false if the multi group is authoritativepublic static final MonitoringGroupSettings getFromPool()
release(MonitoringGroupSettings).public static final void release(MonitoringGroupSettings instance)
instance - the instance to be released (must not be null)