Package org.exist.backup

Examples of org.exist.backup.SystemExport$CollectionCallback


            assertNotNull(broker);

            Collection root = broker.getCollection(col1uri);
          assertNotNull(root);

            SystemExport sysexport = new SystemExport( broker, null, null, true );
            file = sysexport.export( "backup", false, false, null );
        } finally {
          pool.release(broker);
        }
     
      clean();
View Full Code Here


          builder.startDocument();
          builder.startElement(EXPORT_ELEMENT, null);
        }
       
        try {
          final SystemExport export = new SystemExport(context.getBroker(), new Callback(builder), null, true);
            export.export(dirOrFile, incremental, zip, null);
        } catch (final Exception e) {
            throw new XPathException(this, "restore failed with exception: " + e.getMessage(), e);
        }
        if (builder == null) {
          return Sequence.EMPTY_SEQUENCE;
View Full Code Here

            }

            if (doBackup) {
                LOG.info("Starting backup...");

                final SystemExport sysexport = new SystemExport(broker, logCallback, monitor, false);
                lastExportedBackup = sysexport.export(exportDir, incremental, maxInc, createZip, errors);
                agentInstance.changeStatus(brokerPool, new TaskStatus(TaskStatus.Status.RUNNING_BACKUP));

                if (lastExportedBackup != null) {
                    LOG.info("Created backup to file: " + lastExportedBackup.getAbsolutePath());
                }
View Full Code Here

 
        //set metas
        meta = docMD.put(KEY1, VALUE2);
        key3UUID = meta.getUUID();
 
            SystemExport sysexport = new SystemExport( broker, null, null, true );
            file = sysexport.export( "backup", false, false, null );
        } finally {
          pool.release(broker);
        }
     
      clean();
View Full Code Here

TOP

Related Classes of org.exist.backup.SystemExport$CollectionCallback

Copyright © 2018 www.massapicom. 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.