Class CommandingManager

java.lang.Object
com.google.common.util.concurrent.AbstractService
org.yamcs.commanding.CommandingManager
All Implemented Interfaces:
com.google.common.util.concurrent.Service

public class CommandingManager extends com.google.common.util.concurrent.AbstractService
Responsible for parsing and tc packet composition.

Also keeps track of the pending active commands

  • Constructor Details

  • Method Details

    • getCommandQueueManager

      public CommandQueueManager getCommandQueueManager()
    • buildCommand

      public PreparedCommand buildCommand(MetaCommand mc, Map<String,Object> argAssignmentList, String origin, int seq, User user) throws ErrorInCommand, YamcsException
      Creates a new PreparedCommand where the binary is created by processing the provided arguments and matching it against the MDB definition.
      Throws:
      ErrorInCommand
      YamcsException
    • buildRawCommand

      public PreparedCommand buildRawCommand(MetaCommand mc, byte[] binary, String origin, int seq, User user)
      Creates a new PreparedCommand with raw provided binary.
    • sendCommand

      public CommandQueue sendCommand(User user, PreparedCommand pc)
      Returns:
      the queue that the command was sent to
    • setCommandAttribute

      public void setCommandAttribute(org.yamcs.protobuf.Commanding.CommandId commandId, org.yamcs.protobuf.Commanding.CommandHistoryAttribute attribute)
    • getProcessor

      public Processor getProcessor()
    • getMetaCommandProcessor

      public MetaCommandProcessor getMetaCommandProcessor()
    • doStart

      protected void doStart()
      Specified by:
      doStart in class com.google.common.util.concurrent.AbstractService
    • doStop

      protected void doStop()
      Specified by:
      doStop in class com.google.common.util.concurrent.AbstractService
    • releaseCommand

      public void releaseCommand(ActiveCommand activeCommand)
    • failedCommand

      public void failedCommand(ActiveCommand activeCommand)
    • verificatonFinished

      public void verificatonFinished(ActiveCommand activeCommand)