public class UdpParameterDataLink extends com.google.common.util.concurrent.AbstractExecutionThreadService implements ParameterDataLink
| Constructor and Description |
|---|
UdpParameterDataLink(String instance,
String name,
Map<String,Object> config)
Creates a new UDP 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
|
String |
getLinkStatus()
Returns one of "OK" or "UNAVAIL".
|
Pvalue.ParameterData |
getNextData()
Called to retrieve the next packet.
|
boolean |
isDisabled() |
void |
run() |
void |
setParameterSink(ParameterSink ppListener) |
void |
startUp() |
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, shutDown, startAsync, state, stopAsync, toString, triggerShutdownpublic UdpParameterDataLink(String instance, String name, Map<String,Object> config) throws ConfigurationException
instance - name - config - ConfigurationException - if port is not defined in the configpublic void startUp()
throws IOException
startUp in class com.google.common.util.concurrent.AbstractExecutionThreadServiceIOExceptionpublic void run()
run in class com.google.common.util.concurrent.AbstractExecutionThreadServicepublic Pvalue.ParameterData getNextData()
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 Linkpublic void setParameterSink(ParameterSink ppListener)
setParameterSink in interface ParameterDataLinkCopyright © 2017 Space Applications Services. All rights reserved.