Package org.yamcs.tse
Class InstrumentController
- java.lang.Object
-
- com.google.common.util.concurrent.AbstractService
-
- org.yamcs.tse.InstrumentController
-
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
public class InstrumentController extends com.google.common.util.concurrent.AbstractServiceGuarantees instruments are used by only one thread at a time, and establishes/closes device connections as-needed.
-
-
Constructor Summary
Constructors Constructor Description InstrumentController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInstrument(InstrumentDriver instrument)protected voiddoStart()protected voiddoStop()InstrumentDrivergetInstrument(String name)List<InstrumentDriver>getInstruments()com.google.common.util.concurrent.ListenableFuture<List<String>>queueCommand(InstrumentDriver instrument, TseCommand metadata, String command, boolean expectResponse)-
Methods inherited from class com.google.common.util.concurrent.AbstractService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, doCancelStart, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toString
-
-
-
-
Method Detail
-
addInstrument
public void addInstrument(InstrumentDriver instrument)
-
doStart
protected void doStart()
- Specified by:
doStartin classcom.google.common.util.concurrent.AbstractService
-
queueCommand
public com.google.common.util.concurrent.ListenableFuture<List<String>> queueCommand(InstrumentDriver instrument, TseCommand metadata, String command, boolean expectResponse)
-
getInstrument
public InstrumentDriver getInstrument(String name)
-
getInstruments
public List<InstrumentDriver> getInstruments()
-
doStop
protected void doStop()
- Specified by:
doStopin classcom.google.common.util.concurrent.AbstractService
-
-