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 Details

    • send

      void 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.
      Parameters:
      request - the request to send.
    • hostname

      String hostname()
      Returns the configured hostname for the Node.
      Returns:
      the hostname.
    • connect

      rx.Observable<LifecycleState> connect()
      Connects all currently enabled Services.
      Returns:
      the states of the Node after the connect process for all enabled Services.
    • disconnect

      rx.Observable<LifecycleState> disconnect()
      Disconnects all currently enabled Services.
      Returns:
      the states of the Node after the disconnect process for all enabled Services.
    • addService

      rx.Observable<Service> addService​(AddServiceRequest request)
    • removeService

      rx.Observable<Service> removeService​(RemoveServiceRequest request)
    • serviceEnabled

      boolean serviceEnabled​(ServiceType type)
      True if the given ServiceType 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.