<< Click to Display Table of Contents >>

ConnectionPool

This class provides methods related to the database connection pool of OZ Server.


Constructor Detail

ConnectionPool

public ConnectionPool(string url, string id, string pw, bool autoLogin, bool useUSL)

Performs management functions such as registering, deleting the JDBC/ODBC data of the database.

Parameters:

url - URL of OZ Server

id - User ID

pw - User Password

autoLogin - Whether to use the Autologin

useUSL - Whether to use the USL


Method Detail

AddPool

public void AddPool(ConnectionPoolInfo pool) throws OZAPIException

Adds ConnectionPool. Set a value in the declared member variable in the "ConnectionPoolInfo" class to add ConnectionPool.

Parameters:

pool - ConnctionPoolInfo object, which is the information of the ConnectionPool to add

RemovePool

public void RemovePool(string alias) throws OZAPIException

Deletes the ConnectionPool of the selected name.

Parameters:

alias - ConnectionPool alias

GetPoolInfos

public ConnectionPoolInfo[] GetPoolInfos() throws OZAPIException

Gets the information about all ConnectionPools.

GetPoolStatuses

public ConnectionPooStatus[] GetPoolStatuses() throws OZAPIException

Gets the status information of all ConnectionPools.

GetPoolInfo

public ConnectionPoolInfo GetPoolInfo(string alias) throws OZAPIException

Gets the ConnectionPoolInfo list for the corresponding ConnectionPool.

Parameters:

alias - Alias of ConnectionPool

Save

public void Save() throws OZAPIException throws OZAPIException

Save the data of all ConnectionPool in the server.