public class FileTmPacketProvider extends com.google.common.util.concurrent.AbstractExecutionThreadService implements Runnable, TmPacketDataLink
Link.Status| Constructor and Description |
|---|
FileTmPacketProvider(String fileName,
String endActionStr,
long delayBetweenPackets)
Constructs a packet provider that sends packets from a file at the indicated speed.
|
FileTmPacketProvider(String instance,
String name,
String fileName) |
| 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() |
long |
getDelayBetweenPackets() |
String |
getDetailedStatus() |
Link.Status |
getLinkStatus()
Returns the current link status.
|
boolean |
isDisabled() |
void |
run() |
void |
setDelayBetweenPackets(int delayBetweenPackets) |
void |
setTmSink(TmSink tmProcessor)
sets the tm processor that should get all the tm packets
|
void |
triggerShutdown() |
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, shutDown, startAsync, startUp, state, stopAsync, toStringpublic FileTmPacketProvider(String instance, String name, String fileName) throws IOException
IOExceptionpublic FileTmPacketProvider(String fileName, String endActionStr, long delayBetweenPackets) throws IOException
fileName - delayBetweenPackets - IOExceptionpublic void setTmSink(TmSink tmProcessor)
TmPacketDataLinksetTmSink in interface TmPacketDataLinkpublic void run()
public long getDelayBetweenPackets()
public void setDelayBetweenPackets(int delayBetweenPackets)
delayBetweenPackets - the delayBetweenPakets to setpublic Link.Status getLinkStatus()
LinkgetLinkStatus in interface Linkpublic void triggerShutdown()
triggerShutdown in class com.google.common.util.concurrent.AbstractExecutionThreadServicepublic void disable()
Linkpublic void enable()
Linkpublic boolean isDisabled()
isDisabled in interface Linkpublic String getDetailedStatus()
getDetailedStatus in interface Linkpublic long getDataCount()
getDataCount in interface LinkCopyright © 2018 Space Applications Services. All rights reserved.