baku-toolkit/lib/src/main/java/io/v/rx/syncbase/SgHostUtil.java
/**
     * @return {@code true} iff the mount event represents a successful mount.
     */
@return  true iff the mount event represents a successful mount.
@return true iff the mount event represents a successful mount .
private static boolean processMountEvent(final MountEvent e) {
        e.getServer().ifPresentOrElse(
                s -> e.getError().ifPresentOrElse(
                        err -> log.error(String.format("Could not %s local Syncbase instance %s " +
                                        "as syncgroup host %s",
                                e.isMount() ? "mount" : "unmount", s, e.getName()), err),
                        () -> log.info("{} local Syncbase instance {} as syncgroup host {}",
                                e.isMount() ? "Mounted" : "Unmounted", s, e.getName())
                ),
                () -> e.getError().ifPresentOrElse(
                        err -> log.error("Could not mount local Syncbase instance as syncgroup " +
                                "host " + e.getName(), err),
                        () -> log.info("Mounting local Syncbase instance as syncgroup host " +
                                e.getName()))
        );
        return e.isSuccessfulMount();
    }
private static boolean processMountEvent ( final MountEvent e ) { e . getServer ( ) . ifPresentOrElse ( s -> e . getError ( ) . ifPresentOrElse ( err -> log . error ( String . format ( "Could not %s local Syncbase instance %s " + "as syncgroup host %s" , e . isMount ( ) ? "mount" : "unmount" , s , e . getName ( ) ) , err ) , ( ) -> log . info ( "{} local Syncbase instance {} as syncgroup host {}" , e . isMount ( ) ? "Mounted" : "Unmounted" , s , e . getName ( ) ) ) , ( ) -> e . getError ( ) . ifPresentOrElse ( err -> log . error ( "Could not mount local Syncbase instance as syncgroup " + "host " + e . getName ( ) , err ) , ( ) -> log . info ( "Mounting local Syncbase instance as syncgroup host " + e . getName ( ) ) ) ) ; return e . isSuccessfulMount ( ) ; }
@return {@code true} iff the mount event represents a successful mount.
@return { @code true } iff the mount event represents a successful mount .