本文整理汇总了Java中backtype.storm.generated.ComponentObject类的典型用法代码示例。如果您正苦于以下问题:Java ComponentObject类的具体用法?Java ComponentObject怎么用?Java ComponentObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ComponentObject类属于backtype.storm.generated包,在下文中一共展示了ComponentObject类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: get
import backtype.storm.generated.ComponentObject; //导入依赖的package包/类
public String get(String key) {
TBase tBase = _state.get(key);
if (tBase != null) {
JavaObject jo = ((JavaObject) tBase);
ComponentObject co = ComponentObject.java_object(jo);
List<JavaObjectArg> l = jo.get_args_list();
if (l != null && l.size() >= 0 && l.get(0) != null) {
return l.get(0).get_string_arg();
}
}
return null;
}
开发者ID:PacktPublishing,项目名称:Mastering-Mesos,代码行数:13,代码来源:LocalStateShim.java
示例2: mkBolt
import backtype.storm.generated.ComponentObject; //导入依赖的package包/类
public static Bolt mkBolt(Map<GlobalStreamId, Grouping> inputs,
IBolt bolt, HashMap<String, StreamInfo> output, Integer p) {
ComponentCommon common = mkComponentcommon(inputs, output, p);
byte[] boltSer = Utils.serialize(bolt);
ComponentObject component = ComponentObject.serialized_java(boltSer);
return new Bolt(component, common);
}
开发者ID:zhangjunfang,项目名称:jstorm-0.9.6.3-,代码行数:8,代码来源:Thrift.java
示例3: getSetComponentObject
import backtype.storm.generated.ComponentObject; //导入依赖的package包/类
public static Object getSetComponentObject(ComponentObject obj,
URLClassLoader loader) {
if (obj.getSetField() == ComponentObject._Fields.SERIALIZED_JAVA) {
return Utils.deserialize(obj.get_serialized_java(), loader);
} else if (obj.getSetField() == ComponentObject._Fields.JAVA_OBJECT) {
return obj.get_java_object();
} else {
return obj.get_shell();
}
}
开发者ID:zhangjunfang,项目名称:jstorm-0.9.6.3-,代码行数:11,代码来源:Utils.java
示例4: getSetComponentObject
import backtype.storm.generated.ComponentObject; //导入依赖的package包/类
public static Object getSetComponentObject(ComponentObject obj, URLClassLoader loader) {
if (obj.getSetField() == ComponentObject._Fields.SERIALIZED_JAVA) {
return javaDeserializeWithCL(obj.get_serialized_java(), loader);
} else if (obj.getSetField() == ComponentObject._Fields.JAVA_OBJECT) {
return obj.get_java_object();
} else {
return obj.get_shell();
}
}
开发者ID:kkllwww007,项目名称:jstrom,代码行数:10,代码来源:Utils.java
示例5: mkAckerBolt
import backtype.storm.generated.ComponentObject; //导入依赖的package包/类
public static Bolt mkAckerBolt(Map<GlobalStreamId, Grouping> inputs,
IBolt bolt, HashMap<String, StreamInfo> output, Integer p) {
ComponentCommon common = mkAckerComponentcommon(inputs, output, p);
byte[] boltSer = Utils.serialize(bolt);
ComponentObject component = ComponentObject.serialized_java(boltSer);
return new Bolt(component, common);
}
开发者ID:greeenSY,项目名称:Tstream,代码行数:8,代码来源:Thrift.java
示例6: getSetComponentObject
import backtype.storm.generated.ComponentObject; //导入依赖的package包/类
public static Object getSetComponentObject(ComponentObject obj) {
if(obj.getSetField()==ComponentObject._Fields.SERIALIZED_JAVA) {
return Utils.deserialize(obj.get_serialized_java());
} else if(obj.getSetField()==ComponentObject._Fields.JAVA_OBJECT) {
return obj.get_java_object();
} else {
return obj.get_shell();
}
}
开发者ID:metamx,项目名称:incubator-storm,代码行数:10,代码来源:Utils.java
注:本文中的backtype.storm.generated.ComponentObject类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论