Class 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 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

      protected String name
    • description

      protected String description
    • driver

      protected String driver
    • url

      protected String url
    • user

      protected String user
    • password

      protected String password
    • size

      protected int size
    • maximumSize

      protected int maximumSize
    • recyclePeriod

      protected long recyclePeriod
    • status

      protected int status
    • timeout

      protected long timeout
    • lastException

      protected transient Exception 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

      public String getName()
      This method returns the name of a ConnectionPool
      Returns:
      the name of a ConnectionPool
    • setName

      public void setName(String name)
      This method sets the name of the ConnectionPool
      Parameters:
      name - the name of the ConnectionPool
    • getDescription

      public String getDescription()
      This method returns the description of the ConnectionPool
      Returns:
      the description of the ConnectionPool
    • setDescription

      public void setDescription(String description)
      This method sets the description of the ConnectionPool
      Parameters:
      description - the description of the ConnectionPool
    • getDriver

      public String 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

      public void setDriver(String driver)
      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

      public String getUrl()
      This method returns the URL of the database to use
      Returns:
      the URL of the database to use
    • setUrl

      public void setUrl(String url)
      This method sets the URL of the database to use
      Parameters:
      url - the URL of the database to use
    • getUser

      public String getUser()
      This method returns the username to use to initialize the ConnectionPool
      Returns:
      the username to use to initialize the ConnectionPool
    • setUser

      public void setUser(String user)
      This method sets the username to use to initialize the ConnectionPool
      Parameters:
      user - the username to use to initialize the ConnectionPool
    • getPassword

      public String getPassword()
      This method returns the password to use to initialize the ConnectionPool
      Returns:
      the password to use to initialize the ConnectionPool
    • setPassword

      public void setPassword(String password)
      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

      public int compareTo(ConnectionPoolInfo poolInfo)
      Compares this object's name with another ConnectionPoolInfo object's name
      Specified by:
      compareTo in interface Comparable<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

      public Exception getLastException()
    • setLastException

      public void setLastException(Exception lastException)
    • getTimeout

      public long getTimeout()
    • setTimeout

      public void setTimeout(long timeout)
    • clone

      public Object clone()
      Clones the current connection pool info.
      Overrides:
      clone in class Object
      Returns:
      a deep clone of the current connection pool info.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class JMapObject
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class JMapObject
    • toString

      public String toString()
      Overrides:
      toString in class Object