public class ReplayService extends com.google.common.util.concurrent.AbstractService implements ReplayListener, ArchiveTmPacketProvider, ParameterProvider, CommandHistoryProvider
| Constructor and Description |
|---|
ReplayService(String instance) |
ReplayService(String instance,
Map<String,Object> args) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProvide(Parameter p) |
boolean |
canProvide(Yamcs.NamedObjectId id)
Returns whether or not a given parameter can be provided by this provider
|
void |
changeSpeed(Yamcs.ReplaySpeed speed) |
void |
doStart() |
void |
doStop() |
Parameter |
getParameter(Yamcs.NamedObjectId id)
Returns the parameterDefinition corresponding to the parameter id
|
Yamcs.ReplayRequest |
getReplayRequest() |
Yamcs.ReplayStatus.ReplayState |
getReplayState() |
long |
getReplayTime() |
Yamcs.ReplaySpeed |
getSpeed() |
void |
init(Processor proc)
Called before the startup to pass on the processor and initialize whatever needed
|
void |
init(Processor proc,
Object spec) |
boolean |
isArchiveReplay()
true if this is a replay from archive
|
void |
newData(Yamcs.ProtoDataType type,
Object data) |
void |
pause() |
void |
resume() |
void |
seek(long time) |
void |
setCommandHistoryRequestManager(CommandHistoryRequestManager chrm) |
void |
setParameterListener(ParameterListener parameterRequestManager)
Send parameters to this listener.
|
void |
startProviding(Parameter paramDef)
Adds a new parameter to the list of parameters that have to provided
|
void |
startProvidingAll()
start providing all known parameters
|
void |
stateChanged(Yamcs.ReplayStatus rs) |
void |
stopProviding(Parameter paramDef)
Removes a parameter from the list of parameters that have to be provided
|
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toStringpublic ReplayService(String instance) throws ConfigurationException
ConfigurationExceptionpublic ReplayService(String instance, Map<String,Object> args) throws ConfigurationException
instance - args - - the argument passed in the processor.yamlConfigurationExceptionpublic void init(Processor proc)
ParameterProviderinit in interface ParameterProviderinit in interface ProcessorServicepublic void init(Processor proc, Object spec)
init in interface ProcessorServicespec - - passed by the user when creating the processor (for instance via the REST API)public boolean isArchiveReplay()
TmPacketProviderisArchiveReplay in interface TmPacketProviderpublic void newData(Yamcs.ProtoDataType type, Object data)
newData in interface ReplayListenerpublic void stateChanged(Yamcs.ReplayStatus rs)
stateChanged in interface ReplayListenerpublic void doStop()
doStop in class com.google.common.util.concurrent.AbstractServicepublic void doStart()
doStart in class com.google.common.util.concurrent.AbstractServicepublic void pause()
pause in interface ArchiveTmPacketProviderpublic void resume()
resume in interface ArchiveTmPacketProviderpublic void seek(long time)
seek in interface ArchiveTmPacketProviderpublic void setParameterListener(ParameterListener parameterRequestManager)
ParameterProvidersetParameterListener in interface ParameterProviderpublic void startProviding(Parameter paramDef)
ParameterProviderstartProviding in interface ParameterProviderpublic void startProvidingAll()
ParameterProviderstartProvidingAll in interface ParameterProviderpublic void stopProviding(Parameter paramDef)
ParameterProviderstopProviding in interface ParameterProviderpublic boolean canProvide(Yamcs.NamedObjectId id)
ParameterProvidercanProvide in interface ParameterProviderpublic boolean canProvide(Parameter p)
canProvide in interface ParameterProviderpublic Parameter getParameter(Yamcs.NamedObjectId id) throws InvalidIdentification
ParameterProvidergetParameter in interface ParameterProviderid - - id of the parameter that is returnedInvalidIdentificationpublic Yamcs.ReplaySpeed getSpeed()
getSpeed in interface ArchiveTmPacketProviderpublic Yamcs.ReplayRequest getReplayRequest()
getReplayRequest in interface ArchiveTmPacketProviderpublic Yamcs.ReplayStatus.ReplayState getReplayState()
getReplayState in interface ArchiveTmPacketProviderpublic long getReplayTime()
getReplayTime in interface ArchiveTmPacketProviderpublic void changeSpeed(Yamcs.ReplaySpeed speed)
changeSpeed in interface ArchiveTmPacketProviderpublic void setCommandHistoryRequestManager(CommandHistoryRequestManager chrm)
setCommandHistoryRequestManager in interface CommandHistoryProviderCopyright © 2018 Space Applications Services. All rights reserved.