Package com.illumon.iris.controller
Class ConsoleAttachmentQuery
java.lang.Object
com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery<QueryAttachmentResults>
com.illumon.iris.controller.ConsoleAttachmentQuery
- All Implemented Interfaces:
RemoteQuery<QueryAttachmentResults>
,Serializable
public class ConsoleAttachmentQuery extends ContextAwareRemoteQuery<QueryAttachmentResults>
Creates a new script session.
The two use cases are creating a new script session for an interactive console; and for attaching a session to a
persistent query.
When attaching to an existing persistent query, the user executing the query must be an owner or admin of the query.
The variables in the persistent query's primary script session are copied into the new script session's binding
unless the session is "dynamic", at which point the single script session is shared across instances.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static boolean
ALLOW_ADMIN_CONSOLE_ATTACHMENT
-
Constructor Summary
Constructors Constructor Description ConsoleAttachmentQuery(SessionType sessionType)
-
Method Summary
Modifier and Type Method Description QueryAttachmentResults
execute(Database database)
Execute a query on a remote host.Methods inherited from class com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery
getClient, getLog, getRemoteQueryProcessor, getUserContext, initializeContext, initializeContext
-
Field Details
-
ALLOW_ADMIN_CONSOLE_ATTACHMENT
public static final boolean ALLOW_ADMIN_CONSOLE_ATTACHMENT
-
-
Constructor Details
-
Method Details
-
execute
Description copied from interface:RemoteQuery
Execute a query on a remote host.- Parameters:
database
- database to use for execution.- Returns:
- result of the query.
-