Package org.platformlayer.ops.instances

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


      endpoint.dnsName = model.dnsName;

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

      instance.addChild(endpoint);
    }
  }

  @Override
  public String getUrl(Object modelObject, NetworkPoint forNetworkPoint, URI uri) throws OpsException {
View Full Code Here


    InstanceBuilder instance = InstanceBuilder.build(model.dnsName, this, model.getTags());
    // instance.minimumMemoryMb = 2048;
    addChild(instance);

    instance.addChild(PackageDependency.build("wordpress"));

    instance.addChild(ApacheBootstrap.build());

    {
      PlatformLayerFirewallEntry net = injected(PlatformLayerFirewallEntry.class);
View Full Code Here

    // instance.minimumMemoryMb = 2048;
    addChild(instance);

    instance.addChild(PackageDependency.build("wordpress"));

    instance.addChild(ApacheBootstrap.build());

    {
      PlatformLayerFirewallEntry net = injected(PlatformLayerFirewallEntry.class);

      net.destItem = model.databaseItem;
View Full Code Here

      net.uniqueId = getFirewallUniqueId();

      PlatformLayerKey sourceKey = model.getKey();
      net.sourceItemKey = sourceKey;

      instance.addChild(net);
    }

    WordpressTemplateData templateData = Injection.getInstance(WordpressTemplateData.class);

    MysqlConnection mysql = instance.addChild(MysqlConnection.build(model.databaseItem));
View Full Code Here

      instance.addChild(net);
    }

    WordpressTemplateData templateData = Injection.getInstance(WordpressTemplateData.class);

    MysqlConnection mysql = instance.addChild(MysqlConnection.build(model.databaseItem));
    mysql.password = model.databasePassword;

    {
      MysqlDatabase db = injected(MysqlDatabase.class);
      db.databaseName = templateData.getDatabaseName();
View Full Code Here

      db.databaseUser = templateData.getDatabaseUser();
      db.databasePassword = templateData.getDatabasePassword();
      mysql.addChild(db);
    }

    instance.addChild(WordpressBootstrap.build());
    instance.addChild(WordpressAdminUser.build());

    instance.addChild(WordpressApacheSite.build());

    // instance.addChild(CollectdCollector.build());
View Full Code Here

      db.databasePassword = templateData.getDatabasePassword();
      mysql.addChild(db);
    }

    instance.addChild(WordpressBootstrap.build());
    instance.addChild(WordpressAdminUser.build());

    instance.addChild(WordpressApacheSite.build());

    // instance.addChild(CollectdCollector.build());
View Full Code Here

    }

    instance.addChild(WordpressBootstrap.build());
    instance.addChild(WordpressAdminUser.build());

    instance.addChild(WordpressApacheSite.build());

    // instance.addChild(CollectdCollector.build());

    // TODO: How do we bring up wordpress securely??
    // We don't have the tables until we run install.php
View Full Code Here

      // endpoint.dnsName = model.dnsName;

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

      instance.addChild(endpoint);
    }

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

      endpoint.parentItem = model.getKey();

      instance.addChild(endpoint);
    }

    instance.addChild(ManagedService.build("apache2"));
  }

  private String getFirewallUniqueId() {
    // Not implemented at the moment
    throw new UnsupportedOperationException();
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.