Class DisconnectClientsRemoteQuery
java.lang.Object
com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery<Integer>
com.illumon.iris.controller.utils.DisconnectClientsRemoteQuery
- All Implemented Interfaces:
RemoteQuery<Integer>
,Serializable
Disconnect all non-primary clients. This results in injecting errors on those clients.
This is only intended for controlled testing. Do not use this class in production.
Note it is very likely that you will end up disconnecting the connection that you would have received results on and thus get an error instead of a return.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery
getClient, getLog, getRemoteQueryProcessor, getUserContext, initializeContext, initializeContext, toString
-
Constructor Details
-
DisconnectClientsRemoteQuery
public DisconnectClientsRemoteQuery()
-
-
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.
-