Skip to content
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

Snitch

To configure your own snitch, you have to:

  • set EndpointConfig.Snitch = "Custom"
  • set EndpointConfig.SnitchType = "typename"

typename must:

  • implement ISnitch
  • provide a parameterless constructor

EndpointStrategy

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
Clone this wiki locally