public class ConnectionFactoryImpl
extends org.datanucleus.store.connection.AbstractConnectionFactory
cassandra:[host1:port[,host2[,host3]]]Defaults to a server of "127.0.0.1" if no host/port specified. Defaults to a single Session per PMF/EMF, but can be overridden using "datanucleus.cassandra.sessionPerManager".
| Modifier and Type | Class and Description |
|---|---|
class |
ConnectionFactoryImpl.ManagedConnectionImpl |
| Modifier and Type | Field and Description |
|---|---|
static String |
CASSANDRA_COMPRESSION |
static String |
CASSANDRA_CONNECTION_PER_MANAGER |
static String |
CASSANDRA_METRICS |
static String |
CASSANDRA_SOCKET_CONNECT_TIMEOUT_MILLIS |
static String |
CASSANDRA_SOCKET_READ_TIMEOUT_MILLIS |
static String |
CASSANDRA_SSL |
protected static String |
DEFAULT_IP_ADDR |
| Constructor and Description |
|---|
ConnectionFactoryImpl(org.datanucleus.store.StoreManager storeMgr,
String resourceType)
Constructor for a factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.datanucleus.store.connection.ManagedConnection |
createManagedConnection(org.datanucleus.ExecutionContext ec,
Map options)
Obtain a connection from the Factory.
|
public static final String CASSANDRA_CONNECTION_PER_MANAGER
public static final String CASSANDRA_COMPRESSION
public static final String CASSANDRA_METRICS
public static final String CASSANDRA_SSL
public static final String CASSANDRA_SOCKET_READ_TIMEOUT_MILLIS
public static final String CASSANDRA_SOCKET_CONNECT_TIMEOUT_MILLIS
protected static final String DEFAULT_IP_ADDR
public ConnectionFactoryImpl(org.datanucleus.store.StoreManager storeMgr,
String resourceType)
storeMgr - StoreManagerresourceType - Resource type (not of relevance since we use a single factory)public void close()
close in interface org.datanucleus.store.connection.ConnectionFactoryclose in class org.datanucleus.store.connection.AbstractConnectionFactorypublic org.datanucleus.store.connection.ManagedConnection createManagedConnection(org.datanucleus.ExecutionContext ec,
Map options)
ec - the pool that is bound the connection during its lifecycle (or null)options - Any options for then creating the connection (currently ignored)ManagedConnectionCopyright © 2017. All rights reserved.