public static final class BlockWorkerGrpc.BlockWorkerStub extends io.grpc.stub.AbstractAsyncStub<BlockWorkerGrpc.BlockWorkerStub>
The block worker service
Modifier and Type | Method and Description |
---|---|
void |
asyncCache(AsyncCacheRequest request,
io.grpc.stub.StreamObserver<AsyncCacheResponse> responseObserver) |
protected BlockWorkerGrpc.BlockWorkerStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
cache(CacheRequest request,
io.grpc.stub.StreamObserver<CacheResponse> responseObserver) |
void |
clearMetrics(ClearMetricsRequest request,
io.grpc.stub.StreamObserver<ClearMetricsResponse> responseObserver)
TODO(lu) Move to metrics worker
|
void |
completeFile(CompleteFilePRequest request,
io.grpc.stub.StreamObserver<CompleteFilePResponse> responseObserver)
Marks a file as completed.
|
void |
copy(CopyRequest request,
io.grpc.stub.StreamObserver<CopyResponse> responseObserver) |
void |
createDirectory(CreateDirectoryPRequest request,
io.grpc.stub.StreamObserver<CreateDirectoryPResponse> responseObserver)
Creates a directory.
|
void |
createFile(CreateFilePRequest request,
io.grpc.stub.StreamObserver<CreateFilePResponse> responseObserver)
Creates a file.
|
void |
exists(ExistsPRequest request,
io.grpc.stub.StreamObserver<ExistsPResponse> responseObserver)
Checks the existence of a file or directory.
|
void |
freeWorker(FreeWorkerRequest request,
io.grpc.stub.StreamObserver<FreeWorkerResponse> responseObserver) |
void |
getStatus(GetStatusPRequest request,
io.grpc.stub.StreamObserver<GetStatusPResponse> responseObserver)
Returns the status of the file or directory.
|
void |
listStatus(ListStatusPRequest request,
io.grpc.stub.StreamObserver<ListStatusPResponse> responseObserver)
If the path points to a file, the method returns a singleton with its file information.
|
void |
load(LoadRequest request,
io.grpc.stub.StreamObserver<LoadResponse> responseObserver) |
void |
loadFile(LoadFileRequest request,
io.grpc.stub.StreamObserver<LoadFileResponse> responseObserver) |
void |
move(MoveRequest request,
io.grpc.stub.StreamObserver<MoveResponse> responseObserver) |
void |
moveBlock(MoveBlockRequest request,
io.grpc.stub.StreamObserver<MoveBlockResponse> responseObserver) |
io.grpc.stub.StreamObserver<ReadRequest> |
readBlock(io.grpc.stub.StreamObserver<ReadResponse> responseObserver) |
void |
remove(DeletePRequest request,
io.grpc.stub.StreamObserver<DeletePResponse> responseObserver)
Deletes a file or a directory and returns whether the remove operation succeeded.
|
void |
removeBlock(RemoveBlockRequest request,
io.grpc.stub.StreamObserver<RemoveBlockResponse> responseObserver) |
void |
rename(RenamePRequest request,
io.grpc.stub.StreamObserver<RenamePResponse> responseObserver)
Renames a file or a directory.
|
void |
setAttribute(SetAttributePRequest request,
io.grpc.stub.StreamObserver<SetAttributePResponse> responseObserver)
Sets file or directory attributes.
|
io.grpc.stub.StreamObserver<WriteRequest> |
writeBlock(io.grpc.stub.StreamObserver<WriteResponse> responseObserver) |
protected BlockWorkerGrpc.BlockWorkerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<BlockWorkerGrpc.BlockWorkerStub>
public void getStatus(GetStatusPRequest request, io.grpc.stub.StreamObserver<GetStatusPResponse> responseObserver)
Returns the status of the file or directory.
public void listStatus(ListStatusPRequest request, io.grpc.stub.StreamObserver<ListStatusPResponse> responseObserver)
If the path points to a file, the method returns a singleton with its file information. If the path points to a directory, the method returns a list with file information for the directory contents.
public io.grpc.stub.StreamObserver<ReadRequest> readBlock(io.grpc.stub.StreamObserver<ReadResponse> responseObserver)
public io.grpc.stub.StreamObserver<WriteRequest> writeBlock(io.grpc.stub.StreamObserver<WriteResponse> responseObserver)
public void asyncCache(AsyncCacheRequest request, io.grpc.stub.StreamObserver<AsyncCacheResponse> responseObserver)
public void cache(CacheRequest request, io.grpc.stub.StreamObserver<CacheResponse> responseObserver)
public void load(LoadRequest request, io.grpc.stub.StreamObserver<LoadResponse> responseObserver)
public void loadFile(LoadFileRequest request, io.grpc.stub.StreamObserver<LoadFileResponse> responseObserver)
public void copy(CopyRequest request, io.grpc.stub.StreamObserver<CopyResponse> responseObserver)
public void removeBlock(RemoveBlockRequest request, io.grpc.stub.StreamObserver<RemoveBlockResponse> responseObserver)
public void moveBlock(MoveBlockRequest request, io.grpc.stub.StreamObserver<MoveBlockResponse> responseObserver)
public void move(MoveRequest request, io.grpc.stub.StreamObserver<MoveResponse> responseObserver)
public void clearMetrics(ClearMetricsRequest request, io.grpc.stub.StreamObserver<ClearMetricsResponse> responseObserver)
TODO(lu) Move to metrics worker
public void freeWorker(FreeWorkerRequest request, io.grpc.stub.StreamObserver<FreeWorkerResponse> responseObserver)
public void createFile(CreateFilePRequest request, io.grpc.stub.StreamObserver<CreateFilePResponse> responseObserver)
Creates a file.
public void completeFile(CompleteFilePRequest request, io.grpc.stub.StreamObserver<CompleteFilePResponse> responseObserver)
Marks a file as completed.
public void remove(DeletePRequest request, io.grpc.stub.StreamObserver<DeletePResponse> responseObserver)
Deletes a file or a directory and returns whether the remove operation succeeded.
public void rename(RenamePRequest request, io.grpc.stub.StreamObserver<RenamePResponse> responseObserver)
Renames a file or a directory.
public void createDirectory(CreateDirectoryPRequest request, io.grpc.stub.StreamObserver<CreateDirectoryPResponse> responseObserver)
Creates a directory.
public void exists(ExistsPRequest request, io.grpc.stub.StreamObserver<ExistsPResponse> responseObserver)
Checks the existence of a file or directory.
public void setAttribute(SetAttributePRequest request, io.grpc.stub.StreamObserver<SetAttributePResponse> responseObserver)
Sets file or directory attributes.
Copyright © 2023. All Rights Reserved.