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.StatusNested 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
FieldsFields inherited from class org.yamcs.tctm.AbstractLink
config, dataInCount, dataOutCount, disabled, eventProducer, LINK_NAMESPACE, linkName, log, timeService, yamcsInstance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcollectSystemParameters(long time, List<ParameterValue> list) adds system parameters link status and data in/out to the list.longlongvoidvoidsetParameterSink(ParameterSink parameterSink) voidsetupSystemParameters(SystemParametersService sysParamService) Called by the LinkManager before startup if theSystemParametersServiceservice is enabled, to setup necessary things for later parameter collection.protected voidupdateParameters(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, setParentMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.yamcs.tctm.Link
disable, enable, getConfig, getDefaultSpec, getDetailedStatus, getExtraInfo, getLinkStatus, getName, getParent, getSpec, init, isDisabled, isEffectivelyDisabled, setParentMethods inherited from interface org.yamcs.tctm.ParameterDataLink
getPpStreamName, isParameterDataLinkImplementedMethods 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:LinkCalled by the LinkManager before startup if theSystemParametersServiceservice is enabled, to setup necessary things for later parameter collection.The method is called only on the links that implement the
SystemParametersProducerinterface; they are also registered with theSystemParametersServiceto be called regularly after the start.- Specified by:
setupSystemParametersin interfaceLink- Overrides:
setupSystemParametersin classAbstractLink
-
collectSystemParameters
Description copied from class:AbstractLinkadds 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:
collectSystemParametersin classAbstractLink
-
getDataInCount
public long getDataInCount()- Specified by:
getDataInCountin interfaceLink- Overrides:
getDataInCountin classAbstractLink
-
getDataOutCount
public long getDataOutCount()- Specified by:
getDataOutCountin interfaceLink- Overrides:
getDataOutCountin classAbstractLink
-
resetCounters
public void resetCounters()- Specified by:
resetCountersin interfaceLink- Overrides:
resetCountersin classAbstractLink
-
setParameterSink
- Specified by:
setParameterSinkin interfaceParameterDataLink
-