/**
 * Copyright 2008 The Apache Software Foundation
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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 net.sf.katta.master;

import net.sf.katta.zk.ZkPathes;

public interface IPaths {

  /**
   * @deprecated see {@link ZkPathes}
   */
  public static final String ROOT_PATH = "/katta";

  /**
   * @deprecated see {@link ZkPathes}
   */
  public static final String MASTER = ROOT_PATH + "/master";

  /**
   * @deprecated see {@link ZkPathes}
   */
  public static final String NODES = ROOT_PATH + "/nodes";

  /**
   * @deprecated see {@link ZkPathes}
   */
  public static final String INDEXES = ROOT_PATH + "/indexes";

  /**
   * @deprecated see {@link ZkPathes}
   */
  public static final String NODE_TO_SHARD = ROOT_PATH + "/node-to-shard";

  /**
   * @deprecated see {@link ZkPathes}
   */
  public static final String SHARD_TO_NODE = ROOT_PATH + "/shard-to-node";

}

@@ -1038,16 +1038,26 @@
 H = 
-%22/katta%22
+ZkPathes.ROOT_PATH
 ;%0A%0A 
@@ -1147,29 +1147,23 @@
 R = 
-ROOT_PATH + %22/master%22
+ZkPathes.MASTER
 ;%0A%0A 
@@ -1252,28 +1252,22 @@
 S = 
-ROOT_PATH + %22/nodes%22
+ZkPathes.NODES
 ;%0A%0A 
@@ -1358,30 +1358,24 @@
 S = 
-ROOT_PATH + %22/indexes%22
+ZkPathes.INDEXES
 ;%0A%0A 
@@ -1472,36 +1472,30 @@
 D = 
-ROOT_PATH + %22/node-to-shard%22
+ZkPathes.NODE_TO_SHARD
 ;%0A%0A 
@@ -1592,36 +1592,30 @@
 E = 
-ROOT_PATH + %22/shard-to-node%22
+ZkPathes.SHARD_TO_NODE
 ;%0A%0A%7D

use constants from ZkPathes