Class CommandQueue

java.lang.Object
org.yamcs.commanding.CommandQueue

public class CommandQueue extends Object
  • Method Details

    • getName

      public String getName()
    • getUsers

      public Set<String> getUsers()
    • getGroups

      public Set<String> getGroups()
    • getTcPatterns

      public Set<Pattern> getTcPatterns()
    • getMinLevel

      public org.yamcs.xtce.Significance.Levels getMinLevel()
    • setMinLevel

      public void setMinLevel(org.yamcs.xtce.Significance.Levels minLevel)
    • addUsers

      public void addUsers(Collection<String> users)
    • addGroups

      public void addGroups(Collection<String> groups)
    • addTcPatterns

      public void addTcPatterns(Collection<Pattern> tcPatterns)
    • matches

      public boolean matches(User user, org.yamcs.xtce.MetaCommand metaCmd)
    • getState

      public org.yamcs.protobuf.Commanding.QueueState getState()
    • getProcessor

      public Processor getProcessor()
    • getCommandArray

      public PreparedCommand[] getCommandArray()
    • getCommandCount

      public int getCommandCount()
    • add

      public void add(ActiveCommand pc)
    • remove

      public boolean remove(ActiveCommand pc, boolean isSent)
      remove the command from the queue and return true if it has been removed
      Parameters:
      pc -
      isSent - : true if the command has been sent, false if the command has been rejected
      Returns:
    • clear

      public void clear(boolean areSent)
    • getNbRejectedCommands

      public int getNbRejectedCommands()
    • getNbSentCommands

      public int getNbSentCommands()
    • getcommand

      public ActiveCommand getcommand(org.yamcs.protobuf.Commanding.CommandId commandId)
    • getcommand

      public ActiveCommand getcommand(String id)
    • getCommands

      public ConcurrentLinkedQueue<ActiveCommand> getCommands()