Search in sources :

Example 1 with NexusService

use of org.platformlayer.service.nexus.model.NexusService 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);
}
Also used : NexusService(org.platformlayer.service.nexus.model.NexusService) JettyInstance(org.platformlayer.service.jetty.ops.JettyInstance) InstanceBuilder(org.platformlayer.ops.instances.InstanceBuilder)

Aggregations

InstanceBuilder (org.platformlayer.ops.instances.InstanceBuilder)1 JettyInstance (org.platformlayer.service.jetty.ops.JettyInstance)1 NexusService (org.platformlayer.service.nexus.model.NexusService)1