Class UdpTmFrameLink

java.lang.Object
com.google.common.util.concurrent.AbstractService
All Implemented Interfaces:
com.google.common.util.concurrent.Service, Runnable, SystemParametersProducer, AggregatedDataLink, Link, LinkActionProvider

public class UdpTmFrameLink extends AbstractTmFrameLink implements Runnable
Receives telemetry fames via UDP. One UDP datagram = one TM frame.
  • Constructor Details

    • UdpTmFrameLink

      public UdpTmFrameLink()
  • Method Details

    • getSpec

      public Spec getSpec()
      Description copied from interface: Link
      Returns the valid configuration of the input args of this link.
      Specified by:
      getSpec in interface Link
      Returns:
      the argument specification, or null if the args should not be validated.
    • init

      public void init(String instance, String name, YConfiguration config) throws ConfigurationException
      Creates a new UDP Frame Data Link
      Specified by:
      init in interface Link
      Overrides:
      init in class AbstractTmFrameLink
      config - - the configuration - cannot be null (but can be empty)
      Throws:
      ConfigurationException - if port is not defined in the configuration
    • doStart

      public void doStart()
      Specified by:
      doStart in class com.google.common.util.concurrent.AbstractService
    • doStop

      public void doStop()
      Specified by:
      doStop in class com.google.common.util.concurrent.AbstractService
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • getDetailedStatus

      public String getDetailedStatus()
      Description copied from interface: Link
      Returns a short detail status (one-line)
      Specified by:
      getDetailedStatus in interface Link
      Overrides:
      getDetailedStatus in class AbstractLink
    • getExtraInfo

      public Map<String,Object> getExtraInfo()
      Description copied from interface: Link
      Returns structured information, specific to the link.
      Specified by:
      getExtraInfo in interface Link
    • resetCounters

      public void resetCounters()
      Specified by:
      resetCounters in interface Link
      Overrides:
      resetCounters in class AbstractLink
    • doDisable

      protected void doDisable()
      Overrides:
      doDisable in class AbstractLink
    • doEnable

      protected void doEnable() throws SocketException
      Overrides:
      doEnable in class AbstractLink
      Throws:
      SocketException
    • connectionStatus

      protected Link.Status connectionStatus()
      Description copied from class: AbstractLink
      In case the link should be connected (i.e. is running and enabled) this method is called to return the actual connection status
      Specified by:
      connectionStatus in class AbstractLink