Examples of createSnapshot()


Examples of com.vmware.aurora.vc.VcVirtualMachine.createSnapshot()

                  template.getSnapshotByName(vmSchema.diskSchema
                        .getParentSnap());
            if (snap == null) {
               // this is a blocking call
               snap =
                     template.createSnapshot(
                           vmSchema.diskSchema.getParentSnap(),
                           "Serengeti template Root Snapshot");
            }
            return null;
         }
View Full Code Here

Examples of com.vmware.vim.binding.vim.VirtualMachine.createSnapshot()

         final IVcTaskCallback callback) throws Exception {
      VcTask task = VcContext.getTaskMgr().execute(new IVcTaskBody() {
         public VcTask body() throws Exception {
            VirtualMachine vm = getManagedObject();
            return new VcTask(TaskType.Snapshot,
                  vm.createSnapshot(name, description, false, false),
                  VcVirtualMachineImpl.this, callback);
         }
      });
      logger.debug("snap_vm task on " + this + ":" + name + " created");
      return task;
View Full Code Here

Examples of com.volantis.osgi.cm.InternalConfiguration.createSnapshot()

                    (InternalConfiguration) configurations.get(i);

            String configurationLocation =
                    configuration.getBundleLocation();
            if (bundleLocation.equals(configurationLocation)) {
                snapshots.add(configuration.createSnapshot());
            }
        }

        ConfigurationSnapshot[] array =
                new ConfigurationSnapshot[snapshots.size()];
View Full Code Here

Examples of liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot()

        };

        SnapshotGeneratorFactory snapshotGeneratorFactory = SnapshotGeneratorFactory.getInstance();
        DatabaseSnapshot referenceSnapshot;
        try {
            referenceSnapshot = snapshotGeneratorFactory.createSnapshot(referenceDatabase.getDefaultSchema(),
                    referenceDatabase, new SnapshotControl(referenceDatabase, diffTypes));
        } catch (LiquibaseException e) {
            throw new BuildException("Unable to create a DatabaseSnapshot.", e);
        }
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.log.SnapshotStoreImpl.createSnapshot()

          });
        }

        @Override
        public Snapshot toSnapshot() {
          return snapshotStore.createSnapshot();
        }
      };
    }
  }
}
View Full Code Here

Examples of org.apache.blur.manager.writer.BlurIndex.createSnapshot()

  public void createSnapshot(final String table, final String name) throws BlurException, TException {
    try {
      Map<String, BlurIndex> indexes = _indexServer.getIndexes(table);
      for (Entry<String, BlurIndex> entry : indexes.entrySet()) {
        BlurIndex index = entry.getValue();
        index.createSnapshot(name);
      }
    } catch (Exception e) {
      LOG.error("Unknown error while trying to getting indexes for table [" + table + "]", e);
      if (e instanceof BlurException) {
        throw (BlurException) e;
View Full Code Here

Examples of org.apache.blur.manager.writer.BlurIndex.createSnapshot()

    try {
      checkTable(_cluster, table);
      Map<String, BlurIndex> indexes = _indexServer.getIndexes(table);
      for (Entry<String, BlurIndex> entry : indexes.entrySet()) {
        BlurIndex index = entry.getValue();
        index.createSnapshot(name);
      }
    } catch (Exception e) {
      LOG.error("Unknown error while trying to getting indexes for table [" + table + "]", e);
      if (e instanceof BlurException) {
        throw (BlurException) e;
View Full Code Here

Examples of org.apache.hadoop.fs.FileSystem.createSnapshot()

      final Path foo = new Path("/foo");
      dfs.mkdirs(foo);

      try {
        webHdfs.createSnapshot(foo);
        fail("Cannot create snapshot on a non-snapshottable directory");
      } catch (Exception e) {
        GenericTestUtils.assertExceptionContains(
            "Directory is not a snapshottable directory", e);
      }
View Full Code Here

Examples of org.apache.hadoop.fs.FileSystem.createSnapshot()

      }

      // allow snapshots on /foo
      dfs.allowSnapshot(foo);
      // create snapshots on foo using WebHdfs
      webHdfs.createSnapshot(foo, "s1");
      // create snapshot without specifying name
      final Path spath = webHdfs.createSnapshot(foo, null);

      Assert.assertTrue(webHdfs.exists(spath));
      final Path s1path = SnapshotTestHelper.getSnapshotRoot(foo, "s1");
View Full Code Here

Examples of org.apache.hadoop.fs.FileSystem.createSnapshot()

      // allow snapshots on /foo
      dfs.allowSnapshot(foo);
      // create snapshots on foo using WebHdfs
      webHdfs.createSnapshot(foo, "s1");
      // create snapshot without specifying name
      final Path spath = webHdfs.createSnapshot(foo, null);

      Assert.assertTrue(webHdfs.exists(spath));
      final Path s1path = SnapshotTestHelper.getSnapshotRoot(foo, "s1");
      Assert.assertTrue(webHdfs.exists(s1path));
    } finally {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.