public class SystemParametersProvider extends com.google.common.util.concurrent.AbstractService implements StreamSubscriber, ParameterProvider
| Constructor and Description |
|---|
SystemParametersProvider(String yamcsInstance) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProvide(Parameter para) |
boolean |
canProvide(Yamcs.NamedObjectId paraId)
return true if parameter starts with "/YAMCS" or the namespace is null and the name starts with "/YAMCS"
|
protected void |
doStart() |
protected void |
doStop() |
Parameter |
getParameter(Yamcs.NamedObjectId paraId)
Returns the parameterDefinition corresponding to the parameter id
|
SystemParameter |
getSystemParameter(String fqname)
Get (and possibly create) system parameter.
|
void |
init(Processor yproc)
Called before the startup to pass on the processor and initialize whatever needed
|
void |
onTuple(Stream s,
Tuple tuple) |
void |
setParameterListener(ParameterRequestManager 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 |
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 SystemParametersProvider(String yamcsInstance) throws ConfigurationException
ConfigurationExceptionpublic void init(Processor yproc) throws ConfigurationException
ParameterProviderinit in interface ParameterProviderConfigurationExceptionpublic void startProviding(Parameter paramDef)
ParameterProviderstartProviding in interface ParameterProviderpublic void startProvidingAll()
ParameterProviderstartProvidingAll in interface ParameterProviderpublic void stopProviding(Parameter paramDef)
ParameterProviderstopProviding in interface ParameterProviderpublic void onTuple(Stream s, Tuple tuple)
onTuple in interface StreamSubscriberpublic void streamClosed(Stream s)
streamClosed in interface StreamSubscriberpublic boolean canProvide(Yamcs.NamedObjectId paraId)
canProvide in interface ParameterProviderpublic boolean canProvide(Parameter para)
canProvide in interface ParameterProviderpublic Parameter getParameter(Yamcs.NamedObjectId paraId) throws InvalidIdentification
ParameterProvidergetParameter in interface ParameterProviderparaId - - id of the parameter that is returnedInvalidIdentificationpublic SystemParameter getSystemParameter(String fqname)
fqname - - the fully qualified name of the parameter to be returnedpublic void setParameterListener(ParameterRequestManager parameterRequestManager)
ParameterProvidersetParameterListener in interface ParameterProviderprotected void doStart()
doStart in class com.google.common.util.concurrent.AbstractServiceprotected void doStop()
doStop in class com.google.common.util.concurrent.AbstractServiceCopyright © 2018 Space Applications Services. All rights reserved.