/*
 * Copyright 2014-present Open Networking Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.atomix.cluster;

import io.atomix.utils.event.ListenerService;

import java.util.Set;

/**
 * Service for obtaining information about the individual nodes within
 * the controller cluster.
 */
public interface ClusterService extends ListenerService<ClusterEvent, ClusterEventListener> {

  /**
   * Returns the local controller node.
   *
   * @return local controller node
   */
  Node getLocalNode();

  /**
   * Returns the set of current cluster members.
   *
   * @return set of cluster members
   */
  Set<Node> getNodes();

  /**
   * Returns the specified controller node.
   *
   * @param nodeId controller node identifier
   * @return controller node
   */
  Node getNode(NodeId nodeId);

}

@@ -1191,32 +1191,258 @@
 ontroller node.%0A
+   * %3Cp%3E%0A   * This is a convenience method that wraps the given %7B@link String%7D in a %7B@link NodeId%7D. To avoid unnecessary%0A   * object allocation, repeated invocations of this method should instead use %7B@link #getNode(NodeId)%7D.%0A
    *%0A   * @param
@@ -1449,16 +1449,20 @@
  nodeId 
+the 
 controll
@@ -1493,16 +1493,20 @@
 @return 
+the 
 controll
@@ -1504,32 +1504,382 @@
  controller node
+ or %7B@code null%7D if no node with the given identifier exists%0A   */%0A  default Node getNode(String nodeId) %7B%0A    return getNode(NodeId.from(nodeId));%0A  %7D%0A%0A  /**%0A   * Returns the specified controller node.%0A   *%0A   * @param nodeId the controller node identifier%0A   * @return the controller node or %7B@code null%7D if no node with the given identifier exists
 %0A   */%0A  Node ge

Allow string NodeId arguments in ClusterService.