parameters: (self, mds_id, cb, in_parallel=True)
docstring: Call a callback for a single named MDS, or for all.
  
          Note that the parallelism here isn't for performance, it's to avoid being overly kind
          to the cluster by waiting a graceful ssh-latency of time between doing things, and to
          avoid being overly kind by executing them in a particular order.  However, some actions
          don't cope with being done in parallel, so it's optional (`in_parallel`)
  
          :param mds_id: MDS daemon name, or None
          :param cb: Callback taking single argument of MDS daemon name
          :param in_parallel: whether to invoke callbacks concurrently (else one after the other)
docstring_summary: Call a callback for a single named MDS, or for all.
docstring_tokens: Call a callback for a single named MDS or for all .
function: def _one_or_all(self, mds_id, cb, in_parallel=True):
          """
          Call a callback for a single named MDS, or for all.
  
          Note that the parallelism here isn't for performance, it's to avoid being overly kind
          to the cluster by waiting a graceful ssh-latency of time between doing things, and to
          avoid being overly kind by executing them in a particular order.  However, some actions
          don't cope with being done in parallel, so it's optional (`in_parallel`)
  
          :param mds_id: MDS daemon name, or None
          :param cb: Callback taking single argument of MDS daemon name
          :param in_parallel: whether to invoke callbacks concurrently (else one after the other)
          """
  
          if mds_id is None:
              if in_parallel:
                  with parallel() as p:
                      for mds_id in self.mds_ids:
                          p.spawn(cb, mds_id)
              else:
                  for mds_id in self.mds_ids:
                      cb(mds_id)
          else:
              cb(mds_id)
function_tokens: def _one_or_all ( self , mds_id , cb , in_parallel = True ) : if mds_id is None : if in_parallel : with parallel ( ) as p : for mds_id in self . mds_ids : p . spawn ( cb , mds_id ) else : for mds_id in self . mds_ids : cb ( mds_id ) else : cb ( mds_id )