public class RestDBSessionFactory extends Object implements DBSessionFactory
Constructor and Description |
---|
RestDBSessionFactory() |
RestDBSessionFactory(boolean validateCertificates) |
Modifier and Type | Method and Description |
---|---|
DBSession |
createSession()
Creates a DB Session
|
DBSession |
createSession(Credentials credentials)
Creates a DB Session with given credentials
|
DBSession |
createSession(String instance)
Creates a session for the given instance
|
DBSession |
createSession(String instance,
Credentials credentials)
Creates a session for the given instance and credentials
|
String |
getHostname() |
String |
getInstanceId() |
int |
getPort() |
void |
setHostname(String hostname) |
void |
setInstanceId(String instanceId) |
void |
setPort(int port) |
void |
shutdown() |
public RestDBSessionFactory()
public RestDBSessionFactory(boolean validateCertificates)
public DBSession createSession() throws JasDBStorageException
DBSessionFactory
createSession
in interface DBSessionFactory
JasDBStorageException
- If unable to create the sessionpublic DBSession createSession(String instance) throws JasDBStorageException
DBSessionFactory
createSession
in interface DBSessionFactory
instance
- the instance idJasDBStorageException
- If unable to create the sessionpublic DBSession createSession(Credentials credentials) throws JasDBStorageException
DBSessionFactory
createSession
in interface DBSessionFactory
credentials
- the credentialsJasDBStorageException
- If unable to create the sessionpublic DBSession createSession(String instance, Credentials credentials) throws JasDBStorageException
DBSessionFactory
createSession
in interface DBSessionFactory
instance
- the instance idcredentials
- the credentialsJasDBStorageException
- If unable to create the sessionpublic void shutdown() throws JasDBStorageException
shutdown
in interface DBSessionFactory
JasDBStorageException
public String getInstanceId()
public void setInstanceId(String instanceId)
public String getHostname()
public void setHostname(String hostname)
public int getPort()
public void setPort(int port)
Copyright © 2015. All rights reserved.