Package io.deephaven.client.impl
Interface ConsoleSession
- All Superinterfaces:
AutoCloseable,Closeable
A console session is part of a
Session that allows script execution.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closesthisconsole session.Closesthisconsole session.executeCode(String code) Execute the givencodeagainst the script session.executeCodeFuture(String code) Execute the givencodeagainst the script session.executeScript(Path path) Execute the givenpath path'scode against the script session.executeScriptFuture(Path path) Execute the givenpath path'scode against the script session.io.deephaven.proto.backplane.grpc.Ticketticket()The export ticket forthisconsole session.type()The console script type.
-
Method Details
-
type
String type()The console script type.- Returns:
- the type
-
ticket
io.deephaven.proto.backplane.grpc.Ticket ticket()The export ticket forthisconsole session.- Returns:
- the ticket
-
executeCode
Execute the givencodeagainst the script session.- Parameters:
code- the code- Returns:
- the changes
- Throws:
InterruptedException- if the current thread is interruptedExecutionException- if the request has an exceptionTimeoutException- if the request times out
-
executeScript
Changes executeScript(Path path) throws IOException, InterruptedException, ExecutionException, TimeoutException Execute the givenpath path'scode against the script session.- Parameters:
path- the path to the code- Returns:
- the changes
- Throws:
InterruptedException- if the current thread is interruptedExecutionException- if the request has an exceptionTimeoutException- if the request times outIOException
-
executeCodeFuture
Execute the givencodeagainst the script session.- Parameters:
code- the code- Returns:
- the changes future
-
executeScriptFuture
Execute the givenpath path'scode against the script session.- Parameters:
path- the path to the code- Returns:
- the changes future
- Throws:
IOException
-
close
void close()Closesthisconsole session.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
closeFuture
CompletableFuture<Void> closeFuture()Closesthisconsole session.- Returns:
- the future
-