class NetworkTopologyImpl implements NetworkTopology {

  public boolean contains(Node node) {
    Preconditions.checkArgument(node != null, "node cannot be null");
    netlock.readLock().lock();
    try {
      Node parent = node.getParent();
      while (parent != null && parent != clusterTree) {
        parent = parent.getParent();
      }
      if (parent == clusterTree) {
        return true;
      }
    } finally {
      netlock.readLock().unlock();
    }
    return false;
  }

  public  NetworkTopologyImpl(ConfigurationSource conf);
  @VisibleForTesting public  NetworkTopologyImpl(NodeSchemaManager manager);

}