Package com.alibaba.wasp

Examples of com.alibaba.wasp.ClusterId


    return master.getAverageLoad();
  }

  @Override
  public String getClusterId() {
    ClusterId clusterId = master.getClusterId();
    if (clusterId == null) {
      return "";
    }
    return clusterId.toString();
  }
View Full Code Here


    // init cluster ID from zk
    status.setStatus("Publishing Cluster ID in ZooKeeper");
    this.clusterId = ZKClusterId.readClusterIdZNode(this.zooKeeper);
    if (this.clusterId == null) {
      this.clusterId = new ClusterId();
      ZKClusterId.setClusterId(this.zooKeeper, this.clusterId);
    }

    /*
     * We are active master now... go initialize components we need to run.
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.ClusterId

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.