public interface Node extends Stateful<LifecycleState>
Represents a Couchbase Node.
Modifier and Type | Method and Description |
---|---|
rx.Observable<Service> |
addService(AddServiceRequest request) |
rx.Observable<LifecycleState> |
connect()
Connects all currently enabled
Service s. |
rx.Observable<LifecycleState> |
disconnect()
Disconnects all currently enabled
Service s. |
rx.Observable<EndpointHealth> |
healthCheck()
Returns endpoint health information for all endpoints this node is currently associated with.
|
NetworkAddress |
hostname()
Returns the configured hostname for the
Node . |
rx.Observable<Service> |
removeService(RemoveServiceRequest request) |
void |
send(CouchbaseRequest request)
Sends a
CouchbaseRequest into the node and eventually returns a CouchbaseResponse . |
boolean |
serviceEnabled(ServiceType type)
True if the given
ServiceType is currently enabled on this node, false otherwise. |
hasSubscribers, isState, state, states
void send(CouchbaseRequest request)
Sends a CouchbaseRequest
into the node and eventually returns a CouchbaseResponse
.
The CouchbaseResponse
is not returned directly, but is wrapped into a Observable
.
request
- the request to send.NetworkAddress hostname()
Returns the configured hostname for the Node
.
rx.Observable<LifecycleState> connect()
Connects all currently enabled Service
s.
rx.Observable<LifecycleState> disconnect()
Disconnects all currently enabled Service
s.
rx.Observable<Service> addService(AddServiceRequest request)
rx.Observable<Service> removeService(RemoveServiceRequest request)
boolean serviceEnabled(ServiceType type)
True if the given ServiceType
is currently enabled on this node, false otherwise.
rx.Observable<EndpointHealth> healthCheck()
Returns endpoint health information for all endpoints this node is currently associated with.
Copyright © 2017 Couchbase, Inc.. All rights reserved.