org.dasein.cloud.google.compute.server
Class ServerSupport

java.lang.Object
  extended by org.dasein.cloud.compute.AbstractVMSupport
      extended by org.dasein.cloud.google.compute.server.ServerSupport
All Implemented Interfaces:
org.dasein.cloud.AccessControlledService, org.dasein.cloud.compute.VirtualMachineSupport

public class ServerSupport
extends org.dasein.cloud.compute.AbstractVMSupport


Field Summary
 
Fields inherited from interface org.dasein.cloud.compute.VirtualMachineSupport
ANY, BOOT, CLONE, CREATE_VM, GET_VM, LIST_VM, PAUSE, REBOOT, REMOVE_VM, TOGGLE_ANALYTICS, VIEW_ANALYTICS, VIEW_CONSOLE
 
Constructor Summary
ServerSupport(Google provider)
           
 
Method Summary
 org.dasein.cloud.compute.VirtualMachine alterVirtualMachine(String vmId, org.dasein.cloud.compute.VMScalingOptions options)
           
 org.dasein.cloud.compute.VirtualMachine clone(String vmId, String intoDcId, String name, String description, boolean powerOn, String... firewallIds)
           
 void disableAnalytics(String vmId)
           
 void enableAnalytics(String vmId)
           
 GCEInstanceCapabilities getCapabilities()
           
 String getConsoleOutput(String vmId)
           
 String getPassword(String vmId)
           
 org.dasein.cloud.compute.VirtualMachineProduct getProduct(String productId)
           
 org.dasein.cloud.compute.VirtualMachine getVirtualMachine(String vmId)
           
 boolean isSubscribed()
           
 org.dasein.cloud.compute.VirtualMachine launch(org.dasein.cloud.compute.VMLaunchOptions withLaunchOptions)
           
 Iterable<String> listFirewalls(String vmId)
           
 Iterable<org.dasein.cloud.compute.VirtualMachineProduct> listProducts(org.dasein.cloud.compute.Architecture architecture)
           
 Iterable<org.dasein.cloud.compute.VirtualMachineProduct> listProducts(org.dasein.cloud.compute.Architecture architecture, String preferredDataCenterId)
           
 Iterable<org.dasein.cloud.compute.VirtualMachineProduct> listProducts(org.dasein.cloud.compute.VirtualMachineProductFilterOptions options, org.dasein.cloud.compute.Architecture architecture)
           
 Iterable<org.dasein.cloud.compute.VirtualMachine> listVirtualMachines()
           
 Iterable<org.dasein.cloud.compute.VirtualMachine> listVirtualMachines(org.dasein.cloud.compute.VMFilterOptions options)
           
 Iterable<org.dasein.cloud.ResourceStatus> listVirtualMachineStatus()
           
 org.dasein.cloud.compute.VirtualMachine modifyInstance(String vmId, String[] firewalls)
           
 void pause(String vmId)
           
 void reboot(String vmId)
           
 void removeTags(String[] vmIds, org.dasein.cloud.Tag... tags)
           
 void removeTags(String vmId, org.dasein.cloud.Tag... tags)
           
 void resume(String vmId)
           
 void start(String vmId)
           
 void stop(String vmId, boolean force)
           
 void suspend(String vmId)
           
 void terminate(String vmId)
           
 void terminate(String vmId, String reason)
           
 void unpause(String vmId)
           
 void updateTags(String[] vmIds, org.dasein.cloud.Tag... tags)
           
 void updateTags(String vmId, org.dasein.cloud.Tag... tags)
           
 
Methods inherited from class org.dasein.cloud.compute.AbstractVMSupport
cancelSpotDataFeedSubscription, cancelSpotVirtualMachineRequest, createSpotVirtualMachineRequest, describeVerticalScalingCapabilities, enableSpotDataFeedSubscription, getContext, getCostFactor, getMaximumVirtualMachineCount, getProvider, getProviderTermForServer, getUserData, getVMProductsResource, getVMStatistics, getVMStatisticsForPeriod, getVMStatus, getVMStatus, identifyImageRequirement, identifyPasswordRequirement, identifyPasswordRequirement, identifyRootVolumeRequirement, identifyShellKeyRequirement, identifyShellKeyRequirement, identifyStaticIPRequirement, identifyVlanRequirement, isAPITerminationPreventable, isBasicAnalyticsSupported, isExtendedAnalyticsSupported, isUserDataSupported, launch, launch, launchAsync, launchMany, listProducts, listSpotPriceHistories, listSpotVirtualMachineRequests, listSupportedArchitectures, mapServiceAction, stop, supportsAnalytics, supportsPauseUnpause, supportsStartStop, supportsSuspendResume
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerSupport

