Package com.illumon.iris.controller
Class ScriptSetupQuery
java.lang.Object
com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery<PersistentQueryState>
com.illumon.iris.controller.ScriptSetupQuery
- All Implemented Interfaces:
RemoteQuery<PersistentQueryState>
,Serializable
- Direct Known Subclasses:
ReplaySetupQuery
,RunAndDoneSetupQuery
Query to initialize a script based on the config and the
loader state
when the startup
began.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
static final String
static final boolean
static final String
protected final PersistentQueryConfigurationWrapper
-
Constructor Summary
ConstructorsConstructorDescriptionScriptSetupQuery
(PersistentQueryConfiguration config, String scriptBody, PersistentQueryDbServerConfig dbServerConfig, ControllerConfigurationType configurationType, ScriptPathLoaderState scriptLoaderState) -
Method Summary
Modifier and TypeMethodDescriptionCreate the default tables for monitoring the update performance of queries.Execute a query on a remote host.boolean
shouldGc()
Methods inherited from class com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery
getClient, getLog, getRemoteQueryProcessor, getUserContext, initializeContext, initializeContext, toString
-
Field Details
-
DEFAULT_SCRIPT_LANGUAGE
- See Also:
-
CREATE_PERFORMANCE_TABLES
public static final boolean CREATE_PERFORMANCE_TABLES -
PERFORMANCE_TOP_OFFENDERS_NAME
-
GC_ON_COMPLETION
public static final boolean GC_ON_COMPLETION -
wrappedConfig
-
-
Constructor Details
-
ScriptSetupQuery
public ScriptSetupQuery(PersistentQueryConfiguration config, String scriptBody, PersistentQueryDbServerConfig dbServerConfig, ControllerConfigurationType configurationType, ScriptPathLoaderState scriptLoaderState)
-
-
Method Details
-
execute
Description copied from interface:RemoteQuery
Execute a query on a remote host.- Parameters:
db
- database to use for execution.- Returns:
- result of the query.
-
createDefaultTables
Create the default tables for monitoring the update performance of queries.- Parameters:
db
- the database object to use for retrieving the tables- Returns:
- a map from table variable names to the corresponding performance table
-
shouldGc
public boolean shouldGc()
-