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 void
doStart()
protected void
doStop()
void
onTuple(Stream s, Tuple tuple)
void
setCommandHistoryRequestManager(CommandHistoryRequestManager chrm)
void
streamClosed(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:
setCommandHistoryRequestManager
in interfaceCommandHistoryProvider
-
onTuple
public void onTuple(Stream s, Tuple tuple)
- Specified by:
onTuple
in interfaceStreamSubscriber
-
streamClosed
public void streamClosed(Stream stream)
- Specified by:
streamClosed
in interfaceStreamSubscriber
-
doStart
protected void doStart()
- Specified by:
doStart
in classcom.google.common.util.concurrent.AbstractService
-
doStop
protected void doStop()
- Specified by:
doStop
in classcom.google.common.util.concurrent.AbstractService
-
-