本文整理汇总了Java中org.apache.storm.generated.KillOptions类的典型用法代码示例。如果您正苦于以下问题:Java KillOptions类的具体用法?Java KillOptions怎么用?Java KillOptions使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
KillOptions类属于org.apache.storm.generated包,在下文中一共展示了KillOptions类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: killTopology
import org.apache.storm.generated.KillOptions; //导入依赖的package包/类
@Override
public boolean killTopology(LocalCluster localCluster) throws Exception{
KillOptions killOptions = new KillOptions();
killOptions.set_wait_secs(1);
localCluster.killTopologyWithOpts(topologyName, killOptions);
try {//Give time to topology to be killed
Thread.sleep(1200);
} catch (InterruptedException e) {
e.printStackTrace();
}
try{
localCluster.getTopologyInfo(topologyName);
return false;
}catch(Exception ex){
return true;
}
}
开发者ID:ping2ravi,项目名称:storm-integration-test,代码行数:18,代码来源:TestStormTopologyImpl.java
示例2: killTopology
import org.apache.storm.generated.KillOptions; //导入依赖的package包/类
protected void killTopology() {
KillOptions ko = new KillOptions();
ko.set_wait_secs(0);
stormCluster.killTopologyWithOpts(sensorType, ko);
try {
// Actually wait for it to die.
Thread.sleep(2000);
} catch (InterruptedException e) {
// Do nothing
}
}
开发者ID:apache,项目名称:metron,代码行数:12,代码来源:ParserTopologyComponent.java
示例3: killTopology
import org.apache.storm.generated.KillOptions; //导入依赖的package包/类
protected void killTopology() {
KillOptions ko = new KillOptions();
ko.set_wait_secs(0);
stormCluster.killTopologyWithOpts(topologyName, ko);
try {
// Actually wait for it to die.
Thread.sleep(2000);
} catch (InterruptedException e) {
// Do nothing
}
}
开发者ID:apache,项目名称:metron,代码行数:12,代码来源:FluxTopologyComponent.java
示例4: killTopologyWithOpts
import org.apache.storm.generated.KillOptions; //导入依赖的package包/类
public void killTopologyWithOpts(final String name, final KillOptions options) {
}
开发者ID:axbaretto,项目名称:flink,代码行数:3,代码来源:FlinkLocalCluster.java
示例5: createKillOptions
import org.apache.storm.generated.KillOptions; //导入依赖的package包/类
private KillOptions createKillOptions()
{
KillOptions kop = new KillOptions();
kop.set_wait_secs(stormConf.getKillWaitingSeconds());
return kop;
}
开发者ID:HuaweiBigData,项目名称:StreamCQL,代码行数:7,代码来源:StormApplication.java
注:本文中的org.apache.storm.generated.KillOptions类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论