public class

DrupalConnectorConnectionManager

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

Class Overview

A DrupalConnectorConnectionManager is a wrapper around DrupalConnector 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 apiUrl
private String commentEndpoint
private GenericKeyedObjectPool connectionPool Connector Pool
protected PoolingProfile connectionPoolingProfile
private String fileEndpoint
protected FlowConstruct flowConstruct Flow Construct
protected MuleContext muleContext Mule Context
private String nodeEndpoint
private String password
private int port
protected RetryPolicyTemplate retryPolicyTemplate
private String server
private String taxonomyTermEndpoint
private String taxonomyVocabularyEndpoint
private String userEndpoint
private String username
Public Constructors
DrupalConnectorConnectionManager()
Public Methods
DrupalConnectorConnectionIdentifierAdapter acquireConnection(DrupalConnectorConnectionKey key)
void destroyConnection(DrupalConnectorConnectionKey key, DrupalConnectorConnectionIdentifierAdapter connection)
String getApiUrl()
Retrieves apiUrl
String getCommentEndpoint()
Retrieves commentEndpoint
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
DrupalConnectorConnectionKey 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
String getFileEndpoint()
Retrieves fileEndpoint
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
String getNodeEndpoint()
Retrieves nodeEndpoint
String getPassword()
Retrieves password
int getPort()
Retrieves port
<P> ProcessTemplate<P, DrupalConnectorConnectionIdentifierAdapter> getProcessTemplate()
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
String getServer()
Retrieves server
String getTaxonomyTermEndpoint()
Retrieves taxonomyTermEndpoint
String getTaxonomyVocabularyEndpoint()
Retrieves taxonomyVocabularyEndpoint
String getUserEndpoint()
Retrieves userEndpoint
String getUsername()
Retrieves username
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseConnection(DrupalConnectorConnectionKey key, DrupalConnectorConnectionIdentifierAdapter connection)
void setApiUrl(String value)
Sets apiUrl
void setCommentEndpoint(String value)
Sets commentEndpoint
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setFileEndpoint(String value)
Sets fileEndpoint
void setFlowConstruct(FlowConstruct value)
Sets flowConstruct
void setMuleContext(MuleContext value)
Sets muleContext
void setNodeEndpoint(String value)
Sets nodeEndpoint
void setPassword(String value)
Sets password
void setPort(int value)
Sets port
void setRetryPolicyTemplate(RetryPolicyTemplate value)
Sets retryPolicyTemplate
void setServer(String value)
Sets server
void setTaxonomyTermEndpoint(String value)
Sets taxonomyTermEndpoint
void setTaxonomyVocabularyEndpoint(String value)
Sets taxonomyVocabularyEndpoint
void setUserEndpoint(String value)
Sets userEndpoint
void setUsername(String value)
Sets username
[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.modules.drupal.basic.Capabilities
From interface org.mule.modules.drupal.basic.MetadataAware
From interface org.mule.modules.drupal.connection.ConnectionManager
From interface org.mule.modules.drupal.process.ProcessAdapter

Constants

private static final String DEVKIT_BUILD

Constant Value: "UNKNOWN_BUILDNUMBER"

private static final String DEVKIT_VERSION

Constant Value: "3.4.0"

private static final String MODULE_NAME

Constant Value: "Drupal"

private static final String MODULE_VERSION

Constant Value: "1.1-SNAPSHOT"

Fields

private String apiUrl

private String commentEndpoint

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

private String fileEndpoint

protected FlowConstruct flowConstruct

Flow Construct

protected MuleContext muleContext

Mule Context

private String nodeEndpoint

private String password

private int port

protected RetryPolicyTemplate retryPolicyTemplate

private String server

private String taxonomyTermEndpoint

private String taxonomyVocabularyEndpoint

private String userEndpoint

private String username

Public Constructors

public DrupalConnectorConnectionManager ()

Public Methods

public DrupalConnectorConnectionIdentifierAdapter acquireConnection (DrupalConnectorConnectionKey key)

Parameters
key
Throws
Exception

public void destroyConnection (DrupalConnectorConnectionKey key, DrupalConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public String getApiUrl ()

Retrieves apiUrl

public String getCommentEndpoint ()

Retrieves commentEndpoint

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

Returns
  • PoolingProfile representing the pooling parameters

public DrupalConnectorConnectionKey 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 String getFileEndpoint ()

Retrieves fileEndpoint

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

Retrieves nodeEndpoint

public String getPassword ()

Retrieves password

public int getPort ()

Retrieves port

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

Returns
  • The reconnection strategy

public String getServer ()

Retrieves server

public String getTaxonomyTermEndpoint ()

Retrieves taxonomyTermEndpoint

public String getTaxonomyVocabularyEndpoint ()

Retrieves taxonomyVocabularyEndpoint

public String getUserEndpoint ()

Retrieves userEndpoint

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 (DrupalConnectorConnectionKey key, DrupalConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void setApiUrl (String value)

Sets apiUrl

Parameters
value Value to set

public void setCommentEndpoint (String value)

Sets commentEndpoint

Parameters
value Value to set

public void setConnectionPoolingProfile (PoolingProfile value)

Sets connectionPoolingProfile

Parameters
value Value to set

public void setFileEndpoint (String value)

Sets fileEndpoint

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

Sets nodeEndpoint

Parameters
value Value to set

public void setPassword (String value)

Sets password

Parameters
value Value to set

public void setPort (int value)

Sets port

Parameters
value Value to set

public void setRetryPolicyTemplate (RetryPolicyTemplate value)

Sets retryPolicyTemplate

Parameters
value Value to set

public void setServer (String value)

Sets server

Parameters
value Value to set

public void setTaxonomyTermEndpoint (String value)

Sets taxonomyTermEndpoint

Parameters
value Value to set

public void setTaxonomyVocabularyEndpoint (String value)

Sets taxonomyVocabularyEndpoint

Parameters
value Value to set

public void setUserEndpoint (String value)

Sets userEndpoint

Parameters
value Value to set

public void setUsername (String value)

Sets username

Parameters
value Value to set