public class RaftJournalServiceClient extends AbstractMasterClient
AbstractClient.RpcCallable<V>
mAddress, mChannel, mClosed, mConnected, mContext, mServiceVersion, mVersionService
Constructor and Description |
---|
RaftJournalServiceClient(MasterClientContext clientContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterConnect()
This method is called after the connection is made to the remote.
|
io.grpc.stub.StreamObserver<DownloadSnapshotPRequest> |
downloadSnapshot(io.grpc.stub.StreamObserver<DownloadSnapshotPResponse> responseObserver)
Downloads a snapshot.
|
protected ServiceType |
getRemoteServiceType() |
protected String |
getServiceName() |
protected long |
getServiceVersion() |
io.grpc.stub.StreamObserver<UploadSnapshotPRequest> |
uploadSnapshot(io.grpc.stub.StreamObserver<UploadSnapshotPResponse> responseObserver)
Uploads a snapshot.
|
getAddress, getConfAddress
afterDisconnect, beforeConnect, beforeDisconnect, checkVersion, close, connect, disconnect, getRemoteServiceVersion, isClosed, isConnected, retryRPC, retryRPC
public RaftJournalServiceClient(MasterClientContext clientContext)
clientContext
- master client contextprotected ServiceType getRemoteServiceType()
getRemoteServiceType
in class AbstractClient
protected String getServiceName()
getServiceName
in class AbstractClient
protected long getServiceVersion()
getServiceVersion
in class AbstractClient
protected void afterConnect()
AbstractClient
afterConnect
in class AbstractClient
public io.grpc.stub.StreamObserver<UploadSnapshotPRequest> uploadSnapshot(io.grpc.stub.StreamObserver<UploadSnapshotPResponse> responseObserver)
responseObserver
- the response stream observerpublic io.grpc.stub.StreamObserver<DownloadSnapshotPRequest> downloadSnapshot(io.grpc.stub.StreamObserver<DownloadSnapshotPResponse> responseObserver)
responseObserver
- the response stream observerCopyright © 2023. All Rights Reserved.