public class MonitoringGroupConfiguration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private GroupAccountingType |
accounting
Stores the group accounting type.
|
private DebugState[] |
debug
Define any combination of debug states for additional information to
be emitted during monitoring.
|
static MonitoringGroupConfiguration |
DEFAULT
Stores the unmodifiable default instance.
|
private InstanceIdentifierKind |
instanceIdentifierKind
Stores the instance identifier kind.
|
private ResourceType[] |
resourceTypes
Stores the accountable resources.
|
static MonitoringGroupConfiguration |
STUB
Stores the unmodifiable stub instance which signals that
a monitoring group was generically defined only based on its name but
without clear configuration.
|
| Modifier | Constructor and Description |
|---|---|
private |
MonitoringGroupConfiguration()
Creates the default instance.
|
private |
MonitoringGroupConfiguration(DebugState[] debug,
GroupAccountingType accounting,
ResourceType[] resourceTypes,
InstanceIdentifierKind instanceIdentifierKind)
Creates a new monitoring group configuration.
|
| Modifier and Type | Method and Description |
|---|---|
static MonitoringGroupConfiguration |
create(DebugState[] debug,
GroupAccountingType accounting,
ResourceType[] resourceTypes,
InstanceIdentifierKind instanceIdentifierKind)
Creates a new monitoring group configuration and checks for references
to
DEFAULT. |
static MonitoringGroupConfiguration |
create(java.lang.String debug,
java.lang.String accounting,
java.lang.String resources,
java.lang.String instanceIdentifierKind)
Creates a new monitoring group configuration from equivalent string
values.
|
DebugState[] |
getDebug()
Returns the combination of debug states for additional information
to be emitted during monitoring.
|
GroupAccountingType |
getGroupAccounting()
Returns the group accounting to be applied.
|
InstanceIdentifierKind |
getInstanceIdentifierKind()
Returns the instance identifier kind.
|
ResourceType[] |
getResources()
Defines the resources to be accounted.
|
boolean |
isConsistent(MonitoringGroupConfiguration conf)
Returns weather this configuration is consistent with the given one.
|
public static final MonitoringGroupConfiguration DEFAULT
public static final MonitoringGroupConfiguration STUB
private GroupAccountingType accounting
private ResourceType[] resourceTypes
private DebugState[] debug
private InstanceIdentifierKind instanceIdentifierKind
private MonitoringGroupConfiguration()
private MonitoringGroupConfiguration(DebugState[] debug, GroupAccountingType accounting, ResourceType[] resourceTypes, InstanceIdentifierKind instanceIdentifierKind)
debug - any combination of debug states for additional information
to be emitted during monitoringaccounting - the group accounting strategy (may be null, then
the default accounting specified in the configuration is applied)resourceTypes - the accountable resources (may be null, then
all available resources are accounted).instanceIdentifierKind - the instance identifier (may be null, leads to default)public GroupAccountingType getGroupAccounting()
public ResourceType[] getResources()
ResourceType are accounted.public DebugState[] getDebug()
public InstanceIdentifierKind getInstanceIdentifierKind()
public static final MonitoringGroupConfiguration create(DebugState[] debug, GroupAccountingType accounting, ResourceType[] resourceTypes, InstanceIdentifierKind instanceIdentifierKind)
DEFAULT.debug - any combination of debug states for additional information
to be emitted during monitoring (must not be null)accounting - the group accounting strategy (must not be null)resourceTypes - the accountable resources (must not be null)instanceIdentifierKind - instance identifier kind (must not be null)DEFAULTpublic static MonitoringGroupConfiguration create(java.lang.String debug, java.lang.String accounting, java.lang.String resources, java.lang.String instanceIdentifierKind)
debug - the debug states (may be null, then no debug state
is considered; comma separated)accounting - the group accounting strategy (may be null, then
the default accounting specified in the configuration is applied)resources - the accountable resources (may be null, then
all available resources are accounted; comma separated).instanceIdentifierKind - the instance identifier kind, may be null then the default is usedDEFAULTpublic boolean isConsistent(MonitoringGroupConfiguration conf)
conf - the configuration to check fortrue if both configurations are consistent
(excluding debug), false else