congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
BlockScanner.removeVolumeScanner
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.hadoop/hadoop-hdfs

/**
 * Dynamically remove a volume in the list.
 * @param target the volume instance to be removed.
 */
private void removeVolume(FsVolumeImpl target) {
 if (volumes.remove(target)) {
  if (blockScanner != null) {
   blockScanner.removeVolumeScanner(target);
  }
  try {
   target.setClosed();
  } catch (IOException e) {
   FsDatasetImpl.LOG.warn(
     "Error occurs when waiting volume to close: " + target, e);
  }
  target.shutdown();
  volumesBeingRemoved.add(target);
  FsDatasetImpl.LOG.info("Removed volume: " + target);
 } else {
  if (FsDatasetImpl.LOG.isDebugEnabled()) {
   FsDatasetImpl.LOG.debug("Volume " + target +
     " does not exist or is removed by others.");
  }
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

 volumeList.toArray(new FsVolumeImpl[volumeList.size()]))) {
if (blockScanner != null) {
 blockScanner.removeVolumeScanner(target);
origin: io.prestosql.hadoop/hadoop-apache

 volumeList.toArray(new FsVolumeImpl[volumeList.size()]))) {
if (blockScanner != null) {
 blockScanner.removeVolumeScanner(target);
org.apache.hadoop.hdfs.server.datanodeBlockScannerremoveVolumeScanner

Javadoc

Stops and removes a volume scanner.

This function will block until the volume scanner has stopped.

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
  • getVolumeStats
  • setConf

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JLabel (javax.swing)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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