Package zipkin2.storage.cassandra
Class CassandraStorage.Builder
java.lang.Object
zipkin2.storage.StorageComponent.Builder
zipkin2.storage.cassandra.CassandraStorage.Builder
- Enclosing class:
- CassandraStorage
public abstract static class CassandraStorage.Builder extends StorageComponent.Builder
-
Method Summary
Modifier and Type Method Description abstract CassandraStorage.Builder
autocompleteCardinality(int autocompleteCardinality)
abstract CassandraStorage.Builder
autocompleteKeys(List<String> autocompleteKeys)
abstract CassandraStorage.Builder
autocompleteTtl(int autocompleteTtl)
abstract CassandraStorage
build()
abstract CassandraStorage.Builder
contactPoints(String contactPoints)
Comma separated list of host addresses part of Cassandra cluster.abstract CassandraStorage.Builder
ensureSchema(boolean ensureSchema)
Ensures that schema exists, if enabled tries to execute script io.zipkin:zipkin-cassandra-core/cassandra-schema-cql3.txt.abstract CassandraStorage.Builder
indexFetchMultiplier(int indexFetchMultiplier)
How many more index rows to fetch than the user-supplied query limit.abstract CassandraStorage.Builder
keyspace(String keyspace)
Keyspace to store span and index data.abstract CassandraStorage.Builder
localDc(String localDc)
Name of the datacenter that will be considered "local" for latency load balancing.CassandraStorage.Builder
maxConnections(int maxConnections)
Max pooled connections per datacenter-local host.abstract CassandraStorage.Builder
maxTraceCols(int maxTraceCols)
Spans have multiple values for the same id.abstract CassandraStorage.Builder
password(String password)
Will throw an exception on startup if authentication fails.abstract CassandraStorage.Builder
searchEnabled(boolean searchEnabled)
abstract CassandraStorage.Builder
sessionFactory(CassandraStorage.SessionFactory sessionFactory)
Override to control how sessions are created.abstract CassandraStorage.Builder
strictTraceId(boolean strictTraceId)
abstract CassandraStorage.Builder
username(String username)
Will throw an exception on startup if authentication fails.abstract CassandraStorage.Builder
useSsl(boolean useSsl)
Use ssl for driver Defaults to false.
-
Method Details
-
strictTraceId
- Specified by:
strictTraceId
in classStorageComponent.Builder
-
searchEnabled
- Specified by:
searchEnabled
in classStorageComponent.Builder
-
autocompleteKeys
- Overrides:
autocompleteKeys
in classStorageComponent.Builder
-
autocompleteTtl
- Overrides:
autocompleteTtl
in classStorageComponent.Builder
-
autocompleteCardinality
- Overrides:
autocompleteCardinality
in classStorageComponent.Builder
-
sessionFactory
public abstract CassandraStorage.Builder sessionFactory(CassandraStorage.SessionFactory sessionFactory)Override to control how sessions are created. -
keyspace
Keyspace to store span and index data. Defaults to "zipkin3" -
contactPoints
Comma separated list of host addresses part of Cassandra cluster. You can also specify a custom port with 'host:port'. Defaults to localhost on port 9042 * -
localDc
Name of the datacenter that will be considered "local" for latency load balancing. When unset, load-balancing is round-robin. -
maxConnections
Max pooled connections per datacenter-local host. Defaults to 8 -
ensureSchema
Ensures that schema exists, if enabled tries to execute script io.zipkin:zipkin-cassandra-core/cassandra-schema-cql3.txt. Defaults to true. -
useSsl
Use ssl for driver Defaults to false. -
username
Will throw an exception on startup if authentication fails. No default. -
password
Will throw an exception on startup if authentication fails. No default. -
maxTraceCols
Spans have multiple values for the same id. For example, a client and server contribute to the same span id. When searching for spans by id, the amount of results may be larger than the ids. This defines a threshold which accommodates this situation, without looking for an unbounded number of results. -
indexFetchMultiplier
How many more index rows to fetch than the user-supplied query limit. Defaults to 3.Backend requests will request
QueryRequest.limit()
times this factor rows from Cassandra indexes in attempts to returnQueryRequest.limit()
traces.Indexing in cassandra will usually have more rows than trace identifiers due to factors including table design and collection implementation. As there's no way to DISTINCT out duplicates server-side, this over-fetches client-side when
indexFetchMultiplier
> 1. -
build
- Specified by:
build
in classStorageComponent.Builder
-