public ServerSupport(Google provider)
Method Detail

alterVirtualMachine

public org.dasein.cloud.compute.VirtualMachine alterVirtualMachine(@Nonnull
                                                                   String vmId,
                                                                   @Nonnull
                                                                   org.dasein.cloud.compute.VMScalingOptions options)
                                                            throws org.dasein.cloud.InternalException,
                                                                   org.dasein.cloud.CloudException
Specified by:
alterVirtualMachine in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
alterVirtualMachine in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

modifyInstance

public org.dasein.cloud.compute.VirtualMachine modifyInstance(@Nonnull
                                                              String vmId,
                                                              @Nonnull
                                                              String[] firewalls)
                                                       throws org.dasein.cloud.InternalException,
                                                              org.dasein.cloud.CloudException
Specified by:
modifyInstance in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
modifyInstance in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

clone

@Nonnull
public org.dasein.cloud.compute.VirtualMachine clone(@Nonnull
                                                             String vmId,
                                                             @Nonnull
                                                             String intoDcId,
                                                             @Nonnull
                                                             String name,
                                                             @Nonnull
                                                             String description,
                                                             boolean powerOn,
                                                             String... firewallIds)
                                              throws org.dasein.cloud.InternalException,
                                                     org.dasein.cloud.CloudException
Specified by:
clone in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
clone in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

disableAnalytics

public void disableAnalytics(@Nonnull
                             String vmId)
                      throws org.dasein.cloud.InternalException,
                             org.dasein.cloud.CloudException
Specified by:
disableAnalytics in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
disableAnalytics in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

enableAnalytics

public void enableAnalytics(@Nonnull
                            String vmId)
                     throws org.dasein.cloud.InternalException,
                            org.dasein.cloud.CloudException
Specified by:
enableAnalytics in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
enableAnalytics in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getCapabilities

@Nonnull
public GCEInstanceCapabilities getCapabilities()

getPassword

public String getPassword(@Nonnull
                          String vmId)
                   throws org.dasein.cloud.InternalException,
                          org.dasein.cloud.CloudException
Specified by:
getPassword in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
getPassword in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getConsoleOutput

@Nonnull
public String getConsoleOutput(@Nonnull
                                       String vmId)
                        throws org.dasein.cloud.InternalException,
                               org.dasein.cloud.CloudException
Specified by:
getConsoleOutput in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
getConsoleOutput in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getProduct

public org.dasein.cloud.compute.VirtualMachineProduct getProduct(@Nonnull
                                                                 String productId)
                                                          throws org.dasein.cloud.InternalException,
                                                                 org.dasein.cloud.CloudException
Specified by:
getProduct in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
getProduct in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getVirtualMachine

public org.dasein.cloud.compute.VirtualMachine getVirtualMachine(@Nonnull
                                                                 String vmId)
                                                          throws org.dasein.cloud.InternalException,
                                                                 org.dasein.cloud.CloudException
Specified by:
getVirtualMachine in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
getVirtualMachine in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

isSubscribed

public boolean isSubscribed()
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

launch

@Nonnull
public org.dasein.cloud.compute.VirtualMachine launch(@Nonnull
                                                              org.dasein.cloud.compute.VMLaunchOptions withLaunchOptions)
                                               throws org.dasein.cloud.CloudException,
                                                      org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listFirewalls

@Nonnull
public Iterable<String> listFirewalls(@Nonnull
                                              String vmId)
                               throws org.dasein.cloud.InternalException,
                                      org.dasein.cloud.CloudException
Specified by:
listFirewalls in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
listFirewalls in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listProducts

