Examples of openFile()


Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.ODiskCache.openFile()

            final long fileId = updatePageRecord.getFileId();
            final long pageIndex = updatePageRecord.getPageIndex();

            if (!expectedDiskCache.isOpen(fileId))
              expectedDiskCache.openFile(fileId);

            final OCacheEntry cacheEntry = expectedDiskCache.load(fileId, pageIndex, true);
            cacheEntry.acquireExclusiveLock();
            try {
              ODurablePage durablePage = new ODurablePage(cacheEntry, ODurablePage.TrackMode.NONE);
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.ODiskCache.openFile()

              cacheEntry.releaseExclusiveLock();
              expectedDiskCache.release(cacheEntry);
            }
          } else if (restoreRecord instanceof OFileCreatedCreatedWALRecord) {
            final OFileCreatedCreatedWALRecord fileCreatedCreatedRecord = (OFileCreatedCreatedWALRecord) restoreRecord;
            expectedDiskCache.openFile(
                fileCreatedCreatedRecord.getFileName().replace("actualLocalHashTable", "expectedLocalHashTable"),
                fileCreatedCreatedRecord.getFileId());
          }
        }
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.ODiskCache.openFile()

    try {
      storage = storageLocal;

      final ODiskCache diskCache = storage.getDiskCache();

      fileStateId = diskCache.openFile(name + metadataConfigurationFileExtension);
      hashStateEntry = diskCache.load(fileStateId, 0, true);
      try {
        OHashIndexFileLevelMetadataPage metadataPage = new OHashIndexFileLevelMetadataPage(hashStateEntry,
            ODurablePage.TrackMode.NONE, false);
        for (int i = 0; i < HASH_CODE_SIZE; i++) {
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.ODiskCache.openFile()

      try {
        OHashIndexFileLevelMetadataPage metadataPage = new OHashIndexFileLevelMetadataPage(hashStateEntry,
            ODurablePage.TrackMode.NONE, false);
        for (int i = 0; i < HASH_CODE_SIZE; i++) {
          if (!metadataPage.isRemoved(i)) {
            diskCache.openFile(metadataPage.getFileId(i));
            diskCache.deleteFile(metadataPage.getFileId(i));
          }
        }
      } finally {
        diskCache.release(hashStateEntry);
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.ODiskCache.openFile()

      diskCache.deleteFile(fileStateId);
      directory = new OHashTableDirectory(treeStateFileExtension, name, durableInNonTxMode, storage);
      directory.deleteWithoutOpen();

      final long nullBucketId = diskCache.openFile(name + nullBucketFileExtension);
      diskCache.deleteFile(nullBucketId);
    } catch (IOException ioe) {
      throw new OIndexException("Can not delete hash table with name " + name, ioe);
    } finally {
      releaseExclusiveLock();
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.ODiskCache.openFile()

      if (storage instanceof OAbstractPaginatedStorage) {
        final ODiskCache diskCache = ((OAbstractPaginatedStorage) storage).getDiskCache();
        try {
          final String fileName = getName() + OIndexRIDContainer.INDEX_FILE_EXTENSION;
          if (diskCache.exists(fileName)) {
            final long fileId = diskCache.openFile(fileName);
            diskCache.deleteFile(fileId);
          }
        } catch (IOException e) {
          OLogManager.instance().error(this, "Can't delete file for value containers", e);
        }
View Full Code Here

Examples of com.sun.pdfview.PDFViewer.openFile()

       
      public PDFHelpFrame(File pdfFile) {
           
            PDFViewer pdfv = new PDFViewer(false);
            try {
                pdfv.openFile(pdfFile);
               
            } catch (IOException ex) {
                ex.printStackTrace();
            }
           
View Full Code Here

Examples of com.webobjects._ideservices._IDEProject.openFile()

            } else {
               
                _IDEProject ideproject = woproject.ideProject();
                int lineInt = (line == null) ? 0 : line.intValue();

                ideproject.openFile(filePath, lineInt, errorMessage);
            }
        }

        return javascriptBack();
    }
View Full Code Here

Examples of data.FileControllerD.openFile()

    }

  public void openFile(JTextArea ta) {
    FileControllerD _fc = new FileControllerD();
    _fc.openFile(ta);
  }


  public void saveFile(JTextArea ta) {
    FileControllerD _fc = new FileControllerD();
View Full Code Here

Examples of domain.FileControllerDomain.openFile()

    * @return BufferedReader amb el contingut del fitxer de text.
    * @throws -
    */
    public BufferedReader getFileR() {
            FileControllerDomain fCD = new FileControllerDomain();
            _fc = fCD.openFile();
            /*
             * LA FUNCIO DE SOBR S'HAURIA D'INVOCAR AL CONTROLADOR DE DOMINI
                PROPI DE CADA SUBGRUP, HE POSAT EL DE PRESENTACIO PER COMODITAT
             */
            File fitxer = _fc.getSelectedFile();
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.