org.jlf.vitals.weblogic
Class JDBCConnectionPoolVital

java.lang.Object
  |
  +--org.jlf.vitals.VitalSign
        |
        +--org.jlf.vitals.weblogic.WebLogicRuntimeVital
              |
              +--org.jlf.vitals.weblogic.JDBCConnectionPoolVital

public class JDBCConnectionPoolVital
extends WebLogicRuntimeVital

JDBCConnectionPool is a class that periodically measures the JDBC Connections in use in a given JDBC Connection Pool.

See Also:
WebLogicRuntimeVital

Field Summary
 
Fields inherited from class org.jlf.vitals.weblogic.WebLogicRuntimeVital
mbeanHome, WEBLOGIC_SERVER_NAME_PROPERTY
 
Fields inherited from class org.jlf.vitals.VitalSign
childInstances, childVitalKey, isActiveFlag, isParentVital, properties, statistics, timeLastChildInstancesCollected, timeLastVitalMeasurementRegistered, vitalKey
 
Constructor Summary
JDBCConnectionPoolVital(java.lang.String vitalKey, VitalSignProperties properties)
          Creates the vital sign.
 
Method Summary
 AbstractVitalMeasurement basicGetMaximumMeasurement()
          Returns the maximum theoritical value of the vital sign.
 weblogic.management.runtime.JDBCConnectionPoolRuntimeMBean getConnectionPoolRuntimeMBean()
          Retrieves the runtime MBean for a named execute queue
protected  AbstractVitalMeasurement getCurrentMeasurement()
          Takes a measurement of the vital sign at the current moment and returns it to the caller.
 java.lang.String getPoolName()
          Returns the poolName.
 boolean hasChildInstances()
          This vital sign has child instances to collect measurements.
 void refreshChildInstances()
          Looks at all the registered JDBC connection pools and activates children for each one currently applicable.
 
Methods inherited from class org.jlf.vitals.weblogic.WebLogicRuntimeVital
getMBeanHome, getServerName, isVitalApplicable, refreshChildInstance, refreshChildInstances
 
Methods inherited from class org.jlf.vitals.VitalSign
basicCreateChildInstance, collectChildInstanceMeasurements, collectMeasurement, findOrCreateChildInstance, getChildInstance, getChildInstances, getChildVitalKey, getInstance, getInstance, getMaximumMeasurement, getProperties, getStatistics, getVitalKey, isActive, isParentVital, putChildInstance, 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
 

Constructor Detail

JDBCConnectionPoolVital

public JDBCConnectionPoolVital(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

hasChildInstances

public boolean hasChildInstances()
This vital sign has child instances to collect measurements.

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

getConnectionPoolRuntimeMBean

public weblogic.management.runtime.JDBCConnectionPoolRuntimeMBean getConnectionPoolRuntimeMBean()
Retrieves the runtime MBean for a named execute queue


getCurrentMeasurement

protected AbstractVitalMeasurement getCurrentMeasurement()
Takes a measurement of the vital sign at the current moment and returns it to the caller. This method should be implemented by subclasses that are automatically called by the vitals manager on a periodic basis. The default implementation in this superclass is to return null, leaving the implementation to a subclass.

Overrides:
getCurrentMeasurement in class VitalSign
Returns:
the current measurement for this vital sign or null if no implementation

basicGetMaximumMeasurement

public AbstractVitalMeasurement basicGetMaximumMeasurement()
Returns the maximum theoritical value of the vital sign.

Overrides:
basicGetMaximumMeasurement in class VitalSign
Returns:
the current measurement for this vital sign or null if no implementation

getPoolName

public java.lang.String getPoolName()
Returns the poolName. Pool name is a unique key and can therefore be used as the child vital key.


refreshChildInstances

public void refreshChildInstances()
Looks at all the registered JDBC connection pools and activates children for each one currently applicable.

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