Examples of OStorageFileConfiguration


Examples of com.orientechnologies.orient.core.config.OStorageFileConfiguration

        final OFile f = files[0];
        files = new OFile[1];
        files[0] = f;

        // UPDATE CONFIGURATION
        final OStorageFileConfiguration fileConfig = config.infoFiles[0];
        config.infoFiles = new OStorageFileConfiguration[1];
        config.infoFiles[0] = fileConfig;
        config.root.update();
      }
    } finally {
View Full Code Here

Examples of com.orientechnologies.orient.core.config.OStorageFileConfiguration

    // CREATE A NEW ENTRY FOR THE NEW FILE
    String fileNameToStore = storage.getVariableParser().convertPathToRelative(OFileUtils.getPath(file.getOsFile().getPath()));

    final OStorageSegmentConfiguration template = config.root.fileTemplate;

    config.infoFiles[config.infoFiles.length - 1] = new OStorageFileConfiguration(config, fileNameToStore, template.fileType,
        template.fileMaxSize, template.fileIncrementSize);
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.config.OStorageFileConfiguration

  private static final ORecordId  CONFIGURATION_RID  = new ORecordId(0, 0);
  private OSingleFileSegment      segment;

  public OStorageConfigurationSegment(final OStorageLocal iStorage, final String iPath) throws IOException {
    super(iStorage);
    segment = new OSingleFileSegment((OStorageLocal) storage, new OStorageFileConfiguration(null, iPath + "/database.ocf",
        fileTemplate.fileType, fileTemplate.maxSize, fileTemplate.fileIncrementSize));
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.config.OStorageFileConfiguration

        final OFile f = files[0];
        files = new OFile[1];
        files[0] = f;

        // UPDATE CONFIGURATION
        final OStorageFileConfiguration fileConfig = config.infoFiles[0];
        config.infoFiles = new OStorageFileConfiguration[1];
        config.infoFiles[0] = fileConfig;
        config.root.update();
      }
    } finally {
View Full Code Here

Examples of com.orientechnologies.orient.core.config.OStorageFileConfiguration

    // CREATE A NEW ENTRY FOR THE NEW FILE
    String fileNameToStore = storage.getVariableParser().convertPathToRelative(OFileUtils.getPath(file.getOsFile().getPath()));

    final OStorageSegmentConfiguration template = config.root.fileTemplate;

    config.infoFiles[config.infoFiles.length - 1] = new OStorageFileConfiguration(config, fileNameToStore, template.fileType,
        template.fileMaxSize, template.fileIncrementSize);
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.config.OStorageFileConfiguration

  private static final int    START_SIZE  = 10000;
  private OSingleFileSegment  segment;

  public OStorageConfigurationSegment(final OStorageLocal iStorage, final String iPath) throws IOException {
    super(iStorage);
    segment = new OSingleFileSegment((OStorageLocal) storage, new OStorageFileConfiguration(null, iPath + "/database.ocf",
        fileTemplate.fileType, fileTemplate.maxSize, fileTemplate.fileIncrementSize));
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.config.OStorageFileConfiguration

  private static final int         START_SIZE = 10000;
  private final OSingleFileSegment segment;

  public OStorageConfigurationSegment(final OLocalPaginatedStorage iStorage) throws IOException {
    super(iStorage);
    segment = new OSingleFileSegment((OLocalPaginatedStorage) storage, new OStorageFileConfiguration(null, getDirectory()
        + "/database.ocf", "classic", fileTemplate.maxSize, fileTemplate.fileIncrementSize));
  }
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.