Class DndSessionFactoryBarrage
java.lang.Object
io.deephaven.enterprise.dnd.client.DndSessionFactoryBarrage
A factory class for creating
barrage sessions
.-
Constructor Summary
ConstructorsConstructorDescriptionDndSessionFactoryBarrage
(@NotNull String serverUrl) Create a newDndSessionFactoryBarrage
for fetching barrage tables from a Persistent Query -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close all resources and connections with the server.createPersistentQueryConfig
(@NotNull String name, float heapSizeGb, long autoDeleteTimeoutMillis) Create a new Interactive Console Persistent Query configuration with a language set to `Python`void
Use a delegate token to authenticate; automatically calling the defaultAuthenticationClientManager
.void
delegateToken
(@NotNull io.deephaven.enterprise.auth.AuthToken delegateToken) Use a delegate token to authenticate.protected void
protected DndSessionBarrage
makeSession
(PersistentQueryInfoMessage qConfig, io.deephaven.enterprise.auth.AuthToken authToken, boolean deleteOnClose, DeephavenClusterConnection connection) newWorker
(@NotNull PersistentQueryConfigMessage message, long startupTimeoutMillis) Create a new Interactive Console Persistent Query session.newWorker
(@NotNull String name, float heapSizeGb, long autoDeleteTimeoutMillis, long startupTimeoutMillis) void
Authenticate with the server using a username and passwordpersistentQuery
(long serial) Create a newDndSession
to the specified Persistent Query by serial.persistentQuery
(@NotNull String name) Create a newDndSession
to the specified Persistent Query by name.void
privateKey
(@NotNull String keyFile) Authenticate to the server using a private key file.void
setMaxInboundMessageSize
(int maxInboundMessageSize)
-
Constructor Details
-
DndSessionFactoryBarrage
Create a newDndSessionFactoryBarrage
for fetching barrage tables from a Persistent Query- Parameters:
serverUrl
- the url to the server- Throws:
IOException
- if there was a problem connecting to the server
-
-
Method Details
-
doOnAuthenticated
protected void doOnAuthenticated() -
makeSession
protected DndSessionBarrage makeSession(PersistentQueryInfoMessage qConfig, io.deephaven.enterprise.auth.AuthToken authToken, boolean deleteOnClose, DeephavenClusterConnection connection) throws IOException - Throws:
IOException
-
close
public void close()Close all resources and connections with the server. -
password
Authenticate with the server using a username and password- Parameters:
user
- the usernamepassword
- the password
-
privateKey
Authenticate to the server using a private key file.- Parameters:
keyFile
- the private key file
-
delegateToken
public void delegateToken(@NotNull @NotNull io.deephaven.enterprise.auth.AuthToken delegateToken) Use a delegate token to authenticate. -
delegateToken
public void delegateToken()Use a delegate token to authenticate; automatically calling the defaultAuthenticationClientManager
.This is suitable for use within a single Deephaven cluster, when one authenticated worker should connect as the same user to another worker.
-
createPersistentQueryConfig
public PersistentQueryConfigMessage.Builder createPersistentQueryConfig(@NotNull @NotNull String name, float heapSizeGb, long autoDeleteTimeoutMillis) Create a new Interactive Console Persistent Query configuration with a language set to `Python`- Parameters:
name
- the name to create withheapSizeGb
- the desired heap size in GBautoDeleteTimeoutMillis
- how long the query should remain if all clients disconnect- Returns:
- a new
PersistentQueryConfigMessage.Builder
to use withnewWorker(PersistentQueryConfigMessage, long)
-
newWorker
public DndSessionBarrage newWorker(@NotNull @NotNull String name, float heapSizeGb, long autoDeleteTimeoutMillis, long startupTimeoutMillis) throws IOException - Throws:
IOException
-
newWorker
public DndSessionBarrage newWorker(@NotNull @NotNull PersistentQueryConfigMessage message, long startupTimeoutMillis) throws IOException Create a new Interactive Console Persistent Query session.- Parameters:
message
- thePersistentQueryInfoMessage
to create the Persistent Query withstartupTimeoutMillis
- the timeout for starting the query- Returns:
- a new
DndSessionFactoryBase
for communicating with the Persistent Query. - Throws:
IOException
- if there was a problem creating the Persistent Query
-
persistentQuery
Create a newDndSession
to the specified Persistent Query by name.- Parameters:
name
- the name of the Persistent Query- Returns:
- a new
DndSession
for communicating with the Persistent Query. - Throws:
IOException
- if there was a problem creating the Persistent Query
-
persistentQuery
Create a newDndSession
to the specified Persistent Query by serial.- Parameters:
serial
- the name of the Persistent Query- Returns:
- a new
DndSession
for communicating with the Persistent Query. - Throws:
IOException
- if there was a problem creating the Persistent Query
-
setMaxInboundMessageSize
public void setMaxInboundMessageSize(int maxInboundMessageSize)
-