Package org.apache.hadoop.tools.rumen.datatypes

Examples of org.apache.hadoop.tools.rumen.datatypes.NodeName$NodeNameState


    return hostName;
  }

  // This is needed for JSON deserialization
  void setHostName(String hostName) {
    this.hostName = hostName == null ? null : new NodeName(hostName);
  }
View Full Code Here


    return hostName;
  }

  // This is needed for JSON deserialization
  void setHostName(String hostName) {
    this.hostName = hostName == null ? null : new NodeName(hostName);
  }
View Full Code Here

   */
  LoggedNetworkTopology(Set<ParsedHost> hosts, String name, int level) {
    if (name == null) {
      this.name = NodeName.ROOT;
    } else {
      this.name = new NodeName(name);
    }
    this.children = null;

    if (level < ParsedHost.numberOfDistances() - 1) {
      HashMap<String, HashSet<ParsedHost>> topologies =
View Full Code Here

  public NodeName getName() {
    return name;
  }

  void setName(String name) {
    this.name = new NodeName(name);
  }
View Full Code Here

    return hostName;
  }

  // This is needed for JSON deserialization
  void setHostName(String hostName) {
    this.hostName = hostName == null ? null : new NodeName(hostName);
  }
View Full Code Here

      synchronized (layersCache) {
        List<NodeName> found = layersCache.get(layers);
        if (found == null) {
          // make a copy with interned string.
          List<NodeName> clone = new ArrayList<NodeName>(layers.size());
          clone.add(new NodeName(layers.get(0).intern(), null));
          clone.add(new NodeName(null, layers.get(1).intern()));
         
          // making it read-only as we are sharing them.
          List<NodeName> readonlyLayers = Collections.unmodifiableList(clone);
          List<String> readonlyLayersKey = Collections.unmodifiableList(layers);
          layersCache.put(readonlyLayersKey, readonlyLayers);
View Full Code Here

    return hostName;
  }

  // This is needed for JSON deserialization
  void setHostName(String hostName) {
    this.hostName = hostName == null ? null : new NodeName(hostName);
  }
View Full Code Here

   */
  LoggedNetworkTopology(Set<ParsedHost> hosts, String name, int level) {
    if (name == null) {
      this.name = NodeName.ROOT;
    } else {
      this.name = new NodeName(name);
    }
    this.children = null;

    if (level < ParsedHost.numberOfDistances() - 1) {
      HashMap<String, HashSet<ParsedHost>> topologies =
View Full Code Here

  public NodeName getName() {
    return name;
  }

  void setName(String name) {
    this.name = new NodeName(name);
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.tools.rumen.datatypes.NodeName$NodeNameState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.