public class TcpTmDataLink extends AbstractTmDataLink
Link.Status| Modifier and Type | Field and Description |
|---|---|
protected boolean |
disabled |
protected String |
host |
protected org.slf4j.Logger |
log |
protected long |
packetcount |
protected int |
port |
protected TimeService |
timeService |
protected Socket |
tmSocket |
| Modifier | Constructor and Description |
|---|---|
protected |
TcpTmDataLink(String instance,
String name) |
|
TcpTmDataLink(String instance,
String name,
Map<String,Object> args) |
|
TcpTmDataLink(String instance,
String name,
String spec) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable()
Disable any data I/O through this link.
|
void |
enable()
Reenable the data transit if disabled by the disable() method.
|
long |
getDataCount() |
String |
getDetailedStatus() |
Link.Status |
getLinkStatus()
Returns the current link status.
|
PacketWithTime |
getNextPacket() |
Collection<ParameterValue> |
getSystemParameters()
return the next bunch of parameter values.
|
boolean |
isDisabled() |
protected void |
openSocket() |
void |
run() |
void |
setTmSink(TmSink tmSink)
sets the tm processor that should get all the tm packets
|
protected void |
setupSysVariables() |
void |
triggerShutdown() |
initPreprocessoraddListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, shutDown, startAsync, startUp, state, stopAsync, toStringprotected volatile long packetcount
protected Socket tmSocket
protected String host
protected int port
protected volatile boolean disabled
protected final org.slf4j.Logger log
protected final TimeService timeService
public TcpTmDataLink(String instance, String name, String spec) throws ConfigurationException
ConfigurationExceptionpublic TcpTmDataLink(String instance, String name, Map<String,Object> args) throws ConfigurationException
ConfigurationExceptionprotected void openSocket()
throws IOException
IOExceptionpublic void setTmSink(TmSink tmSink)
TmPacketDataLinksetTmSink in interface TmPacketDataLinksetTmSink in class AbstractTmDataLinkpublic void run()
run in class AbstractTmDataLinkpublic PacketWithTime getNextPacket()
public Link.Status getLinkStatus()
Linkpublic void triggerShutdown()
triggerShutdown in class com.google.common.util.concurrent.AbstractExecutionThreadServicepublic void disable()
Linkpublic void enable()
Linkpublic boolean isDisabled()
public String getDetailedStatus()
public long getDataCount()
protected void setupSysVariables()
public Collection<ParameterValue> getSystemParameters()
SystemParametersProducergetSystemParameters in interface SystemParametersProducergetSystemParameters in class AbstractTmDataLinkCopyright © 2018 Space Applications Services. All rights reserved.