Class LinkManager

java.lang.Object
org.yamcs.management.LinkManager

public class LinkManager extends Object
Service that manages all the data links:
  • is endpoint for the /links API calls
  • for the commanding links it will only send commands if the link is enabled. If no commanding link is enabled, a negative Sent ACK will be produced.
  • 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.
  • Constructor Details

  • Method Details

    • configureDataLink

      public void configureDataLink(Link link, YConfiguration linkArgs)
      Connects the links to streams

      Updates the mappings which are provided via API

      Can be called dynamically for example when an aggregate link updates its sub-links

    • startLinks

      public void startLinks()
    • stopLinks

      public void stopLinks()
    • notifyChanged

      public void notifyChanged(Link link)
    • getLinkWithInfo

      public Optional<LinkManager.LinkWithInfo> getLinkWithInfo(String linkName)
    • 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

      @Deprecated public List<LinkInfo> getLinkInfo()
      Deprecated.
      Use getLinks() instead.
    • getLinkInfo

      @Deprecated public LinkInfo getLinkInfo(String linkName)
      Deprecated.
      Use getLink(String) instead.
    • getLinks

      public List<Link> getLinks()
    • getLink

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