Class UdpTmDataLink

    • Constructor Detail

      • UdpTmDataLink

        public UdpTmDataLink()
    • Method Detail

      • 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
      • getNextPacket

        public TmPacket getNextPacket()
        Called to retrieve the next packet. It blocks in readining on the multicast socket
        Returns:
        anything that looks as a valid packet, just the size is taken into account to decide if it's valid or not
      • getDetailedStatus

        public String getDetailedStatus()
        returns statistics with the number of datagram received and the number of invalid datagrams
        Specified by:
        getDetailedStatus in interface Link
        Overrides:
        getDetailedStatus in class AbstractLink
        Returns:
        more detailed status information
      • doDisable

        public void doDisable()
        Sets the disabled to true such that getNextPacket ignores the received datagrams
        Overrides:
        doDisable in class AbstractLink
      • 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