Tabnine Logo
BlockScanner.getVolumeStats
Code IndexAdd Tabnine to your IDE (free)

How to use
getVolumeStats
method
in
org.apache.hadoop.hdfs.server.datanode.BlockScanner

Best Java code snippets using org.apache.hadoop.hdfs.server.datanode.BlockScanner.getVolumeStats (Showing top 3 results out of 315)

origin: ch.cern.hadoop/hadoop-hdfs

 @Override
 public Boolean get() {
  synchronized (info) {
   Statistics stats = ctx.blockScanner.getVolumeStats(
     ctx.volumes.get(0).getStorageID());
   if (stats.scansSinceRestart < 3) {
    LOG.info("Waiting for scansSinceRestart to reach 3 (it is {})",
      stats.scansSinceRestart);
    return false;
   }
   if (!stats.eof) {
    LOG.info("Waiting for eof.");
    return false;
   }
   return true;
  }
 }
}, 3, 30000);
origin: ch.cern.hadoop/hadoop-hdfs

 assertEquals(NUM_EXPECTED_BLOCKS, info.blocksScanned);
Statistics stats = ctx.blockScanner.getVolumeStats(
  ctx.volumes.get(0).getStorageID());
assertEquals(5 * NUM_EXPECTED_BLOCKS, stats.bytesScannedInPastHour);
origin: ch.cern.hadoop/hadoop-hdfs

Statistics stats = ctx.blockScanner.getVolumeStats(
  ctx.volumes.get(0).getStorageID());
assertEquals(TOTAL_FILES, stats.blocksScannedSinceRestart);
org.apache.hadoop.hdfs.server.datanodeBlockScannergetVolumeStats

Popular methods of BlockScanner

  • <init>
  • isEnabled
    Returns true if the block scanner is enabled. If the block scanner is disabled, no volume scanners w
  • markSuspectBlock
    Mark a block as "suspect." This means that we should try to rescan it soon. Note that the VolumeScan
  • removeAllVolumeScanners
    Stops and removes all volume scanners. This function will block until all the volume scanners have s
  • addVolumeScanner
    Set up a scanner for the given block pool and volume.
  • disableBlockPoolId
    Disable scanning a given block pool id.
  • enableBlockPoolId
    Enable scanning a given block pool id.
  • printStats
  • removeVolumeScanner
    Stops and removes a volume scanner. This function will block until the volume scanner has stopped.
  • setConf

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Collectors (java.util.stream)
  • JLabel (javax.swing)
  • JList (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now