public class

JenkinsConnectorConnectionManager

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

Class Overview

A JenkinsConnectorConnectionManager is a wrapper around JenkinsConnector 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 connectionName
private GenericKeyedObjectPool connectionPool Connector Pool
protected PoolingProfile connectionPoolingProfile
protected FlowConstruct flowConstruct Flow Construct
private String jenkinsUrl
protected MuleContext muleContext Mule Context
private String password
protected RetryPolicyTemplate retryPolicyTemplate
private String username
Public Constructors
JenkinsConnectorConnectionManager()
Public Methods
JenkinsConnectorConnectionIdentifierAdapter acquireConnection(JenkinsConnectorConnectionKey key)
void destroyConnection(JenkinsConnectorConnectionKey key, JenkinsConnectorConnectionIdentifierAdapter connection)
String getConnectionName()
Retrieves connectionName
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
JenkinsConnectorConnectionKey getDefaultConnectionKey()
String getDevkitBuild()
String getDevkitVersion()
FlowConstruct getFlowConstruct()
Retrieves flowConstruct
String getJenkinsUrl()
Retrieves jenkinsUrl
String getModuleName()
String getModuleVersion()
MuleContext getMuleContext()
Retrieves muleContext
String getPassword()
Retrieves password
<P> ProcessTemplate<P, JenkinsConnectorConnectionIdentifierAdapter> getProcessTemplate()
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
String getUsername()
Retrieves username
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseConnection(JenkinsConnectorConnectionKey key, JenkinsConnectorConnectionIdentifierAdapter connection)
void setConnectionName(String value)
Sets connectionName
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setFlowConstruct(FlowConstruct value)
Sets flowConstruct
void setJenkinsUrl(String value)
Sets jenkinsUrl
void setMuleContext(MuleContext value)
Sets muleContext
void setPassword(String value)
Sets password
void setRetryPolicyTemplate(RetryPolicyTemplate value)
Sets retryPolicyTemplate
void setUsername(String value)
Sets username
[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: "Jenkins"

private static final String MODULE_VERSION

Constant Value: "1.1-SNAPSHOT"

Fields

private String connectionName

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

protected FlowConstruct flowConstruct

Flow Construct

private String jenkinsUrl

protected MuleContext muleContext

Mule Context

private String password

protected RetryPolicyTemplate retryPolicyTemplate

private String username

Public Constructors

public JenkinsConnectorConnectionManager ()

Public Methods

public JenkinsConnectorConnectionIdentifierAdapter acquireConnection (JenkinsConnectorConnectionKey key)

Parameters
key
Throws
Exception

public void destroyConnection (JenkinsConnectorConnectionKey key, JenkinsConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public String getConnectionName ()

Retrieves connectionName

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

public JenkinsConnectorConnectionKey getDefaultConnectionKey ()

public String getDevkitBuild ()

public String getDevkitVersion ()

public FlowConstruct getFlowConstruct ()

Retrieves flowConstruct

public String getJenkinsUrl ()

Retrieves jenkinsUrl

public String getModuleName ()

public String getModuleVersion ()

public MuleContext getMuleContext ()

Retrieves muleContext

public String getPassword ()

Retrieves password

public ProcessTemplate<P, JenkinsConnectorConnectionIdentifierAdapter> getProcessTemplate ()

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

public String getUsername ()

Retrieves username

public void initialise ()

public boolean isCapableOf (Capability capability)

Returns true if this module implements such capability

Parameters
capability

public void releaseConnection (JenkinsConnectorConnectionKey key, JenkinsConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void setConnectionName (String value)

Sets connectionName

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

Sets jenkinsUrl

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 setRetryPolicyTemplate (RetryPolicyTemplate value)

Sets retryPolicyTemplate

Parameters
value Value to set

public void setUsername (String value)

Sets username

Parameters
value Value to set