public abstract class ConnectionPoolInfo extends JMapObject implements java.io.Serializable, java.lang.Comparable<ConnectionPoolInfo>, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTION_ERROR |
static int |
CONNECTION_INACTIVE |
static int |
CONNECTION_NOT_TESTED |
static int |
CONNECTION_OK |
protected java.lang.String |
description |
protected java.lang.String |
driver |
protected int |
id |
protected java.lang.Exception |
lastException |
protected int |
maximumSize |
protected java.lang.String |
name |
protected static int |
OBJECT_VERSION_ID_7_0 |
protected static int |
OBJECT_VERSION_ID_7_0_ISTANBUL |
protected int |
objectVersionId |
protected java.lang.String |
password |
protected long |
recyclePeriod |
protected int |
size |
protected int |
status |
protected long |
timeout |
protected java.lang.String |
url |
protected java.lang.String |
user |
acl| Constructor and Description |
|---|
ConnectionPoolInfo() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clones the current connection pool info.
|
int |
compareTo(ConnectionPoolInfo poolInfo)
Compares this object's name with another ConnectionPoolInfo object's name
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
This method returns the description of the ConnectionPool
|
java.lang.String |
getDriver()
This method returns the driver name to use to connect to the database
|
int |
getId()
This method returns the Id of the ConnectionPool
|
java.lang.Exception |
getLastException() |
int |
getMaximumSize()
This method returns the maximum size of the ConnectionPool
|
java.lang.String |
getName()
This method returns the name of a ConnectionPool
|
java.lang.String |
getPassword()
This method returns the password to use to initialize the ConnectionPool
|
long |
getRecyclePeriod()
This method returns the period (milliseconds) to wait before recycling the
ConnectionPool connections.
|
int |
getSize()
This method returns the minimum size of the ConnectionPool
|
int |
getStatus() |
long |
getTimeout() |
java.lang.String |
getUrl()
This method returns the URL of the database to use
|
java.lang.String |
getUser()
This method returns the username to use to initialize the ConnectionPool
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
This method sets the description of the ConnectionPool
|
void |
setDriver(java.lang.String driver)
This method sets the driver name to use to connect to the database
|
void |
setId(int id)
This method sets the Id of the ConnectionPool
|
void |
setLastException(java.lang.Exception lastException) |
void |
setMaximumSize(int maxsize)
This method sets the maximum size of the ConnectionPool
|
void |
setName(java.lang.String name)
This method sets the name of the ConnectionPool
|
void |
setPassword(java.lang.String password)
This method sets the password to use to initialize the ConnectionPool
|
void |
setRecyclePeriod(long recyclePeriod)
This method sets the period (milliseconds) to wait before recycling the
ConnectionPool connections.
|
void |
setSize(int size)
This method sets the minimum size of the ConnectionPool
|
void |
setStatus(int status) |
void |
setTimeout(long timeout) |
void |
setUrl(java.lang.String url)
This method sets the URL of the database to use
|
void |
setUser(java.lang.String user)
This method sets the username to use to initialize the ConnectionPool
|
java.lang.String |
toString() |
clone, setAclgetAvailableLocales, getTranslation, isTranslationExists, removeTranslationsOtherThan, setTranslation, updateTranslationspublic static final int CONNECTION_NOT_TESTED
public static final int CONNECTION_ERROR
public static final int CONNECTION_OK
public static final int CONNECTION_INACTIVE
protected static final int OBJECT_VERSION_ID_7_0
protected static final int OBJECT_VERSION_ID_7_0_ISTANBUL
protected int id
protected java.lang.String name
protected java.lang.String description
protected java.lang.String driver
protected java.lang.String url
protected java.lang.String user
protected java.lang.String password
protected int size
protected int maximumSize
protected long recyclePeriod
protected int status
protected long timeout
protected transient java.lang.Exception lastException
protected int objectVersionId
public int getId()
public void setId(int id)
id - a ConnectionPool Idpublic java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the ConnectionPoolpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the description of the ConnectionPoolpublic java.lang.String getDriver()
public void setDriver(java.lang.String driver)
driver - the driver name to use to connect to the databasepublic java.lang.String getUrl()
public void setUrl(java.lang.String url)
url - the URL of the database to usepublic java.lang.String getUser()
public void setUser(java.lang.String user)
user - the username to use to initialize the ConnectionPoolpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - the password to use to initialize the ConnectionPoolpublic int getSize()
public int getMaximumSize()
public void setSize(int size)
size - the minimum size of the ConnectionPoolpublic void setMaximumSize(int maxsize)
maxsize - the maximum size of the ConnectionPoolpublic long getRecyclePeriod()
public void setRecyclePeriod(long recyclePeriod)
recyclePeriod - the recycle period time in millisecondspublic int compareTo(ConnectionPoolInfo poolInfo)
compareTo in interface java.lang.Comparable<ConnectionPoolInfo>poolInfo - the object to be compared withpublic int getStatus()
public void setStatus(int status)
public java.lang.Exception getLastException()
public void setLastException(java.lang.Exception lastException)
public long getTimeout()
public void setTimeout(long timeout)
public java.lang.Object clone()
clone in class java.lang.Objectpublic int hashCode()
hashCode in class JMapObjectpublic boolean equals(java.lang.Object obj)
equals in class JMapObjectpublic java.lang.String toString()
toString in class java.lang.Object