public class UdpTmDataLink extends com.google.common.util.concurrent.AbstractExecutionThreadService implements TmPacketDataLink
Link.Status| Constructor and Description |
|---|
UdpTmDataLink(String instance,
String name,
Map<String,Object> config)
Creates a new UDP TM Data Link
|
| Modifier and Type | Method and Description |
|---|---|
void |
disable()
Sets the disabled to true such that getNextPacket ignores the received datagrams
|
void |
enable()
Sets the disabled to false such that getNextPacket does not ignore the received datagrams
|
long |
getDataCount() |
String |
getDetailedStatus()
returns statistics with the number of datagram received and the number of invalid datagrams
|
Link.Status |
getLinkStatus()
Returns the current link status.
|
PacketWithTime |
getNextPacket()
Called to retrieve the next packet.
|
boolean |
isDisabled() |
void |
run() |
void |
setTmSink(TmSink tmSink)
sets the tm processor that should get all the tm packets
|
void |
startUp() |
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, shutDown, startAsync, state, stopAsync, toString, triggerShutdownpublic UdpTmDataLink(String instance, String name, Map<String,Object> config) throws ConfigurationException
ConfigurationException - if port is not defined in the configurationpublic void startUp()
throws IOException
startUp in class com.google.common.util.concurrent.AbstractExecutionThreadServiceIOExceptionpublic void setTmSink(TmSink tmSink)
TmPacketDataLinksetTmSink in interface TmPacketDataLinkpublic void run()
run in class com.google.common.util.concurrent.AbstractExecutionThreadServicepublic PacketWithTime getNextPacket()
public Link.Status getLinkStatus()
LinkgetLinkStatus in interface Linkpublic String getDetailedStatus()
getDetailedStatus in interface Linkpublic void disable()
public void enable()
public boolean isDisabled()
isDisabled in interface Linkpublic long getDataCount()
getDataCount in interface LinkCopyright © 2018 Space Applications Services. All rights reserved.