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>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CassandraStorage
build()
CassandraStorage.Builder
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.CassandraStorage.Builder
keyspace(String keyspace)
Keyspace to store span and index data.CassandraStorage.Builder
sessionFactory(CassandraStorage.SessionFactory sessionFactory)
Override to control how sessions are created.
-
-
-
Method Detail
-
keyspace
public CassandraStorage.Builder keyspace(String keyspace)
Keyspace to store span and index data. Defaults to "zipkin2"- Overrides:
keyspace
in classzipkin2.storage.cassandra.internal.CassandraStorageBuilder<CassandraStorage.Builder>
-
ensureSchema
public CassandraStorage.Builder 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
- Overrides:
ensureSchema
in classzipkin2.storage.cassandra.internal.CassandraStorageBuilder<CassandraStorage.Builder>
-
sessionFactory
public CassandraStorage.Builder sessionFactory(CassandraStorage.SessionFactory sessionFactory)
Override to control how sessions are created.
-
build
public CassandraStorage build()
- Specified by:
build
in classStorageComponent.Builder
-
-