public class StreamParameterProvider extends com.google.common.util.concurrent.AbstractService implements StreamSubscriber, ParameterProvider
| Constructor and Description |
|---|
StreamParameterProvider(String archiveInstance,
Map<String,String> config) |
| 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
|
protected void |
doStart() |
protected void |
doStop() |
Parameter |
getParameter(Yamcs.NamedObjectId id)
Returns the parameterDefinition corresponding to the parameter id
|
void |
init(Processor processor)
Called before the startup to pass on the processor and initialize whatever needed
|
void |
onTuple(Stream s,
Tuple tuple)
Make sure all parameters are defined in the XtceDB, otherwise the PRM will choke
|
void |
setParameterListener(ParameterRequestManager paraListener)
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 |
stopProviding(Parameter paramDef)
Removes a parameter from the list of parameters that have to be provided
|
void |
streamClosed(Stream s) |
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toStringpublic StreamParameterProvider(String archiveInstance, Map<String,String> config) throws ConfigurationException
ConfigurationExceptionprotected void doStart()
doStart in class com.google.common.util.concurrent.AbstractServiceprotected void doStop()
doStop in class com.google.common.util.concurrent.AbstractServicepublic void onTuple(Stream s, Tuple tuple)
onTuple in interface StreamSubscriberpublic void streamClosed(Stream s)
streamClosed in interface StreamSubscriberpublic void setParameterListener(ParameterRequestManager paraListener)
ParameterProvidersetParameterListener 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 void startProviding(Parameter paramDef)
ParameterProviderstartProviding in interface ParameterProviderpublic void startProvidingAll()
ParameterProviderstartProvidingAll in interface ParameterProviderpublic void init(Processor processor)
ParameterProviderinit in interface ParameterProviderCopyright © 2018 Space Applications Services. All rights reserved.