*
* @param hostname the hostname of the node.
* @return the states of the node (most probably {@link LifecycleState#CONNECTED}).
*/
public Observable<LifecycleState> addNode(final InetAddress hostname) {
Node node = nodeBy(hostname);
if (node != null) {
return Observable.just(node.state());
}
return addNode(new CouchbaseNode(hostname, environment, responseBuffer));
}