com.ibm.wsspi.rasdiag

Class DiagnosticConfigHome

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.rasdiag.DiagnosticConfigHome

  1. public class DiagnosticConfigHome
  2. extends java.lang.Object
The 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)

This is a Singleton class, hence the getInstance() and private constructor


Method Summary

Modifier and Type Method and Description
  1. DiagnosticConfig
getDiagnosticConfig(java.lang.String aDPName)
gets a DiagnosticConfig object from the Home for a DPName
  1. static
  2. DiagnosticConfigHome
getInstance()
returns a reference to this object
  1. java.lang.String
getStateCollectionSpec()
returns the string format of the system-wide collection spec
  1. static
  2. void
releaseDiagnosticConfig(java.lang.String aDPName)
releases a DiagnosticConfig object and frees the resources.
  1. 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.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

getInstance

  1. public static DiagnosticConfigHome getInstance( )
returns a reference to this object
Returns:
a reference to this singleton object

getStateCollectionSpec

  1. public java.lang.String getStateCollectionSpec( )
returns the string format of the system-wide collection spec
Returns:
the string version of the system wide CollectionSpec

setStateCollectionSpec

  1. public 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.
Parameters:
aStateCollectionSpec - String containing system-wide StateCollectionSpec

getDiagnosticConfig

  1. public DiagnosticConfig getDiagnosticConfig( java.lang.String aDPName)
gets a DiagnosticConfig object from the Home for a DPName
Parameters:
aDPName - DiagnosticProvider name
Returns:
DiagnosticConfig object associated with this DiagnosticProvider

releaseDiagnosticConfig

  1. public static void releaseDiagnosticConfig( java.lang.String aDPName)
releases a DiagnosticConfig object and frees the resources. This is also handled implicitly from the DiagnosticProviderHelper.deregisterMBeanWithDiagnosticService method or the DiagnosticProviderRegistry.deregister method.
Parameters:
aDPName - DiagnosticProvider name