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.default ChangesexecuteCode(String code) Execute the givencodeagainst the script session.executeCode(String code, ExecuteCodeOptions options) Execute the givencodeagainst the script session.default CompletableFuture<Changes>executeCodeFuture(String code) Execute the givencodeagainst the script session.executeCodeFuture(String code, ExecuteCodeOptions options) Execute the givencodeagainst the script session.default ChangesexecuteScript(Path path) Execute the givenpath path'scode against the script session.executeScript(Path path, ExecuteCodeOptions options) Execute the givenpath path'scode against the script session.default CompletableFuture<Changes>executeScriptFuture(Path path) Execute the givenpath path'scode against the script session.executeScriptFuture(Path path, ExecuteCodeOptions options) Execute the givenpath path'scode against the script session.ticket()The export ticket forthisconsole session.type()The console script type.
-
Method Details
-
type
String type()The console script type.- Returns:
- the type
-
ticket
Ticket ticket()The export ticket forthisconsole session.- Returns:
- the ticket
-
executeCode
default Changes executeCode(String code) throws InterruptedException, ExecutionException, TimeoutException 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
-
executeCode
Changes executeCode(String code, ExecuteCodeOptions options) throws InterruptedException, ExecutionException, TimeoutException Execute the givencodeagainst the script session.- Parameters:
code- the codeoptions- anExecuteCodeOptionsto control behavior- Returns:
- the changes
- Throws:
InterruptedException- if the current thread is interruptedExecutionException- if the request has an exceptionTimeoutException- if the request times out
-
executeScript
default 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
-
executeScript
Changes executeScript(Path path, ExecuteCodeOptions options) throws IOException, InterruptedException, ExecutionException, TimeoutException Execute the givenpath path'scode against the script session.- Parameters:
path- the path to the codeoptions- anExecuteCodeOptionsto control behavior- 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
-
executeCodeFuture
Execute the givencodeagainst the script session.- Parameters:
code- the codeoptions- anExecuteCodeOptionsto control behavior- 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
-
executeScriptFuture
CompletableFuture<Changes> executeScriptFuture(Path path, ExecuteCodeOptions options) throws IOException Execute the givenpath path'scode against the script session.- Parameters:
path- the path to the codeoptions- anExecuteCodeOptionsto control behavior- 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
-