| |
|
| java.lang.Object org.continuent.sequoia.driver.SequoiaUrl
SequoiaUrl | public class SequoiaUrl (Code) | | This class defines a Sequoia url with parsed Metadata and so on. The
connection policy is interpreted while reading the URL. We could rename it to
ParsedURL.
author: Emmanuel Cecchet author: version: 1.0 |
Constructor Summary | |
public | SequoiaUrl(Driver driver, String url, Properties props) Creates a new SequoiaUrl object, parse it and instantiate
the connection creation policy.
Parameters: driver - driver used to create the connections Parameters: url - the URL to parse Parameters: props - optional filtered connection properties. |
DEBUG_LEVEL_DEBUG | final public static int DEBUG_LEVEL_DEBUG(Code) | | Most verbose level of debug
|
DEBUG_LEVEL_INFO | final public static int DEBUG_LEVEL_INFO(Code) | | Informational level of debug
|
DEBUG_LEVEL_OFF | final public static int DEBUG_LEVEL_OFF(Code) | | No debug messages
|
DEFAULT_CONTROLLER_PORT | final public static int DEFAULT_CONTROLLER_PORT(Code) | | Default port number to connect to the Sequoia controller
|
SequoiaUrl | public SequoiaUrl(Driver driver, String url, Properties props) throws SQLException(Code) | | Creates a new SequoiaUrl object, parse it and instantiate
the connection creation policy.
Parameters: driver - driver used to create the connections Parameters: url - the URL to parse Parameters: props - optional filtered connection properties. Must not be null. throws: SQLException - if an error occurs while parsing the url |
getControllerList | public ControllerInfo[] getControllerList()(Code) | | Returns the controllerList value.
Returns the controllerList. |
getDatabaseName | public String getDatabaseName()(Code) | | Returns the database name.
Returns the database name. |
getDebugLevel | public int getDebugLevel()(Code) | | Returns the debugLevel value.
Returns the debugLevel. |
getParameters | public HashMap getParameters()(Code) | | Returns the URL parameters/value in a HashMap (warning this is not a
clone). Parameters come from both the parsed URL and the properties
argument if any.
The HashMap is 'parameter name'=>'value'
Returns the parameters and their value in a Hasmap. |
getTemporaryCloneForReconnection | public SequoiaUrl getTemporaryCloneForReconnection(String user, String password) throws SQLException(Code) | | This clone has the following "differences" with the original:
- not persistent
- but sharing the same controller policy anyway
|
getUrl | public String getUrl()(Code) | | Returns the url value.
Returns the url. |
isDebugEnabled | public boolean isDebugEnabled()(Code) | | Returns true if debugging is set to debug level 'debug'
true if debugging is enabled |
isInfoEnabled | public boolean isInfoEnabled()(Code) | | Returns true if debug level is 'info' or greater
true if debug level is 'info' or greater |
parseController | public static ControllerInfo parseController(String controller) throws SQLException(Code) | | Checks the validity of the hostname, port number and controller name given
in the URL and build the full URL used to lookup a controller.
Parameters: controller - information regarding a controller. a ControllerInfo object exception: SQLException - if an error occurs. |
setUrl | public void setUrl(String url)(Code) | | Sets the url value.
Parameters: url - The url to set. |
|
|
|