Class DndSessionFactoryBarrage
java.lang.Object
io.deephaven.enterprise.dnd.client.DndSessionFactoryBarrage
A factory class for creating 
barrage sessions.- 
Constructor SummaryConstructorsConstructorDescriptionDndSessionFactoryBarrage(@NotNull String serverUrl) Create a newDndSessionFactoryBarragefor fetching barrage tables from a Persistent Query
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()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`voidUse a delegate token to authenticate; automatically calling the defaultAuthenticationClientManager.voiddelegateToken(@NotNull io.deephaven.enterprise.auth.AuthToken delegateToken) Use a delegate token to authenticate.protected voidprotected DndSessionBarragemakeSession(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) voidAuthenticate with the server using a username and passwordpersistentQuery(long serial) Create a newDndSessionto the specified Persistent Query by serial.persistentQuery(@NotNull String name) Create a newDndSessionto the specified Persistent Query by name.voidprivateKey(@NotNull String keyFile) Authenticate to the server using a private key file.voidsetMaxInboundMessageSize(int maxInboundMessageSize) 
- 
Constructor Details- 
DndSessionFactoryBarrageCreate a newDndSessionFactoryBarragefor 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- 
doOnAuthenticatedprotected void doOnAuthenticated()
- 
makeSessionprotected DndSessionBarrage makeSession(PersistentQueryInfoMessage qConfig, io.deephaven.enterprise.auth.AuthToken authToken, boolean deleteOnClose, DeephavenClusterConnection connection) throws IOException - Throws:
- IOException
 
- 
closepublic void close()Close all resources and connections with the server.
- 
passwordAuthenticate with the server using a username and password- Parameters:
- user- the username
- password- the password
 
- 
privateKeyAuthenticate to the server using a private key file.- Parameters:
- keyFile- the private key file
 
- 
delegateTokenpublic void delegateToken(@NotNull @NotNull io.deephaven.enterprise.auth.AuthToken delegateToken) Use a delegate token to authenticate.
- 
delegateTokenpublic 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. 
- 
createPersistentQueryConfigpublic 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 with
- heapSizeGb- the desired heap size in GB
- autoDeleteTimeoutMillis- how long the query should remain if all clients disconnect
- Returns:
- a new PersistentQueryConfigMessage.Builderto use withnewWorker(PersistentQueryConfigMessage, long)
 
- 
newWorkerpublic DndSessionBarrage newWorker(@NotNull @NotNull String name, float heapSizeGb, long autoDeleteTimeoutMillis, long startupTimeoutMillis) throws IOException - Throws:
- IOException
 
- 
newWorkerpublic DndSessionBarrage newWorker(@NotNull @NotNull PersistentQueryConfigMessage message, long startupTimeoutMillis) throws IOException Create a new Interactive Console Persistent Query session.- Parameters:
- message- the- PersistentQueryInfoMessageto create the Persistent Query with
- startupTimeoutMillis- the timeout for starting the query
- Returns:
- a new DndSessionFactoryBasefor communicating with the Persistent Query.
- Throws:
- IOException- if there was a problem creating the Persistent Query
 
- 
persistentQueryCreate a newDndSessionto the specified Persistent Query by name.- Parameters:
- name- the name of the Persistent Query
- Returns:
- a new DndSessionfor communicating with the Persistent Query.
- Throws:
- IOException- if there was a problem creating the Persistent Query
 
- 
persistentQueryCreate a newDndSessionto the specified Persistent Query by serial.- Parameters:
- serial- the name of the Persistent Query
- Returns:
- a new DndSessionfor communicating with the Persistent Query.
- Throws:
- IOException- if there was a problem creating the Persistent Query
 
- 
setMaxInboundMessageSizepublic void setMaxInboundMessageSize(int maxInboundMessageSize) 
 
-