Package org.yamcs.commanding
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.AbstractServiceResponsible for parsing and tc packet composition.
-
-
Constructor Summary
Constructors Constructor Description CommandingManager(Processor proc)Keeps a reference to the channel and creates the queue manager
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreparedCommandbuildCommand(MetaCommand mc, List<ArgumentAssignment> argAssignmentList, String origin, int seq, User user)pc is a command whose source is included. parse the source populate the binary part and the definition.protected voiddoStart()protected voiddoStop()CommandQueueManagergetCommandQueueManager()ProcessorgetProcessor()CommandQueuesendCommand(User user, PreparedCommand pc)voidsetCommandAttribute(org.yamcs.protobuf.Commanding.CommandId commandId, org.yamcs.protobuf.Commanding.CommandHistoryAttribute attribute)
-
-
-
Constructor Detail
-
CommandingManager
public CommandingManager(Processor proc) throws ValidationException
Keeps a reference to the channel and creates the queue manager- Parameters:
proc-- Throws:
ValidationException
-
-
Method Detail
-
getCommandQueueManager
public CommandQueueManager getCommandQueueManager()
-
buildCommand
public PreparedCommand buildCommand(MetaCommand mc, List<ArgumentAssignment> argAssignmentList, String origin, int seq, User user) throws ErrorInCommand, YamcsException
pc is a command whose source is included. parse the source populate the binary part and the definition.- Throws:
ErrorInCommandYamcsException
-
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()
-
doStart
protected void doStart()
- Specified by:
doStartin classcom.google.common.util.concurrent.AbstractService
-
doStop
protected void doStop()
- Specified by:
doStopin classcom.google.common.util.concurrent.AbstractService
-
-