public class

SalesforceConnectorConnectionManager

extends Object
implements MuleContextAware Initialisable Testable ConnectorMetaDataEnabled Capabilities MetadataAware ConnectionManager<K, C extends Connection> ProcessAdapter<O>
java.lang.Object
   ↳ org.mule.modules.salesforce.connectivity.SalesforceConnectorConnectionManager

Class Overview

A SalesforceConnectorConnectionManager is a wrapper around SalesforceConnector 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 allowFieldTruncationSupport
private String assignmentRuleId
private String clientId
private GenericKeyedObjectPool connectionPool Connector Pool
protected PoolingProfile connectionPoolingProfile
protected FlowConstruct flowConstruct Flow Construct
protected MuleContext muleContext Mule Context
private String password
private String proxyHost
private String proxyPassword
private int proxyPort
private String proxyUsername
protected RetryPolicyTemplate retryPolicyTemplate
private String securityToken
private String serviceEndpoint
private String sessionId
private ObjectStore<? extends Serializable> timeObjectStore
private String url
private Boolean useDefaultRule
private String username
Public Constructors
SalesforceConnectorConnectionManager()
Public Methods
SalesforceConnectorConnectionIdentifierAdapter acquireConnection(SalesforceConnectorConnectionKey key)
DefaultResult buildFailureTestResult(Exception exception)
void destroyConnection(SalesforceConnectorConnectionKey key, SalesforceConnectorConnectionIdentifierAdapter connection)
Boolean getAllowFieldTruncationSupport()
Retrieves allowFieldTruncationSupport
String getAssignmentRuleId()
Retrieves assignmentRuleId
String getClientId()
Retrieves clientId
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
SalesforceConnectorConnectionKey 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
Result<MetaData> getMetaData(MetaDataKey metaDataKey)
Result<List<MetaDataKey>> getMetaDataKeys()
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
<P> ProcessTemplate<P, SalesforceConnectorConnectionIdentifierAdapter> getProcessTemplate()
String getProxyHost()
Retrieves proxyHost
String getProxyPassword()
Retrieves proxyPassword
int getProxyPort()
Retrieves proxyPort
String getProxyUsername()
Retrieves proxyUsername
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
String getSecurityToken()
Retrieves securityToken
String getServiceEndpoint()
Retrieves serviceEndpoint
String getSessionId()
Retrieves sessionId
ObjectStore<? extends Serializable> getTimeObjectStore()
Retrieves timeObjectStore
String getUrl()
Retrieves url
Boolean getUseDefaultRule()
Retrieves useDefaultRule
String getUsername()
Retrieves username
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseConnection(SalesforceConnectorConnectionKey key, SalesforceConnectorConnectionIdentifierAdapter connection)
void setAllowFieldTruncationSupport(Boolean value)
Sets allowFieldTruncationSupport
void setAssignmentRuleId(String value)
Sets assignmentRuleId
void setClientId(String value)
Sets clientId
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setFlowConstruct(FlowConstruct value)
Sets flowConstruct
void setMuleContext(MuleContext value)
Sets muleContext
void setPassword(String value)
Sets password
void setProxyHost(String value)
Sets proxyHost
void setProxyPassword(String value)
Sets proxyPassword
void setProxyPort(int value)
Sets proxyPort
void setProxyUsername(String value)
Sets proxyUsername
void setRetryPolicyTemplate(RetryPolicyTemplate value)
Sets retryPolicyTemplate
void setSecurityToken(String value)
Sets securityToken
void setServiceEndpoint(String value)
Sets serviceEndpoint
void setSessionId(String value)
Sets sessionId
void setTimeObjectStore(ObjectStore<? extends Serializable> value)
Sets timeObjectStore
void setUrl(String value)
Sets url
void setUseDefaultRule(Boolean value)
Sets useDefaultRule
void setUsername(String value)
Sets username
TestResult test()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.api.context.MuleContextAware
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.common.Testable
From interface org.mule.common.metadata.ConnectorMetaDataEnabled
From interface org.mule.modules.salesforce.basic.Capabilities
From interface org.mule.modules.salesforce.basic.MetadataAware
From interface org.mule.modules.salesforce.connection.ConnectionManager
From interface org.mule.modules.salesforce.process.ProcessAdapter

