public class DiagnosticConfigHome
extends java.lang.Object
DiagnosticConfigHome
class maintains the StateCollectionSpec for
the DiagnosticProviders
in separate DiagnosticConfig
objects.
Following are some samples of valid stateCollectionSpecs (note : separates DPName from AttributeId w/in that DPName and ; separates entries in the CollectionSpec)
DiagnosticConfig
object, and multiple entries match "xxx", then the
rightmost entry will be used). For example, in this StateCollectionSpec, if
isEnabled("d-e-f") were called in the a.b.c DPName, it would return false. It matches d.*
which is true (=1), but it also matches d-e-f which is false, and is rightmost.This is a Singleton class, hence the getInstance() and private constructor
Modifier and Type | Method and Description |
---|---|
DiagnosticConfig |
getDiagnosticConfig(java.lang.String aDPName)
gets a
DiagnosticConfig object from the Home for a DPName |
static DiagnosticConfigHome |
getInstance()
returns a reference to this object
|
java.lang.String |
getStateCollectionSpec()
returns the string format of the system-wide collection spec
|
static void |
releaseDiagnosticConfig(java.lang.String aDPName)
releases a
DiagnosticConfig object and frees the resources. |
void |
setStateCollectionSpec(java.lang.String aStateCollectionSpec)
takes the new string (created via Cfg
extract or from an MBean), split it into its component parts, and drives the
setStateCollectionSpec method on all DiagnosticConfig objects
that there has been impacted. |
public static DiagnosticConfigHome getInstance()
public java.lang.String getStateCollectionSpec()
CollectionSpec
public void setStateCollectionSpec(java.lang.String aStateCollectionSpec)
setStateCollectionSpec
method on all DiagnosticConfig
objects
that there has been impacted.aStateCollectionSpec
- String containing system-wide StateCollectionSpec
public DiagnosticConfig getDiagnosticConfig(java.lang.String aDPName)
DiagnosticConfig
object from the Home for a DPNameaDPName
- DiagnosticProvider namepublic static void releaseDiagnosticConfig(java.lang.String aDPName)
DiagnosticConfig
object and frees the resources. This is also handled
implicitly from the DiagnosticProviderHelper.deregisterMBeanWithDiagnosticService
method or the DiagnosticProviderRegistry.deregister
method.aDPName
- DiagnosticProvider name