Business Components

oracle.jbo.common.ampool
Class ApplicationPoolLogger

java.lang.Object
  |
  +--oracle.jbo.pool.ResourcePoolLogger
        |
        +--oracle.jbo.common.ampool.ApplicationPoolLogger
All Implemented Interfaces:
ApplicationPoolListener, oracle.jbo.pool.ResourcePoolListener

public class ApplicationPoolLogger
extends oracle.jbo.pool.ResourcePoolLogger
implements ApplicationPoolListener

Responsible for logging, collecting, and reporting application pool statistics.


Field Summary
TypeField
protected  long mAvgNumOfSessionsReferencingState
           
protected  long mAvgNumOfSessionsReferencingStateAccum
           
protected  long mNumOfInstancesReused
           
protected  long mNumOfReferencedInstancesRecycled
           
protected  long mNumOfStateActivations
           
protected  long mNumOfStatePassivations
           
protected  long mNumOfUnreferencedInstancesRecycled
           
 
Fields inherited from class oracle.jbo.pool.ResourcePoolLogger
mAvgNumOfAvailableInstances, mAvgNumOfAvailableInstancesAccum, mAvgNumOfInstances, mAvgNumOfInstancesAccum, mAvgNumOfUnavailableInstances, mAvgNumOfUnavailableInstancesAccum, mMaxNumOfInstances, mNumOfCheckins, mNumOfCheckoutFailures, mNumOfCheckouts, mNumOfInstanceCreations, mNumOfInstanceRemovals
 
Fields inherited from interface oracle.jbo.common.ampool.ApplicationPoolListener
INSTANCE_REUSED, REFERENCED_INSTANCE_RECYCLED, STATE_ACTIVATED, STATE_PASSIVATED, UNREFERENCED_INSTANCE_RECYCLED
 
Fields inherited from interface oracle.jbo.pool.ResourcePoolListener
CHECKOUT_FAILED, INSTANCE_CHECKED_IN, INSTANCE_CHECKED_OUT, INSTANCE_CREATED, INSTANCE_REMOVED
 
Constructor Summary
ApplicationPoolLogger(ApplicationPoolImpl pool)
           
 
Method Summary
TypeMethod
protected  void calculateAverages(boolean force)
           
 void dumpPoolStatistics(java.io.PrintWriter pw)
           
 void handleEvent(byte eventType)
           
 
Methods inherited from class oracle.jbo.pool.ResourcePoolLogger
printHeaderLine, printStatisticLine, printStatisticLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mNumOfStateActivations

protected long mNumOfStateActivations

mNumOfStatePassivations

protected long mNumOfStatePassivations

mNumOfReferencedInstancesRecycled

protected long mNumOfReferencedInstancesRecycled

mNumOfUnreferencedInstancesRecycled

protected long mNumOfUnreferencedInstancesRecycled

mNumOfInstancesReused

protected long mNumOfInstancesReused

mAvgNumOfSessionsReferencingState

protected long mAvgNumOfSessionsReferencingState

mAvgNumOfSessionsReferencingStateAccum

protected long mAvgNumOfSessionsReferencingStateAccum
Constructor Detail

ApplicationPoolLogger

public ApplicationPoolLogger(ApplicationPoolImpl pool)
Method Detail

handleEvent

public void handleEvent(byte eventType)
Specified by:
handleEvent in interface oracle.jbo.pool.ResourcePoolListener
Overrides:
handleEvent in class oracle.jbo.pool.ResourcePoolLogger

dumpPoolStatistics

public void dumpPoolStatistics(java.io.PrintWriter pw)
Overrides:
dumpPoolStatistics in class oracle.jbo.pool.ResourcePoolLogger

calculateAverages

protected void calculateAverages(boolean force)
Overrides:
calculateAverages in class oracle.jbo.pool.ResourcePoolLogger

Business Components