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

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

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

origin: apache/cloudstack

  @Override
  public void execute() {
    Map<String, Object> capabilities = _mgr.listCapabilities(this);
    CapabilitiesResponse response = new CapabilitiesResponse();
    response.setSecurityGroupsEnabled((Boolean)capabilities.get("securityGroupsEnabled"));
    response.setDynamicRolesEnabled(roleService.isEnabled());
    response.setCloudStackVersion((String)capabilities.get("cloudStackVersion"));
    response.setUserPublicTemplateEnabled((Boolean)capabilities.get("userPublicTemplateEnabled"));
    response.setSupportELB((String)capabilities.get("supportELB"));
    response.setProjectInviteRequired((Boolean)capabilities.get("projectInviteRequired"));
    response.setAllowUsersCreateProjects((Boolean)capabilities.get("allowusercreateprojects"));
    response.setDiskOffMinSize((Long)capabilities.get("customDiskOffMinSize"));
    response.setDiskOffMaxSize((Long)capabilities.get("customDiskOffMaxSize"));
    response.setRegionSecondaryEnabled((Boolean)capabilities.get("regionSecondaryEnabled"));
    response.setKVMSnapshotEnabled((Boolean)capabilities.get("KVMSnapshotEnabled"));
    response.setAllowUserViewDestroyedVM((Boolean)capabilities.get("allowUserViewDestroyedVM"));
    response.setAllowUserExpungeRecoverVM((Boolean)capabilities.get("allowUserExpungeRecoverVM"));
    if (capabilities.containsKey("apiLimitInterval")) {
      response.setApiLimitInterval((Integer)capabilities.get("apiLimitInterval"));
    }
    if (capabilities.containsKey("apiLimitMax")) {
      response.setApiLimitMax((Integer)capabilities.get("apiLimitMax"));
    }
    response.setObjectName("capability");
    response.setResponseName(getCommandName());
    this.setResponseObject(response);
  }
}
origin: MissionCriticalCloud/cosmic

@Override
public void execute() {
  final Map<String, Object> capabilities = _mgr.listCapabilities(this);
  final CapabilitiesResponse response = new CapabilitiesResponse();
  response.setCloudStackVersion((String) capabilities.get("cloudStackVersion"));
  response.setCosmic((Boolean) true);
  response.setUserPublicTemplateEnabled((Boolean) capabilities.get("userPublicTemplateEnabled"));
  response.setSupportELB((String) capabilities.get("supportELB"));
  response.setProjectInviteRequired((Boolean) capabilities.get("projectInviteRequired"));
  response.setAllowUsersCreateProjects((Boolean) capabilities.get("allowusercreateprojects"));
  response.setDiskOffMinSize((Long) capabilities.get("customDiskOffMinSize"));
  response.setDiskOffMaxSize((Long) capabilities.get("customDiskOffMaxSize"));
  response.setRegionSecondaryEnabled((Boolean) capabilities.get("regionSecondaryEnabled"));
  response.setKVMSnapshotEnabled((Boolean) capabilities.get("KVMSnapshotEnabled"));
  response.setAllowUserViewDestroyedVM((Boolean) capabilities.get("allowUserViewDestroyedVM"));
  response.setAllowUserExpungeRecoverVM((Boolean) capabilities.get("allowUserExpungeRecoverVM"));
  response.setXenServerDeploymentsEnabled((Boolean) capabilities.get("xenserverDeploymentsEnabled"));
  response.setKvmDeploymentsEnabled((Boolean) capabilities.get("KVMDeploymentsEnabled"));
  if (capabilities.containsKey("apiLimitInterval")) {
    response.setApiLimitInterval((Integer) capabilities.get("apiLimitInterval"));
  }
  if (capabilities.containsKey("apiLimitMax")) {
    response.setApiLimitMax((Integer) capabilities.get("apiLimitMax"));
  }
  response.setObjectName("capability");
  response.setResponseName(getCommandName());
  this.setResponseObject(response);
}
com.cloud.serverManagementServicelistCapabilities

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

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • JFrame (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top PhpStorm 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