public class DoraWorkerClientServiceHandler extends BlockWorkerGrpc.BlockWorkerImplBase
Constructor and Description |
---|
DoraWorkerClientServiceHandler(DoraWorker doraWorker)
Creates a new implementation of gRPC BlockWorker interface.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Map<io.grpc.MethodDescriptor,io.grpc.MethodDescriptor> |
getOverriddenMethodDescriptors() |
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 |
loadFile(LoadFileRequest request,
io.grpc.stub.StreamObserver<LoadFileResponse> responseObserver) |
void |
move(MoveRequest request,
io.grpc.stub.StreamObserver<MoveResponse> 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 |
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.
|
bindService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asyncCache, cache, clearMetrics, freeWorker, load, moveBlock, removeBlock, writeBlock
@Inject public DoraWorkerClientServiceHandler(DoraWorker doraWorker)
doraWorker
- the DoraWorker objectpublic Map<io.grpc.MethodDescriptor,io.grpc.MethodDescriptor> getOverriddenMethodDescriptors()
public io.grpc.stub.StreamObserver<ReadRequest> readBlock(io.grpc.stub.StreamObserver<ReadResponse> 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 move(MoveRequest request, io.grpc.stub.StreamObserver<MoveResponse> responseObserver)
public void getStatus(GetStatusPRequest request, io.grpc.stub.StreamObserver<GetStatusPResponse> responseObserver)
BlockWorkerGrpc.AsyncService
Returns the status of the file or directory.
public void listStatus(ListStatusPRequest request, io.grpc.stub.StreamObserver<ListStatusPResponse> responseObserver)
BlockWorkerGrpc.AsyncService
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 void createFile(CreateFilePRequest request, io.grpc.stub.StreamObserver<CreateFilePResponse> responseObserver)
BlockWorkerGrpc.AsyncService
Creates a file.
public void completeFile(CompleteFilePRequest request, io.grpc.stub.StreamObserver<CompleteFilePResponse> responseObserver)
BlockWorkerGrpc.AsyncService
Marks a file as completed.
public void remove(DeletePRequest request, io.grpc.stub.StreamObserver<DeletePResponse> responseObserver)
BlockWorkerGrpc.AsyncService
Deletes a file or a directory and returns whether the remove operation succeeded.
public void rename(RenamePRequest request, io.grpc.stub.StreamObserver<RenamePResponse> responseObserver)
BlockWorkerGrpc.AsyncService
Renames a file or a directory.
public void createDirectory(CreateDirectoryPRequest request, io.grpc.stub.StreamObserver<CreateDirectoryPResponse> responseObserver)
BlockWorkerGrpc.AsyncService
Creates a directory.
public void exists(ExistsPRequest request, io.grpc.stub.StreamObserver<ExistsPResponse> responseObserver)
BlockWorkerGrpc.AsyncService
Checks the existence of a file or directory.
public void setAttribute(SetAttributePRequest request, io.grpc.stub.StreamObserver<SetAttributePResponse> responseObserver)
BlockWorkerGrpc.AsyncService
Sets file or directory attributes.
Copyright © 2023. All Rights Reserved.