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

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

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

origin: org.apache.hadoop/hadoop-hdfs

VolumeScanner(Conf conf, DataNode datanode, FsVolumeReference ref) {
 this.conf = conf;
 this.datanode = datanode;
 this.metrics = datanode.getMetrics();
 this.ref = ref;
 this.volume = ref.getVolume();
 ScanResultHandler handler;
 try {
  handler = conf.resultHandler.newInstance();
 } catch (Throwable e) {
  LOG.error("unable to instantiate {}", conf.resultHandler, e);
  handler = new ScanResultHandler();
 }
 this.resultHandler = handler;
 setName("VolumeScannerThread(" + volume + ")");
 setDaemon(true);
}
origin: ch.cern.hadoop/hadoop-hdfs

VolumeScanner(Conf conf, DataNode datanode, FsVolumeReference ref) {
 this.conf = conf;
 this.datanode = datanode;
 this.ref = ref;
 this.volume = ref.getVolume();
 ScanResultHandler handler;
 try {
  handler = conf.resultHandler.newInstance();
 } catch (Throwable e) {
  LOG.error("unable to instantiate {}", conf.resultHandler, e);
  handler = new ScanResultHandler();
 }
 this.resultHandler = handler;
 setName("VolumeScannerThread(" + volume.getBasePath() + ")");
 setDaemon(true);
}
origin: io.prestosql.hadoop/hadoop-apache

VolumeScanner(Conf conf, DataNode datanode, FsVolumeReference ref) {
 this.conf = conf;
 this.datanode = datanode;
 this.ref = ref;
 this.volume = ref.getVolume();
 ScanResultHandler handler;
 try {
  handler = conf.resultHandler.newInstance();
 } catch (Throwable e) {
  LOG.error("unable to instantiate {}", conf.resultHandler, e);
  handler = new ScanResultHandler();
 }
 this.resultHandler = handler;
 setName("VolumeScannerThread(" + volume.getBasePath() + ")");
 setDaemon(true);
}
org.apache.hadoop.hdfs.server.datanodeVolumeScannersetDaemon

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,
  • setName,
  • shutdown,
  • start

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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