Package zipkin2.storage.cassandra
Class CassandraStorage.Builder
java.lang.Object
zipkin2.storage.StorageComponent.Builder
zipkin2.storage.cassandra.internal.CassandraStorageBuilder<CassandraStorage.Builder>
zipkin2.storage.cassandra.CassandraStorage.Builder
- Enclosing class:
- CassandraStorage
public static final class CassandraStorage.Builder
extends zipkin2.storage.cassandra.internal.CassandraStorageBuilder<CassandraStorage.Builder>
-
Field Summary
Fields inherited from class zipkin2.storage.cassandra.internal.CassandraStorageBuilder
autocompleteCardinality, autocompleteKeys, autocompleteTtl, contactPoints, ensureSchema, indexFetchMultiplier, keyspace, localDc, maxTraceCols, password, searchEnabled, sslHostnameValidation, strictTraceId, username, useSsl
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
ensureSchema
(boolean ensureSchema) Ensures that schema exists, if enabled tries to execute: io.zipkin.zipkin2:zipkin-storage-cassandra/zipkin2-schema.cql io.zipkin.zipkin2:zipkin-storage-cassandra/zipkin2-indexes.cql Defaults to true.Keyspace to store span and index data.sessionFactory
(CassandraStorage.SessionFactory sessionFactory) Override to control how sessions are created.Methods inherited from class zipkin2.storage.cassandra.internal.CassandraStorageBuilder
autocompleteCardinality, autocompleteKeys, autocompleteTtl, contactPoints, indexFetchMultiplier, localDc, maxConnections, maxTraceCols, password, poolingOptions, searchEnabled, sslHostnameValidation, strictTraceId, username, useSsl
-
Method Details
-
keyspace
Keyspace to store span and index data. Defaults to "zipkin2"- Overrides:
keyspace
in classzipkin2.storage.cassandra.internal.CassandraStorageBuilder<CassandraStorage.Builder>
-
ensureSchema
Ensures that schema exists, if enabled tries to execute:- io.zipkin.zipkin2:zipkin-storage-cassandra/zipkin2-schema.cql
- io.zipkin.zipkin2:zipkin-storage-cassandra/zipkin2-indexes.cql
- Overrides:
ensureSchema
in classzipkin2.storage.cassandra.internal.CassandraStorageBuilder<CassandraStorage.Builder>
-
sessionFactory
Override to control how sessions are created. -
build
- Specified by:
build
in classStorageComponent.Builder
-