public class MulticastTmDataLink extends com.google.common.util.concurrent.AbstractExecutionThreadService implements TmPacketDataLink
| Constructor and Description |
|---|
MulticastTmDataLink(String group,
int port)
Creates a simple multicast receiver listening to the given group and port
|
MulticastTmDataLink(String instance,
String name,
String spec)
Creates a
|
| 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
|
String |
getLinkStatus()
Returns one of "OK" or "UNAVAIL".
|
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
|
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, shutDown, startAsync, startUp, state, stopAsync, toString, triggerShutdownpublic MulticastTmDataLink(String instance, String name, String spec) throws ConfigurationException
spec - ConfigurationException - if tmGroup or tmPort are not defined in the configuration filespublic MulticastTmDataLink(String group, int port) throws IOException
group - port - IOException - if there was an exception opening the port (happends when there is alredy another process bound
to that port and the option REUSE_ADDR is not set on its socket)public void setTmSink(TmSink tmSink)
TmPacketDataLinksetTmSink in interface TmPacketDataLinkpublic void run()
run in class com.google.common.util.concurrent.AbstractExecutionThreadServicepublic PacketWithTime getNextPacket()
public String 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 © 2017 Space Applications Services. All rights reserved.