Examples of exportDatabase()


Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport.exportDatabase()

  public void testDbExport() throws IOException {
    ODatabaseDocumentTx database = new ODatabaseDocumentTx(url);
    database.open("admin", "admin");

    ODatabaseExport export = new ODatabaseExport(database, testPath + "/" + EXPORT_FILE_PATH, this);
    export.exportDatabase();
    export.close();

    database.close();
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport.exportDatabase()

       iResponse.writeHeaders(OHttpUtils.CONTENT_GZIP);
       iResponse.writeLine("Content-Disposition: attachment; filename=" + database.getName() + ".gz");
       iResponse.writeLine("Date: " + new Date());
       iResponse.writeLine(null);
       final ODatabaseExport export = new ODatabaseExport(database, new GZIPOutputStream(iResponse.getOutputStream(), 16384), this);
       export.exportDatabase();

       try {
         iResponse.flush();
       } catch (SocketException e) {
       }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport.exportDatabase()

    message("\nExporting current database to: " + iOutputFilePath + "...");

    try {
      ODatabaseExport exporter = new ODatabaseExport(currentDatabase, iOutputFilePath, this);
      exporter.setIncludeRecords(false);
      exporter.exportDatabase().close();
    } catch (ODatabaseExportException e) {
      printError(e);
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport.exportDatabase()

  public void testDbExport() throws IOException {
    ODatabaseDocumentTx database = new ODatabaseDocumentTx(url);
    database.open("admin", "admin");

    ODatabaseExport export = new ODatabaseExport(database, testPath + "/" + EXPORT_FILE_PATH, this);
    export.exportDatabase();
    export.close();

    database.close();
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport.exportDatabase()

        public void onMessage(String iText) {

        }
      };
      ODatabaseExport export = new ODatabaseExport(exportDatabase, EXPORT_DIR, listener);
      export.exportDatabase();
      export.close();
      exportDatabase.close();
      ODatabaseDocumentTx importDatabase = new ODatabaseDocumentTx(url + "_objectschema");
      importDatabase.open("admin", "admin");
      ODatabaseImport impor = new ODatabaseImport(importDatabase, EXPORT_DIR, listener);
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport.exportDatabase()

    try (ODatabaseDocumentTx db = openDb()) {
      checkState(db.exists(), "Database does not exist: %s", name);

      log.debug("Starting export");
      ODatabaseExport exporter = new ODatabaseExport(db, output, new LoggingCommandOutputListener("EXPORT"));
      exporter.exportDatabase();
      log.debug("Completed export");
    }
  }

  @Override
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport.exportDatabase()

        @Override
        public void onMessage(final String text) {
          log("> {}", text.trim());
        }
      });
      exporter.exportDatabase();
    }

    try (ODatabaseDocumentTx db = createDatabase("test2")) {
      log("Importing from: {}", file);
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport.exportDatabase()

          dbFreeze.set(true);
        }
      }
      oe.setUseLineFeedForRecords(true);
      oe.setIncludeManualIndexes(true);
      oe.exportDatabase();
      oe.close();
    }catch(Exception ioe){
      throw new UnableToExportDbException(ioe);
    }finally{
      if(db!=null && ! db.isClosed()){
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.