public class

DynamicsCRMConnectorConnectionManager

extends Object
implements MetadataAware MuleContextAware ProcessAdapter<O> Capabilities Disposable Initialisable Testable ConnectorMetaDataEnabled ConnectionManager<K, C extends Connection>
java.lang.Object
   ↳ org.mule.module.dynamicscrm.connectivity.DynamicsCRMConnectorConnectionManager

Class Overview

A DynamicsCRMConnectorConnectionManager is a wrapper around DynamicsCRMConnector that adds connection management capabilities to the pojo.

Summary

Constants
String DEVKIT_BUILD
String DEVKIT_VERSION
String MIN_MULE_VERSION
String MODULE_NAME
String MODULE_VERSION
[Expand]
Inherited Constants
From interface org.mule.api.lifecycle.Disposable
From interface org.mule.api.lifecycle.Initialisable
Fields
private int authenticationReintents
private GenericKeyedObjectPool connectionPool Connector Pool
protected PoolingProfile connectionPoolingProfile
protected FlowConstruct flowConstruct Flow Construct
protected MuleContext muleContext Mule Context
private String organizationServiceUrl
private String password
protected RetryPolicyTemplate retryPolicyTemplate
private String username
Public Constructors
DynamicsCRMConnectorConnectionManager()
Public Methods
DynamicsCRMConnectorConnectionIdentifierAdapter acquireConnection(DynamicsCRMConnectorConnectionKey key)
DefaultResult buildFailureTestResult(Exception exception)
void destroyConnection(DynamicsCRMConnectorConnectionKey key, DynamicsCRMConnectorConnectionIdentifierAdapter connection)
void dispose()
int getAuthenticationReintents()
Retrieves authenticationReintents
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
DynamicsCRMConnectorConnectionKey getDefaultConnectionKey()
Retrieve the default connection key
String getDevkitBuild()
String getDevkitVersion()
FlowConstruct getFlowConstruct()
Retrieves flowConstruct
Result<MetaData> getMetaData(MetaDataKey metaDataKey)
Result<List<MetaDataKey>> getMetaDataKeys()
String getMinMuleVersion()
String getModuleName()
String getModuleVersion()
MuleContext getMuleContext()
Retrieves muleContext
String getOrganizationServiceUrl()
Retrieves organizationServiceUrl
String getPassword()
Retrieves password
<P> ProcessTemplate<P, DynamicsCRMConnectorConnectionIdentifierAdapter> getProcessTemplate()
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
String getUsername()
Retrieves username
void initialise()
boolean isCapableOf(ModuleCapability capability)
Returns true if this module implements such capability
void releaseConnection(DynamicsCRMConnectorConnectionKey key, DynamicsCRMConnectorConnectionIdentifierAdapter connection)
void setAuthenticationReintents(int value)
Sets authenticationReintents
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setFlowConstruct(FlowConstruct value)
Sets flowConstruct
void setMuleContext(MuleContext value)
Sets muleContext
void setOrganizationServiceUrl(String value)
Sets organizationServiceUrl
void setPassword(String value)
Sets password
void setRetryPolicyTemplate(RetryPolicyTemplate value)
Sets retryPolicyTemplate
void setUsername(String value)
Sets username
TestResult test()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.api.MetadataAware
From interface org.mule.api.context.MuleContextAware
From interface org.mule.api.devkit.ProcessAdapter
From interface org.mule.api.devkit.capability.Capabilities
From interface org.mule.api.lifecycle.Disposable
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.common.Testable
From interface org.mule.common.metadata.ConnectorMetaDataEnabled
From interface org.mule.module.dynamicscrm.connection.ConnectionManager

Constants

private static final String DEVKIT_BUILD

Constant Value: "origin/3.5.0-bighorn.1778.6df8d07"

private static final String DEVKIT_VERSION

Constant Value: "3.5.0-bighorn"

private static final String MIN_MULE_VERSION

Constant Value: "3.5"

private static final String MODULE_NAME

Constant Value: "MS Dynamics CRM"

private static final String MODULE_VERSION

Constant Value: "1.8.0"

Fields

private int authenticationReintents

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

protected FlowConstruct flowConstruct

Flow Construct

protected MuleContext muleContext

Mule Context

private String organizationServiceUrl

private String password

protected RetryPolicyTemplate retryPolicyTemplate

private String username

Public Constructors

public DynamicsCRMConnectorConnectionManager ()

Public Methods

public DynamicsCRMConnectorConnectionIdentifierAdapter acquireConnection (DynamicsCRMConnectorConnectionKey key)

Parameters
key
Throws
Exception

public DefaultResult buildFailureTestResult (Exception exception)

Parameters
exception

public void destroyConnection (DynamicsCRMConnectorConnectionKey key, DynamicsCRMConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void dispose ()

public int getAuthenticationReintents ()

Retrieves authenticationReintents

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

Returns
  • PoolingProfile representing the pooling parameters

public DynamicsCRMConnectorConnectionKey getDefaultConnectionKey ()

Retrieve the default connection key

Returns
  • The default connection key

public String getDevkitBuild ()

public String getDevkitVersion ()

public FlowConstruct getFlowConstruct ()

Retrieves flowConstruct

public Result<MetaData> getMetaData (MetaDataKey metaDataKey)

Parameters
metaDataKey

public Result<List<MetaDataKey>> getMetaDataKeys ()

public String getMinMuleVersion ()

public String getModuleName ()

public String getModuleVersion ()

public MuleContext getMuleContext ()

Retrieves muleContext

public String getOrganizationServiceUrl ()

Retrieves organizationServiceUrl

public String getPassword ()

Retrieves password

public ProcessTemplate<P, DynamicsCRMConnectorConnectionIdentifierAdapter> getProcessTemplate ()

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

Returns
  • The reconnection strategy

public String getUsername ()

Retrieves username

public void initialise ()

public boolean isCapableOf (ModuleCapability capability)

Returns true if this module implements such capability

Parameters
capability

public void releaseConnection (DynamicsCRMConnectorConnectionKey key, DynamicsCRMConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void setAuthenticationReintents (int value)

Sets authenticationReintents

Parameters
value Value to set

public void setConnectionPoolingProfile (PoolingProfile value)

Sets connectionPoolingProfile

Parameters
value Value to set

public void setFlowConstruct (FlowConstruct value)

Sets flowConstruct

Parameters
value Value to set

public void setMuleContext (MuleContext value)

Sets muleContext

Parameters
value Value to set

public void setOrganizationServiceUrl (String value)

Sets organizationServiceUrl

Parameters
value Value to set

public void setPassword (String value)

Sets password

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

public TestResult test ()