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

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

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

origin: apache/cloudstack

  @Override
  public void execute() {
    if (ids == null && type == null && endDate == null) {
      throw new InvalidParameterValueException("either ids, type or enddate must be specified");
    } else if (startDate != null && endDate == null) {
      throw new InvalidParameterValueException("enddate must be specified with startdate parameter");
    }
    boolean result = _mgr.archiveEvents(this);
    if (result) {
      SuccessResponse response = new SuccessResponse(getCommandName());
      setResponseObject(response);
    } else {
      throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Unable to archive Events, one or more parameters has invalid values");
    }
  }
}
origin: MissionCriticalCloud/cosmic

@Override
public void execute() {
  if (ids == null && type == null && endDate == null) {
    throw new InvalidParameterValueException("either ids, type or enddate must be specified");
  } else if (startDate != null && endDate == null) {
    throw new InvalidParameterValueException("enddate must be specified with startdate parameter");
  }
  final boolean result = _mgr.archiveEvents(this);
  if (result) {
    final SuccessResponse response = new SuccessResponse(getCommandName());
    setResponseObject(response);
  } else {
    throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Unable to archive Events, one or more parameters has invalid values");
  }
}
com.cloud.serverManagementServicearchiveEvents

Javadoc

Archive events

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
  • cleanupVMReservations
  • createSSHKeyPair
    Creates a new
  • deleteAlerts
    Delete alerts
  • createSSHKeyPair,
  • deleteAlerts,
  • deleteEvents,
  • deleteSSHKeyPair,
  • destroySystemVM,
  • findSystemVMTypeById,
  • getAddedGuestOs,
  • getAddedGuestOsMapping,
  • getCloudIdentifierResponse

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for Android Studio
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