Package org.yamcs.tctm.ccsds
Class VcTmPacketHandler
java.lang.Object
org.yamcs.tctm.ccsds.VcTmPacketHandler
- All Implemented Interfaces:
VcDownlinkHandler
,Link
,TmPacketDataLink
Handles packets from one VC
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.yamcs.tctm.Link
Link.Status
-
Constructor Summary
ConstructorDescriptionVcTmPacketHandler
(String yamcsInstance, String name, VcDownlinkManagedParameters vmp) -
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
Disable any data I/O through this link.void
enable()
Reenable the data transit if disabled by the disable() method.long
long
Returns a short detail status (one-line)Returns the current link status.getName()
Return the name of the linkIf this link is a sublink of an aggregated link, get the parent link.void
handle
(DownlinkTransferFrame frame) boolean
return true if the link has been disabled by the user.void
void
setParent
(AggregatedDataLink parent) Set the parent link if this is a sublink of an aggregated link.void
sets the tm sink that should get all the tm packetsMethods 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
getDefaultSpec, getExtraInfo, getSpec, init, isEffectivelyDisabled, setupSystemParameters
Methods inherited from interface org.yamcs.tctm.TmPacketDataLink
isTmPacketDataLinkImplemented
-
Constructor Details
-
VcTmPacketHandler
-
-
Method Details
-
handle
- Specified by:
handle
in interfaceVcDownlinkHandler
-
getLinkStatus
Description copied from interface:Link
Returns the current link status.- Specified by:
getLinkStatus
in interfaceLink
-
getDetailedStatus
Description copied from interface:Link
Returns a short detail status (one-line)- Specified by:
getDetailedStatus
in interfaceLink
-
enable
public void enable()Description copied from interface:Link
Reenable the data transit if disabled by the disable() method. -
disable
public void disable()Description copied from interface:Link
Disable 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()Description copied from interface:Link
return true if the link has been disabled by the user.See also
Link.isEffectivelyDisabled()
- Specified by:
isDisabled
in interfaceLink
-
getDataInCount
public long getDataInCount()- Specified by:
getDataInCount
in interfaceLink
-
getDataOutCount
public long getDataOutCount()- Specified by:
getDataOutCount
in interfaceLink
-
resetCounters
public void resetCounters()- Specified by:
resetCounters
in interfaceLink
-
setTmSink
Description copied from interface:TmPacketDataLink
sets the tm sink that should get all the tm packets- Specified by:
setTmSink
in interfaceTmPacketDataLink
-
getConfig
-
getName
Description copied from interface:Link
Return the name of the link -
getParent
Description copied from interface:Link
If this link is a sublink of an aggregated link, get the parent link. -
setParent
Description copied from interface:Link
Set the parent link if this is a sublink of an aggregated link.
-