public static final class BlockWorkerGrpc.BlockWorkerFutureStub extends io.grpc.stub.AbstractFutureStub<BlockWorkerGrpc.BlockWorkerFutureStub>
The block worker service
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<AsyncCacheResponse> |
asyncCache(AsyncCacheRequest request) |
protected BlockWorkerGrpc.BlockWorkerFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<CacheResponse> |
cache(CacheRequest request) |
com.google.common.util.concurrent.ListenableFuture<ClearMetricsResponse> |
clearMetrics(ClearMetricsRequest request)
TODO(lu) Move to metrics worker
|
com.google.common.util.concurrent.ListenableFuture<CompleteFilePResponse> |
completeFile(CompleteFilePRequest request)
Marks a file as completed.
|
com.google.common.util.concurrent.ListenableFuture<CopyResponse> |
copy(CopyRequest request) |
com.google.common.util.concurrent.ListenableFuture<CreateDirectoryPResponse> |
createDirectory(CreateDirectoryPRequest request)
Creates a directory.
|
com.google.common.util.concurrent.ListenableFuture<CreateFilePResponse> |
createFile(CreateFilePRequest request)
Creates a file.
|
com.google.common.util.concurrent.ListenableFuture<ExistsPResponse> |
exists(ExistsPRequest request)
Checks the existence of a file or directory.
|
com.google.common.util.concurrent.ListenableFuture<FreeWorkerResponse> |
freeWorker(FreeWorkerRequest request) |
com.google.common.util.concurrent.ListenableFuture<GetStatusPResponse> |
getStatus(GetStatusPRequest request)
Returns the status of the file or directory.
|
com.google.common.util.concurrent.ListenableFuture<LoadResponse> |
load(LoadRequest request) |
com.google.common.util.concurrent.ListenableFuture<LoadFileResponse> |
loadFile(LoadFileRequest request) |
com.google.common.util.concurrent.ListenableFuture<MoveResponse> |
move(MoveRequest request) |
com.google.common.util.concurrent.ListenableFuture<MoveBlockResponse> |
moveBlock(MoveBlockRequest request) |
com.google.common.util.concurrent.ListenableFuture<DeletePResponse> |
remove(DeletePRequest request)
Deletes a file or a directory and returns whether the remove operation succeeded.
|
com.google.common.util.concurrent.ListenableFuture<RemoveBlockResponse> |
removeBlock(RemoveBlockRequest request) |
com.google.common.util.concurrent.ListenableFuture<RenamePResponse> |
rename(RenamePRequest request)
Renames a file or a directory.
|
com.google.common.util.concurrent.ListenableFuture<SetAttributePResponse> |
setAttribute(SetAttributePRequest request)
Sets file or directory attributes.
|
protected BlockWorkerGrpc.BlockWorkerFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<BlockWorkerGrpc.BlockWorkerFutureStub>
public com.google.common.util.concurrent.ListenableFuture<GetStatusPResponse> getStatus(GetStatusPRequest request)
Returns the status of the file or directory.
public com.google.common.util.concurrent.ListenableFuture<AsyncCacheResponse> asyncCache(AsyncCacheRequest request)
public com.google.common.util.concurrent.ListenableFuture<CacheResponse> cache(CacheRequest request)
public com.google.common.util.concurrent.ListenableFuture<LoadResponse> load(LoadRequest request)
public com.google.common.util.concurrent.ListenableFuture<LoadFileResponse> loadFile(LoadFileRequest request)
public com.google.common.util.concurrent.ListenableFuture<CopyResponse> copy(CopyRequest request)
public com.google.common.util.concurrent.ListenableFuture<RemoveBlockResponse> removeBlock(RemoveBlockRequest request)
public com.google.common.util.concurrent.ListenableFuture<MoveBlockResponse> moveBlock(MoveBlockRequest request)
public com.google.common.util.concurrent.ListenableFuture<MoveResponse> move(MoveRequest request)
public com.google.common.util.concurrent.ListenableFuture<ClearMetricsResponse> clearMetrics(ClearMetricsRequest request)
TODO(lu) Move to metrics worker
public com.google.common.util.concurrent.ListenableFuture<FreeWorkerResponse> freeWorker(FreeWorkerRequest request)
public com.google.common.util.concurrent.ListenableFuture<CreateFilePResponse> createFile(CreateFilePRequest request)
Creates a file.
public com.google.common.util.concurrent.ListenableFuture<CompleteFilePResponse> completeFile(CompleteFilePRequest request)
Marks a file as completed.
public com.google.common.util.concurrent.ListenableFuture<DeletePResponse> remove(DeletePRequest request)
Deletes a file or a directory and returns whether the remove operation succeeded.
public com.google.common.util.concurrent.ListenableFuture<RenamePResponse> rename(RenamePRequest request)
Renames a file or a directory.
public com.google.common.util.concurrent.ListenableFuture<CreateDirectoryPResponse> createDirectory(CreateDirectoryPRequest request)
Creates a directory.
public com.google.common.util.concurrent.ListenableFuture<ExistsPResponse> exists(ExistsPRequest request)
Checks the existence of a file or directory.
public com.google.common.util.concurrent.ListenableFuture<SetAttributePResponse> setAttribute(SetAttributePRequest request)
Sets file or directory attributes.
Copyright © 2023. All Rights Reserved.