Package org.yamcs.management
Class LinkManager
java.lang.Object
org.yamcs.management.LinkManager
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
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds a listener that is to be notified when any processor, or any client is updated.void
configureDataLink
(Link link, YConfiguration linkArgs) Connects the links to streamsvoid
disableLink
(String linkName) void
enableLink
(String linkName) Return the link by the given name or null if there is no such link.Deprecated.getLinkInfo
(String linkName) Deprecated.getLinks()
getLinkWithInfo
(String linkName) void
notifyChanged
(Link link) boolean
void
resetCounters
(String linkName) void
void
-
Constructor Details
-
LinkManager
- Throws:
ValidationException
-
-
Method Details
-
configureDataLink
Connects the links to streamsUpdates 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
-
getLinkWithInfo
-
addLinkListener
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
-
disableLink
-
resetCounters
-
removeLinkListener
-
getLinkInfo
Deprecated.UsegetLinks()
instead. -
getLinkInfo
Deprecated.UsegetLink(String)
instead. -
getLinks
-
getLink
Return the link by the given name or null if there is no such link.
-