-
Notifications
You must be signed in to change notification settings - Fork 41
Extension points
pchalamet edited this page Dec 30, 2012
·
1 revision
There are various extension points right now:
- Snitch : a service to compute distance between IPs
- EndpointStrategy : a strategy to choose an endpoint from a known set
- Recovery : a service to recover failed endpoint
- Logger : a service for logging
- Transport : the transport factory
- Object mapper : how to map object to/from CQL rowset
To configure your own snitch, you have to:
- set EndpointConfig.Snitch = "Custom"
- set EndpointConfig.SnitchType = "typename"
typename must:
- implement
ISnitch
- provide a
parameterless constructor
To configure your own endpoint strategy, you have to:
- set EndpointConfig.Strategy = "Custom"
- set EndpointConfig.StrategyType = "typename"
typename must:
- implement
IEndpointStrategy
- provide a constructor with a single parameter:
IEnumerable<Endpoint>
endpoints