/** Construct a daemon thread. */ public Daemon(Runnable runnable) { super(runnable); this.runnable = runnable; this.setName(((Object)runnable).toString()); }
/** Construct a daemon thread to be part of a specified thread group. */ public Daemon(ThreadGroup group, Runnable runnable) { super(group, runnable); this.runnable = runnable; this.setName(((Object)runnable).toString()); }
/** * Initializes block movement tracker daemon and starts the thread. */ private void startMovementTracker() { movementTrackerThread = new Daemon(this.blkMovementTracker); movementTrackerThread.setName("BlockStorageMovementTracker"); movementTrackerThread.start(); }
public void activate() { pathIdCollector = new Daemon(pathIDProcessor); pathIdCollector.setName("SPSPathIdProcessor"); pathIdCollector.start(); }
public void activate(Configuration conf, long blockTotal) { pendingReconstruction.start(); datanodeManager.activate(conf); this.redundancyThread.setName("RedundancyMonitor"); this.redundancyThread.start(); storageInfoDefragmenterThread.setName("StorageInfoMonitor"); storageInfoDefragmenterThread.start(); this.blockReportThread.start(); mxBeanName = MBeans.register("NameNode", "BlockStats", this); bmSafeMode.activate(blockTotal); }
/** * Starts the monitor thread. */ public synchronized void start() { monitorRunning = true; timerThread = new Daemon(new BlocksStorageMovementAttemptMonitor()); timerThread.setName("BlocksStorageMovementAttemptMonitor"); timerThread.start(); }
/** * Start storage policy satisfier demon thread. Also start block storage * movements monitor for retry the attempts if needed. */ @Override public synchronized void start(StoragePolicySatisfierMode serviceMode) { if (serviceMode == StoragePolicySatisfierMode.NONE) { LOG.error("Can't start StoragePolicySatisfier for the given mode:{}", serviceMode); return; } LOG.info("Starting {} StoragePolicySatisfier.", StringUtils.toLowerCase(serviceMode.toString())); isRunning = true; storagePolicySatisfierThread = new Daemon(this); storagePolicySatisfierThread.setName("StoragePolicySatisfier"); storagePolicySatisfierThread.start(); this.storageMovementsMonitor.start(); this.storageMovementNeeded.activate(); dnCacheMgr = new DatanodeCacheManager(conf); }
/** * For each block in the name-node verify whether it belongs to any file, * extra or low redundancy. Place it into the respective queue. */ public void processMisReplicatedBlocks() { assert namesystem.hasWriteLock(); stopReconstructionInitializer(); neededReconstruction.clear(); reconstructionQueuesInitializer = new Daemon() { @Override public void run() { try { processMisReplicatesAsync(); } catch (InterruptedException ie) { LOG.info("Interrupted while processing reconstruction queues."); } catch (Exception e) { LOG.error("Error while processing reconstruction queues async", e); } } }; reconstructionQueuesInitializer .setName("Reconstruction Queue Initializer"); reconstructionQueuesInitializer.start(); }
/** Construct a daemon thread. */ public Daemon(Runnable runnable) { super(runnable); this.runnable = runnable; this.setName(((Object)runnable).toString()); }
/** Construct a daemon thread to be part of a specified thread group. */ public Daemon(ThreadGroup group, Runnable runnable) { super(group, runnable); this.runnable = runnable; this.setName(((Object)runnable).toString()); }
/** Construct a daemon thread. */ public Daemon(Runnable runnable) { super(runnable); this.runnable = runnable; this.setName(((Object)runnable).toString()); }
/** Construct a daemon thread to be part of a specified thread group. */ public Daemon(ThreadGroup group, Runnable runnable) { super(group, runnable); this.runnable = runnable; this.setName(((Object)runnable).toString()); }
/** Construct a daemon thread. */ public Daemon(Runnable runnable) { super(runnable); this.runnable = runnable; this.setName(((Object)runnable).toString()); }
/** Construct a daemon thread to be part of a specified thread group. */ public Daemon(ThreadGroup group, Runnable runnable) { super(group, runnable); this.runnable = runnable; this.setName(((Object)runnable).toString()); }
/** Construct a daemon thread to be part of a specified thread group. */ public Daemon(ThreadGroup group, Runnable runnable) { super(group, runnable); this.runnable = runnable; this.setName(((Object)runnable).toString()); }
/** Construct a daemon thread. */ public Daemon(Runnable runnable) { super(runnable); this.runnable = runnable; this.setName(((Object)runnable).toString()); }
/** Construct a daemon thread. */ public Daemon(Runnable runnable) { super(runnable); this.runnable = runnable; this.setName(((Object)runnable).toString()); }
/** Construct a daemon thread. */ public Daemon(Runnable runnable) { super(runnable); this.runnable = runnable; this.setName(((Object)runnable).toString()); }
/** Construct a daemon thread to be part of a specified thread group. */ public Daemon(ThreadGroup group, Runnable runnable) { super(group, runnable); this.runnable = runnable; this.setName(((Object)runnable).toString()); }
/** Construct a daemon thread to be part of a specified thread group. */ public Daemon(ThreadGroup group, Runnable runnable) { super(group, runnable); this.runnable = runnable; this.setName(((Object)runnable).toString()); }