Class ExploreAgentsService
java.lang.Object
fr.enedis.chutney.agent.domain.explore.ExploreAgentsService
Service to explore agents from the current one, given a
Exploration performs two things :
NetworkConfiguration.Exploration performs two things :
- propagate a
NetworkConfigurationrecursively to all reachable agents - aggregate discovered agentLinks between agents
-
Constructor Summary
ConstructorsConstructorDescriptionExploreAgentsService(Explorations explorations, AgentClient agentClient, ConnectionChecker connectionChecker, LocalServerIdentifier localServerIdentifier) -
Method Summary
Modifier and TypeMethodDescriptionexplore(NetworkConfiguration networkConfiguration) Propagate givenNetworkConfigurationrecursively to all reachable agents.voidwrapUp(NetworkDescription networkDescription) Propagate finalNetworkDescriptionrecursively to all reachable agents.
-
Constructor Details
-
ExploreAgentsService
public ExploreAgentsService(Explorations explorations, AgentClient agentClient, ConnectionChecker connectionChecker, LocalServerIdentifier localServerIdentifier)
-
-
Method Details
-
explore
Propagate givenNetworkConfigurationrecursively to all reachable agents.- Returns:
- agentLinks & targetLinks discovered during propagation of the given
NetworkConfigurationamong agents
-
wrapUp
Propagate finalNetworkDescriptionrecursively to all reachable agents.
-