public class OlapConnectionFactory extends BasePoolableObjectFactory<OlapConnection>
Constructor and Description |
---|
OlapConnectionFactory(OlapDataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
void |
destroyObject(OlapConnection con) |
protected org.slf4j.Logger |
getLogger() |
String |
getPassword() |
int |
getTimeout() |
String |
getUserName() |
OlapConnection |
makeObject() |
void |
setPassword(String password) |
void |
setTimeout(int timeout) |
void |
setUserName(String userName) |
boolean |
validateObject(OlapConnection con) |
activateObject, passivateObject
public OlapConnectionFactory(OlapDataSource dataSource)
dataSource
- protected org.slf4j.Logger getLogger()
public String getUserName()
public void setUserName(String userName)
userName
- the userName to setpublic String getPassword()
public void setPassword(String password)
password
- the password to setpublic int getTimeout()
public void setTimeout(int timeout)
timeout
- the timeout to setpublic OlapConnection makeObject()
makeObject
in interface PoolableObjectFactory<OlapConnection>
makeObject
in class BasePoolableObjectFactory<OlapConnection>
BasePoolableObjectFactory.makeObject()
public void destroyObject(OlapConnection con)
destroyObject
in interface PoolableObjectFactory<OlapConnection>
destroyObject
in class BasePoolableObjectFactory<OlapConnection>
org.apache.commons.pool.BasePoolableObjectFactory#destroyObject(java.
lang.Object)
public boolean validateObject(OlapConnection con)
validateObject
in interface PoolableObjectFactory<OlapConnection>
validateObject
in class BasePoolableObjectFactory<OlapConnection>
org.apache.commons.pool.BasePoolableObjectFactory#validateObject(java
.lang.Object)
Copyright © 2012–2013 Eyeq MC. All rights reserved.