use of org.platformlayer.service.jetty.ops.JettyInstance in project platformlayer by platformlayer.
the class NexusServiceController method addChildren.
@Override
protected void addChildren() throws OpsException {
NexusService model = OpsContext.get().getInstance(NexusService.class);
InstanceBuilder vm;
{
vm = InstanceBuilder.build(model.dnsName, this, model.getTags());
vm.minimumMemoryMb = 2048;
addChild(vm);
}
vm.addChild(NexusBootstrap.build());
JettyInstance jetty = vm.addChild(injected(JettyInstance.class));
jetty.addApp(NexusApp.build());
vm.addChild(MetricsInstance.class);
}
use of org.platformlayer.service.jetty.ops.JettyInstance in project platformlayer by platformlayer.
the class GerritInstance method addChildren.
@Override
protected void addChildren() throws OpsException {
addChild(TemplatedFile.build(template, new File(template.getInstanceDir(), "realm.properties")));
JettyInstance jetty = addChild(JettyInstance.class);
jetty.template = template;
GerritWarInstance app = injected(GerritWarInstance.class);
jetty.addApp(app);
}
Aggregations