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

@TestUseOnly public class DisconnectClientsRemoteQuery extends ContextAwareRemoteQuery<Integer>
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 Details

    • DisconnectClientsRemoteQuery

      public DisconnectClientsRemoteQuery()
  • Method Details

    • execute

      public Integer execute(Database database)
      Description copied from interface: RemoteQuery
      Execute a query on a remote host.
      Parameters:
      database - database to use for execution.
      Returns:
      result of the query.