Examples of listSnapshots()


Examples of org.apache.hadoop.hbase.client.HBaseAdmin.listSnapshots()

    }

    // dump for debugging
    logFSTree(FSUtils.getRootDir(UTIL.getConfiguration()));

    List<SnapshotDescription> taken = admin.listSnapshots();
    int takenSize = taken.size();
    LOG.info("Taken " + takenSize + " snapshots:  " + taken);
    assertTrue("We expect at least 1 request to be rejected because of we concurrently" +
        " issued many requests", takenSize < ssNum && takenSize > 0);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.listSnapshots()

    SnapshotTestingUtils.confirmSnapshotValid(snapshots.get(0), TABLE_NAME, TEST_FAM, rootDir,
      admin, fs, false, new Path(rootDir, HConstants.HREGION_LOGDIR_NAME), snapshotServers);

    admin.deleteSnapshot(snapshot);
    snapshots = admin.listSnapshots();
    SnapshotTestingUtils.assertNoSnapshots(admin);
  }

  @Test
  public void testSnapshotFailsOnNonExistantTable() throws Exception {
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.listSnapshots()

    }

    // dump for debugging
    logFSTree(new Path(UTIL.getConfiguration().get(HConstants.HBASE_DIR)));

    List<SnapshotDescription> taken = admin.listSnapshots();
    int takenSize = taken.size();
    LOG.info("Taken " + takenSize + " snapshots:  " + taken);
    assertTrue("We expect at least 1 request to be rejected because of we concurrently" +
        " issued many requests", takenSize < ssNum && takenSize > 0);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.listSnapshots()

    SnapshotTestingUtils.confirmSnapshotValid(snapshots.get(0), TABLE_NAME, TEST_FAM, rootDir,
      admin, fs, false, new Path(rootDir, HConstants.HREGION_LOGDIR_NAME), snapshotServers);

    admin.deleteSnapshot(snapshot);
    snapshots = admin.listSnapshots();
    SnapshotTestingUtils.assertNoSnapshots(admin);
  }

  @Test
  public void testSnapshotFailsOnNonExistantTable() throws Exception {
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.listSnapshots()

    }

    // dump for debugging
    logFSTree(new Path(UTIL.getConfiguration().get(HConstants.HBASE_DIR)));

    List<SnapshotDescription> taken = admin.listSnapshots();
    int takenSize = taken.size();
    LOG.info("Taken " + takenSize + " snapshots:  " + taken);
    assertTrue("We expect at least 1 request to be rejected because of we concurrently" +
        " issued many requests", takenSize < ssNum && takenSize > 0);
    // delete snapshots so subsequent tests are clean.
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.SnapshotProtocol.listSnapshots()

    try {
      assertTrue(ssShell.run(argv) == 0);
    } catch (Exception e) {
      fail();
    }
    String[] ids = ssProtocol.listSnapshots();
    assertTrue(ids.length == 2);
    assertTrue(!ids[0].equals(ids[1]));
    assertTrue(ids[0].equals("test") || ids[0].equals("testNoLease"));
    assertTrue(ids[1].equals("test") || ids[1].equals("testNoLease"));
View Full Code Here

Examples of org.drools.guvnor.client.rpc.ModuleServiceAsync.listSnapshots()

                                 final String packageName) {
        final ModuleServiceAsync serv = RepositoryServiceFactory.getPackageService();
        Button btn = new Button( Constants.INSTANCE.Copy() );
        btn.addClickHandler( new ClickHandler() {
            public void onClick(ClickEvent event) {
                serv.listSnapshots( packageName,
                                    createGenericCallback( snapshotName,
                                                           packageName,
                                                           serv ) );
            }
        } );
View Full Code Here

Examples of org.drools.guvnor.client.rpc.ModuleServiceAsync.listSnapshots()

                                    final String snapshotName) {
        HorizontalPanel hPanel = new HorizontalPanel();
        hPanel.add( new Label( "Compare to:" ) );
       
        ModuleServiceAsync moduleService = GWT.create(ModuleService.class);
        moduleService.listSnapshots( this.parentConf.getName(),
                                                                    new GenericCallback<SnapshotInfo[]>() {
                                                                        public void onSuccess(SnapshotInfo[] info) {
                                                                            for ( int i = 0; i < info.length; i++ ) {
                                                                                if ( !snapshotName.equals( info[i].getName() ) ) {
                                                                                    box.addItem( info[i].getName() );
View Full Code Here

Examples of org.drools.guvnor.client.rpc.ModuleServiceAsync.listSnapshots()

                                 final String packageName) {
        final ModuleServiceAsync moduleService = GWT.create(ModuleService.class);
        Button btn = new Button( Constants.INSTANCE.Copy() );
        btn.addClickHandler( new ClickHandler() {
            public void onClick(ClickEvent event) {
                moduleService.listSnapshots( packageName,
                                    createGenericCallback( snapshotName,
                                                           packageName,
                                                           moduleService ) );
            }
        } );
View Full Code Here

Examples of org.drools.guvnor.client.rpc.ModuleServiceAsync.listSnapshots()

        if ( node.getUserObject() instanceof Module ) {
            final Module packageConfigData = (Module) node.getUserObject();


            ModuleServiceAsync moduleService = GWT.create(ModuleService.class);
            moduleService.listSnapshots(
                    packageConfigData.getName(),
                    new GenericCallback<SnapshotInfo[]>() {
                        public void onSuccess(SnapshotInfo[] snaps) {
                            node.removeItems();
                            for (final SnapshotInfo snapInfo : snaps) {
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.