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

      • of

        public static CurrentOp of()
        Creates a new stage
        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.
allUsers - include allUsers if true