org.openanzo.server.repository.rdb
Interface RepositoryConnectionPoolMBean

All Known Implementing Classes:
RepositoryConnectionPool

public interface RepositoryConnectionPoolMBean

MBean interface to manage a repository connection pool

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Method Summary
 java.lang.String getDatabaseDriver()
          Get the database driver's class name
 java.lang.String getDatabasePassword()
          Get the password for the database connection
 java.lang.String getDatabaseType()
          Get the type of database connection
 java.lang.String getDatabaseUrl()
          Get the database JDBC URL
 java.lang.String getDatabaseUserName()
          Get the username for the database connection
 int getQueryConnectionInactiveSize()
          Get the number of inactive connections in the QUERY connection pool
 int getQueryConnectionInUseSize()
          Get the number of connections currently in-use from the QUERY connection pool
 int getQueryConnectionMaxPoolSize()
          Get the max size of the QUERY connection pool
 int getQueryConnectionPoolMaxIdle()
          Get the max number of idle connections in the QUERY connection pool
 long getQueryConnectionPoolMaxWaitTime()
          Get max time to wait for a connection from the QUERY connection pool
 long getQueryConnectionPoolMinIdleTime()
          Get minimum time to wait before an idle connection from the QUERY connection pool is destroyed
 int getReadConnectionInactiveSize()
          Get the number of inactive connections in the READ connection pool
 int getReadConnectionInUseSize()
          Get the number of connections currently in-use from the READ connection pool
 int getReadConnectionMaxPoolSize()
          Get the max size of the READ connection pool
 int getReadConnectionPoolMaxIdle()
          Get the max number of idle connections in the READ connection pool
 long getReadConnectionPoolMaxWaitTime()
          Get max time to wait for a connection from the READ connection pool
 long getReadConnectionPoolMinIdleTime()
          Get minimum time to wait before an idle connection from the READ connection pool is destroyed
 int getWriteConnectionInactiveSize()
          Get the number of inactive connections in the WRITE connection pool
 int getWriteConnectionInUseSize()
          Get the number of connections currently in-use from the WRITE connection pool
 int getWriteConnectionMaxPoolSize()
          Get the max size of the WRITE connection pool
 int getWriteConnectionPoolMaxIdle()
          Get the max number of idle connections in the WRITE connection pool
 long getWriteConnectionPoolMaxWaitTime()
          Get max time to wait for a connection from the WRITE connection pool
 long getWriteConnectionPoolMinIdleTime()
          Get minimum time to wait before an idle connection from the WRITE connection pool is destroyed
 void purgeAndReset()
          Function to purge all connections in pool, and restart using current configuration values
 void setDatabaseDriver(java.lang.String driverName)
          Set the database driver's class name
 void setDatabasePassword(java.lang.String password)
          Set the password for the database connection
 void setDatabaseType(java.lang.String dbType)
          Set the type of database connection
 void setDatabaseUrl(java.lang.String jdbcUrl)
          Set the database JDBC URL
 void setDatabaseUserName(java.lang.String userName)
          Set the username for the database connection
 void setQueryConnectionMaxPoolSize(int size)
          Set the max size of the QUERY connection pool
 void setQueryConnectionPoolMaxIdle(int max)
          Set the max number of idle connections in the QUERY connection pool
 void setQueryConnectionPoolMaxWaitTime(long maxWait)
          Get set the max time to wait for a connection from the QUERY connection pool
 void setQueryConnectionPoolMinIdleTime(long minWait)
          Set minimum time to wait before an idle connection from the QUERY connection pool is destroyed
 void setReadConnectionMaxPoolSize(int size)
          Set the max size of the READ connection pool
 void setReadConnectionPoolMaxIdle(int max)
          Set the max number of idle connections in the READ connection pool
 void setReadConnectionPoolMaxWaitTime(long maxWait)
          Get set the max time to wait for a connection from the READ connection pool
 void setReadConnectionPoolMinIdleTime(long minWait)
          Set minimum time to wait before an idle connection from the READ connection pool is destroyed
 void setWriteConnectionMaxPoolSize(int size)
          Set the max size of the WRITE connection pool
 void setWriteConnectionPoolMaxIdle(int max)
          Set the max number of idle connections in the WRITE connection pool
 void setWriteConnectionPoolMaxWaitTime(long maxWait)
          Get set the max time to wait for a connection from the WRITE connection pool
 void setWriteConnectionPoolMinIdleTime(long minWait)
          Set minimum time to wait before an idle connection from the WRITE connection pool is destroyed
 

