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
-
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
FieldsModifier and TypeFieldDescriptionprotected longprotected AtomicLongprotected MasterChannelFrameHandlerprotected RawFrameDecoderFields inherited from class org.yamcs.tctm.AbstractLink
config, disabled, eventProducer, linkName, log, timeService, yamcsInstance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongprotected voidhandleFrame(Instant ert, byte[] data, int offset, int length) sends a frame to the multiplexer, after decoding and derandomizing it (if necessary)voidinit(String instance, String name, YConfiguration config) Called at startup to initialize the link.voidMethods inherited from class org.yamcs.tctm.AbstractLink
collectSystemParameters, connectionStatus, disable, doDisable, doEnable, enable, getConfig, getCurrentTime, getDetailedStatus, getEventLoop, getLinkStatus, getName, getSystemParameters, isDisabled, isRunningAndEnabled, setupSystemParametersMethods 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, getDetailedStatus, getLinkStatus, getName, getParent, getSpec, isDisabled, isEffectivelyDisabled, setParent, setupSystemParametersMethods inherited from interface org.yamcs.parameter.SystemParametersProducer
getFrequency, getSystemParameters
-
Field Details
-
subLinks
-
frameHandler
-
frameCount
-
errFrameCount
protected long errFrameCount -
rawFrameDecoder
-
-
Constructor Details
-
AbstractTmFrameLink
public AbstractTmFrameLink()
-
-
Method Details
-
init
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
-
handleFrame
sends a frame to the multiplexer, after decoding and derandomizing it (if necessary)- Parameters:
ert- - earth reception timedata- - buffer containing frame dataoffset- - offset in the buffer where the frame data startslength- - length of the frame data
-
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
- Specified by:
getSubLinksin interfaceAggregatedDataLink
-