@Nonnull
public Iterable<org.dasein.cloud.compute.VirtualMachineProduct> listProducts(@Nonnull
                                                                                     org.dasein.cloud.compute.Architecture architecture)
                                                                      throws org.dasein.cloud.InternalException,
                                                                             org.dasein.cloud.CloudException
Specified by:
listProducts in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
listProducts in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listProducts

@Nonnull
public Iterable<org.dasein.cloud.compute.VirtualMachineProduct> listProducts(@Nonnull
                                                                                     org.dasein.cloud.compute.Architecture architecture,
                                                                                     String preferredDataCenterId)
                                                                      throws org.dasein.cloud.InternalException,
                                                                             org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listProducts

public Iterable<org.dasein.cloud.compute.VirtualMachineProduct> listProducts(org.dasein.cloud.compute.VirtualMachineProductFilterOptions options,
                                                                             org.dasein.cloud.compute.Architecture architecture)
                                                                      throws org.dasein.cloud.InternalException,
                                                                             org.dasein.cloud.CloudException
Specified by:
listProducts in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
listProducts in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listVirtualMachines

@Nonnull
public Iterable<org.dasein.cloud.compute.VirtualMachine> listVirtualMachines(org.dasein.cloud.compute.VMFilterOptions options)
                                                                      throws org.dasein.cloud.InternalException,
                                                                             org.dasein.cloud.CloudException
Specified by:
listVirtualMachines in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
listVirtualMachines in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listVirtualMachines

@Nonnull
public Iterable<org.dasein.cloud.compute.VirtualMachine> listVirtualMachines()
                                                                      throws org.dasein.cloud.InternalException,
                                                                             org.dasein.cloud.CloudException
Specified by:
listVirtualMachines in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
listVirtualMachines in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listVirtualMachineStatus

@Nonnull
public Iterable<org.dasein.cloud.ResourceStatus> listVirtualMachineStatus()
                                                                   throws org.dasein.cloud.InternalException,
                                                                          org.dasein.cloud.CloudException
Specified by:
listVirtualMachineStatus in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
listVirtualMachineStatus in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

pause

public void pause(@Nonnull
                  String vmId)
           throws org.dasein.cloud.InternalException,
                  org.dasein.cloud.CloudException
Specified by:
pause in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
pause in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

reboot

public void reboot(@Nonnull
                   String vmId)
            throws org.dasein.cloud.CloudException,
                   org.dasein.cloud.InternalException
Specified by:
reboot in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
reboot in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

resume

public void resume(@Nonnull
                   String vmId)
            throws org.dasein.cloud.CloudException,
                   org.dasein.cloud.InternalException
Specified by:
resume in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
resume in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

suspend

public void suspend(@Nonnull
                    String vmId)
             throws org.dasein.cloud.CloudException,
                    org.dasein.cloud.InternalException
Specified by:
suspend in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
suspend in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

start

public void start(@Nonnull
                  String vmId)
           throws org.dasein.cloud.InternalException,
                  org.dasein.cloud.CloudException
Specified by:
start in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
start in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

stop

public void stop(@Nonnull
                 String vmId,
                 boolean force)
          throws org.dasein.cloud.InternalException,
                 org.dasein.cloud.CloudException
Specified by:
stop in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
stop in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

terminate

public void terminate(@Nonnull
                      String vmId)
               throws org.dasein.cloud.InternalException,
                      org.dasein.cloud.CloudException
Specified by:
terminate in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
terminate in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

terminate

public void terminate(@Nonnull
                      String vmId,
                      String reason)
               throws org.dasein.cloud.InternalException,
                      org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

unpause

public void unpause(@Nonnull
                    String vmId)
             throws org.dasein.cloud.CloudException,
                    org.dasein.cloud.InternalException
Specified by:
unpause in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
unpause in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

updateTags

public void updateTags(String vmId,
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
updateTags in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
updateTags in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

updateTags

public void updateTags(String[] vmIds,
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
updateTags in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
updateTags in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeTags

public void removeTags(String vmId,
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
removeTags in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
removeTags in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeTags

public void removeTags(String[] vmIds,
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
removeTags in interface org.dasein.cloud.compute.VirtualMachineSupport
Overrides:
removeTags in class org.dasein.cloud.compute.AbstractVMSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException


Copyright © 2014 Dell, Inc. All Rights Reserved.