Examples of ZooKeeperServer


Examples of org.apache.zookeeper_voltpatches.server.ZooKeeperServer

            m_safetyState.addState(hsId);
        }

        m_meshArbiter = new MeshArbiter(m_hsId, mailbox, m_meshAide);
        m_cnxnFactory = new NIOServerCnxn.Factory( address, 10);
        m_server = new ZooKeeperServer(this);
        if (agreementHSIds.size() > 1) {
            m_recovering = true;
        }
        if (m_recovering) {
            m_recoveryStage = RecoveryStage.WAITING_FOR_SAFETY;
View Full Code Here

Examples of org.platformlayer.service.zookeeper.model.ZookeeperServer

  @Override
  protected void addExtraFiles() throws OpsException {
    ZookeeperInstanceModel template = injected(ZookeeperInstanceModel.class);

    ZookeeperServer model = template.getModel();

    File instanceDir = template.getInstanceDir();

    addChild(ManagedDirectory.build(template.getDataDir(), "0755"));
    addChild(ManagedDirectory.build(template.getLogsDir(), "0755"));
View Full Code Here

Examples of org.platformlayer.service.zookeeper.model.ZookeeperServer

    @Override
    protected ZookeeperServer buildItemTemplate() throws OpsException {
      Tag parentTag = Tag.buildParentTag(cluster.getKey());

      ZookeeperServer server = new ZookeeperServer();

      server.clusterDnsName = cluster.dnsName;
      server.clusterId = clusterId;

      Tag uniqueTag = UniqueTag.build(cluster, clusterId);
      server.getTags().add(uniqueTag);
      server.getTags().add(parentTag);

      server.key = PlatformLayerKey.fromId(cluster.getId() + "-" + clusterId);

      return server;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.