Tabnine Logo
VolumeScanner.shutdown
Code IndexAdd Tabnine to your IDE (free)

How to use
shutdown
method
in
org.apache.hadoop.hdfs.server.datanode.VolumeScanner

Best Java code snippets using org.apache.hadoop.hdfs.server.datanode.VolumeScanner.shutdown (Showing top 6 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

/**
 * Stops and removes all volume scanners.<p/>
 *
 * This function will block until all the volume scanners have stopped.
 */
public synchronized void removeAllVolumeScanners() {
 for (Entry<String, VolumeScanner> entry : scanners.entrySet()) {
  entry.getValue().shutdown();
 }
 for (Entry<String, VolumeScanner> entry : scanners.entrySet()) {
  Uninterruptibles.joinUninterruptibly(entry.getValue(),
    5, TimeUnit.MINUTES);
 }
 scanners.clear();
}
origin: org.apache.hadoop/hadoop-hdfs

/**
 * Stops and removes a volume scanner.<p/>
 *
 * This function will block until the volume scanner has stopped.
 *
 * @param volume           The volume to remove.
 */
public synchronized void removeVolumeScanner(FsVolumeSpi volume) {
 if (!isEnabled()) {
  LOG.debug("Not removing volume scanner for {}, because the block " +
    "scanner is disabled.", volume.getStorageID());
  return;
 }
 VolumeScanner scanner = scanners.get(volume.getStorageID());
 if (scanner == null) {
  LOG.warn("No scanner found to remove for volumeId {}",
    volume.getStorageID());
  return;
 }
 LOG.info("Removing scanner for volume {} (StorageID {})",
   volume, volume.getStorageID());
 scanner.shutdown();
 scanners.remove(volume.getStorageID());
 Uninterruptibles.joinUninterruptibly(scanner, 5, TimeUnit.MINUTES);
}
origin: ch.cern.hadoop/hadoop-hdfs

/**
 * Stops and removes all volume scanners.<p/>
 *
 * This function will block until all the volume scanners have stopped.
 */
public synchronized void removeAllVolumeScanners() {
 for (Entry<String, VolumeScanner> entry : scanners.entrySet()) {
  entry.getValue().shutdown();
 }
 for (Entry<String, VolumeScanner> entry : scanners.entrySet()) {
  Uninterruptibles.joinUninterruptibly(entry.getValue(),
    5, TimeUnit.MINUTES);
 }
 scanners.clear();
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Stops and removes all volume scanners.<p/>
 *
 * This function will block until all the volume scanners have stopped.
 */
public synchronized void removeAllVolumeScanners() {
 for (Entry<String, VolumeScanner> entry : scanners.entrySet()) {
  entry.getValue().shutdown();
 }
 for (Entry<String, VolumeScanner> entry : scanners.entrySet()) {
  Uninterruptibles.joinUninterruptibly(entry.getValue(),
    5, TimeUnit.MINUTES);
 }
 scanners.clear();
}
origin: ch.cern.hadoop/hadoop-hdfs

/**
 * Stops and removes a volume scanner.<p/>
 *
 * This function will block until the volume scanner has stopped.
 *
 * @param volume           The volume to remove.
 */
public synchronized void removeVolumeScanner(FsVolumeSpi volume) {
 if (!isEnabled()) {
  LOG.debug("Not removing volume scanner for {}, because the block " +
    "scanner is disabled.", volume.getStorageID());
  return;
 }
 VolumeScanner scanner = scanners.get(volume.getStorageID());
 if (scanner == null) {
  LOG.warn("No scanner found to remove for volumeId {}",
    volume.getStorageID());
  return;
 }
 LOG.info("Removing scanner for volume {} (StorageID {})",
   volume.getBasePath(), volume.getStorageID());
 scanner.shutdown();
 scanners.remove(volume.getStorageID());
 Uninterruptibles.joinUninterruptibly(scanner, 5, TimeUnit.MINUTES);
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Stops and removes a volume scanner.<p/>
 *
 * This function will block until the volume scanner has stopped.
 *
 * @param volume           The volume to remove.
 */
public synchronized void removeVolumeScanner(FsVolumeSpi volume) {
 if (!isEnabled()) {
  LOG.debug("Not removing volume scanner for {}, because the block " +
    "scanner is disabled.", volume.getStorageID());
  return;
 }
 VolumeScanner scanner = scanners.get(volume.getStorageID());
 if (scanner == null) {
  LOG.warn("No scanner found to remove for volumeId {}",
    volume.getStorageID());
  return;
 }
 LOG.info("Removing scanner for volume {} (StorageID {})",
   volume.getBasePath(), volume.getStorageID());
 scanner.shutdown();
 scanners.remove(volume.getStorageID());
 Uninterruptibles.joinUninterruptibly(scanner, 5, TimeUnit.MINUTES);
}
org.apache.hadoop.hdfs.server.datanodeVolumeScannershutdown

Javadoc

Shut down this scanner.

Popular methods of VolumeScanner

  • calculateShouldScan
  • <init>
  • disableBlockPoolId
    Disallow the scanner from scanning the given block pool.
  • enableBlockPoolId
    Allow the scanner to scan the given block pool.
  • expireOldScannedBytesRecords
  • findNextUsableBlockIter
    Find a usable block iterator. We will consider available block iterators in order. This property is
  • getStatistics
  • interrupt
  • markSuspectBlock
  • popNextSuspectBlock
    If there are elements in the suspectBlocks list, removes and returns the first one. Otherwise, retur
  • positiveMsToHours
  • printStats
  • positiveMsToHours,
  • printStats,
  • runLoop,
  • saveBlockIterator,
  • scanBlock,
  • setConf,
  • setDaemon,
  • setName,
  • start

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • JPanel (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Join (org.hibernate.mapping)
  • Runner (org.openjdk.jmh.runner)
  • From CI to AI: The AI layer in your organization
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