Tabnine Logo
ManagementService.stopSystemVM
Code IndexAdd Tabnine to your IDE (free)

How to use
stopSystemVM
method
in
com.cloud.server.ManagementService

Best Java code snippets using com.cloud.server.ManagementService.stopSystemVM (Showing top 2 results out of 315)

origin: apache/cloudstack

  @Override
  public void execute() throws ResourceUnavailableException, ConcurrentOperationException {
    CallContext.current().setEventDetails("Vm Id: " + this._uuidMgr.getUuid(VirtualMachine.class, getId()));
    VirtualMachine result = _mgr.stopSystemVM(this);
    if (result != null) {
      SystemVmResponse response = _responseGenerator.createSystemVmResponse(result);
      response.setResponseName(getCommandName());
      setResponseObject(response);
    } else {
      throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Fail to stop system vm");
    }
  }
}
origin: MissionCriticalCloud/cosmic

@Override
public void execute() throws ResourceUnavailableException, ConcurrentOperationException {
  CallContext.current().setEventDetails("Vm Id: " + getId());
  final VirtualMachine result = _mgr.stopSystemVM(this);
  if (result != null) {
    final SystemVmResponse response = _responseGenerator.createSystemVmResponse(result);
    response.setResponseName(getCommandName());
    setResponseObject(response);
  } else {
    throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Fail to stop system vm");
  }
}
com.cloud.serverManagementServicestopSystemVM

Popular methods of ManagementService

  • searchForClusters
    Searches for Clusters by the specified search criteria
  • searchForConfigurations
    returns the a map of the names/values in the configuraton table
  • updateHostPassword
  • generateRandomPassword
    Generates a random password that will be used (initially) by newly created and started virtual machi
  • listDeploymentPlanners
  • searchForVlans
    Searches for vlan by the specified search criteria Can search by: "id", "vlan", "name", "zoneID"
  • addGuestOs
    Adds a new guest OS
  • addGuestOsMapping
    Adds a new guest OS mapping
  • archiveAlerts
    Archive alerts
  • archiveEvents
    Archive events
  • cleanupVMReservations
  • createSSHKeyPair
    Creates a new
  • cleanupVMReservations,
  • createSSHKeyPair,
  • deleteAlerts,
  • deleteEvents,
  • deleteSSHKeyPair,
  • destroySystemVM,
  • findSystemVMTypeById,
  • getAddedGuestOs,
  • getAddedGuestOsMapping,
  • getCloudIdentifierResponse

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now