All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jclouds.vcloud.compute.VCloudExpressComputeClient Maven / Gradle / Ivy

The newest version!
/**
 *
 * Copyright (C) 2010 Cloud Conscious, LLC. 
 *
 * ====================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ====================================================================
 */

package org.jclouds.vcloud.compute;

import java.net.URI;

import javax.annotation.Nullable;

import org.jclouds.vcloud.compute.internal.VCloudExpressComputeClientImpl;
import org.jclouds.vcloud.domain.VCloudExpressVApp;
import org.jclouds.vcloud.options.InstantiateVAppTemplateOptions;

import com.google.inject.ImplementedBy;

/**
 * 
 * @author Adrian Cole
 */
@ImplementedBy(VCloudExpressComputeClientImpl.class)
public interface VCloudExpressComputeClient extends CommonVCloudComputeClient {
   /**
    * Runs through all commands necessary to startup a vApp, opening at least one ip address to the
    * public network. These are the steps:
    * 

* instantiate -> deploy -> powerOn *

* This command blocks until the vApp is in state {@code VAppStatus#ON} * * @param VDC * id of the virtual datacenter {@code VCloudClient#getDefaultVDC} * @param templateId * id of the vAppTemplate you wish to instantiate * @param name * name of the vApp * @param cores * amount of virtual cpu cores * @param megs * amount of ram in megabytes * @param options * options for instantiating the vApp; null is ok * @param portsToOpen * opens the following ports on the public ip address * @return map contains at least the following properties *

    *
  1. id - vApp id
  2. username - console login user
  3. password - console * login password
  4. *
*/ VCloudExpressVApp start(@Nullable URI VDC, URI templateId, String name, InstantiateVAppTemplateOptions options, int... portsToOpen); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy