public interface Node extends Stateful<LifecycleState>
Modifier and Type | Method and Description |
---|---|
rx.Observable<Service> |
addService(AddServiceRequest request) |
rx.Observable<LifecycleState> |
connect()
Connects all currently enabled
Service s. |
rx.Observable<EndpointHealth> |
diagnostics()
Returns endpoint health information for all endpoints this node is currently associated with.
|
rx.Observable<LifecycleState> |
disconnect()
Disconnects all currently enabled
Service s. |
String |
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)
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.rx.Observable<LifecycleState> connect()
Service
s.rx.Observable<LifecycleState> disconnect()
Service
s.rx.Observable<Service> addService(AddServiceRequest request)
rx.Observable<Service> removeService(RemoveServiceRequest request)
boolean serviceEnabled(ServiceType type)
ServiceType
is currently enabled on this node, false otherwise.rx.Observable<EndpointHealth> diagnostics()
Copyright © 2019 Couchbase, Inc.. All rights reserved.