if (is_set_storm_version()) { if (!first) sb.append(", "); sb.append("storm_version:");
/** * Add version information to the given topology. * * @param topology the topology being submitted (MIGHT BE MODIFIED) * @return topology */ public static StormTopology addVersions(StormTopology topology) { String stormVersion = VersionInfo.getVersion(); if (stormVersion != null && !"Unknown".equalsIgnoreCase(stormVersion) && !topology.is_set_storm_version()) { topology.set_storm_version(stormVersion); } String jdkVersion = System.getProperty("java.version"); if (jdkVersion != null && !topology.is_set_jdk_version()) { topology.set_jdk_version(jdkVersion); } return topology; }
this.dependency_artifacts = __this__dependency_artifacts; if (other.is_set_storm_version()) { this.storm_version = other.storm_version;
private boolean supportRpcHeartbeat(TopologyDetails topo) { if (!topo.getTopology().is_set_storm_version()) { // current version supports RPC heartbeat return true; } String stormVersionStr = topo.getTopology().get_storm_version(); SimpleVersion stormVersion = new SimpleVersion(stormVersionStr); return stormVersion.compareTo(MIN_VERSION_SUPPORT_RPC_HEARTBEAT) >= 0; }
hashCode = hashCode * 8191 + dependency_artifacts.hashCode(); hashCode = hashCode * 8191 + ((is_set_storm_version()) ? 131071 : 524287); if (is_set_storm_version()) hashCode = hashCode * 8191 + storm_version.hashCode();
boolean this_present_storm_version = true && this.is_set_storm_version(); boolean that_present_storm_version = true && that.is_set_storm_version(); if (this_present_storm_version || that_present_storm_version) { if (!(this_present_storm_version && that_present_storm_version))
optionals.set(2); if (struct.is_set_storm_version()) { optionals.set(3); if (struct.is_set_storm_version()) { oprot.writeString(struct.storm_version);
lastComparison = java.lang.Boolean.valueOf(is_set_storm_version()).compareTo(other.is_set_storm_version()); if (lastComparison != 0) { return lastComparison; if (is_set_storm_version()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.storm_version, other.storm_version); if (lastComparison != 0) {
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new java.lang.IllegalArgumentException(); } switch (field) { case SPOUTS: return is_set_spouts(); case BOLTS: return is_set_bolts(); case STATE_SPOUTS: return is_set_state_spouts(); case WORKER_HOOKS: return is_set_worker_hooks(); case DEPENDENCY_JARS: return is_set_dependency_jars(); case DEPENDENCY_ARTIFACTS: return is_set_dependency_artifacts(); case STORM_VERSION: return is_set_storm_version(); case JDK_VERSION: return is_set_jdk_version(); case COMPONENT_TO_SHARED_MEMORY: return is_set_component_to_shared_memory(); case SHARED_MEMORY: return is_set_shared_memory(); } throw new java.lang.IllegalStateException(); }
if (common.topology.is_set_storm_version()) { topoInfo.set_storm_version(common.topology.get_storm_version());
try { StormTopology topo = tryReadTopology(topoId, topoCache); if (topo != null && topo.is_set_storm_version()) { summary.set_storm_version(topo.get_storm_version());
if (struct.is_set_storm_version()) { oprot.writeFieldBegin(STORM_VERSION_FIELD_DESC); oprot.writeString(struct.storm_version);
state); if (topology.is_set_storm_version()) { topoPageInfo.set_storm_version(topology.get_storm_version());
list.add(dependency_artifacts); boolean present_storm_version = true && (is_set_storm_version()); list.add(present_storm_version); if (present_storm_version)
if (is_set_storm_version()) { if (!first) sb.append(", "); sb.append("storm_version:");
/** * Add version information to the given topology * @param topology the topology being submitted (MIGHT BE MODIFIED) * @return topology */ public static StormTopology addVersions(StormTopology topology) { String stormVersion = VersionInfo.getVersion(); LOG.warn("STORM-VERSION new {} old {}", stormVersion, topology.get_storm_version()); if (stormVersion != null && !"Unknown".equalsIgnoreCase(stormVersion) && !topology.is_set_storm_version()) { topology.set_storm_version(stormVersion); } String jdkVersion = System.getProperty("java.version"); if (jdkVersion != null && !topology.is_set_jdk_version()) { topology.set_jdk_version(jdkVersion); } return topology; } }
this.dependency_artifacts = __this__dependency_artifacts; if (other.is_set_storm_version()) { this.storm_version = other.storm_version;
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SPOUTS: return is_set_spouts(); case BOLTS: return is_set_bolts(); case STATE_SPOUTS: return is_set_state_spouts(); case WORKER_HOOKS: return is_set_worker_hooks(); case DEPENDENCY_JARS: return is_set_dependency_jars(); case DEPENDENCY_ARTIFACTS: return is_set_dependency_artifacts(); case STORM_VERSION: return is_set_storm_version(); case JDK_VERSION: return is_set_jdk_version(); } throw new IllegalStateException(); }
boolean this_present_storm_version = true && this.is_set_storm_version(); boolean that_present_storm_version = true && that.is_set_storm_version(); if (this_present_storm_version || that_present_storm_version) { if (!(this_present_storm_version && that_present_storm_version))
optionals.set(2); if (struct.is_set_storm_version()) { optionals.set(3); if (struct.is_set_storm_version()) { oprot.writeString(struct.storm_version);