本文整理汇总了Java中org.apache.storm.generated.StateSpoutSpec类的典型用法代码示例。如果您正苦于以下问题:Java StateSpoutSpec类的具体用法?Java StateSpoutSpec怎么用?Java StateSpoutSpec使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
StateSpoutSpec类属于org.apache.storm.generated包,在下文中一共展示了StateSpoutSpec类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testAddTaskHook
import org.apache.storm.generated.StateSpoutSpec; //导入依赖的package包/类
@Test(expected = UnsupportedOperationException.class)
public void testAddTaskHook() {
new FlinkTopologyContext(new StormTopology(new HashMap<String, SpoutSpec>(),
new HashMap<String, Bolt>(), new HashMap<String, StateSpoutSpec>()), null, null,
null, null, null, null, null, null, null, null, null, null, null, null, null)
.addTaskHook(null);
}
示例2: testGetHooks
import org.apache.storm.generated.StateSpoutSpec; //导入依赖的package包/类
@Test(expected = UnsupportedOperationException.class)
public void testGetHooks() {
new FlinkTopologyContext(new StormTopology(new HashMap<String, SpoutSpec>(),
new HashMap<String, Bolt>(), new HashMap<String, StateSpoutSpec>()), null, null,
null, null, null, null, null, null, null, null, null, null, null, null, null)
.getHooks();
}
示例3: testRegisteredMetric1
import org.apache.storm.generated.StateSpoutSpec; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
@Test(expected = UnsupportedOperationException.class)
public void testRegisteredMetric1() {
new FlinkTopologyContext(new StormTopology(new HashMap<String, SpoutSpec>(),
new HashMap<String, Bolt>(), new HashMap<String, StateSpoutSpec>()), null, null,
null, null, null, null, null, null, null, null, null, null, null, null, null)
.registerMetric(null, (ICombiner) null, 0);
}
示例4: testRegisteredMetric2
import org.apache.storm.generated.StateSpoutSpec; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
@Test(expected = UnsupportedOperationException.class)
public void testRegisteredMetric2() {
new FlinkTopologyContext(new StormTopology(new HashMap<String, SpoutSpec>(),
new HashMap<String, Bolt>(), new HashMap<String, StateSpoutSpec>()), null, null,
null, null, null, null, null, null, null, null, null, null, null, null, null)
.registerMetric(null, (IReducer) null, 0);
}
示例5: testRegisteredMetric3
import org.apache.storm.generated.StateSpoutSpec; //导入依赖的package包/类
@Test(expected = UnsupportedOperationException.class)
public void testRegisteredMetric3() {
new FlinkTopologyContext(new StormTopology(new HashMap<String, SpoutSpec>(),
new HashMap<String, Bolt>(), new HashMap<String, StateSpoutSpec>()), null, null,
null, null, null, null, null, null, null, null, null, null, null, null, null)
.registerMetric(null, (IMetric) null, 0);
}
示例6: testGetRegisteredMetricByName
import org.apache.storm.generated.StateSpoutSpec; //导入依赖的package包/类
@Test(expected = UnsupportedOperationException.class)
public void testGetRegisteredMetricByName() {
new FlinkTopologyContext(new StormTopology(new HashMap<String, SpoutSpec>(),
new HashMap<String, Bolt>(), new HashMap<String, StateSpoutSpec>()), null, null,
null, null, null, null, null, null, null, null, null, null, null, null, null)
.getRegisteredMetricByName(null);
}
示例7: testSetAllSubscribedState
import org.apache.storm.generated.StateSpoutSpec; //导入依赖的package包/类
@Test(expected = UnsupportedOperationException.class)
public void testSetAllSubscribedState() {
new FlinkTopologyContext(new StormTopology(new HashMap<String, SpoutSpec>(),
new HashMap<String, Bolt>(), new HashMap<String, StateSpoutSpec>()), null, null,
null, null, null, null, null, null, null, null, null, null, null, null, null)
.setAllSubscribedState(null);
}
示例8: testSetSubscribedState1
import org.apache.storm.generated.StateSpoutSpec; //导入依赖的package包/类
@Test(expected = UnsupportedOperationException.class)
public void testSetSubscribedState1() {
new FlinkTopologyContext(new StormTopology(new HashMap<String, SpoutSpec>(),
new HashMap<String, Bolt>(), new HashMap<String, StateSpoutSpec>()), null, null,
null, null, null, null, null, null, null, null, null, null, null, null, null)
.setSubscribedState(null, null);
}
示例9: testSetSubscribedState2
import org.apache.storm.generated.StateSpoutSpec; //导入依赖的package包/类
@Test(expected = UnsupportedOperationException.class)
public void testSetSubscribedState2() {
new FlinkTopologyContext(new StormTopology(new HashMap<String, SpoutSpec>(),
new HashMap<String, Bolt>(), new HashMap<String, StateSpoutSpec>()), null, null,
null, null, null, null, null, null, null, null, null, null, null, null, null)
.setSubscribedState(null, null, null);
}