Examples of OStorageLocal


Examples of com.orientechnologies.orient.core.storage.impl.local.OStorageLocal

    if (!(currentDatabase.getStorage() instanceof OStorageLocal)) {
      out.println("Error: can't show holes in remote databases: connect as local");
      return;
    }

    final OStorageLocal storage = (OStorageLocal) currentDatabase.getStorage();

    out.println("List of holes in database " + currentDatabaseName + "...");

    out.println("--------------------------------------------------");
    out.println("Position             Size");
    out.println("--------------------------------------------------");

    final List<ODataHoleInfo> result = storage.getHolesList();

    for (ODataHoleInfo ppos : result) {
      out.printf("%20d %11d\n", ppos.dataOffset, ppos.size);
    }
    out.println("--------------------------------------------------");
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.impl.local.OStorageLocal

        if (clusterConfig != null)
          out.println("\nCluster configuration: " + clusterConfig.toJSON("indent:2"));
        else
          out.println("\nCluster configuration: none");
      } else if (stg instanceof OStorageLocal) {
        final OStorageLocal localStorage = (OStorageLocal) stg;

        long holeSize = localStorage.getHoleSize();

        out.print("\nFragmented at " + (float) (holeSize * 100f / localStorage.getSize()) + "%");
        out.println(" (" + localStorage.getHoles() + " holes, total size of holes: " + OFileUtils.getSizeAsString(holeSize) + ")");
      }

      clusters();
      classes();
      indexes();
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.impl.local.OStorageLocal

    if (!(currentDatabase.getStorage() instanceof OStorageLocal)) {
      out.println("Error: can't show holes in remote databases: connect as local");
      return;
    }

    final OStorageLocal storage = (OStorageLocal) currentDatabase.getStorage();

    out.println("List of holes in database " + currentDatabaseName + "...");

    out.println("--------------------------------------------------");
    out.println("Position             Size");
    out.println("--------------------------------------------------");

    final List<ODataHoleInfo> result = storage.getHolesList();

    for (ODataHoleInfo ppos : result) {
      out.printf("%20d %11d\n", ppos.dataOffset, ppos.size);
    }
    out.println("--------------------------------------------------");
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.impl.local.OStorageLocal

  public static final String  NAME  = "local";

  public OStorage createStorage(final String iDbName, final Map<String, String> iConfiguration) {
    try {
      // GET THE STORAGE
      return new OStorageLocal(iDbName, iDbName, getMode(iConfiguration));

    } catch (Throwable t) {
      OLogManager.instance().error(this,
          "Error on opening database: " + iDbName + ". Current location is: " + new java.io.File(".").getAbsolutePath(), t,
          ODatabaseException.class);
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.impl.local.OStorageLocal

    if (!(currentDatabase.getStorage() instanceof OStorageLocal)) {
      out.println("Error: can't show holes in remote databases: connect as local");
      return;
    }

    final OStorageLocal storage = (OStorageLocal) currentDatabase.getStorage();

    out.println("List of holes in database " + currentDatabaseName + "...");

    out.println("--------------------------------------------------");
    out.println("Position             Size");
    out.println("--------------------------------------------------");

    final List<ODataHoleInfo> result = storage.getHolesList();

    for (ODataHoleInfo ppos : result) {
      out.printf("%20d %11d\n", ppos.dataOffset, ppos.size);
    }
    out.println("--------------------------------------------------");
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.impl.local.OStorageLocal

    if (!(currentDatabase.getStorage() instanceof OStorageLocal)) {
      out.println("Error: can't show holes in remote databases: connect as local");
      return;
    }

    final OStorageLocal storage = (OStorageLocal) currentDatabase.getStorage();

    out.println("List of holes in database " + currentDatabaseName + "...");

    out.println("--------------------------------------------------");
    out.println("Position             Size");
    out.println("--------------------------------------------------");

    final List<ODataHoleInfo> result = storage.getHolesList();

    for (ODataHoleInfo ppos : result) {
      out.printf("%20d %11d\n", ppos.dataOffset, ppos.size);
    }
    out.println("--------------------------------------------------");
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.