本文整理汇总了Java中backtype.storm.hooks.info.BoltFailInfo类的典型用法代码示例。如果您正苦于以下问题:Java BoltFailInfo类的具体用法?Java BoltFailInfo怎么用?Java BoltFailInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BoltFailInfo类属于backtype.storm.hooks.info包,在下文中一共展示了BoltFailInfo类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: boltFail
import backtype.storm.hooks.info.BoltFailInfo; //导入依赖的package包/类
@Override
public void boltFail(BoltFailInfo info) {
GlobalMetrics.incr("hook_boltFail");
++boltFailed;
if (boltFailed % N == 0) {
System.out.println("boltFail() is invoked in hook");
System.out.println(info.failingTaskId);
System.out.println(info.failLatencyMs);
System.out.println(info.tuple);
}
}
示例2: boltFail
import backtype.storm.hooks.info.BoltFailInfo; //导入依赖的package包/类
@Override
public void boltFail(com.twitter.heron.api.hooks.info.BoltFailInfo info) {
BoltFailInfo fail = new BoltFailInfo(info);
for (ITaskHook hook : hooks) {
hook.boltFail(fail);
}
}
示例3: boltFail
import backtype.storm.hooks.info.BoltFailInfo; //导入依赖的package包/类
@Override
public void boltFail(BoltFailInfo info) {
}
示例4: boltFail
import backtype.storm.hooks.info.BoltFailInfo; //导入依赖的package包/类
@Override
public void boltFail(BoltFailInfo info) {
send("BACK", info.failingTaskId, info.failLatencyMs);
}
示例5: boltFail
import backtype.storm.hooks.info.BoltFailInfo; //导入依赖的package包/类
void boltFail(BoltFailInfo info);