Package org.yamcs.commanding
Class CommandQueue
java.lang.Object
org.yamcs.commanding.CommandQueue
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ActiveCommand pc) voidaddGroups(Collection<String> groups) voidaddTcPatterns(Collection<Pattern> tcPatterns) voidaddUsers(Collection<String> users) voidclear(boolean areSent) getcommand(String id) getcommand(Commanding.CommandId commandId) intgetName()intintgetState()getUsers()booleanmatches(User user, MetaCommand metaCmd) booleanremove(ActiveCommand pc, boolean isSent) remove the command from the queue and return true if it has been removedvoidsetMinLevel(Significance.Levels minLevel)
-
Method Details
-
getName
-
getUsers
-
getGroups
-
getTcPatterns
-
getMinLevel
-
setMinLevel
-
addUsers
-
addGroups
-
addTcPatterns
-
matches
-
getState
-
getProcessor
-
getCommandArray
-
getCommandCount
public int getCommandCount() -
add
-
remove
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
-
getcommand
-
getCommands
-