Package com.illumon.iris.console.events
Class RemoteScriptLoaderCommandHandler
java.lang.Object
com.illumon.iris.console.events.RemoteScriptLoaderCommandHandler
- All Implemented Interfaces:
QueryProcessorConnection.QueryProcessorConnectionCommandHandler
public class RemoteScriptLoaderCommandHandler
extends Object
implements QueryProcessorConnection.QueryProcessorConnectionCommandHandler
A simple command line to provide scripts from a console to a worker; for use in source.
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteScriptLoaderCommandHandler
(com.fishlib.io.logger.Logger log, ScriptPathLoader scriptPathLoader, QueryProcessorConnection queryProcessorConnection, int groovySessionId) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleClientDeath
(io.deephaven.enterprise.comm.api.ClientEntry client) Called when a client dies.boolean
handleQueryProcessorCommand
(io.deephaven.enterprise.comm.api.ClientEntry client, com.fishlib.base.Command command) Handles a command from the remote query processor that the query processor connection itself does not know how to handle.
-
Constructor Details
-
RemoteScriptLoaderCommandHandler
public RemoteScriptLoaderCommandHandler(com.fishlib.io.logger.Logger log, ScriptPathLoader scriptPathLoader, QueryProcessorConnection queryProcessorConnection, int groovySessionId)
-
-
Method Details
-
handleQueryProcessorCommand
public boolean handleQueryProcessorCommand(io.deephaven.enterprise.comm.api.ClientEntry client, com.fishlib.base.Command command) Description copied from interface:QueryProcessorConnection.QueryProcessorConnectionCommandHandler
Handles a command from the remote query processor that the query processor connection itself does not know how to handle. If true is returned, then no other attached QueryProcessorConnectionCommandHandler has an opportunity to examine the command. If false is returned, the next attached QueryProcessorConnectionCommandHandler is given an opportunity to service this command.- Specified by:
handleQueryProcessorCommand
in interfaceQueryProcessorConnection.QueryProcessorConnectionCommandHandler
- Parameters:
client
- the client entry for the remote query processorcommand
- the command that was sent by the remote query processor- Returns:
- true if the command was handled, false otherwise
-
handleClientDeath
public void handleClientDeath(io.deephaven.enterprise.comm.api.ClientEntry client) Description copied from interface:QueryProcessorConnection.QueryProcessorConnectionCommandHandler
Called when a client dies.- Specified by:
handleClientDeath
in interfaceQueryProcessorConnection.QueryProcessorConnectionCommandHandler
- Parameters:
client
- the clientEntry that died.
-