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"));
}
Aggregations