Class BaseCassandraProperties
java.lang.Object
org.apereo.cas.configuration.model.support.cassandra.authentication.BaseCassandraProperties
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CassandraAuthenticationProperties
,CassandraServiceRegistryProperties
,CassandraTicketRegistryProperties
@RequiresModule(name="cas-server-support-cassandra-core")
public abstract class BaseCassandraProperties
extends Object
implements Serializable
This is
BaseCassandraProperties
.- Since:
- 5.2.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionQuery option consistency level.The list of contact points to use for the new cluster.Keyspace address to use where the cluster would connect.Used by a DC-ware round-robin load balancing policy.Password to bind and establish a connection to cassandra.Query option serial consistency level.String[]
The cipher suites to use, or empty/null to use the default ones.String[]
Set the protocol versions enabled for use on this engine.The request timeout.Username to bind and establish a connection to cassandra.setConsistencyLevel
(String consistencyLevel) Query option consistency level.setContactPoints
(List<String> contactPoints) The list of contact points to use for the new cluster.setKeyspace
(String keyspace) Keyspace address to use where the cluster would connect.setLocalDc
(String localDc) Used by a DC-ware round-robin load balancing policy.setPassword
(String password) Password to bind and establish a connection to cassandra.setSerialConsistencyLevel
(String serialConsistencyLevel) Query option serial consistency level.setSslCipherSuites
(String[] sslCipherSuites) The cipher suites to use, or empty/null to use the default ones.setSslProtocols
(String[] sslProtocols) Set the protocol versions enabled for use on this engine.setTimeout
(String timeout) The request timeout.setUsername
(String username) Username to bind and establish a connection to cassandra.
-
Constructor Details
-
BaseCassandraProperties
public BaseCassandraProperties()
-
-
Method Details
-
getUsername
Username to bind and establish a connection to cassandra. -
getPassword
Password to bind and establish a connection to cassandra. -
getKeyspace
Keyspace address to use where the cluster would connect. -
getContactPoints
The list of contact points to use for the new cluster. Each contact point should be defined using the syntaxaddress:port
. -
getSslProtocols
Set the protocol versions enabled for use on this engine. Once the setting is set, only protocols listed in the protocols parameter are enabled for use. -
getSslCipherSuites
The cipher suites to use, or empty/null to use the default ones. Note that host name validation will always be done using HTTPS algorithm. -
getLocalDc
Used by a DC-ware round-robin load balancing policy. This policy provides round-robin queries over the node of the local data center. It also includes in the query plans returned a configurable number of hosts in the remote data centers, but those are always tried after the local nodes. In other words, this policy guarantees that no host in a remote data center will be queried unless no host in the local data center can be reached. -
getConsistencyLevel
Query option consistency level. The consistency level set through this method will be use for queries that don't explicitly have a consistency level. Accepted values are:ALL, ANY, EACH_QUORUM, LOCAL_ONE, LOCAL_QUORUM, LOCAL_SERIAL, ONE, QUORUM, SERIAL, THREE, TWO
. -
getTimeout
The request timeout. This defines how long the driver will wait for a given Cassandra node to answer a query. -
getSerialConsistencyLevel
Query option serial consistency level. The serial consistency level set through this method will be use for queries that don't explicitly have a serial consistency level. Accepted values are:ALL, ANY, EACH_QUORUM, LOCAL_ONE, LOCAL_QUORUM, LOCAL_SERIAL, ONE, QUORUM, SERIAL, THREE, TWO
. -
setUsername
Username to bind and establish a connection to cassandra.- Returns:
this
.
-
setPassword
Password to bind and establish a connection to cassandra.- Returns:
this
.
-
setKeyspace
Keyspace address to use where the cluster would connect.- Returns:
this
.
-
setContactPoints
The list of contact points to use for the new cluster. Each contact point should be defined using the syntaxaddress:port
.- Returns:
this
.
-
setSslProtocols
Set the protocol versions enabled for use on this engine. Once the setting is set, only protocols listed in the protocols parameter are enabled for use.- Returns:
this
.
-
setSslCipherSuites
The cipher suites to use, or empty/null to use the default ones. Note that host name validation will always be done using HTTPS algorithm.- Returns:
this
.
-
setLocalDc
Used by a DC-ware round-robin load balancing policy. This policy provides round-robin queries over the node of the local data center. It also includes in the query plans returned a configurable number of hosts in the remote data centers, but those are always tried after the local nodes. In other words, this policy guarantees that no host in a remote data center will be queried unless no host in the local data center can be reached.- Returns:
this
.
-
setConsistencyLevel
Query option consistency level. The consistency level set through this method will be use for queries that don't explicitly have a consistency level. Accepted values are:ALL, ANY, EACH_QUORUM, LOCAL_ONE, LOCAL_QUORUM, LOCAL_SERIAL, ONE, QUORUM, SERIAL, THREE, TWO
.- Returns:
this
.
-
setTimeout
The request timeout. This defines how long the driver will wait for a given Cassandra node to answer a query.- Returns:
this
.
-
setSerialConsistencyLevel
Query option serial consistency level. The serial consistency level set through this method will be use for queries that don't explicitly have a serial consistency level. Accepted values are:ALL, ANY, EACH_QUORUM, LOCAL_ONE, LOCAL_QUORUM, LOCAL_SERIAL, ONE, QUORUM, SERIAL, THREE, TWO
.- Returns:
this
.
-