Package org.apache.hadoop.hdfs.util

Examples of org.apache.hadoop.hdfs.util.DaemonThreadFactory


  public void setNumParallelThreadsForReads(int num) {
    if (this.parallelReadsThreadPool == null) {
      this.parallelReadsThreadPool = new ThreadPoolExecutor(1,
          num, 60, TimeUnit.SECONDS,
        new SynchronousQueue<Runnable>(),
        new DaemonThreadFactory("dfsclient-reader-thread-"),
        new ThreadPoolExecutor.CallerRunsPolicy() {
       
          public void rejectedExecution(Runnable r, ThreadPoolExecutor e) {
            // increment metrics
            LOG.debug("Execution rejected, Executing in current thread");
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.util.DaemonThreadFactory

Copyright © 2018 www.massapicom. 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.