public class FilePollingTmDataLink extends com.google.common.util.concurrent.AbstractExecutionThreadService implements TmPacketDataLink
| Constructor and Description |
|---|
FilePollingTmDataLink(String archiveInstance,
String name)
used when no spec is specified, the incomingDir is based on the property with the same name from the yamcs.yaml
|
FilePollingTmDataLink(String yamcsInstance,
String name,
String incomingDir) |
| 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() |
String |
getLinkStatus()
Returns one of "OK" or "UNAVAIL".
|
TmFileReader |
getTmFileReader(String fileName) |
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 FilePollingTmDataLink(String yamcsInstance, String name, String incomingDir)
public FilePollingTmDataLink(String archiveInstance, String name) throws ConfigurationException
archiveInstance - ConfigurationExceptionpublic void run()
run in class com.google.common.util.concurrent.AbstractExecutionThreadServicepublic TmFileReader getTmFileReader(String fileName) throws IOException
IOExceptionpublic String getDetailedStatus()
getDetailedStatus in interface Linkpublic void disable()
Linkpublic void enable()
Linkpublic boolean isDisabled()
isDisabled in interface Linkpublic String getLinkStatus()
LinkgetLinkStatus in interface Linkpublic void setTmSink(TmSink tmSink)
TmPacketDataLinksetTmSink in interface TmPacketDataLinkpublic long getDataCount()
getDataCount in interface LinkCopyright © 2017 Space Applications Services. All rights reserved.