Class TopologyView
java.lang.Object
org.apache.sling.distribution.journal.impl.discovery.TopologyView
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the map of min offset per publisher agentReturn the identifiers of subscriber agentsgetSubscribedAgentIds
(String pubAgentName) Return the identifiers of subscriber agents subscribed to the given publisher agent.getSubscribedAgents
(String pubAgentName) Return the identifiers of subscriber agents subscribed to the given publisher agent.getSubscriberAgentStates
(String subAgentId) Return the states for the given subscriber agent.int
hashCode()
offsets()
Return a stream of the offsets from all states in the view.toString()
-
Constructor Details
-
TopologyView
public TopologyView() -
TopologyView
-
-
Method Details
-
getSubscribedAgentIds
Return the identifiers of subscriber agents- Returns:
- a set of subscriber agent identifiers (subAgentId)
-
getSubscribedAgentIds
Return the identifiers of subscriber agents subscribed to the given publisher agent.- Parameters:
pubAgentName
- the name of the publisher agent- Returns:
- a set of subscriber agent identifiers (subAgentId)
-
getSubscribedAgents
Return the identifiers of subscriber agents subscribed to the given publisher agent.- Parameters:
pubAgentName
- the name of the publisher agent- Returns:
- a set of subscriber agent identifiers (subAgentId)
-
getSubscriberAgentStates
Return the states for the given subscriber agent.- Parameters:
subAgentId
- the name of the subscriber agent to get the states for- Returns:
- states of that subscriber agent
-
getState
-
getMinOffsetByPubAgentName
Return the map of min offset per publisher agent- Returns:
- a map (pubAgentName x offset)
-
offsets
Return a stream of the offsets from all states in the view.- Returns:
- a stream of offsets
-
equals
-
hashCode
public int hashCode() -
toString
-