Package org.apache.hadoop.hbase.master

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


    Collection<HRegion> regions = regionServer.getOnlineRegions();
    HRegion region = regions.iterator().next();
    LOG.debug("Asking RS to close region " + region.getRegionNameAsString());

    AtomicBoolean closeEventProcessed = new AtomicBoolean(false);
    RegionServerOperationListener listener =
      new CloseRegionEventListener(region.getRegionNameAsString(), closeEventProcessed);
    HMaster master = TEST_UTIL.getHBaseCluster().getMaster();
    master.getRegionServerOperationQueue().registerRegionServerOperationListener(listener);
    HMsg closeRegionMsg = new HMsg(HMsg.Type.MSG_REGION_CLOSE,
                                   region.getRegionInfo(),
View Full Code Here


    HRegion region = regions.iterator().next();
    LOG.debug("Asking RS to close region " + region.getRegionNameAsString());

    AtomicBoolean closeEventProcessed = new AtomicBoolean(false);
    AtomicBoolean reopenEventProcessed = new AtomicBoolean(false);
    RegionServerOperationListener listener =
      new ReopenRegionEventListener(region.getRegionNameAsString(),
                                    closeEventProcessed,
                                    reopenEventProcessed);
    HMaster master = TEST_UTIL.getHBaseCluster().getMaster();
    master.getRegionServerOperationQueue().registerRegionServerOperationListener(listener);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.master.RegionServerOperationListener

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.