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 TypeMethodDescriptionvoid
close()
Closesthis
console session.Closesthis
console session.default Changes
executeCode
(String code) Execute the givencode
against the script session.executeCode
(String code, ExecuteCodeOptions options) Execute the givencode
against the script session.default CompletableFuture<Changes>
executeCodeFuture
(String code) Execute the givencode
against the script session.executeCodeFuture
(String code, ExecuteCodeOptions options) Execute the givencode
against the script session.default Changes
executeScript
(Path path) Execute the givenpath path's
code against the script session.executeScript
(Path path, ExecuteCodeOptions options) Execute the givenpath path's
code against the script session.default CompletableFuture<Changes>
executeScriptFuture
(Path path) Execute the givenpath path's
code against the script session.executeScriptFuture
(Path path, ExecuteCodeOptions options) Execute the givenpath path's
code against the script session.ticket()
The export ticket forthis
console session.type()
The console script type.
-
Method Details
-
type
String type()The console script type.- Returns:
- the type
-
ticket
Ticket ticket()The export ticket forthis
console session.- Returns:
- the ticket
-
executeCode
default Changes executeCode(String code) throws InterruptedException, ExecutionException, TimeoutException Execute the givencode
against 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 givencode
against the script session.- Parameters:
code
- the codeoptions
- anExecuteCodeOptions
to 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's
code 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's
code against the script session.- Parameters:
path
- the path to the codeoptions
- anExecuteCodeOptions
to 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 givencode
against the script session.- Parameters:
code
- the code- Returns:
- the changes future
-
executeCodeFuture
Execute the givencode
against the script session.- Parameters:
code
- the codeoptions
- anExecuteCodeOptions
to control behavior- Returns:
- the changes future
-
executeScriptFuture
Execute the givenpath path's
code 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's
code against the script session.- Parameters:
path
- the path to the codeoptions
- anExecuteCodeOptions
to control behavior- Returns:
- the changes future
- Throws:
IOException
-
close
void close()Closesthis
console session.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
closeFuture
CompletableFuture<Void> closeFuture()Closesthis
console session.- Returns:
- the future
-