@ConnectionDefinition(connectionFactory=CassandraDriverConnectionFactory.class, connectionFactoryImpl=CassandraDriverConnectionFactoryImpl.class, connection=CassandraDriverConnection.class, connectionImpl=CassandraDriverConnectionImpl.class) public class CassandraDriverManagedConnectionFactory extends Object implements javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation
| Constructor and Description |
|---|
CassandraDriverManagedConnectionFactory()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
createConnectionFactory()
Creates a Connection Factory instance.
|
Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
Creates a Connection Factory instance.
|
javax.resource.spi.ManagedConnection |
createManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
Creates a new physical connection to the underlying EIS resource manager.
|
boolean |
equals(Object o) |
PrintWriter |
getLogWriter()
Get the log writer for this ManagedConnectionFactory instance.
|
String |
getNodes()
Get nodes
|
String |
getPort()
Get port
|
javax.resource.spi.ResourceAdapter |
getResourceAdapter()
Get the resource adapter
|
int |
hashCode() |
javax.resource.spi.ManagedConnection |
matchManagedConnections(Set connectionSet,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
Returns a matched connection from the candidate set of connections.
|
void |
setLogWriter(PrintWriter out)
Set the log writer for this ManagedConnectionFactory instance.
|
void |
setNodes(String nodes)
Set nodes
|
void |
setPort(String port)
Set port
|
void |
setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
Set the resource adapter
|
public CassandraDriverManagedConnectionFactory()
public void setNodes(String nodes)
nodes - The valuepublic String getNodes()
public void setPort(String port)
port - The valuepublic String getPort()
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager) throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactorycxManager - ConnectionManager to be associated with created EIS connection factory instancejavax.resource.ResourceException - Generic exceptionpublic Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException - Generic exceptionpublic javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactorysubject - Caller's security informationcxRequestInfo - Additional resource adapter specific connection request informationjavax.resource.ResourceException - generic exceptionpublic javax.resource.spi.ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactoryconnectionSet - Candidate connection setsubject - Caller's security informationcxRequestInfo - Additional resource adapter specific connection request informationjavax.resource.ResourceException - generic exceptionpublic PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException - generic exceptionpublic void setLogWriter(PrintWriter out) throws javax.resource.ResourceException
setLogWriter in interface javax.resource.spi.ManagedConnectionFactoryout - PrintWriter - an out stream for error logging and tracingjavax.resource.ResourceException - generic exceptionpublic javax.resource.spi.ResourceAdapter getResourceAdapter()
getResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociationpublic void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociationra - The handlepublic boolean equals(Object o)
Copyright © 2015. All rights reserved.