public void doOperation() {
}
@Override
protected void addChildren() throws OpsException {
SolrServer model = OpsContext.get().getInstance(SolrServer.class);
int port = SolrConstants.API_PORT;
InstanceBuilder vm;
{
vm = InstanceBuilder.build(model.dnsName, this, model.getTags());
vm.publicPorts.add(port);
vm.hostPolicy.allowRunInContainer = true;
// TODO: This needs to be configurable...
vm.minimumMemoryMb = 2048;
addChild(vm);
}
{
SolrInstall install = injected(SolrInstall.class);
vm.addChild(install);
}
{
SolrInstance service = injected(SolrInstance.class);
vm.addChild(service);
}
{
PublicEndpoint endpoint = injected(PublicEndpoint.class);
// endpoint.network = null;
endpoint.publicPort = port;
endpoint.backendPort = port;
endpoint.dnsName = model.dnsName;
endpoint.tagItem = model.getKey();
endpoint.parentItem = model.getKey();
vm.addChild(endpoint);
}
}