Package org.platformlayer.service.zookeeper.model

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


    @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

Related Classes of org.platformlayer.service.zookeeper.model.ZookeeperServer

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.