Package org.acemq.rabbitmq.admin
Class FederationLinkInfo
java.lang.Object
org.acemq.rabbitmq.admin.FederationLinkInfo
A federation link: an upstream and a policy having actually met.
This is the only proof federation is working. An upstream can be defined and a policy can match and there can still be no link — because the upstream is unreachable, or its credentials are wrong, or the exchange it names does not exist over there. None of those produce an error anywhere a normal deployment would look.
So the useful check is not "is the upstream declared" but "is there a link, and is it
running". A link stuck in starting is retrying forever, moving nothing, and
reporting itself only here.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FederationLinkInfo
-
-
Method Details
-
upstream
- Returns:
- the upstream this link is to
-
vhost
-
type
- Returns:
exchangeorqueue: what is being federated
-
status
- Returns:
running,startingor an error state
-
error
- Returns:
- why the link is not running, when the broker said. Usually the answer to a question somebody has been asking for a while
-
isRunning
public boolean isRunning()- Returns:
- whether messages are actually crossing
-
toString
-