public interface CassandraEntityStoreConfiguration
Modifier and Type | Method and Description |
---|---|
Property<String> |
clusterName()
The name of the cluster to connect to.
|
Property<Boolean> |
createIfMissing()
Defines whether a KEYSPACE and entity TABLE should be created if not already present in the Cassandra cluster.
|
Property<String> |
entityTableName()
The name of the entity TABLE to be used.
|
Property<String> |
hostnames()
A comma or space separated list of
hostname:port to the Cassandra cluster. |
Property<String> |
keySpace()
The name of the KEYSPACE to be used.
|
Property<String> |
password()
Password for connecting the client to the Cassandra cluster.
|
Property<Integer> |
replicationFactor()
The replication factor to be used, if a KEYSPACE is created.
|
Property<String> |
username()
Username for connecting the client to the Cassandra cluster.
|
@Optional Property<String> hostnames()
hostname:port
to the Cassandra cluster.
A small list of hostnames should be given, as the client is capable to discover the topology by itself and only need one host that it can connect to.
Also not that Cassandra refuse to bind to all interfaces on a host, so you need to know which hostname corresponds to the interface that Cassandra is bound to. This may not include 'localhost'.
@Optional Property<String> clusterName()
@Optional Property<Integer> replicationFactor()
@UseDefaults Property<String> username()
The Cassandra client uses the CQL interface.
@UseDefaults Property<String> password()
The Cassandra client uses the CQL interface.
@UseDefaults Property<String> keySpace()
KEYSPACE polygene
will be used.@UseDefaults Property<String> entityTableName()
All entities are stored in the same table, with one entity per row. The required table schema is as follows;
CREATE TABLE entitystore (
id text,
version text,
appversion text,
storeversion text,
modified timestamp,
usecase text,
props map<text,text>,
assocs map<text,text>,
manyassocs map<text,text>,
namedassocs map<text,text^gt;,
PRIMARY KEY (id)
);
entitystore
will be used.@UseDefaults Property<Boolean> createIfMissing()
The default keyspace that could be created is defined as follows;
CREATE KEYSPACE sensetif WITH replication = {'class':'SimpleStrategy', 'replication_factor' : $replicationFactor };
The $replicationFactor
refers to the replicationFactor()
configuration property above.