Package io.deephaven.server.session
Class SessionServiceGrpcImpl
java.lang.Object
io.deephaven.proto.backplane.grpc.SessionServiceGrpc.SessionServiceImplBase
io.deephaven.server.session.SessionServiceGrpcImpl
- All Implemented Interfaces:
SessionServiceGrpc.AsyncService,io.grpc.BindableService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final io.grpc.Context.Key<SessionState>static final io.grpc.Metadata.Key<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseSession(@NotNull HandshakeRequest request, @NotNull io.grpc.stub.StreamObserver<CloseSessionResponse> responseObserver) Proactively close an open session.voidexportFromTicket(@NotNull ExportRequest request, @NotNull io.grpc.stub.StreamObserver<ExportResponse> responseObserver) Makes a copy from a source ticket to a client managed result ticket.voidexportNotifications(@NotNull ExportNotificationRequest request, @NotNull io.grpc.stub.StreamObserver<ExportNotification> responseObserver) Establish a stream to manage all session exports, including those lost due to partially complete rpc calls.static voidinsertCallHeader(String key, String value) voidnewSession(@NotNull HandshakeRequest request, @NotNull io.grpc.stub.StreamObserver<HandshakeResponse> responseObserver) Handshake between client and server to create a new session.voidpublishFromTicket(@NotNull PublishRequest request, @NotNull io.grpc.stub.StreamObserver<PublishResponse> responseObserver) Makes a copy from a source ticket and publishes to a result ticket.voidrefreshSessionToken(@NotNull HandshakeRequest request, @NotNull io.grpc.stub.StreamObserver<HandshakeResponse> responseObserver) Keep-alive a given token to ensure that a session is not cleaned prematurely.voidrelease(@NotNull ReleaseRequest request, @NotNull io.grpc.stub.StreamObserver<ReleaseResponse> responseObserver) Attempts to release an export by its ticket.voidterminationNotification(@NotNull TerminationNotificationRequest request, @NotNull io.grpc.stub.StreamObserver<TerminationNotificationResponse> responseObserver) Receive a best-effort message on-exit indicating why this server is exiting.Methods inherited from class io.deephaven.proto.backplane.grpc.SessionServiceGrpc.SessionServiceImplBase
bindService
-
Field Details
-
DEEPHAVEN_SESSION_ID
Deprecated.Deprecated, useAuth2Constants.AUTHORIZATION_HEADERinstead.- See Also:
-
SESSION_HEADER_KEY
-
SESSION_CONTEXT_KEY
-
-
Constructor Details
-
SessionServiceGrpcImpl
-
-
Method Details
-
newSession
public void newSession(@NotNull @NotNull HandshakeRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<HandshakeResponse> responseObserver) Description copied from interface:SessionServiceGrpc.AsyncServiceHandshake between client and server to create a new session. The response includes a metadata header name and the token to send on every subsequent request. The auth mechanisms here are unary to best support grpc-web. Deprecated: Please use Flight's Handshake or http authorization headers instead.
-
refreshSessionToken
public void refreshSessionToken(@NotNull @NotNull HandshakeRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<HandshakeResponse> responseObserver) Description copied from interface:SessionServiceGrpc.AsyncServiceKeep-alive a given token to ensure that a session is not cleaned prematurely. The response may include an updated token that should replace the existing token for subsequent requests. Deprecated: Please use Flight's Handshake with an empty payload.
-
closeSession
public void closeSession(@NotNull @NotNull HandshakeRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<CloseSessionResponse> responseObserver) Description copied from interface:SessionServiceGrpc.AsyncServiceProactively close an open session. Sessions will automatically close on timeout. When a session is closed, all unreleased exports will be automatically released.
-
release
public void release(@NotNull @NotNull ReleaseRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<ReleaseResponse> responseObserver) Description copied from interface:SessionServiceGrpc.AsyncServiceAttempts to release an export by its ticket. Returns true if an existing export was found. It is the client's responsibility to release all resources they no longer want the server to hold on to. Proactively cancels work; do not release a ticket that is needed by dependent work that has not yet finished (i.e. the dependencies that are staying around should first be in EXPORTED state).
-
exportFromTicket
public void exportFromTicket(@NotNull @NotNull ExportRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<ExportResponse> responseObserver) Description copied from interface:SessionServiceGrpc.AsyncServiceMakes a copy from a source ticket to a client managed result ticket. The source ticket does not need to be a client managed ticket.
-
publishFromTicket
public void publishFromTicket(@NotNull @NotNull PublishRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<PublishResponse> responseObserver) Description copied from interface:SessionServiceGrpc.AsyncServiceMakes a copy from a source ticket and publishes to a result ticket. Neither the source ticket, nor the destination ticket, need to be a client managed ticket.
-
exportNotifications
public void exportNotifications(@NotNull @NotNull ExportNotificationRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<ExportNotification> responseObserver) Description copied from interface:SessionServiceGrpc.AsyncServiceEstablish a stream to manage all session exports, including those lost due to partially complete rpc calls. New streams will flush notifications for all un-released exports, prior to seeing any new or updated exports for all live exports. After the refresh of existing state, subscribers will receive notifications of new and updated exports. An export id of zero will be sent to indicate all pre-existing exports have been sent.
-
terminationNotification
public void terminationNotification(@NotNull @NotNull TerminationNotificationRequest request, @NotNull @NotNull io.grpc.stub.StreamObserver<TerminationNotificationResponse> responseObserver) Description copied from interface:SessionServiceGrpc.AsyncServiceReceive a best-effort message on-exit indicating why this server is exiting. Reception of this message cannot be guaranteed.
-
insertCallHeader
-