Method Detail

getReadConnectionMaxPoolSize

int getReadConnectionMaxPoolSize()
Get the max size of the READ connection pool

Returns:
the max size of the READ connection pool

getQueryConnectionMaxPoolSize

int getQueryConnectionMaxPoolSize()
Get the max size of the QUERY connection pool

Returns:
the max size of the QUERY connection pool

getWriteConnectionMaxPoolSize

int getWriteConnectionMaxPoolSize()
Get the max size of the WRITE connection pool

Returns:
the max size of the WRITE connection pool

setReadConnectionMaxPoolSize

void setReadConnectionMaxPoolSize(int size)
Set the max size of the READ connection pool

Parameters:
size - the max size of the READ connection pool

setQueryConnectionMaxPoolSize

void setQueryConnectionMaxPoolSize(int size)
Set the max size of the QUERY connection pool

Parameters:
size - the max size of the QUERY connection pool

setWriteConnectionMaxPoolSize

void setWriteConnectionMaxPoolSize(int size)
Set the max size of the WRITE connection pool

Parameters:
size - the max size of the WRITE connection pool

getReadConnectionInUseSize

int getReadConnectionInUseSize()
Get the number of connections currently in-use from the READ connection pool

Returns:
the number of connections currently in-use from the READ connection pool

getQueryConnectionInUseSize

int getQueryConnectionInUseSize()
Get the number of connections currently in-use from the QUERY connection pool

Returns:
the number of connections currently in-use from the QUERY connection pool

getWriteConnectionInUseSize

int getWriteConnectionInUseSize()
Get the number of connections currently in-use from the WRITE connection pool

Returns:
the number of connections currently in-use from the WRITE connection pool

getReadConnectionInactiveSize

int getReadConnectionInactiveSize()
Get the number of inactive connections in the READ connection pool

Returns:
the number of inactive connections in the READ connection pool

getQueryConnectionInactiveSize

int getQueryConnectionInactiveSize()
Get the number of inactive connections in the QUERY connection pool

Returns:
the number of inactive connections in the QUERY connection pool

getWriteConnectionInactiveSize

int getWriteConnectionInactiveSize()
Get the number of inactive connections in the WRITE connection pool

Returns:
the number of inactive connections in the WRITE connection pool

getReadConnectionPoolMaxWaitTime

long getReadConnectionPoolMaxWaitTime()
Get max time to wait for a connection from the READ connection pool

Returns:
max time to wait for a connection from the READ connection pool

getQueryConnectionPoolMaxWaitTime

long getQueryConnectionPoolMaxWaitTime()
Get max time to wait for a connection from the QUERY connection pool

Returns:
max time to wait for a connection from the QUERY connection pool

getWriteConnectionPoolMaxWaitTime

long getWriteConnectionPoolMaxWaitTime()
Get max time to wait for a connection from the WRITE connection pool

Returns:
max time to wait for a connection from the WRITE connection pool

setReadConnectionPoolMaxWaitTime

void setReadConnectionPoolMaxWaitTime(long maxWait)
Get set the max time to wait for a connection from the READ connection pool

Parameters:
maxWait - max time to wait for a connection from the READ connection pool

setQueryConnectionPoolMaxWaitTime

void setQueryConnectionPoolMaxWaitTime(long maxWait)
Get set the max time to wait for a connection from the QUERY connection pool

Parameters:
maxWait - max time to wait for a connection from the QUERY connection pool

setWriteConnectionPoolMaxWaitTime

void setWriteConnectionPoolMaxWaitTime(long maxWait)
Get set the max time to wait for a connection from the WRITE connection pool

Parameters:
maxWait - max time to wait for a connection from the WRITE connection pool

getReadConnectionPoolMinIdleTime

long getReadConnectionPoolMinIdleTime()
Get minimum time to wait before an idle connection from the READ connection pool is destroyed

