Package org.yamcs.cmdhistory
Class StreamCommandHistoryProvider
- java.lang.Object
-
- com.google.common.util.concurrent.AbstractService
-
- org.yamcs.cmdhistory.StreamCommandHistoryProvider
-
- All Implemented Interfaces:
com.google.common.util.concurrent.Service,CommandHistoryProvider,StreamSubscriber
public class StreamCommandHistoryProvider extends com.google.common.util.concurrent.AbstractService implements CommandHistoryProvider, StreamSubscriber
provides command history from streams
-
-
Constructor Summary
Constructors Constructor Description StreamCommandHistoryProvider(String yamcsInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoStart()protected voiddoStop()voidonTuple(Stream s, Tuple tuple)voidsetCommandHistoryRequestManager(CommandHistoryRequestManager chrm)voidstreamClosed(Stream stream)-
Methods inherited from class com.google.common.util.concurrent.AbstractService
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toString
-
-
-
-
Constructor Detail
-
StreamCommandHistoryProvider
public StreamCommandHistoryProvider(String yamcsInstance)
-
-
Method Detail
-
setCommandHistoryRequestManager
public void setCommandHistoryRequestManager(CommandHistoryRequestManager chrm)
- Specified by:
setCommandHistoryRequestManagerin interfaceCommandHistoryProvider
-
onTuple
public void onTuple(Stream s, Tuple tuple)
- Specified by:
onTuplein interfaceStreamSubscriber
-
streamClosed
public void streamClosed(Stream stream)
- Specified by:
streamClosedin interfaceStreamSubscriber
-
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
-
-