Package com.kheops.jmap.db
Class ConnectionPoolInfo
java.lang.Object
com.kheops.jmap.metadata.LocalizedObject
com.kheops.jmap.metadata.JMapObject
com.kheops.jmap.db.ConnectionPoolInfo
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<ConnectionPoolInfo>
- Direct Known Subclasses:
DatabaseConnectionPoolInfo
,SdeConnectionPoolInfo
public abstract class ConnectionPoolInfo
extends JMapObject
implements Serializable, Comparable<ConnectionPoolInfo>, Cloneable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
protected String
protected String
protected int
protected Exception
protected int
protected String
protected static final int
protected static final int
protected int
protected String
protected long
protected int
protected int
protected long
protected String
protected String
Fields inherited from class com.kheops.jmap.metadata.JMapObject
acl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the current connection pool info.int
compareTo
(ConnectionPoolInfo poolInfo) Compares this object's name with another ConnectionPoolInfo object's nameboolean
This method returns the description of the ConnectionPoolThis method returns the driver name to use to connect to the databaseint
getId()
This method returns the Id of the ConnectionPoolint
This method returns the maximum size of the ConnectionPoolgetName()
This method returns the name of a ConnectionPoolThis method returns the password to use to initialize the ConnectionPoollong
This method returns the period (milliseconds) to wait before recycling the ConnectionPool connections.int
getSize()
This method returns the minimum size of the ConnectionPoolint
long
getUrl()
This method returns the URL of the database to usegetUser()
This method returns the username to use to initialize the ConnectionPoolint
hashCode()
void
setDescription
(String description) This method sets the description of the ConnectionPoolvoid
This method sets the driver name to use to connect to the databasevoid
setId
(int id) This method sets the Id of the ConnectionPoolvoid
setLastException
(Exception lastException) void
setMaximumSize
(int maxsize) This method sets the maximum size of the ConnectionPoolvoid
This method sets the name of the ConnectionPoolvoid
setPassword
(String password) This method sets the password to use to initialize the ConnectionPoolvoid
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 ConnectionPoolvoid
setStatus
(int status) void
setTimeout
(long timeout) void
This method sets the URL of the database to usevoid
This method sets the username to use to initialize the ConnectionPooltoString()
Methods inherited from class com.kheops.jmap.metadata.JMapObject
clone, setAcl
Methods inherited from class com.kheops.jmap.metadata.LocalizedObject
getAvailableLocales, getTranslation, isTranslationExists, removeTranslationsOtherThan, setTranslation, updateTranslations
-
Field Details
-
CONNECTION_NOT_TESTED
public static final int CONNECTION_NOT_TESTED- See Also:
-
CONNECTION_ERROR
public static final int CONNECTION_ERROR- See Also:
-
CONNECTION_OK
public static final int CONNECTION_OK- See Also:
-
CONNECTION_INACTIVE
public static final int CONNECTION_INACTIVE- See Also:
-
OBJECT_VERSION_ID_7_0
protected static final int OBJECT_VERSION_ID_7_0- See Also:
-
OBJECT_VERSION_ID_7_0_ISTANBUL
protected static final int OBJECT_VERSION_ID_7_0_ISTANBUL- See Also:
-
id
protected int id -
name
-
description
-
driver
-
url
-
user
-
password
-
size
protected int size -
maximumSize
protected int maximumSize -
recyclePeriod
protected long recyclePeriod -
status
protected int status -
timeout
protected long timeout -
lastException
-
objectVersionId
protected int objectVersionId
-
-
Constructor Details
-
ConnectionPoolInfo
public ConnectionPoolInfo()
-
-
Method Details
-
getId
public int getId()This method returns the Id of the ConnectionPool- Returns:
- a ConnectionPool Id
-
setId
public void setId(int id) This method sets the Id of the ConnectionPool- Parameters:
id
- a ConnectionPool Id
-
getName
This method returns the name of a ConnectionPool- Returns:
- the name of a ConnectionPool
-
setName
This method sets the name of the ConnectionPool- Parameters:
name
- the name of the ConnectionPool
-
getDescription
This method returns the description of the ConnectionPool- Returns:
- the description of the ConnectionPool
-
setDescription
This method sets the description of the ConnectionPool- Parameters:
description
- the description of the ConnectionPool
-
getDriver
This method returns the driver name to use to connect to the database- Returns:
- the driver name to use to connect to the database
-
setDriver
This method sets the driver name to use to connect to the database- Parameters:
driver
- the driver name to use to connect to the database
-
getUrl
This method returns the URL of the database to use- Returns:
- the URL of the database to use
-
setUrl
This method sets the URL of the database to use- Parameters:
url
- the URL of the database to use
-
getUser
This method returns the username to use to initialize the ConnectionPool- Returns:
- the username to use to initialize the ConnectionPool
-
setUser
This method sets the username to use to initialize the ConnectionPool- Parameters:
user
- the username to use to initialize the ConnectionPool
-
getPassword
This method returns the password to use to initialize the ConnectionPool- Returns:
- the password to use to initialize the ConnectionPool
-
setPassword
This method sets the password to use to initialize the ConnectionPool- Parameters:
password
- the password to use to initialize the ConnectionPool
-
getSize
public int getSize()This method returns the minimum size of the ConnectionPool- Returns:
- the minimum size of the ConnectionPool
-
getMaximumSize
public int getMaximumSize()This method returns the maximum size of the ConnectionPool- Returns:
- the maximum size of the ConnectionPool
-
setSize
public void setSize(int size) This method sets the minimum size of the ConnectionPool- Parameters:
size
- the minimum size of the ConnectionPool
-
setMaximumSize
public void setMaximumSize(int maxsize) This method sets the maximum size of the ConnectionPool- Parameters:
maxsize
- the maximum size of the ConnectionPool
-
getRecyclePeriod
public long getRecyclePeriod()This method returns the period (milliseconds) to wait before recycling the ConnectionPool connections.- Returns:
- the period in milliseconds
-
setRecyclePeriod
public void setRecyclePeriod(long recyclePeriod) This method sets the period (milliseconds) to wait before recycling the ConnectionPool connections.- Parameters:
recyclePeriod
- the recycle period time in milliseconds
-
compareTo
Compares this object's name with another ConnectionPoolInfo object's name- Specified by:
compareTo
in interfaceComparable<ConnectionPoolInfo>
- Parameters:
poolInfo
- the object to be compared with- Returns:
- a negative integer, zero, or a positive integer as the the specified String is greater than, equal to, or less than this String, ignoring case considerations
-
getStatus
public int getStatus() -
setStatus
public void setStatus(int status) -
getLastException
-
setLastException
-
getTimeout
public long getTimeout() -
setTimeout
public void setTimeout(long timeout) -
clone
Clones the current connection pool info. -
hashCode
public int hashCode()- Overrides:
hashCode
in classJMapObject
-
equals
- Overrides:
equals
in classJMapObject
-
toString
-