/*
 * Druid - a distributed column store.
 * Copyright (C) 2014  Metamarkets Group Inc.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

package io.druid.curator.discovery;

public class CuratorServiceUtils
{
  public static String makeCanonicalServiceName(String serviceName) {
    return serviceName.replaceAll("/", ":");
  }
}

@@ -882,22 +882,786 @@
 ils%0A%7B%0A  
-public
+/**%0A   * Replacing '/' with ':' in service names makes it easier to provide an HTTP interface using%0A   * %3Ca href=%22http://curator.apache.org/curator-x-discovery-server/%22%3Ecurator-x-discovery-server%3C/a%3E%0A   *%0A   * This method is marked protected because it should never be used outside of the io.druid.curator.discovery%0A   * packakge. If you are tempted to use this method anywhere else you are most likely doing something wrong.%0A   * Mapping the actual service name to the name used within curator should be left to %7B@link CuratorServiceAnnouncer%7D%0A   * and %7B@link ServerDiscoveryFactory%7D%0A   *%0A   * @see io.druid.curator.discovery.CuratorServiceAnnouncer%0A   * @see io.druid.curator.discovery.ServerDiscoveryFactory%0A   *%0A   * @param serviceName%0A   * @return%0A   */%0A  protected
  static 

make method protected to prevent accidental usage