Examples of JournalInfo


Examples of com.persistit.Management.JournalInfo

        for (final VolumeInfo info : volumes) {
            if (!info.isTransient()) {
                _files.add(info.getPath());
            }
        }
        final JournalInfo info = _persistit.getManagement().getJournalInfo();
        final long baseAddress = info.getBaseAddress();
        final long currentAddress = info.getCurrentJournalAddress();
        final long blockSize = info.getBlockSize();
        final String path = JournalManager.fileToPath(new File(info.getCurrentJournalFile()));
        for (long generation = baseAddress / blockSize; generation <= currentAddress / blockSize; generation++) {
            final File file = JournalManager.generationToFile(path, generation);
            _files.add(file.getAbsolutePath());
        }
        final StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of com.persistit.Management.JournalInfo

        stat("new").update(time, newPages);
        stat("evict").update(time, evictions);
    }

    private void updateJournalStatistics(final Management management, final long time) throws Exception {
        final JournalInfo info = management.getJournalInfo();
        stat("jwrite").update(time, info.getJournaledPageCount());
        stat("jread").update(time, info.getReadPageCount());
        stat("jcopy").update(time, info.getCopiedPageCount());
    }
View Full Code Here

Examples of com.persistit.Management.JournalInfo

        stat("new").update(time, newPages);
        stat("evict").update(time, evictions);
    }

    private void updateJournalStatistics(final Management management, final long time) throws Exception {
        final JournalInfo info = management.getJournalInfo();
        stat("jwrite").update(time, info.getJournaledPageCount());
        stat("jread").update(time, info.getReadPageCount());
        stat("jcopy").update(time, info.getCopiedPageCount());
    }
View Full Code Here

Examples of com.persistit.Management.JournalInfo

        stat("new").update(time, newPages);
        stat("evict").update(time, evictions);
    }

    private void updateJournalStatistics(final Management management, final long time) throws Exception {
        final JournalInfo info = management.getJournalInfo();
        stat("jwrite").update(time, info.getJournaledPageCount());
        stat("jread").update(time, info.getReadPageCount());
        stat("jcopy").update(time, info.getCopiedPageCount());
    }
View Full Code Here

Examples of com.persistit.Management.JournalInfo

        for (final VolumeInfo info : volumes) {
            if (!info.isTransient()) {
                _files.add(info.getPath());
            }
        }
        final JournalInfo info = _persistit.getManagement().getJournalInfo();
        final long baseAddress = info.getBaseAddress();
        final long currentAddress = info.getCurrentJournalAddress();
        final long blockSize = info.getBlockSize();
        String path = JournalManager.fileToPath(new File(info.getCurrentJournalFile()));
        for (long generation = baseAddress / blockSize; generation <= currentAddress / blockSize; generation++) {
            File file = JournalManager.generationToFile(path, generation);
            _files.add(file.getAbsolutePath());
        }
        final StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of com.persistit.Management.JournalInfo

        for (final VolumeInfo info : volumes) {
            if (!info.isTransient()) {
                _files.add(info.getPath());
            }
        }
        final JournalInfo info = _persistit.getManagement().getJournalInfo();
        final long baseAddress = info.getBaseAddress();
        final long currentAddress = info.getCurrentJournalAddress();
        final long blockSize = info.getBlockSize();
        final String path = JournalManager.fileToPath(new File(info.getCurrentJournalFile()));
        for (long generation = baseAddress / blockSize; generation <= currentAddress / blockSize; generation++) {
            final File file = JournalManager.generationToFile(path, generation);
            _files.add(file.getAbsolutePath());
        }
        final StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of com.persistit.Management.JournalInfo

        stat("new").update(time, newPages);
        stat("evict").update(time, evictions);
    }

    private void updateJournalStatistics(final Management management, final long time) throws Exception {
        final JournalInfo info = management.getJournalInfo();
        stat("jwrite").update(time, info.getJournaledPageCount());
        stat("jread").update(time, info.getReadPageCount());
        stat("jcopy").update(time, info.getCopiedPageCount());
    }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.JournalInfo

  }

  public static JournalInfo convert(JournalInfoProto info) {
    int lv = info.hasLayoutVersion() ? info.getLayoutVersion() : 0;
    int nsID = info.hasNamespaceID() ? info.getNamespaceID() : 0;
    return new JournalInfo(lv, info.getClusterID(), nsID);
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.JournalInfo

  private final NamenodeRegistration bnReg;
  private final JournalInfo journalInfo;
 
  BackupJournalManager(NamenodeRegistration bnReg,
      NamenodeRegistration nnReg) {
    journalInfo = new JournalInfo(nnReg.getLayoutVersion(),
        nnReg.getClusterID(), nnReg.getNamespaceID());
    this.bnReg = bnReg;
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.JournalInfo

  }

  public static JournalInfo convert(JournalInfoProto info) {
    int lv = info.hasLayoutVersion() ? info.getLayoutVersion() : 0;
    int nsID = info.hasNamespaceID() ? info.getNamespaceID() : 0;
    return new JournalInfo(lv, info.getClusterID(), nsID);
  }
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.