Examples of ODatabaseExport


Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport

    OLogManager.instance().info(this, "Exporting database '%s' via streaming to remote server node: %s...", iDatabase.getName(),
        iRemoteServerName);

    // START THE EXPORT GIVING AS OUTPUTSTREAM THE CHANNEL TO STREAM THE EXPORT
    new ODatabaseExport(iDatabase, new OChannelBinaryOutputStream(channel), this).exportDatabase();

    OLogManager.instance().info(this, "Database exported correctly");

    databaseEntry = new OServerNodeDatabaseEntry();
    databaseEntry.databaseName = dbName;
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport

  @Test
  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

    checkCurrentDatabase();

    out.println("Exporting current database to: " + iOutputFilePath + "...");

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

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport

    checkCurrentDatabase();

    out.println("Exporting current database to: " + iOutputFilePath + "...");

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

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport

      OLogManager.instance().info(this, "Exporting database '%s' via streaming to remote server node: %s...", iDatabase.getName(),
          iRemoteServerName);

      // START THE EXPORT GIVING AS OUTPUTSTREAM THE CHANNEL TO STREAM THE EXPORT
      new ODatabaseExport(iDatabase, new OChannelBinaryOutputStream(channel), this).exportDatabase();

      OLogManager.instance().info(this, "Database exported correctly");

      final OServerNodeDatabaseEntry databaseEntry = new OServerNodeDatabaseEntry();
      databaseEntry.databaseName = dbName;
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport

    checkCurrentDatabase();

    out.println("Exporting current database to: " + iOutputFilePath + "...");

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

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport

      OLogManager.instance().info(this, "Exporting database '%s' via streaming to remote server node: %s...", iDatabase.getName(),
          iRemoteServerName);

      // START THE EXPORT GIVING AS OUTPUTSTREAM THE CHANNEL TO STREAM THE EXPORT
      new ODatabaseExport(iDatabase, new OChannelBinaryOutputStream(channel), this).exportDatabase();

      OLogManager.instance().info(this, "Database exported correctly");

      final OServerNodeDatabaseEntry databaseEntry = new OServerNodeDatabaseEntry();
      databaseEntry.databaseName = dbName;
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport

    checkCurrentDatabase();

    out.println("Exporting current database to: " + iOutputFilePath + "...");

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

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseExport

       iResponse.writeStatus(OHttpUtils.STATUS_OK_CODE, OHttpUtils.STATUS_OK_DESCRIPTION);
       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

    final List<String> items = OStringSerializerHelper.smartSplit(iText, ' ');
    final String fileName = items.size() <= 1 || items.get(1).charAt(0) == '-' ? null : items.get(1);
    final String options = fileName != null ? iText.substring(items.get(0).length() + items.get(1).length() + 1).trim() : iText;

    try {
      new ODatabaseExport(currentDatabase, fileName, this).setOptions(options).exportDatabase().close();
    } catch (ODatabaseExportException e) {
      printError(e);
    }
  }
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.