@ConnectionManagement(configElementName="config", friendlyName="Configuration") public class BasicAuthConnectionStrategy extends Object
Constructor and Description |
---|
BasicAuthConnectionStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String username,
String password)
Method invoked when a connection is required
|
String |
connectionId()
Connection Identifier
|
void |
disconnect()
Disconnect
|
CassandraClient |
getCassandraClient() |
String |
getClusterName() |
String |
getClusterNodes() |
com.datastax.driver.core.ProtocolOptions.Compression |
getCompression() |
String |
getHost() |
String |
getKeyspace() |
LoadBalancingPolicyEnum |
getLoadBalancingPolicy() |
int |
getMaxSchemaAgreementWaitSeconds() |
String |
getPort() |
com.datastax.driver.core.ProtocolVersion |
getProtocolVersion() |
boolean |
isConnected()
Are we connected
|
boolean |
isSslEnabled() |
void |
setCassandraClient(CassandraClient cassandraClient) |
void |
setClusterName(String clusterName) |
void |
setClusterNodes(String clusterNodes) |
void |
setCompression(com.datastax.driver.core.ProtocolOptions.Compression compression) |
void |
setHost(String host) |
void |
setKeyspace(String keyspace) |
void |
setLoadBalancingPolicy(LoadBalancingPolicyEnum loadBalancingPolicy) |
void |
setMaxSchemaAgreementWaitSeconds(int maxSchemaAgreementWaitSeconds) |
void |
setPort(String port) |
void |
setProtocolVersion(com.datastax.driver.core.ProtocolVersion protocolVersion) |
void |
setSslEnabled(boolean sslEnabled) |
public String getClusterNodes()
public void setClusterNodes(String clusterNodes)
@Connect @TestConnectivity public void connect(@ConnectionKey @Optional String username, @Password @Optional String password) throws org.mule.api.ConnectionException
username
- A username. NOTE: Please use a dummy username if you have disabled authenticationpassword
- A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentialsorg.mule.api.ConnectionException
- if the connection is not established@Disconnect public void disconnect()
@ValidateConnection public boolean isConnected()
@ConnectionIdentifier public String connectionId()
public String getHost()
public void setHost(String host)
public String getPort()
public void setPort(String port)
public String getKeyspace()
public void setKeyspace(String keyspace)
public String getClusterName()
public void setClusterName(String clusterName)
public com.datastax.driver.core.ProtocolVersion getProtocolVersion()
public void setProtocolVersion(com.datastax.driver.core.ProtocolVersion protocolVersion)
public int getMaxSchemaAgreementWaitSeconds()
public void setMaxSchemaAgreementWaitSeconds(int maxSchemaAgreementWaitSeconds)
public com.datastax.driver.core.ProtocolOptions.Compression getCompression()
public void setCompression(com.datastax.driver.core.ProtocolOptions.Compression compression)
public boolean isSslEnabled()
public void setSslEnabled(boolean sslEnabled)
public LoadBalancingPolicyEnum getLoadBalancingPolicy()
public void setLoadBalancingPolicy(LoadBalancingPolicyEnum loadBalancingPolicy)
public CassandraClient getCassandraClient()
public void setCassandraClient(CassandraClient cassandraClient)
Copyright © 2010–2019. All rights reserved.