CryBase::CouchBase::Service
Inherits Enum < Comparable < Value < Object
Catalog of services a Couchbase node can expose. Couchbase's multi-dimensional scaling lets each node enable any subset of these, and each service runs on its own well-known port.
CryBase::CouchBase::Service::KV.default_port(false) # => 11210
CryBase::CouchBase::Service::KV.default_port(true) # => 11207
CryBase::CouchBase::Service::Query.display_name # => "Query (N1QL)"
Constants
KV = 0
Query = 1
Search = 2
Analytics = 3
Index = 4
Eventing = 5
Views = 6
Management = 7
Instance methods
Returns the well-known port this service listens on for the given
transport — tls=true for the TLS variant, tls=false for plaintext.
Service::Management.default_port(false) # => 8091
Service::Management.default_port(true) # => 18091
display_name
Human-readable name as it appears in Couchbase's own UI/docs
(e.g. "Data (KV)", "Query (N1QL)").
Service::KV.display_name # => "Data (KV)"
Service::Search.display_name # => "Search (FTS)"