Examples of LoggingRunnable


Examples of org.apache.accumulo.core.util.LoggingRunnable

          public void run() {
            log.info("adding tablet " + extent + " back to the assignment pool (retry " + retryAttempt + ")");
            AssignmentHandler handler = new AssignmentHandler(extent, retryAttempt + 1);
            if (extent.isMeta()) {
              if (extent.isRootTablet()) {
                new Daemon(new LoggingRunnable(log, handler), "Root tablet assignment retry").start();
              } else {
                resourceManager.addMetaDataAssignment(handler);
              }
            } else {
              resourceManager.addAssignment(handler);
View Full Code Here

Examples of org.apache.accumulo.core.util.LoggingRunnable

          org.apache.accumulo.core.util.AddressUtil.getHostAddress(monitorAddress));
    } else {
      log.warn("Not starting log4j listener as we could not determine address to use");
    }

    new Daemon(new LoggingRunnable(log, new ZooKeeperStatus()), "ZooKeeperStatus").start();

    // need to regularly fetch data so plot data is updated
    new Daemon(new LoggingRunnable(log, new Runnable() {

      @Override
      public void run() {
        while (true) {
          try {
View Full Code Here

Examples of org.apache.accumulo.core.util.LoggingRunnable

              completeFailures.put(mapFile, empty);
            } else
              assignments.put(mapFile, tabletsToAssignMapFileTo);
          }
        };
        threadPool.submit(new TraceRunnable(new LoggingRunnable(log, getAssignments)));
      }
      threadPool.shutdown();
      while (!threadPool.isTerminated()) {
        try {
          threadPool.awaitTermination(60, TimeUnit.SECONDS);
View Full Code Here

Examples of org.apache.accumulo.core.util.LoggingRunnable

         
          ais.put(entry.getKey(), assignmentInfoList);
        }
      };
     
      threadPool.submit(new TraceRunnable(new LoggingRunnable(log, estimationTask)));
    }
   
    threadPool.shutdown();
   
    while (!threadPool.isTerminated()) {
View Full Code Here

Examples of org.apache.accumulo.core.util.LoggingRunnable

        logFile.close();
      logFile = null;
      throw ex;
    }

    syncThread = new Daemon(new LoggingRunnable(log, new LogSyncingTask()));
    syncThread.setName("Accumulo WALog thread " + toString());
    syncThread.start();
  }
View Full Code Here

Examples of org.apache.accumulo.core.util.LoggingRunnable

          if (ltp == null) {
            // load the bloom filter in the foreground
            loadTask.run();
          } else {
            // load the bloom filter in the background
            ltp.execute(new LoggingRunnable(LOG, loadTask));
          }
        } finally {
          // set load task to null so no one else can initiate the load
          loadTask = null;
        }
View Full Code Here

Examples of org.apache.accumulo.core.util.LoggingRunnable

              completeFailures.put(mapFile, empty);
            } else
              assignments.put(mapFile, tabletsToAssignMapFileTo);
          }
        };
        threadPool.submit(new TraceRunnable(new LoggingRunnable(log, getAssignments)));
      }
      threadPool.shutdown();
      while (!threadPool.isTerminated()) {
        try {
          threadPool.awaitTermination(60, TimeUnit.SECONDS);
View Full Code Here

Examples of org.apache.accumulo.core.util.LoggingRunnable

         
          ais.put(entry.getKey(), assignmentInfoList);
        }
      };
     
      threadPool.submit(new TraceRunnable(new LoggingRunnable(log, estimationTask)));
    }
   
    threadPool.shutdown();
   
    while (!threadPool.isTerminated()) {
View Full Code Here

Examples of org.apache.accumulo.core.util.LoggingRunnable

    ExecutorService threadPool = Executors.newFixedThreadPool(numThreads);
   
    for (Entry<String,Map<KeyExtent,List<PathSize>>> entry : assignmentsPerTabletServer.entrySet()) {
      String location = entry.getKey();
      threadPool
          .submit(new TraceRunnable(new LoggingRunnable(log, new AssignmentTask(credentials, assignmentFailures, tableName, location, entry.getValue()))));
    }
   
    threadPool.shutdown();
   
    while (!threadPool.isTerminated()) {
View Full Code Here

Examples of org.apache.accumulo.core.util.LoggingRunnable

    getMasterLock(zroot + Constants.ZMASTER_LOCK);
   
    TableManager.getInstance().addObserver(this);
   
    recovery = new CoordinateRecoveryTask(fs);
    Thread recoveryThread = new Daemon(new LoggingRunnable(log, recovery), "Recovery Status");
    recoveryThread.start();
   
    loggers = new TabletServerLoggers(this, ServerConfiguration.getSystemConfiguration());
    loggers.scanZooKeeperForUpdates();
   
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.