Package org.openstack.service.nginx.ops

Source Code of org.openstack.service.nginx.ops.NginxBackendConfiguration

package org.openstack.service.nginx.ops;

import javax.inject.Inject;

import org.openstack.service.nginx.model.NginxBackend;
import org.openstack.service.nginx.model.NginxService;
import org.platformlayer.ops.CustomRecursor;
import org.platformlayer.ops.Handler;
import org.platformlayer.ops.Injection;
import org.platformlayer.ops.OpsException;
import org.platformlayer.ops.helpers.ServiceContext;
import org.platformlayer.ops.tree.ForEach;
import org.platformlayer.ops.tree.OpsTreeBase;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class NginxBackendConfiguration extends OpsTreeBase implements CustomRecursor {

  private static final Logger log = LoggerFactory.getLogger(NginxBackendConfiguration.class);

  @Handler
  public void handler() {
  }

  @Inject
  ServiceContext service;

  @Override
  protected void addChildren() throws OpsException {
    addChild(injected(NginxBackendFirewall.class));
  }

  @Override
  public void doRecurseOperation() throws OpsException {
    ForEach recursor = Injection.getInstance(ForEach.class);

    recursor.doRecursion(this, service.getSshKey(), NginxService.class, NginxBackend.class);
  }

}
TOP

Related Classes of org.openstack.service.nginx.ops.NginxBackendConfiguration

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.