Package com.couchbase.client.core.node
Interface Node
- All Superinterfaces:
Stateful<LifecycleState>
- All Known Implementing Classes:
CouchbaseNode
Represents a Couchbase Node.
- Since:
- 2.0
- Author:
- Michael Nitschinger
-
Method Summary
Modifier and TypeMethodDescriptionrx.Observable<Service>
addService
(AddServiceRequest request) rx.Observable<LifecycleState>
connect()
Connects all currently enabledService
s.rx.Observable<EndpointHealth>
Returns endpoint health information for all endpoints this node is currently associated with.rx.Observable<LifecycleState>
Disconnects all currently enabledService
s.hostname()
Returns the configured hostname for theNode
.rx.Observable<Service>
removeService
(RemoveServiceRequest request) void
send
(CouchbaseRequest request) Sends aCouchbaseRequest
into the node and eventually returns aCouchbaseResponse
.boolean
serviceEnabled
(ServiceType type) True if the givenServiceType
is currently enabled on this node, false otherwise.Methods inherited from interface com.couchbase.client.core.state.Stateful
hasSubscribers, isState, state, states
-
Method Details
-
send
Sends aCouchbaseRequest
into the node and eventually returns aCouchbaseResponse
. TheCouchbaseResponse
is not returned directly, but is wrapped into aObservable
.- Parameters:
request
- the request to send.
-
hostname
String hostname()Returns the configured hostname for theNode
.- Returns:
- the hostname.
-
connect
rx.Observable<LifecycleState> connect()Connects all currently enabledService
s. -
disconnect
rx.Observable<LifecycleState> disconnect()Disconnects all currently enabledService
s. -
addService
-
removeService
-
serviceEnabled
True if the givenServiceType
is currently enabled on this node, false otherwise. -
diagnostics
rx.Observable<EndpointHealth> diagnostics()Returns endpoint health information for all endpoints this node is currently associated with.
-