Package org.yamcs.tctm
Class AbstractParameterDataLink
java.lang.Object
com.google.common.util.concurrent.AbstractService
org.yamcs.tctm.AbstractLink
org.yamcs.tctm.AbstractParameterDataLink
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
,SystemParametersProducer
,Link
,LinkActionProvider
,ParameterDataLink
- Direct Known Subclasses:
UdpParameterDataLink
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.yamcs.tctm.Link
Link.Status
Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
-
Field Summary
Fields inherited from class org.yamcs.tctm.AbstractLink
config, dataInCount, dataOutCount, disabled, eventProducer, LINK_NAMESPACE, linkName, log, timeService, yamcsInstance
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
collectSystemParameters
(long time, List<ParameterValue> list) adds system parameters link status and data in/out to the list.long
long
void
void
setParameterSink
(ParameterSink parameterSink) void
setupSystemParameters
(SystemParametersService sysParamService) Called by the LinkManager before startup if theSystemParametersService
service is enabled, to setup necessary things for later parameter collection.protected void
updateParameters
(long gentime, String group, int seqNum, Collection<ParameterValue> params) Methods inherited from class org.yamcs.tctm.AbstractLink
addAction, connectionStatus, dataIn, dataOut, disable, doDisable, doEnable, enable, getAction, getActions, getConfig, getCurrentTime, getDetailedStatus, getEventLoop, getLinkStatus, getName, getParent, getSystemParameters, getYamcsInstance, init, isDisabled, isRunningAndEnabled, setParent
Methods inherited from class com.google.common.util.concurrent.AbstractService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, doCancelStart, doStart, doStop, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.yamcs.tctm.Link
disable, enable, getConfig, getDefaultSpec, getDetailedStatus, getExtraInfo, getLinkStatus, getName, getParent, getSpec, init, isDisabled, isEffectivelyDisabled, setParent
Methods inherited from interface org.yamcs.tctm.ParameterDataLink
isParameterDataLinkImplemented
Methods inherited from interface org.yamcs.parameter.SystemParametersProducer
getFrequency
-
Field Details
-
parameterCount
-
-
Constructor Details
-
AbstractParameterDataLink
public AbstractParameterDataLink()
-
-
Method Details
-
updateParameters
protected void updateParameters(long gentime, String group, int seqNum, Collection<ParameterValue> params) -
setupSystemParameters
Description copied from interface:Link
Called by the LinkManager before startup if theSystemParametersService
service is enabled, to setup necessary things for later parameter collection.The method is called only on the links that implement the
SystemParametersProducer
interface; they are also registered with theSystemParametersService
to be called regularly after the start.- Specified by:
setupSystemParameters
in interfaceLink
- Overrides:
setupSystemParameters
in classAbstractLink
-
collectSystemParameters
Description copied from class:AbstractLink
adds system parameters link status and data in/out to the list.The inheriting classes should call super.collectSystemParameters and then add their own parameters to the list
- Overrides:
collectSystemParameters
in classAbstractLink
-
getDataInCount
public long getDataInCount()- Specified by:
getDataInCount
in interfaceLink
- Overrides:
getDataInCount
in classAbstractLink
-
getDataOutCount
public long getDataOutCount()- Specified by:
getDataOutCount
in interfaceLink
- Overrides:
getDataOutCount
in classAbstractLink
-
resetCounters
public void resetCounters()- Specified by:
resetCounters
in interfaceLink
- Overrides:
resetCounters
in classAbstractLink
-
setParameterSink
- Specified by:
setParameterSink
in interfaceParameterDataLink
-