Returns:
minimum time to wait before an idle connection from the READ connection pool is destroyed

getQueryConnectionPoolMinIdleTime

long getQueryConnectionPoolMinIdleTime()
Get minimum time to wait before an idle connection from the QUERY connection pool is destroyed

Returns:
minimum time to wait before an idle connection from the QUERY connection pool is destroyed

getWriteConnectionPoolMinIdleTime

long getWriteConnectionPoolMinIdleTime()
Get minimum time to wait before an idle connection from the WRITE connection pool is destroyed

Returns:
minimum time to wait before an idle connection from the WRITE connection pool is destroyed

setReadConnectionPoolMinIdleTime

void setReadConnectionPoolMinIdleTime(long minWait)
Set minimum time to wait before an idle connection from the READ connection pool is destroyed

Parameters:
minWait - minimum time to wait before an idle connection from the READ connection pool is destroyed

setQueryConnectionPoolMinIdleTime

void setQueryConnectionPoolMinIdleTime(long minWait)
Set minimum time to wait before an idle connection from the QUERY connection pool is destroyed

Parameters:
minWait - minimum time to wait before an idle connection from the QUERY connection pool is destroyed

setWriteConnectionPoolMinIdleTime

void setWriteConnectionPoolMinIdleTime(long minWait)
Set minimum time to wait before an idle connection from the WRITE connection pool is destroyed

Parameters:
minWait - minimum time to wait before an idle connection from the WRITE connection pool is destroyed

getReadConnectionPoolMaxIdle

int getReadConnectionPoolMaxIdle()
Get the max number of idle connections in the READ connection pool

Returns:
the max number of idle connections in the READ connection pool

getQueryConnectionPoolMaxIdle

int getQueryConnectionPoolMaxIdle()
Get the max number of idle connections in the QUERY connection pool

Returns:
the max number of idle connections in the QUERY connection pool

getWriteConnectionPoolMaxIdle

int getWriteConnectionPoolMaxIdle()
Get the max number of idle connections in the WRITE connection pool

Returns:
the max number of idle connections in the WRITE connection pool

setReadConnectionPoolMaxIdle

void setReadConnectionPoolMaxIdle(int max)
Set the max number of idle connections in the READ connection pool

Parameters:
max - the max number of idle connections in the READ connection pool

setQueryConnectionPoolMaxIdle

void setQueryConnectionPoolMaxIdle(int max)
Set the max number of idle connections in the QUERY connection pool

Parameters:
max - the max number of idle connections in the READ connection pool

setWriteConnectionPoolMaxIdle

void setWriteConnectionPoolMaxIdle(int max)
Set the max number of idle connections in the WRITE connection pool

Parameters:
max - the max number of idle connections in the WRITE connection pool

getDatabaseUrl

java.lang.String getDatabaseUrl()
Get the database JDBC URL

Returns:
the database JDBC URL

setDatabaseUrl

void setDatabaseUrl(java.lang.String jdbcUrl)
Set the database JDBC URL

Parameters:
jdbcUrl - the database JDBC URL

getDatabaseUserName

java.lang.String getDatabaseUserName()
Get the username for the database connection

Returns:
the username for the database connection

setDatabaseUserName

void setDatabaseUserName(java.lang.String userName)
Set the username for the database connection

Parameters:
userName - the username for the database connection

getDatabasePassword

java.lang.String getDatabasePassword()
Get the password for the database connection

Returns:
the password for the database connection

setDatabasePassword

void setDatabasePassword(java.lang.String password)
Set the password for the database connection

Parameters:
password - the password for the database connection

getDatabaseType

java.lang.String getDatabaseType()
Get the type of database connection

Returns:
the type of database connection

setDatabaseType

void setDatabaseType(java.lang.String dbType)
Set the type of database connection

Parameters:
dbType - the type of database connection

getDatabaseDriver

java.lang.String getDatabaseDriver()
Get the database driver's class name

Returns:
the database driver's class name

setDatabaseDriver

void setDatabaseDriver(java.lang.String driverName)
Set the database driver's class name

Parameters:
driverName - the database driver's class name

purgeAndReset

void purgeAndReset()
Function to purge all connections in pool, and restart using current configuration values



Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.