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
Since:
5.2.0
See Also:
  • Constructor Details

    • BaseCassandraProperties

      public BaseCassandraProperties()
  • Method Details

    • getUsername

      public String getUsername()
      Username to bind and establish a connection to cassandra.
    • getPassword

      public String getPassword()
      Password to bind and establish a connection to cassandra.
    • getKeyspace

      public String getKeyspace()
      Keyspace address to use where the cluster would connect.
    • getContactPoints

      public List<String> getContactPoints()
      The list of contact points to use for the new cluster. Each contact point should be defined using the syntax address:port.
    • getSslProtocols

      public String[] 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

      public String[] 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

      public String 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

      public String 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

      public String getTimeout()
      The request timeout. This defines how long the driver will wait for a given Cassandra node to answer a query.
    • getSerialConsistencyLevel

      public String 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

      public BaseCassandraProperties setUsername(String username)
      Username to bind and establish a connection to cassandra.
      Returns:
      this.
    • setPassword

      public BaseCassandraProperties setPassword(String password)
      Password to bind and establish a connection to cassandra.
      Returns:
      this.
    • setKeyspace

      public BaseCassandraProperties setKeyspace(String keyspace)
      Keyspace address to use where the cluster would connect.
      Returns:
      this.
    • setContactPoints

      public BaseCassandraProperties setContactPoints(List<String> contactPoints)
      The list of contact points to use for the new cluster. Each contact point should be defined using the syntax address:port.
      Returns:
      this.
    • setSslProtocols

      public BaseCassandraProperties setSslProtocols(String[] sslProtocols)
      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

      public BaseCassandraProperties setSslCipherSuites(String[] sslCipherSuites)
      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

      public BaseCassandraProperties setLocalDc(String localDc)
      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

      public BaseCassandraProperties setConsistencyLevel(String consistencyLevel)
      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

      public BaseCassandraProperties setTimeout(String timeout)
      The request timeout. This defines how long the driver will wait for a given Cassandra node to answer a query.
      Returns:
      this.
    • setSerialConsistencyLevel

      public BaseCassandraProperties setSerialConsistencyLevel(String serialConsistencyLevel)
      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.