Package com.couchbase.client.core.node
Interface Node
-
- All Superinterfaces:
Stateful<LifecycleState>
- All Known Implementing Classes:
CouchbaseNode
public interface Node extends Stateful<LifecycleState>
Represents a Couchbase Node.- Since:
- 2.0
- Author:
- Michael Nitschinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description rx.Observable<Service>
addService(AddServiceRequest request)
rx.Observable<LifecycleState>
connect()
Connects all currently enabledService
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 enabledService
s.String
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 Detail
-
send
void send(CouchbaseRequest request)
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.
-
connect
rx.Observable<LifecycleState> connect()
Connects all currently enabledService
s.
-
disconnect
rx.Observable<LifecycleState> disconnect()
Disconnects all currently enabledService
s.
-
addService
rx.Observable<Service> addService(AddServiceRequest request)
-
removeService
rx.Observable<Service> removeService(RemoveServiceRequest request)
-
serviceEnabled
boolean serviceEnabled(ServiceType type)
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.
-
-