Package com.illumon.iris.controller
Class ConsoleAttachmentQuery
java.lang.Object
com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery<ConsoleAttachmentQuery.ConsoleAttachmentResult>
com.illumon.iris.controller.ConsoleAttachmentQuery
- All Implemented Interfaces:
RemoteQuery<ConsoleAttachmentQuery.ConsoleAttachmentResult>
,Serializable
public class ConsoleAttachmentQuery extends ContextAwareRemoteQuery<ConsoleAttachmentQuery.ConsoleAttachmentResult>
Creates a new script session.
The two use cases are creating a new script session for an interactive console; and for creating a new session
to debug 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.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConsoleAttachmentQuery.ConsoleAttachmentResult
The result of a console attachment query. -
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 ConsoleAttachmentQuery.ConsoleAttachmentResult
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.
-