Class ExploreAgentsService
- java.lang.Object
-
- com.chutneytesting.agent.domain.explore.ExploreAgentsService
-
public class ExploreAgentsService extends Object
Service to explore agents from the current one, given aNetworkConfiguration.
Exploration performs two tasks in once :- propagate a
NetworkConfigurationrecursively to all reachable agents - aggregate discovered agentLinks between agents
- propagate a
-
-
Constructor Summary
Constructors Constructor Description ExploreAgentsService(Explorations explorations, AgentClient agentClient, ConnectionChecker connectionChecker, LocalServerIdentifier localServerIdentifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExploreResultexplore(NetworkConfiguration networkConfiguration)Propagate givenNetworkConfigurationrecursively to all reachable agents.voidwrapUp(NetworkDescription networkDescription)Propagate finalNetworkDescriptionrecursively to all reachable agents.
-
-
-
Constructor Detail
-
ExploreAgentsService
public ExploreAgentsService(Explorations explorations, AgentClient agentClient, ConnectionChecker connectionChecker, LocalServerIdentifier localServerIdentifier)
-
-
Method Detail
-
explore
public ExploreResult explore(NetworkConfiguration networkConfiguration)
Propagate givenNetworkConfigurationrecursively to all reachable agents.- Returns:
- agentLinks & targetLinks discovered during propagation of the given
NetworkConfigurationamong agents
-
wrapUp
public void wrapUp(NetworkDescription networkDescription)
Propagate finalNetworkDescriptionrecursively to all reachable agents.
-
-