Class CurrentOp


  • public class CurrentOp
    extends Stage
    Returns a stream of documents containing information on active and/or dormant operations as well as inactive sessions that are holding locks as part of a transaction.
    • Constructor Detail

      • CurrentOp

        protected CurrentOp()
    • Method Detail

      • currentOp

        public static CurrentOp currentOp()
        Creates a new stage
        Returns:
        the new stage
        Since:
        2.2
      • of

        @Deprecated(forRemoval=true)
        public static CurrentOp of()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a new stage
        Returns:
        the new stage
      • allUsers

        public CurrentOp allUsers​(boolean allUsers)
      • If set to false, $currentOp will only report on operations/idle connections/idle cursors/idle sessions belonging to the user who ran the command.
      • If set to true, $currentOp will report operations belonging to all users.
Parameters:
allUsers - include allUsers if true
Returns:
this