Package fr.enedis.chutney.agent.domain
Interface AgentClient
public interface AgentClient
Used to communicate from the current local agent to a remote one.
-
Method Summary
Modifier and TypeMethodDescriptionexplore(String localName, NamedHostAndPort agentInfo, NetworkConfiguration networkConfiguration) voidwrapUp(NamedHostAndPort agentInfo, NetworkDescription networkDescription) Propagate finalNetworkDescriptionto agents discovered duringConfigurationState.EXPLORINGphase.
-
Method Details
-
explore
ExploreResult explore(String localName, NamedHostAndPort agentInfo, NetworkConfiguration networkConfiguration) - Returns:
- empty if remote agent is unreachable, otherwise, return the link from local to remote and all agentLinks known by the remote
-
wrapUp
Propagate finalNetworkDescriptionto agents discovered duringConfigurationState.EXPLORINGphase.
-