Examples of TriggerMonitor


Examples of org.apache.hadoop.raid.RaidNode.TriggerMonitor

      // create the RaidNode
      Configuration raidConf = getRaidNodeConfig(conf, true);
      cnode = RaidNode.createRaidNode(null, raidConf);

      // wait for the trigger monitor to scan the raid candidates.
      TriggerMonitor monitor = cnode.getTriggerMonitor();
      long startTime = System.currentTimeMillis();
      while (monitor.getLastTriggerTime() == 0 &&
          System.currentTimeMillis() - startTime < 60000) {
        Thread.sleep(500);
        LOG.info("Wait for the first round of TriggerMonitor to finish.");
      }
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.