Examples of RandomAccessFileReadWriteCache


Examples of net.sf.joafip.file.service.RandomAccessFileReadWriteCache

    }
    this.file = fileAccessParameter.getFile();
    if (this.useCache) {
      final IRandomAccessFile randomAccessFileDirect = newRandomAccessFile(fileAccessParameter);
      try {
        randomAccessFile = new RandomAccessFileReadWriteCache(
            randomAccessFileDirect,
            fileAccessParameter.getPageSize(),
            fileAccessParameter.getMaxPage());
      } catch (FileIOException exception) {
        throw new HeapException(exception);
View Full Code Here

Examples of net.sf.joafip.file.service.RandomAccessFileReadWriteCache

    super();
    final File file = new File("runtime/data");
    final IRandomAccessFile drandomAccessFile = new RandomAccessFileDirectNio(
        file, 0, 0);
    try {
      randomAccessFile = new RandomAccessFileReadWriteCache(
          drandomAccessFile, pageSize, maxPage, true);
    } catch (FileIOException exception) {
      throw new HeapException(exception);
    }
    header.setBlockLength(blockLength);
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.