Class ConnectionPool
- java.lang.Object
-
- org.opennms.netmgt.config.opennmsDataSources.ConnectionPool
-
- All Implemented Interfaces:
Serializable
public class ConnectionPool extends Object implements Serializable
Database connection pool configuration.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectionPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteIdleTimeout()voiddeleteLoginTimeout()voiddeleteMaxPool()voiddeleteMaxSize()voiddeleteMinPool()booleanequals(Object obj)Overrides the Object.equals method.StringgetFactory()Returns the value of field 'factory'.IntegergetIdleTimeout()Returns the value of field 'idleTimeout'.IntegergetLoginTimeout()Returns the value of field 'loginTimeout'.IntegergetMaxPool()Returns the value of field 'maxPool'.IntegergetMaxSize()Returns the value of field 'maxSize'.IntegergetMinPool()Returns the value of field 'minPool'.inthashCode()Method hashCode.booleanhasIdleTimeout()Method hasIdleTimeout.booleanhasLoginTimeout()Method hasLoginTimeout.booleanhasMaxPool()Method hasMaxPool.booleanhasMaxSize()Method hasMaxSize.booleanhasMinPool()Method hasMinPool.voidsetFactory(String factory)Sets the value of field 'factory'.voidsetIdleTimeout(Integer idleTimeout)Sets the value of field 'idleTimeout'.voidsetLoginTimeout(Integer loginTimeout)Sets the value of field 'loginTimeout'.voidsetMaxPool(Integer maxPool)Sets the value of field 'maxPool'.voidsetMaxSize(Integer maxSize)Sets the value of field 'maxSize'.voidsetMinPool(Integer minPool)Sets the value of field 'minPool'.
-
-
-
Method Detail
-
deleteIdleTimeout
public void deleteIdleTimeout()
-
deleteLoginTimeout
public void deleteLoginTimeout()
-
deleteMaxPool
public void deleteMaxPool()
-
deleteMaxSize
public void deleteMaxSize()
-
deleteMinPool
public void deleteMinPool()
-
equals
public boolean equals(Object obj)
Overrides the Object.equals method.
-
getFactory
public String getFactory()
Returns the value of field 'factory'. The field 'factory' has the following description: The connection pool implementation to use.- Returns:
- the value of field 'Factory'.
-
getIdleTimeout
public Integer getIdleTimeout()
Returns the value of field 'idleTimeout'. The field 'idleTimeout' has the following description: How long, in seconds, an idle connection is kept in the pool before it is removed.- Returns:
- the value of field 'IdleTimeout'.
-
getLoginTimeout
public Integer getLoginTimeout()
Returns the value of field 'loginTimeout'. The field 'loginTimeout' has the following description: How long, in seconds, to attempt to make a connection to the database.- Returns:
- the value of field 'LoginTimeout'.
-
getMaxPool
public Integer getMaxPool()
Returns the value of field 'maxPool'. The field 'maxPool' has the following description: The maximum number of pooled connections to retain.- Returns:
- the value of field 'MaxPool'.
-
getMaxSize
public Integer getMaxSize()
Returns the value of field 'maxSize'. The field 'maxSize' has the following description: The maximum number of connections that can be created.- Returns:
- the value of field 'MaxSize'.
-
getMinPool
public Integer getMinPool()
Returns the value of field 'minPool'. The field 'minPool' has the following description: The minimum number of pooled connections to retain.- Returns:
- the value of field 'MinPool'.
-
hasIdleTimeout
public boolean hasIdleTimeout()
Method hasIdleTimeout.- Returns:
- true if at least one IdleTimeout has been added
-
hasLoginTimeout
public boolean hasLoginTimeout()
Method hasLoginTimeout.- Returns:
- true if at least one LoginTimeout has been added
-
hasMaxPool
public boolean hasMaxPool()
Method hasMaxPool.- Returns:
- true if at least one MaxPool has been added
-
hasMaxSize
public boolean hasMaxSize()
Method hasMaxSize.- Returns:
- true if at least one MaxSize has been added
-
hasMinPool
public boolean hasMinPool()
Method hasMinPool.- Returns:
- true if at least one MinPool has been added
-
hashCode
public int hashCode()
Method hashCode.
-
setFactory
public void setFactory(String factory)
Sets the value of field 'factory'. The field 'factory' has the following description: The connection pool implementation to use.- Parameters:
factory- the value of field 'factory'.
-
setIdleTimeout
public void setIdleTimeout(Integer idleTimeout)
Sets the value of field 'idleTimeout'. The field 'idleTimeout' has the following description: How long, in seconds, an idle connection is kept in the pool before it is removed.- Parameters:
idleTimeout- the value of field 'idleTimeout'.
-
setLoginTimeout
public void setLoginTimeout(Integer loginTimeout)
Sets the value of field 'loginTimeout'. The field 'loginTimeout' has the following description: How long, in seconds, to attempt to make a connection to the database.- Parameters:
loginTimeout- the value of field 'loginTimeout'.
-
setMaxPool
public void setMaxPool(Integer maxPool)
Sets the value of field 'maxPool'. The field 'maxPool' has the following description: The maximum number of pooled connections to retain.- Parameters:
maxPool- the value of field 'maxPool'.
-
setMaxSize
public void setMaxSize(Integer maxSize)
Sets the value of field 'maxSize'. The field 'maxSize' has the following description: The maximum number of connections that can be created.- Parameters:
maxSize- the value of field 'maxSize'.
-
setMinPool
public void setMinPool(Integer minPool)
Sets the value of field 'minPool'. The field 'minPool' has the following description: The minimum number of pooled connections to retain.- Parameters:
minPool- the value of field 'minPool'.
-
-