Examples of SnapshotSentinel


Examples of org.apache.hadoop.hbase.master.SnapshotSentinel

  private synchronized void cleanupSentinels(final Map<String, SnapshotSentinel> sentinels) {
    long currentTime = EnvironmentEdgeManager.currentTimeMillis();
    Iterator<Map.Entry<String, SnapshotSentinel>> it = sentinels.entrySet().iterator();
    while (it.hasNext()) {
      Map.Entry<String, SnapshotSentinel> entry = it.next();
      SnapshotSentinel sentinel = entry.getValue();
      if (sentinel.isFinished() &&
          (currentTime - sentinel.getCompletionTimestamp()) > SNAPSHOT_SENTINELS_CLEANUP_TIMEOUT)
      {
        it.remove();
      }
    }
  }
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.