Class CassandraManagedConnectionFactory
- java.lang.Object
-
- org.teiid.resource.spi.BasicManagedConnectionFactory
-
- org.teiid.resource.adapter.cassandra.CassandraManagedConnectionFactory
-
- All Implemented Interfaces:
Serializable
,javax.resource.spi.ManagedConnectionFactory
,javax.resource.spi.ResourceAdapterAssociation
,javax.resource.spi.ValidatingManagedConnectionFactory
,CassandraConfiguration
public class CassandraManagedConnectionFactory extends BasicManagedConnectionFactory implements CassandraConfiguration
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BundleUtil
UTIL
-
Constructor Summary
Constructors Constructor Description CassandraManagedConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicConnectionFactory<ResourceConnection>
createConnectionFactory()
boolean
equals(Object obj)
String
getAddress()
The address of the Cassandra cluster.String
getKeyspace()
The Cassandra keyspace to use.String
getPassword()
Integer
getPort()
Optional port to use with the address.String
getUsername()
int
hashCode()
void
setAddress(String address)
void
setKeyspace(String keyspace)
void
setPassword(String password)
void
setPort(Integer port)
void
setUsername(String username)
-
Methods inherited from class org.teiid.resource.spi.BasicManagedConnectionFactory
checkEquals, createConnectionFactory, createManagedConnection, getInstance, getInvalidConnections, getLogWriter, getResourceAdapter, matchManagedConnections, setLogWriter, setResourceAdapter
-
-
-
-
Field Detail
-
UTIL
public static final BundleUtil UTIL
-
-
Method Detail
-
createConnectionFactory
public BasicConnectionFactory<ResourceConnection> createConnectionFactory() throws javax.resource.ResourceException
- Specified by:
createConnectionFactory
in interfacejavax.resource.spi.ManagedConnectionFactory
- Specified by:
createConnectionFactory
in classBasicManagedConnectionFactory
- Throws:
javax.resource.ResourceException
-
getKeyspace
public String getKeyspace()
Description copied from interface:CassandraConfiguration
The Cassandra keyspace to use.- Specified by:
getKeyspace
in interfaceCassandraConfiguration
- Returns:
-
setKeyspace
public void setKeyspace(String keyspace)
-
getAddress
public String getAddress()
Description copied from interface:CassandraConfiguration
The address of the Cassandra cluster.- Specified by:
getAddress
in interfaceCassandraConfiguration
- Returns:
-
setAddress
public void setAddress(String address)
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceCassandraConfiguration
-
setUsername
public void setUsername(String username)
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfaceCassandraConfiguration
-
setPassword
public void setPassword(String password)
-
getPort
public Integer getPort()
Description copied from interface:CassandraConfiguration
Optional port to use with the address.- Specified by:
getPort
in interfaceCassandraConfiguration
- Returns:
-
setPort
public void setPort(Integer port)
-
hashCode
public int hashCode()
-
-