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:
InWorkerServiceSetupQuery
,ReplaySetupQuery
,RunAndDoneSetupQuery
public class ScriptSetupQuery extends ContextAwareRemoteQuery<PersistentQueryState>
Query to initialize a script based on the config and the
loader state
when the startup
began.- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static boolean
CREATE_PERFORMANCE_TABLES
static String
DEFAULT_SCRIPT_LANGUAGE
static boolean
GC_ON_COMPLETION
static String
PERFORMANCE_TOP_OFFENDERS_NAME
static String
PERSISTENT_QUERY_NAME_VARIABLE_NAME
static String
PERSISTENT_QUERY_OWNER_VARIABLE_NAME
static String
PERSISTENT_QUERY_SERIAL_NUMBER_VARIABLE_NAME
protected PersistentQueryConfigurationWrapper
wrappedConfig
-
Constructor Summary
Constructors Constructor Description ScriptSetupQuery(PersistentQueryConfiguration config, String scriptBody, PersistentQueryDbServerConfig dbServerConfig, ControllerConfigurationType configurationType, ScriptPathLoaderState scriptLoaderState)
-
Method Summary
Modifier and Type Method Description static Map<String,Table>
createDefaultTables(Database db)
Create the default tables for monitoring the update performance of queries.PersistentQueryState
execute(Database db)
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
-
Field Details
-
DEFAULT_SCRIPT_LANGUAGE
- See Also:
- Constant Field Values
-
PERSISTENT_QUERY_SERIAL_NUMBER_VARIABLE_NAME
- See Also:
- Constant Field Values
-
PERSISTENT_QUERY_OWNER_VARIABLE_NAME
- See Also:
- Constant Field Values
-
PERSISTENT_QUERY_NAME_VARIABLE_NAME
- See Also:
- Constant Field Values
-
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()
-