public class

MongoCloudConnectorConnectionManager

extends Object
implements Capabilities ConnectionManager<K, C extends Connection> MetadataAware MuleContextAware Initialisable ProcessAdapter<O>
java.lang.Object
   ↳ org.mule.module.mongo.connectivity.MongoCloudConnectorConnectionManager

Class Overview

A MongoCloudConnectorConnectionManager is a wrapper around MongoCloudConnector 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 Boolean autoConnectRetry
private Integer connectTimeout
private GenericKeyedObjectPool connectionPool Connector Pool
protected PoolingProfile connectionPoolingProfile
private Integer connectionsPerHost
private String database
protected FlowConstruct flowConstruct Flow Construct
private Boolean fsync
private String host
private Integer maxWaitTime
protected MuleContext muleContext Mule Context
private String password
private int port
protected RetryPolicyTemplate retryPolicyTemplate
private Boolean safe
private Boolean slaveOk
private Integer socketTimeout
private Integer threadsAllowedToBlockForConnectionMultiplier
private String username
private Integer w
private Integer wtimeout
Public Constructors
MongoCloudConnectorConnectionManager()
Public Methods
MongoCloudConnectorConnectionIdentifierAdapter acquireConnection(MongoCloudConnectorConnectionKey key)
void destroyConnection(MongoCloudConnectorConnectionKey key, MongoCloudConnectorConnectionIdentifierAdapter connection)
Boolean getAutoConnectRetry()
Retrieves autoConnectRetry
Integer getConnectTimeout()
Retrieves connectTimeout
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
Integer getConnectionsPerHost()
Retrieves connectionsPerHost
String getDatabase()
Retrieves database
MongoCloudConnectorConnectionKey getDefaultConnectionKey()
String getDevkitBuild()
String getDevkitVersion()
FlowConstruct getFlowConstruct()
Retrieves flowConstruct
Boolean getFsync()
Retrieves fsync
String getHost()
Retrieves host
Integer getMaxWaitTime()
Retrieves maxWaitTime
String getModuleName()
String getModuleVersion()
MuleContext getMuleContext()
Retrieves muleContext
String getPassword()
Retrieves password
int getPort()
Retrieves port
<P> ProcessTemplate<P, MongoCloudConnectorConnectionIdentifierAdapter> getProcessTemplate()
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
Boolean getSafe()
Retrieves safe
Boolean getSlaveOk()
Retrieves slaveOk
Integer getSocketTimeout()
Retrieves socketTimeout
Integer getThreadsAllowedToBlockForConnectionMultiplier()
Retrieves threadsAllowedToBlockForConnectionMultiplier
String getUsername()
Retrieves username
Integer getW()
Retrieves w
Integer getWtimeout()
Retrieves wtimeout
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseConnection(MongoCloudConnectorConnectionKey key, MongoCloudConnectorConnectionIdentifierAdapter connection)
void setAutoConnectRetry(Boolean value)
Sets autoConnectRetry
void setConnectTimeout(Integer value)
Sets connectTimeout
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setConnectionsPerHost(Integer value)
Sets connectionsPerHost
void setDatabase(String value)
Sets database
void setFlowConstruct(FlowConstruct value)
Sets flowConstruct
void setFsync(Boolean value)
Sets fsync
void setHost(String value)
Sets host
void setMaxWaitTime(Integer value)
Sets maxWaitTime
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 setSafe(Boolean value)
Sets safe
void setSlaveOk(Boolean value)
Sets slaveOk
void setSocketTimeout(Integer value)
Sets socketTimeout
void setThreadsAllowedToBlockForConnectionMultiplier(Integer value)
Sets threadsAllowedToBlockForConnectionMultiplier
void setUsername(String value)
Sets username
void setW(Integer value)
Sets w
void setWtimeout(Integer value)
Sets wtimeout
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.api.Capabilities
From interface org.mule.api.ConnectionManager
From interface org.mule.api.MetadataAware
From interface org.mule.api.context.MuleContextAware
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.api.process.ProcessAdapter

Constants

private static final String DEVKIT_BUILD

Constant Value: "UNNAMED.1372.db235f3"

private static final String DEVKIT_VERSION

Constant Value: "3.3.2"

