|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.dss.thin.beans.graph.PoolDispatcher
Class responsible for pooling object instances
| Field Summary | |
static int |
DEF_INITIAL_SIZEDefault number of pooled objects allocated when pool is created |
static int |
DEF_INSTANCE_INCRDefault number of instances allocated at once when pool is growing |
static int |
DEF_MAX_SIZEDefault maximum number of pooled objects to be allocated |
static int |
DEF_NORM_SIZEDefault number of pooled objects that should remain allocated when there are no outstanding requests |
static float |
DEF_QUEUE_RATIODefault ratio between the number of outstanding requests and and the total number of pooled obejcts when the pool should start growing |
| Constructor Summary | |
PoolDispatcher(PoolObjectFactory factory)Constructor. | |
PoolDispatcher(PoolObjectFactory factory, java.lang.ClassLoader threadClassLoader)Constructor. | |
PoolDispatcher(PoolObjectFactory factory, int init_size, int norm_size, int max_size, int inst_incr, float queue_ratio)Constructor. | |
PoolDispatcher(PoolObjectFactory factory, int init_size, int norm_size, int max_size, int inst_incr, float queue_ratio, java.lang.ClassLoader threadClassLoader)Constructor. | |
| Method Summary | |
void |
cleanup()Cleans up all allocated objects and terminates the new instance thread The application may not request any new objects from the pool after this call |
java.lang.String |
dump()Retrieves a dump of pool state |
java.lang.Object |
get()Retrieves an instance of pooled object. |
void |
release(java.lang.Object obj)Returns an object to the pool |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEF_INITIAL_SIZE
public static final int DEF_NORM_SIZE
public static final int DEF_MAX_SIZE
public static final int DEF_INSTANCE_INCR
public static final float DEF_QUEUE_RATIO
| Constructor Detail |
public PoolDispatcher(PoolObjectFactory factory)
factory - An instance of PoolObjectFactoryDEF_INITIAL_SIZE, DEF_NORM_SIZE, DEF_MAX_SIZE, DEF_INSTANCE_INCR, DEF_QUEUE_RATIO, PoolObjectFactory
public PoolDispatcher(PoolObjectFactory factory,
java.lang.ClassLoader threadClassLoader)
factory - An instance of PoolObjectFactorythreadClassLoader - class loader used in the thread that allocates new object instancesDEF_INITIAL_SIZE, DEF_NORM_SIZE, DEF_MAX_SIZE, DEF_INSTANCE_INCR, DEF_QUEUE_RATIO, PoolObjectFactory
public PoolDispatcher(PoolObjectFactory factory,
int init_size,
int norm_size,
int max_size,
int inst_incr,
float queue_ratio,
java.lang.ClassLoader threadClassLoader)
factory - An instance of PoolObjectFactoryinit_size - The number of pooled objects allocated when pool is creatednorm_size - The number of pooled objects that should remain allocated when there are no outstanding requestsmax_size - Maximum number of pooled objects to be allocatedinst_incr - Number of instances allocated at once when pool is growingqueue_ratio - A ratio between the number of outstanding requests and and the total number of pooled obejcts when the pool should start growingthreadClassLoader - class loader used in the thread that allocates new object instancesPoolObjectFactory
public PoolDispatcher(PoolObjectFactory factory,
int init_size,
int norm_size,
int max_size,
int inst_incr,
float queue_ratio)
factory - An instance of PoolObjectFactoryinit_size - The number of pooled objects allocated when pool is creatednorm_size - The number of pooled objects that should remain allocated when there are no outstanding requestsmax_size - Maximum number of pooled objects to be allocatedinst_incr - Number of instances allocated at once when pool is growingqueue_ratio - A ratio between the number of outstanding requests and and the total number of pooled obejcts when the pool should start growingPoolObjectFactory| Method Detail |
public java.lang.Object get()
public void release(java.lang.Object obj)
An - object to be returnedpublic void cleanup()
public java.lang.String dump()
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||