Tabnine Logo
SnapshotInfo.getFullBackup
Code IndexAdd Tabnine to your IDE (free)

How to use
getFullBackup
method
in
org.apache.cloudstack.engine.subsystem.api.storage.SnapshotInfo

Best Java code snippets using org.apache.cloudstack.engine.subsystem.api.storage.SnapshotInfo.getFullBackup (Showing top 2 results out of 315)

origin: apache/cloudstack

Boolean snapshotFullBackup = snapshotInfo.getFullBackup();
Boolean fullSnapshot = true;
if (snapshotFullBackup != null) {
origin: apache/cloudstack

private DataStore findSnapshotImageStore(SnapshotInfo snapshot) {
  Boolean fullSnapshot = true;
  Boolean snapshotFullBackup = snapshot.getFullBackup();
  if (snapshotFullBackup != null) {
    fullSnapshot = snapshotFullBackup;
  }
  if (fullSnapshot) {
    return dataStoreMgr.getImageStore(snapshot.getDataCenterId());
  } else {
    SnapshotInfo parentSnapshot = snapshot.getParent();
    // Note that DataStore information in parentSnapshot is for primary
    // data store here, we need to
    // find the image store where the parent snapshot backup is located
    SnapshotDataStoreVO parentSnapshotOnBackupStore = null;
    if (parentSnapshot != null) {
      parentSnapshotOnBackupStore = _snapshotStoreDao.findBySnapshot(parentSnapshot.getId(), DataStoreRole.Image);
    }
    if (parentSnapshotOnBackupStore == null) {
      return dataStoreMgr.getImageStore(snapshot.getDataCenterId());
    }
    return dataStoreMgr.getDataStore(parentSnapshotOnBackupStore.getDataStoreId(), parentSnapshotOnBackupStore.getRole());
  }
}
org.apache.cloudstack.engine.subsystem.api.storageSnapshotInfogetFullBackup

Popular methods of SnapshotInfo

  • getId
  • getBaseVolume
  • getDataStore
  • getHypervisorType
  • getName
  • getTO
  • getVolumeId
  • getAccountId
  • getDataCenterId
  • getParent
  • getSize
  • getUuid
  • getSize,
  • getUuid,
  • addPayload,
  • getChild,
  • getLocationType,
  • getPath,
  • getPayload,
  • processEvent,
  • delete

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 12 Jupyter Notebook extensions
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