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.executeCode
(String code) Execute the givencode
against the script session.executeCodeFuture
(String code) Execute the givencode
against the script session.executeScript
(Path path) Execute the givenpath path's
code against the script session.executeScriptFuture
(Path path) 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
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
-
executeScript
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
-
executeCodeFuture
Execute the givencode
against the script session.- Parameters:
code
- the code- 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
-
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
-