public class

HdfsConnectorConnectionManager

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

Class Overview

A HdfsConnectorConnectionManager is a wrapper around HdfsConnector 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 Map<String, String> configurationEntries
private List<String> configurationResources
private String connectionKey
private GenericKeyedObjectPool connectionPool Connector Pool
protected PoolingProfile connectionPoolingProfile
private String defaultFileSystemName
private FileSystem fileSystem
protected FlowConstruct flowConstruct Flow Construct
protected MuleContext muleContext Mule Context
protected RetryPolicyTemplate retryPolicyTemplate
Public Constructors
HdfsConnectorConnectionManager()
Public Methods
HdfsConnectorConnectionIdentifierAdapter acquireConnection(HdfsConnectorConnectionKey key)
void destroyConnection(HdfsConnectorConnectionKey key, HdfsConnectorConnectionIdentifierAdapter connection)
Map<String, String> getConfigurationEntries()
Retrieves configurationEntries
List<String> getConfigurationResources()
Retrieves configurationResources
String getConnectionKey()
Retrieves connectionKey
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
HdfsConnectorConnectionKey getDefaultConnectionKey()
Retrieve the default connection key
String getDefaultFileSystemName()
Retrieves defaultFileSystemName
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
FileSystem getFileSystem()
Retrieves fileSystem
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, HdfsConnectorConnectionIdentifierAdapter> getProcessTemplate()
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseConnection(HdfsConnectorConnectionKey key, HdfsConnectorConnectionIdentifierAdapter connection)
void setConfigurationEntries(Map<String, String> value)
Sets configurationEntries
void setConfigurationResources(List<String> value)
Sets configurationResources
void setConnectionKey(String value)
Sets connectionKey
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setDefaultFileSystemName(String value)
Sets defaultFileSystemName
void setFileSystem(FileSystem value)
Sets fileSystem
void setFlowConstruct(FlowConstruct value)
Sets flowConstruct
void setMuleContext(MuleContext value)
Sets muleContext
void setRetryPolicyTemplate(RetryPolicyTemplate value)
Sets retryPolicyTemplate
[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.hdfs.basic.Capabilities
From interface org.mule.modules.hdfs.basic.MetadataAware
From interface org.mule.modules.hdfs.connection.ConnectionManager
From interface org.mule.modules.hdfs.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: "HDFS"

private static final String MODULE_VERSION

Constant Value: "3.6"

Fields

private Map<String, String> configurationEntries

private List<String> configurationResources

private String connectionKey

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

private String defaultFileSystemName

private FileSystem fileSystem

protected FlowConstruct flowConstruct

Flow Construct

protected MuleContext muleContext

Mule Context

protected RetryPolicyTemplate retryPolicyTemplate

Public Constructors

public HdfsConnectorConnectionManager ()

Public Methods

public HdfsConnectorConnectionIdentifierAdapter acquireConnection (HdfsConnectorConnectionKey key)

Parameters
key
Throws
Exception

public void destroyConnection (HdfsConnectorConnectionKey key, HdfsConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public Map<String, String> getConfigurationEntries ()

Retrieves configurationEntries

public List<String> getConfigurationResources ()

Retrieves configurationResources

public String getConnectionKey ()

Retrieves connectionKey

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

Returns
  • PoolingProfile representing the pooling parameters

public HdfsConnectorConnectionKey getDefaultConnectionKey ()

Retrieve the default connection key

Returns
  • The default connection key

public String getDefaultFileSystemName ()

Retrieves defaultFileSystemName

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 FileSystem getFileSystem ()

Retrieves fileSystem

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, HdfsConnectorConnectionIdentifierAdapter> getProcessTemplate ()

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

Returns
  • The reconnection strategy

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 (HdfsConnectorConnectionKey key, HdfsConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void setConfigurationEntries (Map<String, String> value)

Sets configurationEntries

Parameters
value Value to set

public void setConfigurationResources (List<String> value)

Sets configurationResources

Parameters
value Value to set

public void setConnectionKey (String value)

Sets connectionKey

Parameters
value Value to set

public void setConnectionPoolingProfile (PoolingProfile value)

Sets connectionPoolingProfile

Parameters
value Value to set

public void setDefaultFileSystemName (String value)

Sets defaultFileSystemName

Parameters
value Value to set

public void setFileSystem (FileSystem value)

Sets fileSystem

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

Sets retryPolicyTemplate

Parameters
value Value to set