Class StorageServiceGrpc.StorageServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<StorageServiceGrpc.StorageServiceStub>
io.deephaven.proto.backplane.grpc.StorageServiceGrpc.StorageServiceStub
- Enclosing class:
- StorageServiceGrpc
public static final class StorageServiceGrpc.StorageServiceStub
extends io.grpc.stub.AbstractAsyncStub<StorageServiceGrpc.StorageServiceStub>
A stub to allow clients to do asynchronous rpc calls to service StorageService.
Shared storage management service. Operations may fail (or omit data) if the current session does not have permission to read or write that resource. Paths will be "/" delimited and must start with a leading slash.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
-
Method Summary
Modifier and TypeMethodDescriptionprotected StorageServiceGrpc.StorageServiceStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) void
createDirectory
(CreateDirectoryRequest request, io.grpc.stub.StreamObserver<CreateDirectoryResponse> responseObserver) Creates a directory at the given path.void
deleteItem
(DeleteItemRequest request, io.grpc.stub.StreamObserver<DeleteItemResponse> responseObserver) Deletes the file or directory at the given path.void
fetchFile
(FetchFileRequest request, io.grpc.stub.StreamObserver<FetchFileResponse> responseObserver) Reads the file at the given path.void
listItems
(ListItemsRequest request, io.grpc.stub.StreamObserver<ListItemsResponse> responseObserver) Lists the files and directories present in a given directory.void
moveItem
(MoveItemRequest request, io.grpc.stub.StreamObserver<MoveItemResponse> responseObserver) Moves a file from one path to another.void
saveFile
(SaveFileRequest request, io.grpc.stub.StreamObserver<SaveFileResponse> responseObserver) Can create new files or modify existing with client provided contents.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
Method Details
-
build
protected StorageServiceGrpc.StorageServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<StorageServiceGrpc.StorageServiceStub>
-
listItems
public void listItems(ListItemsRequest request, io.grpc.stub.StreamObserver<ListItemsResponse> responseObserver) Lists the files and directories present in a given directory. Will return an error
-
fetchFile
public void fetchFile(FetchFileRequest request, io.grpc.stub.StreamObserver<FetchFileResponse> responseObserver) Reads the file at the given path. Client can optionally specify an etag, asking the server not to send the file if it hasn't changed.
-
saveFile
public void saveFile(SaveFileRequest request, io.grpc.stub.StreamObserver<SaveFileResponse> responseObserver) Can create new files or modify existing with client provided contents.
-
moveItem
public void moveItem(MoveItemRequest request, io.grpc.stub.StreamObserver<MoveItemResponse> responseObserver) Moves a file from one path to another.
-
createDirectory
public void createDirectory(CreateDirectoryRequest request, io.grpc.stub.StreamObserver<CreateDirectoryResponse> responseObserver) Creates a directory at the given path.
-
deleteItem
public void deleteItem(DeleteItemRequest request, io.grpc.stub.StreamObserver<DeleteItemResponse> responseObserver) Deletes the file or directory at the given path. Directories must be empty to be deleted.
-