public class

Neo4jConnectorConnectionManager

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

Class Overview

A Neo4jConnectorConnectionManager is a wrapper around Neo4jConnector 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 baseUri
private GenericKeyedObjectPool connectionPool Connector Pool
protected PoolingProfile connectionPoolingProfile
private Connector connector
protected FlowConstruct flowConstruct Flow Construct
protected MuleContext muleContext Mule Context
private String password
protected RetryPolicyTemplate retryPolicyTemplate
private boolean streaming
private String user
Public Constructors
Neo4jConnectorConnectionManager()
Public Methods
Neo4jConnectorConnectionIdentifierAdapter acquireConnection(Neo4jConnectorConnectionKey key)
DefaultResult buildFailureTestResult(Exception exception)
void destroyConnection(Neo4jConnectorConnectionKey key, Neo4jConnectorConnectionIdentifierAdapter connection)
String getBaseUri()
Retrieves baseUri
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
Connector getConnector()
Retrieves connector
Neo4jConnectorConnectionKey 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
String getPassword()
Retrieves password
<P> ProcessTemplate<P, Neo4jConnectorConnectionIdentifierAdapter> getProcessTemplate()
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
boolean getStreaming()
Retrieves streaming
String getUser()
Retrieves user
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseConnection(Neo4jConnectorConnectionKey key, Neo4jConnectorConnectionIdentifierAdapter connection)
void setBaseUri(String value)
Sets baseUri
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setConnector(Connector value)
Sets connector
void setFlowConstruct(FlowConstruct value)
Sets flowConstruct
void setMuleContext(MuleContext value)
Sets muleContext
void setPassword(String value)
Sets password
void setRetryPolicyTemplate(RetryPolicyTemplate value)
Sets retryPolicyTemplate
void setStreaming(boolean value)
Sets streaming
void setUser(String value)
Sets user
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.neo4j.basic.Capabilities
From interface org.mule.modules.neo4j.basic.MetadataAware
From interface org.mule.modules.neo4j.connection.ConnectionManager
From interface org.mule.modules.neo4j.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: "Neo4j"

private static final String MODULE_VERSION

Constant Value: "1.0"

Fields

private String baseUri

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

private Connector connector

protected FlowConstruct flowConstruct

Flow Construct

protected MuleContext muleContext

Mule Context

private String password

protected RetryPolicyTemplate retryPolicyTemplate

private boolean streaming

private String user

Public Constructors

public Neo4jConnectorConnectionManager ()

Public Methods

public Neo4jConnectorConnectionIdentifierAdapter acquireConnection (Neo4jConnectorConnectionKey key)

Parameters
key
Throws
Exception

public DefaultResult buildFailureTestResult (Exception exception)

Parameters
exception

public void destroyConnection (Neo4jConnectorConnectionKey key, Neo4jConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public String getBaseUri ()

Retrieves baseUri

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

Returns
  • PoolingProfile representing the pooling parameters

public Connector getConnector ()

Retrieves connector

public Neo4jConnectorConnectionKey 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 String getPassword ()

Retrieves password

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

Returns
  • The reconnection strategy

public boolean getStreaming ()

Retrieves streaming

public String getUser ()

Retrieves user

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 (Neo4jConnectorConnectionKey key, Neo4jConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void setBaseUri (String value)

Sets baseUri

Parameters
value Value to set

public void setConnectionPoolingProfile (PoolingProfile value)

Sets connectionPoolingProfile

Parameters
value Value to set

public void setConnector (Connector value)

Sets connector

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

Sets password

Parameters
value Value to set

public void setRetryPolicyTemplate (RetryPolicyTemplate value)

Sets retryPolicyTemplate

Parameters
value Value to set

public void setStreaming (boolean value)

Sets streaming

Parameters
value Value to set

public void setUser (String value)

Sets user

Parameters
value Value to set

public TestResult test ()