THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
/** * Class for working with the cluster topology on the Meta Storage level. Only fully validated nodes are allowed to be present in such topology. */ public interface TopologyService { /** * This topology member. */ ClusterNode localMember(); /** * All topology members. */ Collection<ClusterNode> allMembers(); /** * Handlers for topology events (join, leave). */ void addEventHandler(TopologyEventHandler handler); /** * Returns a member by a network address */ @Nullable ClusterNode getByAddress(NetworkAddress addr); /** * Handlers for validating a joining node. */ void addValidationHandler(TopologyValidationHandler handler); } |
TopologyService
will depend on the MessagingService
(to respond and listen to validation requests) and on the MetaStorageManager
(for interacting with the Meta Storage).
...