Package org.yamcs.commanding
Class CommandQueue
java.lang.Object
org.yamcs.commanding.CommandQueue
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ActiveCommand pc) void
addGroups
(Collection<String> groups) void
addTcPatterns
(Collection<Pattern> tcPatterns) void
addUsers
(Collection<String> users) void
clear
(boolean areSent) getcommand
(String id) getcommand
(Commanding.CommandId commandId) int
getName()
int
int
getState()
getUsers()
boolean
matches
(User user, MetaCommand metaCmd) boolean
remove
(ActiveCommand pc, boolean isSent) remove the command from the queue and return true if it has been removedvoid
setMinLevel
(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
-