public class BaseClient extends Object implements IClient
Created by mwei on 12/9/15.
Constructor and Description |
---|
BaseClient(IClientRouter router,
long epoch) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<VersionInfo> |
getVersionInfo() |
CompletableFuture<Boolean> |
ping()
Ping the endpoint, asynchronously.
|
boolean |
pingSync()
Ping the endpoint, synchronously.
|
CompletableFuture<Boolean> |
reset()
Reset the endpoint, asynchronously.
|
CompletableFuture<Boolean> |
restart()
Restart the endpoint, asynchronously.
|
CompletableFuture<Boolean> |
setRemoteEpoch(long newEpoch)
Sets the epoch on client router and on the target layout server.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHandledTypes, getMsgHandler, getRouter, handleMessage, setRouter
public BaseClient(IClientRouter router, long epoch)
public boolean pingSync()
public CompletableFuture<Boolean> setRemoteEpoch(long newEpoch)
newEpoch
- New Epoch to be setpublic CompletableFuture<VersionInfo> getVersionInfo()
public CompletableFuture<Boolean> ping()
public CompletableFuture<Boolean> reset()
public CompletableFuture<Boolean> restart()
Copyright © 2019 CorfuDB. All rights reserved.