public class

ODataConnectorConnectionManager

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

Class Overview

A ODataConnectorConnectionManager is a wrapper around ODataConnector 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 ODataConsumerFactory consumerFactory
private ODataVersion consumerVersion
protected FlowConstruct flowConstruct Flow Construct
private FormatType formatType
protected MuleContext muleContext Mule Context
private PropertyNamingFormat namingFormat
private String password
protected RetryPolicyTemplate retryPolicyTemplate
private String serviceUri
private String username
Public Constructors
ODataConnectorConnectionManager()
Public Methods
ODataConnectorConnectionIdentifierAdapter acquireConnection(ODataConnectorConnectionKey key)
DefaultResult buildFailureTestResult(Exception exception)
void destroyConnection(ODataConnectorConnectionKey key, ODataConnectorConnectionIdentifierAdapter connection)
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
ODataConsumerFactory getConsumerFactory()
Retrieves consumerFactory
ODataVersion getConsumerVersion()
Retrieves consumerVersion
ODataConnectorConnectionKey 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
FormatType getFormatType()
Retrieves formatType
String getModuleName()
Returns the user-friendly name of this module
String getModuleVersion()
Returns the version of this module
MuleContext getMuleContext()
Retrieves muleContext
PropertyNamingFormat getNamingFormat()
Retrieves namingFormat
String getPassword()
Retrieves password
<P> ProcessTemplate<P, ODataConnectorConnectionIdentifierAdapter> getProcessTemplate()
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
String getServiceUri()
Retrieves serviceUri
String getUsername()
Retrieves username
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseConnection(ODataConnectorConnectionKey key, ODataConnectorConnectionIdentifierAdapter connection)
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setConsumerFactory(ODataConsumerFactory value)
Sets consumerFactory
void setConsumerVersion(ODataVersion value)
Sets consumerVersion
void setFlowConstruct(FlowConstruct value)
Sets flowConstruct
void setFormatType(FormatType value)
Sets formatType
void setMuleContext(MuleContext value)
Sets muleContext
void setNamingFormat(PropertyNamingFormat value)
Sets namingFormat
void setPassword(String value)
Sets password
void setRetryPolicyTemplate(RetryPolicyTemplate value)
Sets retryPolicyTemplate
void setServiceUri(String value)
Sets serviceUri
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.modules.odata.basic.Capabilities
From interface org.mule.modules.odata.basic.MetadataAware
From interface org.mule.modules.odata.connection.ConnectionManager
From interface org.mule.modules.odata.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: "OData"

private static final String MODULE_VERSION

Constant Value: "1.0.2"

Fields

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

private ODataConsumerFactory consumerFactory

private ODataVersion consumerVersion

protected FlowConstruct flowConstruct

Flow Construct

private FormatType formatType

protected MuleContext muleContext

Mule Context

private PropertyNamingFormat namingFormat

private String password

protected RetryPolicyTemplate retryPolicyTemplate

private String serviceUri

private String username

Public Constructors

public ODataConnectorConnectionManager ()

Public Methods

public ODataConnectorConnectionIdentifierAdapter acquireConnection (ODataConnectorConnectionKey key)

Parameters
key
Throws
Exception

public DefaultResult buildFailureTestResult (Exception exception)

Parameters
exception

public void destroyConnection (ODataConnectorConnectionKey key, ODataConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

Returns
  • PoolingProfile representing the pooling parameters

public ODataConsumerFactory getConsumerFactory ()

Retrieves consumerFactory

public ODataVersion getConsumerVersion ()

Retrieves consumerVersion

public ODataConnectorConnectionKey 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 FormatType getFormatType ()

Retrieves formatType

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 PropertyNamingFormat getNamingFormat ()

Retrieves namingFormat

public String getPassword ()

Retrieves password

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

Returns
  • The reconnection strategy

public String getServiceUri ()

Retrieves serviceUri

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 (ODataConnectorConnectionKey key, ODataConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void setConnectionPoolingProfile (PoolingProfile value)

Sets connectionPoolingProfile

Parameters
value Value to set

public void setConsumerFactory (ODataConsumerFactory value)

Sets consumerFactory

Parameters
value Value to set

public void setConsumerVersion (ODataVersion value)

Sets consumerVersion

Parameters
value Value to set

public void setFlowConstruct (FlowConstruct value)

Sets flowConstruct

Parameters
value Value to set

public void setFormatType (FormatType value)

Sets formatType

Parameters
value Value to set

public void setMuleContext (MuleContext value)

Sets muleContext

Parameters
value Value to set

public void setNamingFormat (PropertyNamingFormat value)

Sets namingFormat

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

Sets serviceUri

Parameters
value Value to set

public void setUsername (String value)

Sets username

Parameters
value Value to set

public TestResult test ()