// Path: vertx-deploy-agent/src/main/java/nl/jpoint/vertx/deploy/agent/util/LogConstants.java
// public final class LogConstants {
//     public static final String ERROR_EXECUTING_REQUEST = "Error executing request {}.";
//     public static final String REQUEST_ALREADY_REGISTERED = "[{} - {}]: Request already registered.";
//     public static final String REQUEST_NOT_REGISTERED = "[{} - {}]: Request not registered.";
// 
// 
//     public static final String INVOKE_CONTAINER = "InvokeContainer";
//     public static final String CONSOLE_COMMAND = "ConsoleCommand";
//     public static final String CLUSTER_MANAGER = "ClusterManager";
//     public static final String DEPLOY_REQUEST = "DeployRequest";
//     public static final String DEPLOY_CONFIG_REQUEST = "DeployConfigRequest";
//     public static final String DEPLOY_ARTIFACT_REQUEST = "DeployArtifactRequest";
//     public static final String AWS_ELB_REQUEST = "ConfigureAwsElb";
//     public static final String AWS_AS_REQUEST = "ConfigureAwsAutoScaling";
//     public static final String STARTUP = "Startup";
// 
//     private LogConstants() {
//         // hide
//     }
// }


import io.netty.handler.codec.http.HttpResponseStatus;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.http.HttpServer;
import io.vertx.ext.web.Router;
import nl.jpoint.vertx.deploy.agent.handler.*;
import nl.jpoint.vertx.deploy.agent.service.*;
import nl.jpoint.vertx.deploy.agent.util.LogConstants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.MDC;
package nl.jpoint.vertx.deploy.agent;


public class AwsDeployApplication extends AbstractVerticle {

    private static final Logger LOG = LoggerFactory.getLogger(AwsDeployApplication.class);

    private boolean initiated = false;

    @Override
    public void start() {
        MDC.put("service", Constants.SERVICE_ID);
        DeployConfig deployconfig = DeployConfig.fromJsonObject(config());
        if (config() == null) {
            LOG.error("Unable to read config file");
            throw new IllegalStateException("Unable to read config file");
        }
// Path: vertx-deploy-agent/src/main/java/nl/jpoint/vertx/deploy/agent/util/LogConstants.java
// public final class LogConstants {
//     public static final String ERROR_EXECUTING_REQUEST = "Error executing request {}.";
//     public static final String REQUEST_ALREADY_REGISTERED = "[{} - {}]: Request already registered.";
//     public static final String REQUEST_NOT_REGISTERED = "[{} - {}]: Request not registered.";
// 
// 
//     public static final String INVOKE_CONTAINER = "InvokeContainer";
//     public static final String CONSOLE_COMMAND = "ConsoleCommand";
//     public static final String CLUSTER_MANAGER = "ClusterManager";
//     public static final String DEPLOY_REQUEST = "DeployRequest";
//     public static final String DEPLOY_CONFIG_REQUEST = "DeployConfigRequest";
//     public static final String DEPLOY_ARTIFACT_REQUEST = "DeployArtifactRequest";
//     public static final String AWS_ELB_REQUEST = "ConfigureAwsElb";
//     public static final String AWS_AS_REQUEST = "ConfigureAwsAutoScaling";
//     public static final String STARTUP = "Startup";
// 
//     private LogConstants() {
//         // hide
//     }
// }


// Path: vertx-deploy-agent/src/main/java/nl/jpoint/vertx/deploy/agent/AwsDeployApplication.java
import io.netty.handler.codec.http.HttpResponseStatus;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.http.HttpServer;
import io.vertx.ext.web.Router;
import nl.jpoint.vertx.deploy.agent.handler.*;
import nl.jpoint.vertx.deploy.agent.service.*;
import nl.jpoint.vertx.deploy.agent.util.LogConstants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.MDC;

package nl.jpoint.vertx.deploy.agent;


public class AwsDeployApplication extends AbstractVerticle {

    private static final Logger LOG = LoggerFactory.getLogger(AwsDeployApplication.class);

    private boolean initiated = false;

    @Override
    public void start() {
        MDC.put("service", Constants.SERVICE_ID);
        DeployConfig deployconfig = DeployConfig.fromJsonObject(config());
        if (config() == null) {
            LOG.error("Unable to read config file");
            throw new IllegalStateException("Unable to read config file");
        }
        final DeployApplicationService deployApplicationService = new DeployApplicationService(deployconfig, getVertx());