Package org.platformlayer.ops.instances

Examples of org.platformlayer.ops.instances.InstanceBuilder.addChild()


    // collectd has collectdmon to keep it alive; don't use monit (for now)

    instance.addChild(CollectdSink.build());

    instance.addChild(ManagedService.build("collectd"));
  }
}
View Full Code Here


    instance.publicPorts.add(5432);

    instance.minimumMemoryMb = 2048;
    addChild(instance);

    instance.addChild(PackageDependency.build("postgresql"));
    instance.addChild(PackageDependency.build("postgresql-client"));

    String postgresVersion = template.getPostgresVersion();

    if (postgresVersion.equals("8.4")) {
View Full Code Here

    instance.minimumMemoryMb = 2048;
    addChild(instance);

    instance.addChild(PackageDependency.build("postgresql"));
    instance.addChild(PackageDependency.build("postgresql-client"));

    String postgresVersion = template.getPostgresVersion();

    if (postgresVersion.equals("8.4")) {
      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/8.4/main/pg_hba.conf"),
View Full Code Here

    instance.addChild(PackageDependency.build("postgresql-client"));

    String postgresVersion = template.getPostgresVersion();

    if (postgresVersion.equals("8.4")) {
      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/8.4/main/pg_hba.conf"),
          "8_4_pg_hba.conf"));
      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/8.4/main/postgresql.conf"),
          "8_4_postgresql.conf"));
    } else if (postgresVersion.equals("9.1")) {
      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/9.1/main/pg_hba.conf"),
View Full Code Here

    String postgresVersion = template.getPostgresVersion();

    if (postgresVersion.equals("8.4")) {
      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/8.4/main/pg_hba.conf"),
          "8_4_pg_hba.conf"));
      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/8.4/main/postgresql.conf"),
          "8_4_postgresql.conf"));
    } else if (postgresVersion.equals("9.1")) {
      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/9.1/main/pg_hba.conf"),
          "9_1_pg_hba.conf"));
      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/9.1/main/postgresql.conf"),
View Full Code Here

      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/8.4/main/pg_hba.conf"),
          "8_4_pg_hba.conf"));
      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/8.4/main/postgresql.conf"),
          "8_4_postgresql.conf"));
    } else if (postgresVersion.equals("9.1")) {
      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/9.1/main/pg_hba.conf"),
          "9_1_pg_hba.conf"));
      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/9.1/main/postgresql.conf"),
          "9_1_postgresql.conf"));
    } else {
      throw new OpsException("Unsupported postgres version: " + postgresVersion);
View Full Code Here

      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/8.4/main/postgresql.conf"),
          "8_4_postgresql.conf"));
    } else if (postgresVersion.equals("9.1")) {
      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/9.1/main/pg_hba.conf"),
          "9_1_pg_hba.conf"));
      instance.addChild(TemplatedFile.build(template, new File("/etc/postgresql/9.1/main/postgresql.conf"),
          "9_1_postgresql.conf"));
    } else {
      throw new OpsException("Unsupported postgres version: " + postgresVersion);
    }
View Full Code Here

          "9_1_postgresql.conf"));
    } else {
      throw new OpsException("Unsupported postgres version: " + postgresVersion);
    }

    instance.addChild(PostgresqlServerBootstrap.build());

    instance.addChild(MetricsInstance.class);

    {
      PublicEndpoint endpoint = injected(PublicEndpoint.class);
View Full Code Here

      throw new OpsException("Unsupported postgres version: " + postgresVersion);
    }

    instance.addChild(PostgresqlServerBootstrap.build());

    instance.addChild(MetricsInstance.class);

    {
      PublicEndpoint endpoint = injected(PublicEndpoint.class);
      // endpoint.network = null;
      endpoint.publicPort = 5432;
View Full Code Here

      endpoint.dnsName = model.dnsName;

      endpoint.tagItem = model.getKey();
      endpoint.parentItem = model.getKey();

      instance.addChild(endpoint);
    }

    instance.addChild(ManagedService.build("postgresql"));

    instance.addChild(injected(PostgresqlServerBackup.class));
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.