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
Services. |
rx.Observable<LifecycleState> |
disconnect()
Disconnects all currently enabled
Services. |
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, statesvoid 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 Services.
rx.Observable<LifecycleState> disconnect()
Disconnects all currently enabled Services.
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.
Copyright © 2017 Couchbase, Inc.. All rights reserved.