org.jlf.vitals.weblogic
Class ExecuteQueueThreadsVital

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

public class ExecuteQueueThreadsVital
extends WebLogicRuntimeVital

MaximumMemory is a class that periodically measures the threads in use in the default WebLogic execute queue.

See Also:
VitalSign

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
ExecuteQueueThreadsVital(java.lang.String vitalKey, VitalSignProperties properties)
          Creates the vital sign.
 
Method Summary
 AbstractVitalMeasurement basicGetMaximumMeasurement()
          Returns the maximum theoritical value of the vital sign.
protected  AbstractVitalMeasurement getCurrentMeasurement()
          Takes a measurement of the vital sign at the current moment and returns it to the caller.
 weblogic.management.runtime.ExecuteQueueRuntimeMBean getExecuteQueueRuntimeMBean()
          Retrieves the runtime MBean for a named execute queue
 java.lang.String getQueueName()
          Returns the name of the thread pool queue.
 boolean hasChildInstances()
          This vital sign has child instances to collect measurements.
 void refreshChildInstances()
          Looks at all the registered execute queues 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

ExecuteQueueThreadsVital

public ExecuteQueueThreadsVital(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()

getQueueName

public java.lang.String getQueueName()
Returns the name of the thread pool queue. Queue name is a unique key and can therefore be used as the child vital key.


getExecuteQueueRuntimeMBean

public weblogic.management.runtime.ExecuteQueueRuntimeMBean getExecuteQueueRuntimeMBean()
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

refreshChildInstances

public void refreshChildInstances()
Looks at all the registered execute queues and activates children for each one currently applicable.

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