org.jlf.vitals.weblogic
Class WebLogicRuntimeVital

java.lang.Object
  |
  +--org.jlf.vitals.VitalSign
        |
        +--org.jlf.vitals.weblogic.WebLogicRuntimeVital
Direct Known Subclasses:
ExecuteQueueThreadsVital, JDBCConnectionPoolVital

public class WebLogicRuntimeVital
extends VitalSign

WebLogicRuntimeVital is a superclass of concrete vital signs like execute threads and JDBC connection pools. It abstracts common code to get to WebLogic MBeans.

See Also:
VitalSign

Field Summary
protected  weblogic.management.MBeanHome mbeanHome
          Holds the mbean home of the local server.
static java.lang.String WEBLOGIC_SERVER_NAME_PROPERTY
          The -D option given to the java start command specifying the name of the WebLogic server, necessary as input to a lot of MBean finder methods.
 
Fields inherited from class org.jlf.vitals.VitalSign
childInstances, childVitalKey, isActiveFlag, isParentVital, properties, statistics, timeLastChildInstancesCollected, timeLastVitalMeasurementRegistered, vitalKey
 
Constructor Summary
WebLogicRuntimeVital(java.lang.String vitalKey, VitalSignProperties properties)
          Creates the vital sign.
 
Method Summary
 weblogic.management.MBeanHome getMBeanHome()
          Retrieves the WebLogic server mbean home.
 java.lang.String getServerName()
          Returns the name of the weblogic server that got started, for uses like making uniquely-named dynamic connection pools, getting MBeans, and the like.
 boolean isVitalApplicable()
          Checks to see if the vital sign is applicable, that is, are we running inside a WebLogic container virtual machine???
protected  void refreshChildInstance(java.lang.String childPoolName)
          Helper method to either refresh a child instance or create one if new.
 void refreshChildInstances(java.lang.String runtimeMBeanType)
          Looks at all the registered MBeans of a particular type and activates children for each one currently applicable.
 
Methods inherited from class org.jlf.vitals.VitalSign
basicCreateChildInstance, basicGetMaximumMeasurement, collectChildInstanceMeasurements, collectMeasurement, findOrCreateChildInstance, getChildInstance, getChildInstances, getChildVitalKey, getCurrentMeasurement, getInstance, getInstance, getMaximumMeasurement, getProperties, getStatistics, getVitalKey, hasChildInstances, isActive, isParentVital, putChildInstance, refreshChildInstances, registerMeasurement, setChildVitalKey, setIsActiveFlag, setIsParentVital, shouldChildInstancesBeCollected, shouldMeasurementBeCollected, vitalKeyForChildVitalKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEBLOGIC_SERVER_NAME_PROPERTY

public static final java.lang.String WEBLOGIC_SERVER_NAME_PROPERTY
The -D option given to the java start command specifying the name of the WebLogic server, necessary as input to a lot of MBean finder methods.

See Also:
Constant Field Values

mbeanHome

protected weblogic.management.MBeanHome mbeanHome
Holds the mbean home of the local server.

Constructor Detail

WebLogicRuntimeVital

public WebLogicRuntimeVital(java.lang.String vitalKey,
                            VitalSignProperties properties)
Creates the vital sign. This method must pass-through to the super-class so the vital sign can be auto-loaded.

Method Detail

getServerName

public java.lang.String getServerName()
Returns the name of the weblogic server that got started, for uses like making uniquely-named dynamic connection pools, getting MBeans, and the like.


getMBeanHome

public weblogic.management.MBeanHome getMBeanHome()
Retrieves the WebLogic server mbean home.


isVitalApplicable

public boolean isVitalApplicable()
Checks to see if the vital sign is applicable, that is, are we running inside a WebLogic container virtual machine???

Overrides:
isVitalApplicable in class VitalSign
See Also:
VitalSign.isVitalApplicable()

refreshChildInstance

protected void refreshChildInstance(java.lang.String childPoolName)
Helper method to either refresh a child instance or create one if new.


refreshChildInstances

public void refreshChildInstances(java.lang.String runtimeMBeanType)
Looks at all the registered MBeans of a particular type and activates children for each one currently applicable.