public interface Node extends Stateful<LifecycleState>
Represents a Couchbase Node.
| Modifier and Type | Method and Description |
|---|---|
Observable<Service> |
addService(AddServiceRequest request) |
Observable<LifecycleState> |
connect()
Connects all currently enabled
Services. |
Observable<LifecycleState> |
disconnect()
Disconnects all currently enabled
Services. |
InetAddress |
hostname()
Returns the configured hostname for the
Node. |
Observable<Service> |
removeService(RemoveServiceRequest request) |
void |
send(CouchbaseRequest request)
Sends a
CouchbaseRequest into the node and eventually returns a CouchbaseResponse. |
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.InetAddress hostname()
Returns the configured hostname for the Node.
Observable<LifecycleState> connect()
Connects all currently enabled Services.
Observable<LifecycleState> disconnect()
Disconnects all currently enabled Services.
Observable<Service> addService(AddServiceRequest request)
Observable<Service> removeService(RemoveServiceRequest request)
Copyright © 2016 Couchbase, Inc.. All rights reserved.