当前位置: 首页>>代码示例>>Java>>正文


Java StateSpoutSpec类代码示例

本文整理汇总了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);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:8,代码来源:FlinkTopologyContextTest.java

示例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();
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:8,代码来源:FlinkTopologyContextTest.java

示例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);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:9,代码来源:FlinkTopologyContextTest.java

示例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);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:9,代码来源:FlinkTopologyContextTest.java

示例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);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:8,代码来源:FlinkTopologyContextTest.java

示例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);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:8,代码来源:FlinkTopologyContextTest.java

示例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);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:8,代码来源:FlinkTopologyContextTest.java

示例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);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:8,代码来源:FlinkTopologyContextTest.java

示例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);
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:8,代码来源:FlinkTopologyContextTest.java


注:本文中的org.apache.storm.generated.StateSpoutSpec类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。