public class

CassandraDBConnectorConnectionManager

extends Object
implements Capabilities MetadataAware ConnectionManager<K, C extends Connection> ProcessAdapter<O> MuleContextAware Initialisable
java.lang.Object
   ↳ com.mulesoft.mule.cassandradb.connectivity.CassandraDBConnectorConnectionManager

Class Overview

A CassandraDBConnectorConnectionManager is a wrapper around CassandraDBConnector that adds connection management capabilities to the pojo.

Summary

Constants
String DEVKIT_BUILD
String DEVKIT_VERSION
String MODULE_NAME
String MODULE_VERSION
[Expand]
Inherited Constants
From interface org.mule.api.lifecycle.Initialisable
Fields
private GenericKeyedObjectPool connectionPool Connector Pool
protected PoolingProfile connectionPoolingProfile
private ConsistencyLevel consistencyLevel
protected FlowConstruct flowConstruct Flow Construct
private String host
private String keyspace
protected MuleContext muleContext Mule Context
private String password
private int port
protected RetryPolicyTemplate retryPolicyTemplate
private String username
Public Constructors
CassandraDBConnectorConnectionManager()
Public Methods
CassandraDBConnectorConnectionIdentifierAdapter acquireConnection(CassandraDBConnectorConnectionKey key)
void destroyConnection(CassandraDBConnectorConnectionKey key, CassandraDBConnectorConnectionIdentifierAdapter connection)
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
ConsistencyLevel getConsistencyLevel()
Retrieves consistencyLevel
CassandraDBConnectorConnectionKey getDefaultConnectionKey()
Retrieve the default connection key
String getDevkitBuild()
Returns the build of the DevKit used to create this module
String getDevkitVersion()
Returns the version of the DevKit used to create this module
FlowConstruct getFlowConstruct()
Retrieves flowConstruct
String getHost()
Retrieves host
String getKeyspace()
Retrieves keyspace
String getModuleName()
Returns the user-friendly name of this module
String getModuleVersion()
Returns the version of this module
MuleContext getMuleContext()
Retrieves muleContext
String getPassword()
Retrieves password
int getPort()
Retrieves port
<P> ProcessTemplate<P, CassandraDBConnectorConnectionIdentifierAdapter> getProcessTemplate()
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
String getUsername()
Retrieves username
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseConnection(CassandraDBConnectorConnectionKey key, CassandraDBConnectorConnectionIdentifierAdapter connection)
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setConsistencyLevel(ConsistencyLevel value)
Sets consistencyLevel
void setFlowConstruct(FlowConstruct value)
Sets flowConstruct
void setHost(String value)
Sets host
void setKeyspace(String value)
Sets keyspace
void setMuleContext(MuleContext value)
Sets muleContext
void setPassword(String value)
Sets password
void setPort(int value)
Sets port
void setRetryPolicyTemplate(RetryPolicyTemplate value)
Sets retryPolicyTemplate
void setUsername(String value)
Sets username
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.mulesoft.mule.cassandradb.basic.Capabilities
From interface com.mulesoft.mule.cassandradb.basic.MetadataAware
From interface com.mulesoft.mule.cassandradb.connection.ConnectionManager
From interface com.mulesoft.mule.cassandradb.process.ProcessAdapter
From interface org.mule.api.context.MuleContextAware
From interface org.mule.api.lifecycle.Initialisable

Constants

private static final String DEVKIT_BUILD

Constant Value: "3.4.1.1596.15c8515"

private static final String DEVKIT_VERSION

Constant Value: "3.4.1"

private static final String MODULE_NAME

Constant Value: "cassandradb"

private static final String MODULE_VERSION

Constant Value: "1.1.0"

Fields

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

private ConsistencyLevel consistencyLevel

protected FlowConstruct flowConstruct

Flow Construct

private String host

private String keyspace

protected MuleContext muleContext

Mule Context

private String password

private int port

protected RetryPolicyTemplate retryPolicyTemplate

private String username

Public Constructors

public CassandraDBConnectorConnectionManager ()

Public Methods

public CassandraDBConnectorConnectionIdentifierAdapter acquireConnection (CassandraDBConnectorConnectionKey key)

Parameters
key
Throws
Exception

public void destroyConnection (CassandraDBConnectorConnectionKey key, CassandraDBConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

Returns
  • PoolingProfile representing the pooling parameters

public ConsistencyLevel getConsistencyLevel ()

Retrieves consistencyLevel

public CassandraDBConnectorConnectionKey getDefaultConnectionKey ()

Retrieve the default connection key

Returns
  • The default connection key

public String getDevkitBuild ()

Returns the build of the DevKit used to create this module

public String getDevkitVersion ()

Returns the version of the DevKit used to create this module

public FlowConstruct getFlowConstruct ()

Retrieves flowConstruct

public String getHost ()

Retrieves host

public String getKeyspace ()

Retrieves keyspace

public String getModuleName ()

Returns the user-friendly name of this module

public String getModuleVersion ()

Returns the version of this module

public MuleContext getMuleContext ()

Retrieves muleContext

public String getPassword ()

Retrieves password

public int getPort ()

Retrieves port

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

Returns
  • The reconnection strategy

public String getUsername ()

Retrieves username

public void initialise ()

public boolean isCapableOf (Capability capability)

Returns true if this module implements such capability

Parameters
capability The capability to test for
Returns
  • True if it does, false otherwise

public void releaseConnection (CassandraDBConnectorConnectionKey key, CassandraDBConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void setConnectionPoolingProfile (PoolingProfile value)

Sets connectionPoolingProfile

Parameters
value Value to set

public void setConsistencyLevel (ConsistencyLevel value)

Sets consistencyLevel

Parameters
value Value to set

public void setFlowConstruct (FlowConstruct value)

Sets flowConstruct

Parameters
value Value to set

public void setHost (String value)

Sets host

Parameters
value Value to set

public void setKeyspace (String value)

Sets keyspace

Parameters
value Value to set

public void setMuleContext (MuleContext value)

Sets muleContext

Parameters
value Value to set

public void setPassword (String value)

Sets password

Parameters
value Value to set

public void setPort (int value)

Sets port

Parameters
value Value to set

public void setRetryPolicyTemplate (RetryPolicyTemplate value)

Sets retryPolicyTemplate

Parameters
value Value to set

public void setUsername (String value)

Sets username

Parameters
value Value to set