private static final String MODULE_NAME

Constant Value: "Mongo DB"

private static final String MODULE_VERSION

Constant Value: "3.2"

Fields

private Boolean autoConnectRetry

private Integer connectTimeout

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

private Integer connectionsPerHost

private String database

protected FlowConstruct flowConstruct

Flow Construct

private Boolean fsync

private String host

private Integer maxWaitTime

protected MuleContext muleContext

Mule Context

private String password

private int port

protected RetryPolicyTemplate retryPolicyTemplate

private Boolean safe

private Boolean slaveOk

private Integer socketTimeout

private Integer threadsAllowedToBlockForConnectionMultiplier

private String username

private Integer w

private Integer wtimeout

Public Constructors

public MongoCloudConnectorConnectionManager ()

Public Methods

public MongoCloudConnectorConnectionIdentifierAdapter acquireConnection (MongoCloudConnectorConnectionKey key)

Parameters
key
Throws
Exception

public void destroyConnection (MongoCloudConnectorConnectionKey key, MongoCloudConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public Boolean getAutoConnectRetry ()

Retrieves autoConnectRetry

public Integer getConnectTimeout ()

Retrieves connectTimeout

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

public Integer getConnectionsPerHost ()

Retrieves connectionsPerHost

public String getDatabase ()

Retrieves database

public MongoCloudConnectorConnectionKey getDefaultConnectionKey ()

public String getDevkitBuild ()

public String getDevkitVersion ()

public FlowConstruct getFlowConstruct ()

Retrieves flowConstruct

public Boolean getFsync ()

Retrieves fsync

public String getHost ()

Retrieves host

public Integer getMaxWaitTime ()

Retrieves maxWaitTime

public String getModuleName ()

public String getModuleVersion ()

public MuleContext getMuleContext ()

Retrieves muleContext

public String getPassword ()

Retrieves password

public int getPort ()

Retrieves port

public ProcessTemplate<P, MongoCloudConnectorConnectionIdentifierAdapter> getProcessTemplate ()

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

public Boolean getSafe ()

Retrieves safe

public Boolean getSlaveOk ()

Retrieves slaveOk

public Integer getSocketTimeout ()

Retrieves socketTimeout

public Integer getThreadsAllowedToBlockForConnectionMultiplier ()

Retrieves threadsAllowedToBlockForConnectionMultiplier

public String getUsername ()

Retrieves username

public Integer getW ()

Retrieves w

public Integer getWtimeout ()

Retrieves wtimeout

public void initialise ()

public boolean isCapableOf (Capability capability)

Returns true if this module implements such capability

Parameters
capability

public void releaseConnection (MongoCloudConnectorConnectionKey key, MongoCloudConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void setAutoConnectRetry (Boolean value)

Sets autoConnectRetry

Parameters
value Value to set

public void setConnectTimeout (Integer value)

Sets connectTimeout

Parameters
value Value to set

public void setConnectionPoolingProfile (PoolingProfile value)

Sets connectionPoolingProfile

Parameters
value Value to set

public void setConnectionsPerHost (Integer value)

Sets connectionsPerHost

Parameters
value Value to set

public void setDatabase (String value)

Sets database

Parameters
value Value to set

public void setFlowConstruct (FlowConstruct value)

Sets flowConstruct

Parameters
value Value to set

public void setFsync (Boolean value)

Sets fsync

Parameters
value Value to set

public void setHost (String value)

Sets host

Parameters
value Value to set

public void setMaxWaitTime (Integer value)

Sets maxWaitTime

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 setSafe (Boolean value)

Sets safe

Parameters
value Value to set

public void setSlaveOk (Boolean value)

Sets slaveOk

Parameters
value Value to set

public void setSocketTimeout (Integer value)

Sets socketTimeout

Parameters
value Value to set

public void setThreadsAllowedToBlockForConnectionMultiplier (Integer value)

Sets threadsAllowedToBlockForConnectionMultiplier

Parameters
value Value to set

public void setUsername (String value)

Sets username

Parameters
value Value to set

public void setW (Integer value)

Sets w

Parameters
value Value to set

public void setWtimeout (Integer value)

Sets wtimeout

Parameters
value Value to set