Constants

private static final String DEVKIT_BUILD

Constant Value: "3.4.0.1555.8df15c1"

private static final String DEVKIT_VERSION

Constant Value: "3.4.0"

private static final String MODULE_NAME

Constant Value: "Salesforce"

private static final String MODULE_VERSION

Constant Value: "5.3.4"

Fields

private Boolean allowFieldTruncationSupport

private String assignmentRuleId

private String clientId

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

protected FlowConstruct flowConstruct

Flow Construct

protected MuleContext muleContext

Mule Context

private String password

private String proxyHost

private String proxyPassword

private int proxyPort

private String proxyUsername

protected RetryPolicyTemplate retryPolicyTemplate

private String securityToken

private String serviceEndpoint

private String sessionId

private ObjectStore<? extends Serializable> timeObjectStore

private String url

private Boolean useDefaultRule

private String username

Public Constructors

public SalesforceConnectorConnectionManager ()

Public Methods

public SalesforceConnectorConnectionIdentifierAdapter acquireConnection (SalesforceConnectorConnectionKey key)

Parameters
key
Throws
Exception

public DefaultResult buildFailureTestResult (Exception exception)

Parameters
exception

public void destroyConnection (SalesforceConnectorConnectionKey key, SalesforceConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public Boolean getAllowFieldTruncationSupport ()

Retrieves allowFieldTruncationSupport

public String getAssignmentRuleId ()

Retrieves assignmentRuleId

public String getClientId ()

Retrieves clientId

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

Returns
  • PoolingProfile representing the pooling parameters

public SalesforceConnectorConnectionKey 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 Result<MetaData> getMetaData (MetaDataKey metaDataKey)

Parameters
metaDataKey

public Result<List<MetaDataKey>> getMetaDataKeys ()

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 String getProxyHost ()

Retrieves proxyHost

public String getProxyPassword ()

Retrieves proxyPassword

public int getProxyPort ()

Retrieves proxyPort

public String getProxyUsername ()

Retrieves proxyUsername

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

Returns
  • The reconnection strategy

public String getSecurityToken ()

Retrieves securityToken

public String getServiceEndpoint ()

Retrieves serviceEndpoint

public String getSessionId ()

Retrieves sessionId

public ObjectStore<? extends Serializable> getTimeObjectStore ()

Retrieves timeObjectStore

public String getUrl ()

Retrieves url

public Boolean getUseDefaultRule ()

Retrieves useDefaultRule

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 (SalesforceConnectorConnectionKey key, SalesforceConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void setAllowFieldTruncationSupport (Boolean value)

Sets allowFieldTruncationSupport

Parameters
value Value to set

public void setAssignmentRuleId (String value)

Sets assignmentRuleId

Parameters
value Value to set

public void setClientId (String value)

Sets clientId

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 setPassword (String value)

Sets password

Parameters
value Value to set

public void setProxyHost (String value)

Sets proxyHost

Parameters
value Value to set

public void setProxyPassword (String value)

Sets proxyPassword

Parameters
value Value to set

public void setProxyPort (int value)

Sets proxyPort

Parameters
value Value to set

public void setProxyUsername (String value)

Sets proxyUsername

Parameters
value Value to set

public void setRetryPolicyTemplate (RetryPolicyTemplate value)

Sets retryPolicyTemplate

Parameters
value Value to set

public void setSecurityToken (String value)

Sets securityToken

Parameters
value Value to set

public void setServiceEndpoint (String value)

Sets serviceEndpoint

Parameters
value Value to set

public void setSessionId (String value)

Sets sessionId

Parameters
value Value to set

public void setTimeObjectStore (ObjectStore<? extends Serializable> value)

Sets timeObjectStore

Parameters
value Value to set

public void setUrl (String value)

Sets url

Parameters
value Value to set

public void setUseDefaultRule (Boolean value)

Sets useDefaultRule

Parameters
value Value to set

public void setUsername (String value)

Sets username

Parameters
value Value to set

public TestResult test ()