public class

JiraConnectorConnectionManager

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

Class Overview

A JiraConnectorConnectionManager is a wrapper around JiraConnector 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 String connectionAddress
private String connectionPassword
private GenericKeyedObjectPool connectionPool Connector Pool
protected PoolingProfile connectionPoolingProfile
private String connectionUser
protected FlowConstruct flowConstruct Flow Construct
protected MuleContext muleContext Mule Context
private String restJiraUrl
protected RetryPolicyTemplate retryPolicyTemplate
private Boolean useCustomFieldsExternalName
Public Constructors
JiraConnectorConnectionManager()
Public Methods
JiraConnectorConnectionIdentifierAdapter acquireConnection(JiraConnectorConnectionKey key)
void destroyConnection(JiraConnectorConnectionKey key, JiraConnectorConnectionIdentifierAdapter connection)
String getConnectionAddress()
Retrieves connectionAddress
String getConnectionPassword()
Retrieves connectionPassword
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
String getConnectionUser()
Retrieves connectionUser
JiraConnectorConnectionKey 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 getModuleName()
Returns the user-friendly name of this module
String getModuleVersion()
Returns the version of this module
MuleContext getMuleContext()
Retrieves muleContext
<P> ProcessTemplate<P, JiraConnectorConnectionIdentifierAdapter> getProcessTemplate()
String getRestJiraUrl()
Retrieves restJiraUrl
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
Boolean getUseCustomFieldsExternalName()
Retrieves useCustomFieldsExternalName
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseConnection(JiraConnectorConnectionKey key, JiraConnectorConnectionIdentifierAdapter connection)
void setConnectionAddress(String value)
Sets connectionAddress
void setConnectionPassword(String value)
Sets connectionPassword
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setConnectionUser(String value)
Sets connectionUser
void setFlowConstruct(FlowConstruct value)
Sets flowConstruct
void setMuleContext(MuleContext value)
Sets muleContext
void setRestJiraUrl(String value)
Sets restJiraUrl
void setRetryPolicyTemplate(RetryPolicyTemplate value)
Sets retryPolicyTemplate
void setUseCustomFieldsExternalName(Boolean value)
Sets useCustomFieldsExternalName
[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.module.jira.basic.Capabilities
From interface org.mule.module.jira.basic.MetadataAware
From interface org.mule.module.jira.connection.ConnectionManager
From interface org.mule.module.jira.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: "Jira"

private static final String MODULE_VERSION

Constant Value: "4.0.0"

Fields

private String connectionAddress

private String connectionPassword

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

private String connectionUser

protected FlowConstruct flowConstruct

Flow Construct

protected MuleContext muleContext

Mule Context

private String restJiraUrl

protected RetryPolicyTemplate retryPolicyTemplate

private Boolean useCustomFieldsExternalName

Public Constructors

public JiraConnectorConnectionManager ()

Public Methods

public JiraConnectorConnectionIdentifierAdapter acquireConnection (JiraConnectorConnectionKey key)

Parameters
key
Throws
Exception

public void destroyConnection (JiraConnectorConnectionKey key, JiraConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public String getConnectionAddress ()

Retrieves connectionAddress

public String getConnectionPassword ()

Retrieves connectionPassword

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

Returns
  • PoolingProfile representing the pooling parameters

public String getConnectionUser ()

Retrieves connectionUser

public JiraConnectorConnectionKey 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 getModuleName ()

Returns the user-friendly name of this module

public String getModuleVersion ()

Returns the version of this module

public MuleContext getMuleContext ()

Retrieves muleContext

public ProcessTemplate<P, JiraConnectorConnectionIdentifierAdapter> getProcessTemplate ()

public String getRestJiraUrl ()

Retrieves restJiraUrl

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

Returns
  • The reconnection strategy

public Boolean getUseCustomFieldsExternalName ()

Retrieves useCustomFieldsExternalName

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 (JiraConnectorConnectionKey key, JiraConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void setConnectionAddress (String value)

Sets connectionAddress

Parameters
value Value to set

public void setConnectionPassword (String value)

Sets connectionPassword

Parameters
value Value to set

public void setConnectionPoolingProfile (PoolingProfile value)

Sets connectionPoolingProfile

Parameters
value Value to set

public void setConnectionUser (String value)

Sets connectionUser

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

Sets restJiraUrl

Parameters
value Value to set

public void setRetryPolicyTemplate (RetryPolicyTemplate value)

Sets retryPolicyTemplate

Parameters
value Value to set

public void setUseCustomFieldsExternalName (Boolean value)

Sets useCustomFieldsExternalName

Parameters
value Value to set