Search in sources :

Example 1 with TomcatService

use of org.platformlayer.service.tomcat.model.TomcatService in project platformlayer by platformlayer.

the class TomcatServiceController method addChildren.

@Override
protected void addChildren() throws OpsException {
    TomcatService model = OpsContext.get().getInstance(TomcatService.class);
    InstanceBuilder instance = InstanceBuilder.build(model.dnsName, this, model.getTags());
    instance.minimumMemoryMb = 2048;
    addChild(instance);
    instance.addChild(JavaVirtualMachine.buildJava6());
    instance.addChild(PackageDependency.build("libtcnative-1"));
    instance.addChild(PackageDependency.build("tomcat6"));
    // tomcat6-admin contains the 'manager' app for remote deploys
    instance.addChild(PackageDependency.build("tomcat6-admin"));
    instance.addChild(TomcatUsers.build());
    instance.addChild(TomcatServerBootstrap.build());
    instance.addChild(MetricsInstance.class);
    instance.addChild(ManagedService.build("tomcat6"));
}
Also used : TomcatService(org.platformlayer.service.tomcat.model.TomcatService) InstanceBuilder(org.platformlayer.ops.instances.InstanceBuilder)

Aggregations

InstanceBuilder (org.platformlayer.ops.instances.InstanceBuilder)1 TomcatService (org.platformlayer.service.tomcat.model.TomcatService)1