baku-toolkit/lib/src/main/java/io/v/rx/syncbase/SgHostUtil.java
/**
     * @return an observable that emits a single boolean indicating whether a Syncbase instance
     * mounted at {@code name} is responsive within {@link #SYNCBASE_PING_TIMEOUT}.
     */
@return an observable that emits a single boolean indicating whether a Syncbase instance
mounted at  name is responsive within  #SYNCBASE_PING_TIMEOUT.
@return an observable that emits a single boolean indicating whether a Syncbase instance mounted at name is responsive within #SYNCBASE_PING_TIMEOUT .
public static Observable<Boolean> isSyncbaseOnline(final VContext vContext, final String name) {
        final VContext pingContext = vContext.withTimeout(SYNCBASE_PING_TIMEOUT);
        /*
        It would be nice if there were a more straightforward ping. We can't just query the mount
        table because the server might not have shut down cleanly.
        TODO(rosswang): I think sadovsky@ has added this, but it doesn't appear exposed yet.
        */
        return toObservable(Syncbase.newService(name).getApp("ping").exists(pingContext))
                .map(e -> true)
                .onErrorResumeNext(t -> t instanceof TimeoutException ?
                        Observable.just(false) : Observable.error(t));
    }
public static Observable < Boolean > isSyncbaseOnline ( final VContext vContext , final String name ) { final VContext pingContext = vContext . withTimeout ( SYNCBASE_PING_TIMEOUT ) ; /*
        It would be nice if there were a more straightforward ping. We can't just query the mount
        table because the server might not have shut down cleanly.
        TODO(rosswang): I think sadovsky@ has added this, but it doesn't appear exposed yet.
        */ return toObservable ( Syncbase . newService ( name ) . getApp ( "ping" ) . exists ( pingContext ) ) . map ( e -> true ) . onErrorResumeNext ( t -> t instanceof TimeoutException ? Observable . just ( false ) : Observable . error ( t ) ) ; }
@return an observable that emits a single boolean indicating whether a Syncbase instance
 mounted at {@code name} is responsive within {@link #SYNCBASE_PING_TIMEOUT}.
@return an observable that emits a single boolean indicating whether a Syncbase instance mounted at { @code name } is responsive within { @link #SYNCBASE_PING_TIMEOUT } .