Package org.yamcs.tctm.ccsds
Class VcTmPacketHandler
- java.lang.Object
-
- org.yamcs.tctm.ccsds.VcTmPacketHandler
-
- All Implemented Interfaces:
VcDownlinkHandler,Link,TmPacketDataLink
public class VcTmPacketHandler extends Object implements TmPacketDataLink, VcDownlinkHandler
Handles packets from one VC
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.yamcs.tctm.Link
Link.Status
-
-
Constructor Summary
Constructors Constructor Description VcTmPacketHandler(String yamcsInstance, String name, VcDownlinkManagedParameters vmp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisable()Disable any data I/O through this link.voidenable()Reenable the data transit if disabled by the disable() method.YConfigurationgetConfig()longgetDataInCount()longgetDataOutCount()StringgetDetailedStatus()Link.StatusgetLinkStatus()Returns the current link status.StringgetName()Return the name of the linkAggregatedDataLinkgetParent()If this link is a sublink of an aggregated link, get the parent link.voidhandle(DownlinkTransferFrame frame)booleanisDisabled()voidresetCounters()voidsetParent(AggregatedDataLink parent)Set the parent link if this is a sublink of an aggregated link.voidsetTmSink(TmSink tmSink)sets the tm processor that should get all the tm packets-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.yamcs.tctm.Link
getSpec, init, setupSystemParameters
-
-
-
-
Constructor Detail
-
VcTmPacketHandler
public VcTmPacketHandler(String yamcsInstance, String name, VcDownlinkManagedParameters vmp)
-
-
Method Detail
-
handle
public void handle(DownlinkTransferFrame frame)
- Specified by:
handlein interfaceVcDownlinkHandler
-
getLinkStatus
public Link.Status getLinkStatus()
Description copied from interface:LinkReturns the current link status.- Specified by:
getLinkStatusin interfaceLink
-
getDetailedStatus
public String getDetailedStatus()
- Specified by:
getDetailedStatusin interfaceLink- Returns:
- more detailed status information
-
enable
public void enable()
Description copied from interface:LinkReenable the data transit if disabled by the disable() method.
-
disable
public void disable()
Description copied from interface:LinkDisable any data I/O through this link. Any connection to a server is closed. Can be reenabled using the enable method. Note that this method can be called before starting the service if it's configured as such in the configuration file
-
isDisabled
public boolean isDisabled()
- Specified by:
isDisabledin interfaceLink
-
getDataInCount
public long getDataInCount()
- Specified by:
getDataInCountin interfaceLink
-
getDataOutCount
public long getDataOutCount()
- Specified by:
getDataOutCountin interfaceLink
-
resetCounters
public void resetCounters()
- Specified by:
resetCountersin interfaceLink
-
setTmSink
public void setTmSink(TmSink tmSink)
Description copied from interface:TmPacketDataLinksets the tm processor that should get all the tm packets- Specified by:
setTmSinkin interfaceTmPacketDataLink
-
getConfig
public YConfiguration getConfig()
-
getParent
public AggregatedDataLink getParent()
Description copied from interface:LinkIf this link is a sublink of an aggregated link, get the parent link.
-
setParent
public void setParent(AggregatedDataLink parent)
Description copied from interface:LinkSet the parent link if this is a sublink of an aggregated link.
-
-