Package org.yamcs.tctm.ccsds
Class AbstractTmFrameLink
- java.lang.Object
-
- com.google.common.util.concurrent.AbstractService
-
- org.yamcs.tctm.AbstractLink
-
- org.yamcs.tctm.ccsds.AbstractTmFrameLink
-
- All Implemented Interfaces:
com.google.common.util.concurrent.Service,SystemParametersProducer,AggregatedDataLink,Link
- Direct Known Subclasses:
UdpTmFrameLink
public abstract class AbstractTmFrameLink extends AbstractLink implements AggregatedDataLink
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.yamcs.tctm.Link
Link.Status
-
-
Field Summary
Fields Modifier and Type Field Description protected AtomicLongframeCountprotected MasterChannelFrameHandlerframeHandlerprotected List<Link>subLinks-
Fields inherited from class org.yamcs.tctm.AbstractLink
config, disabled, eventProducer, linkName, log, timeService, yamcsInstance
-
-
Constructor Summary
Constructors Constructor Description AbstractTmFrameLink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDataInCount()longgetDataOutCount()List<Link>getSubLinks()voidinit(String instance, String name, YConfiguration config)Called at startup to initialize the link.voidresetCounters()-
Methods inherited from class org.yamcs.tctm.AbstractLink
collectSystemParameters, connectionStatus, disable, doDisable, doEnable, enable, getConfig, getCurrentTime, getDetailedStatus, getEventLoop, getLinkStatus, getName, getSystemParameters, isDisabled, isRunningAndEnabled, setupSystemParameters
-
Methods inherited from class com.google.common.util.concurrent.AbstractService
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, 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, getDetailedStatus, getLinkStatus, getName, getParent, getSpec, isDisabled, setParent, setupSystemParameters
-
-
-
-
Field Detail
-
frameHandler
protected MasterChannelFrameHandler frameHandler
-
frameCount
protected AtomicLong frameCount
-
-
Method Detail
-
init
public void init(String instance, String name, YConfiguration config) throws ConfigurationException
Description copied from interface:LinkCalled at startup to initialize the link.The config corresponds to the map that is under the link definition in yamcs.instance.yaml.
- Specified by:
initin interfaceLink- Overrides:
initin classAbstractLinkconfig- - the configuration - cannot be null (but can be empty)- Throws:
ConfigurationException
-
getDataInCount
public long getDataInCount()
- Specified by:
getDataInCountin interfaceLink
-
getDataOutCount
public long getDataOutCount()
- Specified by:
getDataOutCountin interfaceLink
-
resetCounters
public void resetCounters()
- Specified by:
resetCountersin interfaceLink
-
getSubLinks
public List<Link> getSubLinks()
- Specified by:
getSubLinksin interfaceAggregatedDataLink
-
-