本文整理汇总了Java中org.apache.hadoop.hbase.executor.EventHandler.getEventType方法的典型用法代码示例。如果您正苦于以下问题:Java EventHandler.getEventType方法的具体用法?Java EventHandler.getEventType怎么用?Java EventHandler.getEventType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.hbase.executor.EventHandler
的用法示例。
在下文中一共展示了EventHandler.getEventType方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: afterProcess
import org.apache.hadoop.hbase.executor.EventHandler; //导入方法依赖的package包/类
@Override
public void afterProcess(EventHandler event) {
if (event.getEventType() != EventType.RS_ZK_REGION_SPLIT) {
return;
}
try {
split.countDown();
proceed.await(60, TimeUnit.SECONDS);
} catch (InterruptedException ie) {
throw new RuntimeException(ie);
}
return;
}
示例2: afterProcess
import org.apache.hadoop.hbase.executor.EventHandler; //导入方法依赖的package包/类
@Override
public void afterProcess(EventHandler event) {
LOG.info("afterProcess(" + event + ")");
if(event.getEventType() == EventType.RS_ZK_REGION_CLOSED) {
LOG.info("Finished processing CLOSE REGION");
TotesHRegionInfo hriCarrier = (TotesHRegionInfo)event;
if (regionToClose.equals(hriCarrier.getHRegionInfo().getRegionNameAsString())) {
LOG.info("Setting closeEventProcessed flag");
closeEventProcessed.set(true);
} else {
LOG.info("Region to close didn't match");
}
}
}
示例3: beforeProcess
import org.apache.hadoop.hbase.executor.EventHandler; //导入方法依赖的package包/类
@Override
public void beforeProcess(EventHandler event) {
if(event.getEventType() == eventType) {
LOG.info("Received " + eventType + " and beginning to process it");
}
}