Package br.com.ingenieux.mojo.beanstalk.cmd.env.swap

Examples of br.com.ingenieux.mojo.beanstalk.cmd.env.swap.SwapCNamesCommand


            SwapCNamesContext context = SwapCNamesContextBuilder
                    .swapCNamesContext()//
                    .withSourceEnvironmentId(newEnvironmentId)//
                    .withDestinationEnvironmentId(curEnvironmentId)//
                    .build();
            SwapCNamesCommand command = new SwapCNamesCommand(this);

            command.execute(context);
        }

        {
            WaitForEnvironmentContext context = new WaitForEnvironmentContextBuilder()
                    .withApplicationName(applicationName)//
                    .withStatusToWaitFor("Ready")//
                    .withEnvironmentRef(newEnvironmentId)//
                    .withTimeoutMins(timeoutMins)//
                    .build();

            WaitForEnvironmentCommand command = new WaitForEnvironmentCommand(
                    this);

            command.execute(context);
        }
    }
View Full Code Here


      SwapCNamesContext context = SwapCNamesContextBuilder
          .swapCNamesContext()//
          .withSourceEnvironmentId(newEnvironmentId)//
          .withDestinationEnvironmentId(curEnvironmentId)//
          .build();
      SwapCNamesCommand command = new SwapCNamesCommand(this);

      command.execute(context);
    }

    {
      WaitForEnvironmentContext context = new WaitForEnvironmentContextBuilder()
          .withApplicationName(applicationName)//
          .withStatusToWaitFor("Ready")//
          .withEnvironmentId(newEnvironmentId)//
          .withTimeoutMins(timeoutMins)//
          .withDomainToWaitFor(cnamePrefix).build();

      WaitForEnvironmentCommand command = new WaitForEnvironmentCommand(
          this);

      command.execute(context);
    }
  }
View Full Code Here

            targetEnvironment.getEnvironmentId())//
        .withDestinationEnvironmentName(
            targetEnvironment.getEnvironmentName())//
        .build();
   
    SwapCNamesCommand command = new SwapCNamesCommand(this);

    return command.execute(context);

  }
View Full Code Here

      SwapCNamesContext context = SwapCNamesContextBuilder
          .swapCNamesContext()//
          .withSourceEnvironmentId(newEnvironmentId)//
          .withDestinationEnvironmentId(curEnvironmentId)//
          .build();
      SwapCNamesCommand command = new SwapCNamesCommand(this);

      command.execute(context);
    }

    {
      WaitForEnvironmentContext context = new WaitForEnvironmentContextBuilder()
          .withApplicationName(applicationName)//
          .withStatusToWaitFor("Ready")//
          .withEnvironmentId(newEnvironmentId)//
          .withTimeoutMins(timeoutMins)//
          .withDomainToWaitFor(cnamePrefix).build();

      WaitForEnvironmentCommand command = new WaitForEnvironmentCommand(
          this);

      command.execute(context);
    }
  }
View Full Code Here

    {
      SwapCNamesContext context = SwapCNamesContextBuilder.swapCNamesContext()//
          .withSourceEnvironmentId(newEnvironmentId)//
          .withDestinationEnvironmentId(curEnvironmentId)//
          .build();
      SwapCNamesCommand command = new SwapCNamesCommand(this);

      command.execute(context);
    }

    {
      WaitForEnvironmentContext context = new WaitForEnvironmentContextBuilder()
          .withApplicationName(applicationName)//
          .withStatusToWaitFor("Ready")//
          .withEnvironmentId(newEnvironmentId)//
          .withTimeoutMins(timeoutMins)//
          .withDomainToWaitFor(cnamePrefix).build();

      WaitForEnvironmentCommand command = new WaitForEnvironmentCommand(this);

      command.execute(context);
    }
  }
View Full Code Here

        .withSourceEnvironmentId(sourceEnvironmentId)//
        .withSourceEnvironmentName(sourceEnvironmentName)//
        .withDestinationEnvironmentId(destinationEnvironmentId)//
        .withDestinationEnvironmentName(destinationEnvironmentName)//
        .build();
    SwapCNamesCommand command = new SwapCNamesCommand(this);

    return command.execute(context);
  }
View Full Code Here

      SwapCNamesContext context = SwapCNamesContextBuilder
          .swapCNamesContext()//
          .withSourceEnvironmentId(newEnvironmentId)//
          .withDestinationEnvironmentId(curEnvironmentId)//
          .build();
      SwapCNamesCommand command = new SwapCNamesCommand(this);

      command.execute(context);
    }

    {
      WaitForEnvironmentContext context = new WaitForEnvironmentContextBuilder()
          .withApplicationName(applicationName)//
          .withStatusToWaitFor("Ready")//
          .withEnvironmentId(newEnvironmentId)//
          .withTimeoutMins(timeoutMins)//
          .withDomainToWaitFor(cnamePrefix).build();

      WaitForEnvironmentCommand command = new WaitForEnvironmentCommand(
          this);

      command.execute(context);
    }
  }
View Full Code Here

        .withSourceEnvironmentId(sourceEnvironmentId)//
        .withSourceEnvironmentName(sourceEnvironmentName)//
        .withDestinationEnvironmentId(destinationEnvironmentId)//
        .withDestinationEnvironmentName(destinationEnvironmentName)//
        .build();
    SwapCNamesCommand command = new SwapCNamesCommand(this);

    return command.execute(context);
  }
View Full Code Here

      SwapCNamesContext context = SwapCNamesContextBuilder
          .swapCNamesContext()//
          .withSourceEnvironmentId(newEnvironmentId)//
          .withDestinationEnvironmentId(curEnvironmentId)//
          .build();
      SwapCNamesCommand command = new SwapCNamesCommand(this);

      command.execute(context);
    }

    {
      WaitForEnvironmentContext context = new WaitForEnvironmentContextBuilder()
          .withApplicationName(applicationName)//
          .withStatusToWaitFor("Ready")//
          .withEnvironmentRef(newEnvironmentId)//
          .withTimeoutMins(timeoutMins)//
          .build();

      WaitForEnvironmentCommand command = new WaitForEnvironmentCommand(
          this);

      command.execute(context);
    }
  }
View Full Code Here

        .withDestinationEnvironmentId(
            targetEnvironment.getEnvironmentId())//
        .withDestinationEnvironmentName(
            targetEnvironment.getEnvironmentName())//
        .build();
    SwapCNamesCommand command = new SwapCNamesCommand(this);

    return command.execute(context);

  }
View Full Code Here

TOP

Related Classes of br.com.ingenieux.mojo.beanstalk.cmd.env.swap.SwapCNamesCommand

Copyright © 2018 www.massapicom. 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.