Class DoNothingHandle
java.lang.Object
com.illumon.iris.controller.handle.PersistentQueryHandleBase
com.illumon.iris.controller.handle.DoNothingHandle
- All Implemented Interfaces:
PersistentQueryHandle
This handle is enough to start a RunAndDone or Script query.
The Web UI will not permit you to create a query with anything but Legacy or Community, however you can create them from a script.
The script code and pretty much everything about the configuration is ignored. The worker is created, and can be shut down. Query initializing is simply setting the state to Running or Completed as appropriate for the ConfigurationType.
-
Field Summary
Fields inherited from class com.illumon.iris.controller.handle.PersistentQueryHandleBase
config, configurationType, dispatcherConnectionHandler, encryption, executorService, groupProvider, loader, log, logPrefix, state, stateLock, workerProcessInfoId, workerRequestHandle
-
Constructor Summary
ConstructorsConstructorDescriptionDoNothingHandle
(com.fishlib.io.logger.Logger log, Object queryHandleContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected WorkerHandle
createWorkerHandle
(RemoteProcessingRequest request, QueryDispatcherConnection dispatcherConnection) protected boolean
onDispatcherConnected
(QueryDispatcherConnection connection) protected void
Methods inherited from class com.illumon.iris.controller.handle.PersistentQueryHandleBase
checkQueryTerminatingOrTerminal, ensureShutdown, errorLog, getScriptCode, getState, getStateLock, getVersion, getWorkerHandle, infoLog, maybeSetTerminalStatus, onError, onFailure, onFailure, publishState, restore, setReplicaSlot, shutdown, start, warnLog
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.illumon.iris.controller.handle.PersistentQueryHandle
canTryToRestore, restore
-
Constructor Details
-
DoNothingHandle
public DoNothingHandle(@NotNull com.fishlib.io.logger.Logger log, @NotNull Object queryHandleContext)
-
-
Method Details
-
onStartRequested
protected void onStartRequested()- Specified by:
onStartRequested
in classPersistentQueryHandleBase
-
onDispatcherConnected
- Specified by:
onDispatcherConnected
in classPersistentQueryHandleBase
-
createWorkerHandle
protected WorkerHandle createWorkerHandle(RemoteProcessingRequest request, QueryDispatcherConnection dispatcherConnection) - Specified by:
createWorkerHandle
in classPersistentQueryHandleBase
-