public class CassandraDataSource extends Object implements org.ballerinalang.model.values.BValue
CassandraDataSource util class for Cassandra connector initialization.| Constructor and Description |
|---|
CassandraDataSource() |
| Modifier and Type | Method and Description |
|---|---|
org.ballerinalang.model.values.BValue |
copy() |
com.datastax.driver.core.Cluster |
getCluster() |
com.datastax.driver.core.Session |
getSession() |
org.ballerinalang.model.types.BType |
getType() |
boolean |
init(String host,
int port,
String username,
String password,
org.ballerinalang.connector.api.Struct options)
Initializes the Cassandra cluster.
|
String |
stringValue() |
public com.datastax.driver.core.Cluster getCluster()
public com.datastax.driver.core.Session getSession()
public boolean init(String host, int port, String username, String password, org.ballerinalang.connector.api.Struct options)
host - Host(s) Cassandra instance(s) reside(s)port - Port for the Cassandra instance(s)username - Username if authentication is enabledpassword - Password if authentication is enabledoptions - BStruct containing available options for cluster connection initializationpublic String stringValue()
stringValue in interface org.ballerinalang.model.values.BValuepublic org.ballerinalang.model.types.BType getType()
getType in interface org.ballerinalang.model.values.BValuepublic org.ballerinalang.model.values.BValue copy()
copy in interface org.ballerinalang.model.values.BValueCopyright © 2018. All rights reserved.