org.ow2.jonas.resource.internal.cm
Class ConnectionManagerPoolParams

java.lang.Object
  extended by org.ow2.jonas.resource.internal.cm.ConnectionManagerPoolParams

public class ConnectionManagerPoolParams
extends Object

Author:
Eric Hardesty Contributor(s):

Constructor Summary
ConnectionManagerPoolParams()
          Default Constructor
ConnectionManagerPoolParams(ConnectionManagerPoolParams cmpp)
          Constructor to build new object based on another set of pool params
 
Method Summary
 int getJdbcConnLevel()
          Return the JDBC connection level
 String getJdbcConnTestStmt()
          Return the JDBC connection test SQL string
 int getPoolInit()
          Return the pool init size
 int getPoolMax()
          Return the pool maximum size
 long getPoolMaxAge()
          Return the pool maximum age in seconds
 int getPoolMaxAgeMinutes()
          Return the pool maximum age in minutes
 int getPoolMaxOpentime()
          Return the pool maximum open time in minutes
 int getPoolMaxWaiters()
          Return the pool maximum waiters size
 int getPoolMaxWaittime()
          Return the pool maximum waiter time
 int getPoolMin()
          Return the pool min size
 int getPoolSamplingPeriod()
          Return the pool sampling period
 int getPstmtMax()
          Return the maximum PreparedStatement cache
 boolean isJdbcConnSetUp()
           
 void setJdbcConnLevel(int val)
          Set the JDBC connection level
 void setJdbcConnSetUp(boolean val)
           
 void setJdbcConnTestStmt(String val)
          Set the JDBC connection test SQL string
 void setPoolInit(int val)
          Set the pool init size
 void setPoolMax(int val)
          Set the pool maximum size
 void setPoolMaxAge(long val)
          Set the pool maximum age value
 void setPoolMaxAgeMinutes(int val)
          Set the pool maximum age value
 void setPoolMaxOpentime(int val)
          Set the pool maximum open time value
 void setPoolMaxWaiters(int val)
          Set the pool maximum waiters size
 void setPoolMaxWaittime(int val)
          Set the pool maximum waiter time
 void setPoolMin(int val)
          Set the pool minimum size
 void setPoolSamplingPeriod(int val)
          Set the pool sampling period
 void setPstmtMax(int val)
          Set the maximum PreparedStatement cache
 String toString()
          Output pool information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionManagerPoolParams

public ConnectionManagerPoolParams()
Default Constructor


ConnectionManagerPoolParams

public ConnectionManagerPoolParams(ConnectionManagerPoolParams cmpp)
Constructor to build new object based on another set of pool params

Parameters:
cmpp - ConnectionManagerPoolParams to initialize this object with
Method Detail

getPoolInit

public int getPoolInit()
Return the pool init size

Returns:
int initial size of the pool

setPoolInit

public void setPoolInit(int val)
Set the pool init size

Parameters:
val - pool initial size

getPoolMin

public int getPoolMin()
Return the pool min size

Returns:
int minimum size of the pool

setPoolMin

public void setPoolMin(int val)
Set the pool minimum size

Parameters:
val - pool minimum size

getPoolMax

public int getPoolMax()
Return the pool maximum size

Returns:
int maximum size of the pool

setPoolMax

public void setPoolMax(int val)
Set the pool maximum size

Parameters:
val - pool maximum size

getPoolMaxAge

public long getPoolMaxAge()
Return the pool maximum age in seconds

Returns:
long maximum age of a connection in the pool

setPoolMaxAge

public void setPoolMaxAge(long val)
Set the pool maximum age value

Parameters:
val - pool maximum age value

getPoolMaxAgeMinutes

public int getPoolMaxAgeMinutes()
Return the pool maximum age in minutes

Returns:
int maximum age of a connection in the pool

setPoolMaxAgeMinutes

public void setPoolMaxAgeMinutes(int val)
Set the pool maximum age value

Parameters:
val - pool maximum age value

getPoolMaxOpentime

public int getPoolMaxOpentime()
Return the pool maximum open time in minutes

Returns:
int maximum open time of a connection in the pool

setPoolMaxOpentime

public void setPoolMaxOpentime(int val)
Set the pool maximum open time value

Parameters:
val - pool maximum open time value

getPoolMaxWaiters

public int getPoolMaxWaiters()
Return the pool maximum waiters size

Returns:
int maximum waiters of the pool

setPoolMaxWaiters

public void setPoolMaxWaiters(int val)
Set the pool maximum waiters size

Parameters:
val - pool maximum waiters size

getPoolMaxWaittime

public int getPoolMaxWaittime()
Return the pool maximum waiter time

Returns:
int maximum waiter time of the pool

setPoolMaxWaittime

public void setPoolMaxWaittime(int val)
Set the pool maximum waiter time

Parameters:
val - pool maximum waiters time

getPoolSamplingPeriod

public int getPoolSamplingPeriod()
Return the pool sampling period

Returns:
int pool sampling period

setPoolSamplingPeriod

public void setPoolSamplingPeriod(int val)
Set the pool sampling period

Parameters:
val - pool sampling period

getPstmtMax

public int getPstmtMax()
Return the maximum PreparedStatement cache

Returns:
int maximum PreparedStatement cache

setPstmtMax

public void setPstmtMax(int val)
Set the maximum PreparedStatement cache

Parameters:
val - maximum PreparedStatement cache

getJdbcConnLevel

public int getJdbcConnLevel()
Return the JDBC connection level

Returns:
int JDBC connection level

setJdbcConnLevel

public void setJdbcConnLevel(int val)
Set the JDBC connection level

Parameters:
val - JDBC connection level

getJdbcConnTestStmt

public String getJdbcConnTestStmt()
Return the JDBC connection test SQL string

Returns:
String JDBC connection test SQL string

setJdbcConnTestStmt

public void setJdbcConnTestStmt(String val)
Set the JDBC connection test SQL string

Parameters:
val - JDBC connection test SQL string

isJdbcConnSetUp

public boolean isJdbcConnSetUp()
Returns:
true if there is a JDBC connection to manage

setJdbcConnSetUp

public void setJdbcConnSetUp(boolean val)

toString

public String toString()
Output pool information

Overrides:
toString in class Object
Returns:
String representing the pool


Copyright © 2010 OW2 Consortium. All Rights Reserved.