Package io.deephaven.web.client.api
Class QueryConnectable<Self extends QueryConnectable<Self>>
java.lang.Object
io.deephaven.web.client.api.event.HasEventHandling
io.deephaven.web.client.api.QueryConnectable<Self>
- Direct Known Subclasses:
IdeConnection
@TsIgnore
public abstract class QueryConnectable<Self extends QueryConnectable<Self>>
extends HasEventHandling
JS-exposed supertype handling details about connecting to a deephaven query worker. Wraps the WorkerConnection
instance, which manages the connection to the API server.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.deephaven.web.client.api.event.HasEventHandling
HasEventHandling.EventPair<T>
-
Field Summary
FieldsFields inherited from class io.deephaven.web.client.api.event.HasEventHandling
INTERNAL_EVENT_RELEASED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
close()
void
<T> T
createClient
(BiFunction<String, Object, T> constructor) void
Triggered when the connection has disconnectedelemental2.promise.Promise<elemental2.core.JsArray<String>>
abstract ConnectOptions
abstract ConnectToken
getToken()
elemental2.promise.Promise<JsWorkerHeapInfo>
void
Deprecated.abstract void
protected elemental2.promise.Promise<Void>
onLogMessage
(JsConsumer<LogItem> callback) Register a callback function to handle any log messages that are emitted on the server.elemental2.promise.Promise<Self>
onReady()
Internal method to permit delegating to some orchestration tool to see if this worker can be connected to yet.abstract elemental2.promise.Promise<Self>
running()
Promise that resolves when this worker instance can be connected to, or rejects if it can't be used.startSession
(String type) boolean
Methods inherited from class io.deephaven.web.client.api.event.HasEventHandling
addEventListener, addEventListenerOneShot, addEventListenerOneShot, failureHandled, fireCriticalEvent, fireCriticalEvent, fireEvent, fireEvent, fireEvent, hasListener, hasListeners, isSuppress, logPrefix, nextEvent, removeEventListener, suppressEvents, unsuppressEvents
-
Field Details
-
connection
-
-
Constructor Details
-
QueryConnectable
public QueryConnectable()
-
-
Method Details
-
getToken
-
getOptions
-
notifyConnectionError
Deprecated. -
onConnected
-
getServerUrl
-
onReady
Internal method to permit delegating to some orchestration tool to see if this worker can be connected to yet. -
running
Promise that resolves when this worker instance can be connected to, or rejects if it can't be used.- Returns:
- A promise that resolves with this instance.
-
startSession
-
getConsoleTypes
-
getWorkerHeapInfo
-
connected
public void connected() -
close
protected void close() -
disconnected
public void disconnected()Triggered when the connection has disconnected -
notifyServerShutdown
-
supportsClientStreaming
public boolean supportsClientStreaming() -
createClient
-
makeRpcOptions
-