Class LinkManager


  • public class LinkManager
    extends Object
    Service that manages all the data links

    Compared to the old DataLinkInitializer this one:

    • is the endpoint for the /links API calls
    • takes care for the commanding links to subscribe/unsubscribe them from the streams whenever they are enabled/disabled
    • TODO: can set exclusive flags - i.e. only one link from a group can be enabled at a time
    The configuration of this service is done in the "dataLinks" sections of the yamcs.<instance-name>.yaml file.
    • Method Detail

      • startLinks

        public void startLinks()
      • stopLinks

        public void stopLinks()
      • addLinkListener

        public boolean addLinkListener​(LinkListener l)
        Adds a listener that is to be notified when any processor, or any client is updated. Calling this multiple times has no extra effects. Either you listen, or you don't.
      • enableLink

        public void enableLink​(String linkName)
      • disableLink

        public void disableLink​(String linkName)
      • resetCounters

        public void resetCounters​(String linkName)
      • removeLinkListener

        public boolean removeLinkListener​(LinkListener l)
      • getLinkInfo

        public List<org.yamcs.protobuf.LinkInfo> getLinkInfo()
      • getLinkInfo

        public org.yamcs.protobuf.LinkInfo getLinkInfo​(String linkName)
      • getLink

        public Link getLink​(String linkName)
        Return the link by the given name or null if there is no such link.
        Parameters:
        linkName -
        Returns: