You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by bo...@apache.org on 2015/10/05 23:00:37 UTC
[05/37] storm git commit: Aggregate topo stats on nimbus, not ui
http://git-wip-us.apache.org/repos/asf/storm/blob/a16b50c9/storm-core/src/jvm/backtype/storm/generated/NodeInfo.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/generated/NodeInfo.java b/storm-core/src/jvm/backtype/storm/generated/NodeInfo.java
index a71d1b4..83539ab 100644
--- a/storm-core/src/jvm/backtype/storm/generated/NodeInfo.java
+++ b/storm-core/src/jvm/backtype/storm/generated/NodeInfo.java
@@ -51,7 +51,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-3-5")
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-5-14")
public class NodeInfo implements org.apache.thrift.TBase<NodeInfo, NodeInfo._Fields>, java.io.Serializable, Cloneable, Comparable<NodeInfo> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NodeInfo");
@@ -461,13 +461,13 @@ public class NodeInfo implements org.apache.thrift.TBase<NodeInfo, NodeInfo._Fie
case 2: // PORT
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
- org.apache.thrift.protocol.TSet _set362 = iprot.readSetBegin();
- struct.port = new HashSet<Long>(2*_set362.size);
- long _elem363;
- for (int _i364 = 0; _i364 < _set362.size; ++_i364)
+ org.apache.thrift.protocol.TSet _set478 = iprot.readSetBegin();
+ struct.port = new HashSet<Long>(2*_set478.size);
+ long _elem479;
+ for (int _i480 = 0; _i480 < _set478.size; ++_i480)
{
- _elem363 = iprot.readI64();
- struct.port.add(_elem363);
+ _elem479 = iprot.readI64();
+ struct.port.add(_elem479);
}
iprot.readSetEnd();
}
@@ -498,9 +498,9 @@ public class NodeInfo implements org.apache.thrift.TBase<NodeInfo, NodeInfo._Fie
oprot.writeFieldBegin(PORT_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.port.size()));
- for (long _iter365 : struct.port)
+ for (long _iter481 : struct.port)
{
- oprot.writeI64(_iter365);
+ oprot.writeI64(_iter481);
}
oprot.writeSetEnd();
}
@@ -526,9 +526,9 @@ public class NodeInfo implements org.apache.thrift.TBase<NodeInfo, NodeInfo._Fie
oprot.writeString(struct.node);
{
oprot.writeI32(struct.port.size());
- for (long _iter366 : struct.port)
+ for (long _iter482 : struct.port)
{
- oprot.writeI64(_iter366);
+ oprot.writeI64(_iter482);
}
}
}
@@ -539,13 +539,13 @@ public class NodeInfo implements org.apache.thrift.TBase<NodeInfo, NodeInfo._Fie
struct.node = iprot.readString();
struct.set_node_isSet(true);
{
- org.apache.thrift.protocol.TSet _set367 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.port = new HashSet<Long>(2*_set367.size);
- long _elem368;
- for (int _i369 = 0; _i369 < _set367.size; ++_i369)
+ org.apache.thrift.protocol.TSet _set483 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.port = new HashSet<Long>(2*_set483.size);
+ long _elem484;
+ for (int _i485 = 0; _i485 < _set483.size; ++_i485)
{
- _elem368 = iprot.readI64();
- struct.port.add(_elem368);
+ _elem484 = iprot.readI64();
+ struct.port.add(_elem484);
}
}
struct.set_port_isSet(true);
http://git-wip-us.apache.org/repos/asf/storm/blob/a16b50c9/storm-core/src/jvm/backtype/storm/generated/RebalanceOptions.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/generated/RebalanceOptions.java b/storm-core/src/jvm/backtype/storm/generated/RebalanceOptions.java
index f973ffc..df89140 100644
--- a/storm-core/src/jvm/backtype/storm/generated/RebalanceOptions.java
+++ b/storm-core/src/jvm/backtype/storm/generated/RebalanceOptions.java
@@ -51,7 +51,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-2-6")
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-5-14")
public class RebalanceOptions implements org.apache.thrift.TBase<RebalanceOptions, RebalanceOptions._Fields>, java.io.Serializable, Cloneable, Comparable<RebalanceOptions> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RebalanceOptions");
@@ -529,15 +529,15 @@ public class RebalanceOptions implements org.apache.thrift.TBase<RebalanceOption
case 3: // NUM_EXECUTORS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map316 = iprot.readMapBegin();
- struct.num_executors = new HashMap<String,Integer>(2*_map316.size);
- String _key317;
- int _val318;
- for (int _i319 = 0; _i319 < _map316.size; ++_i319)
+ org.apache.thrift.protocol.TMap _map432 = iprot.readMapBegin();
+ struct.num_executors = new HashMap<String,Integer>(2*_map432.size);
+ String _key433;
+ int _val434;
+ for (int _i435 = 0; _i435 < _map432.size; ++_i435)
{
- _key317 = iprot.readString();
- _val318 = iprot.readI32();
- struct.num_executors.put(_key317, _val318);
+ _key433 = iprot.readString();
+ _val434 = iprot.readI32();
+ struct.num_executors.put(_key433, _val434);
}
iprot.readMapEnd();
}
@@ -574,10 +574,10 @@ public class RebalanceOptions implements org.apache.thrift.TBase<RebalanceOption
oprot.writeFieldBegin(NUM_EXECUTORS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, struct.num_executors.size()));
- for (Map.Entry<String, Integer> _iter320 : struct.num_executors.entrySet())
+ for (Map.Entry<String, Integer> _iter436 : struct.num_executors.entrySet())
{
- oprot.writeString(_iter320.getKey());
- oprot.writeI32(_iter320.getValue());
+ oprot.writeString(_iter436.getKey());
+ oprot.writeI32(_iter436.getValue());
}
oprot.writeMapEnd();
}
@@ -621,10 +621,10 @@ public class RebalanceOptions implements org.apache.thrift.TBase<RebalanceOption
if (struct.is_set_num_executors()) {
{
oprot.writeI32(struct.num_executors.size());
- for (Map.Entry<String, Integer> _iter321 : struct.num_executors.entrySet())
+ for (Map.Entry<String, Integer> _iter437 : struct.num_executors.entrySet())
{
- oprot.writeString(_iter321.getKey());
- oprot.writeI32(_iter321.getValue());
+ oprot.writeString(_iter437.getKey());
+ oprot.writeI32(_iter437.getValue());
}
}
}
@@ -644,15 +644,15 @@ public class RebalanceOptions implements org.apache.thrift.TBase<RebalanceOption
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TMap _map322 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32());
- struct.num_executors = new HashMap<String,Integer>(2*_map322.size);
- String _key323;
- int _val324;
- for (int _i325 = 0; _i325 < _map322.size; ++_i325)
+ org.apache.thrift.protocol.TMap _map438 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32());
+ struct.num_executors = new HashMap<String,Integer>(2*_map438.size);
+ String _key439;
+ int _val440;
+ for (int _i441 = 0; _i441 < _map438.size; ++_i441)
{
- _key323 = iprot.readString();
- _val324 = iprot.readI32();
- struct.num_executors.put(_key323, _val324);
+ _key439 = iprot.readString();
+ _val440 = iprot.readI32();
+ struct.num_executors.put(_key439, _val440);
}
}
struct.set_num_executors_isSet(true);
http://git-wip-us.apache.org/repos/asf/storm/blob/a16b50c9/storm-core/src/jvm/backtype/storm/generated/SpecificAggregateStats.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/generated/SpecificAggregateStats.java b/storm-core/src/jvm/backtype/storm/generated/SpecificAggregateStats.java
new file mode 100644
index 0000000..ed143f0
--- /dev/null
+++ b/storm-core/src/jvm/backtype/storm/generated/SpecificAggregateStats.java
@@ -0,0 +1,387 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/**
+ * Autogenerated by Thrift Compiler (0.9.2)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package backtype.storm.generated;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import javax.annotation.Generated;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+public class SpecificAggregateStats extends org.apache.thrift.TUnion<SpecificAggregateStats, SpecificAggregateStats._Fields> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SpecificAggregateStats");
+ private static final org.apache.thrift.protocol.TField BOLT_FIELD_DESC = new org.apache.thrift.protocol.TField("bolt", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+ private static final org.apache.thrift.protocol.TField SPOUT_FIELD_DESC = new org.apache.thrift.protocol.TField("spout", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ BOLT((short)1, "bolt"),
+ SPOUT((short)2, "spout");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // BOLT
+ return BOLT;
+ case 2: // SPOUT
+ return SPOUT;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.BOLT, new org.apache.thrift.meta_data.FieldMetaData("bolt", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BoltAggregateStats.class)));
+ tmpMap.put(_Fields.SPOUT, new org.apache.thrift.meta_data.FieldMetaData("spout", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SpoutAggregateStats.class)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SpecificAggregateStats.class, metaDataMap);
+ }
+
+ public SpecificAggregateStats() {
+ super();
+ }
+
+ public SpecificAggregateStats(_Fields setField, Object value) {
+ super(setField, value);
+ }
+
+ public SpecificAggregateStats(SpecificAggregateStats other) {
+ super(other);
+ }
+ public SpecificAggregateStats deepCopy() {
+ return new SpecificAggregateStats(this);
+ }
+
+ public static SpecificAggregateStats bolt(BoltAggregateStats value) {
+ SpecificAggregateStats x = new SpecificAggregateStats();
+ x.set_bolt(value);
+ return x;
+ }
+
+ public static SpecificAggregateStats spout(SpoutAggregateStats value) {
+ SpecificAggregateStats x = new SpecificAggregateStats();
+ x.set_spout(value);
+ return x;
+ }
+
+
+ @Override
+ protected void checkType(_Fields setField, Object value) throws ClassCastException {
+ switch (setField) {
+ case BOLT:
+ if (value instanceof BoltAggregateStats) {
+ break;
+ }
+ throw new ClassCastException("Was expecting value of type BoltAggregateStats for field 'bolt', but got " + value.getClass().getSimpleName());
+ case SPOUT:
+ if (value instanceof SpoutAggregateStats) {
+ break;
+ }
+ throw new ClassCastException("Was expecting value of type SpoutAggregateStats for field 'spout', but got " + value.getClass().getSimpleName());
+ default:
+ throw new IllegalArgumentException("Unknown field id " + setField);
+ }
+ }
+
+ @Override
+ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException {
+ _Fields setField = _Fields.findByThriftId(field.id);
+ if (setField != null) {
+ switch (setField) {
+ case BOLT:
+ if (field.type == BOLT_FIELD_DESC.type) {
+ BoltAggregateStats bolt;
+ bolt = new BoltAggregateStats();
+ bolt.read(iprot);
+ return bolt;
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+ return null;
+ }
+ case SPOUT:
+ if (field.type == SPOUT_FIELD_DESC.type) {
+ SpoutAggregateStats spout;
+ spout = new SpoutAggregateStats();
+ spout.read(iprot);
+ return spout;
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+ return null;
+ }
+ default:
+ throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!");
+ }
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+ return null;
+ }
+ }
+
+ @Override
+ protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ switch (setField_) {
+ case BOLT:
+ BoltAggregateStats bolt = (BoltAggregateStats)value_;
+ bolt.write(oprot);
+ return;
+ case SPOUT:
+ SpoutAggregateStats spout = (SpoutAggregateStats)value_;
+ spout.write(oprot);
+ return;
+ default:
+ throw new IllegalStateException("Cannot write union with unknown field " + setField_);
+ }
+ }
+
+ @Override
+ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID) throws org.apache.thrift.TException {
+ _Fields setField = _Fields.findByThriftId(fieldID);
+ if (setField != null) {
+ switch (setField) {
+ case BOLT:
+ BoltAggregateStats bolt;
+ bolt = new BoltAggregateStats();
+ bolt.read(iprot);
+ return bolt;
+ case SPOUT:
+ SpoutAggregateStats spout;
+ spout = new SpoutAggregateStats();
+ spout.read(iprot);
+ return spout;
+ default:
+ throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!");
+ }
+ } else {
+ throw new TProtocolException("Couldn't find a field with field id " + fieldID);
+ }
+ }
+
+ @Override
+ protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ switch (setField_) {
+ case BOLT:
+ BoltAggregateStats bolt = (BoltAggregateStats)value_;
+ bolt.write(oprot);
+ return;
+ case SPOUT:
+ SpoutAggregateStats spout = (SpoutAggregateStats)value_;
+ spout.write(oprot);
+ return;
+ default:
+ throw new IllegalStateException("Cannot write union with unknown field " + setField_);
+ }
+ }
+
+ @Override
+ protected org.apache.thrift.protocol.TField getFieldDesc(_Fields setField) {
+ switch (setField) {
+ case BOLT:
+ return BOLT_FIELD_DESC;
+ case SPOUT:
+ return SPOUT_FIELD_DESC;
+ default:
+ throw new IllegalArgumentException("Unknown field id " + setField);
+ }
+ }
+
+ @Override
+ protected org.apache.thrift.protocol.TStruct getStructDesc() {
+ return STRUCT_DESC;
+ }
+
+ @Override
+ protected _Fields enumForId(short id) {
+ return _Fields.findByThriftIdOrThrow(id);
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+
+ public BoltAggregateStats get_bolt() {
+ if (getSetField() == _Fields.BOLT) {
+ return (BoltAggregateStats)getFieldValue();
+ } else {
+ throw new RuntimeException("Cannot get field 'bolt' because union is currently set to " + getFieldDesc(getSetField()).name);
+ }
+ }
+
+ public void set_bolt(BoltAggregateStats value) {
+ if (value == null) throw new NullPointerException();
+ setField_ = _Fields.BOLT;
+ value_ = value;
+ }
+
+ public SpoutAggregateStats get_spout() {
+ if (getSetField() == _Fields.SPOUT) {
+ return (SpoutAggregateStats)getFieldValue();
+ } else {
+ throw new RuntimeException("Cannot get field 'spout' because union is currently set to " + getFieldDesc(getSetField()).name);
+ }
+ }
+
+ public void set_spout(SpoutAggregateStats value) {
+ if (value == null) throw new NullPointerException();
+ setField_ = _Fields.SPOUT;
+ value_ = value;
+ }
+
+ public boolean is_set_bolt() {
+ return setField_ == _Fields.BOLT;
+ }
+
+
+ public boolean is_set_spout() {
+ return setField_ == _Fields.SPOUT;
+ }
+
+
+ public boolean equals(Object other) {
+ if (other instanceof SpecificAggregateStats) {
+ return equals((SpecificAggregateStats)other);
+ } else {
+ return false;
+ }
+ }
+
+ public boolean equals(SpecificAggregateStats other) {
+ return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue());
+ }
+
+ @Override
+ public int compareTo(SpecificAggregateStats other) {
+ int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField());
+ if (lastComparison == 0) {
+ return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue());
+ }
+ return lastComparison;
+ }
+
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+ list.add(this.getClass().getName());
+ org.apache.thrift.TFieldIdEnum setField = getSetField();
+ if (setField != null) {
+ list.add(setField.getThriftFieldId());
+ Object value = getFieldValue();
+ if (value instanceof org.apache.thrift.TEnum) {
+ list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue());
+ } else {
+ list.add(value);
+ }
+ }
+ return list.hashCode();
+ }
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+
+}
http://git-wip-us.apache.org/repos/asf/storm/blob/a16b50c9/storm-core/src/jvm/backtype/storm/generated/SpoutAggregateStats.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/generated/SpoutAggregateStats.java b/storm-core/src/jvm/backtype/storm/generated/SpoutAggregateStats.java
new file mode 100644
index 0000000..65cc126
--- /dev/null
+++ b/storm-core/src/jvm/backtype/storm/generated/SpoutAggregateStats.java
@@ -0,0 +1,407 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/**
+ * Autogenerated by Thrift Compiler (0.9.2)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+package backtype.storm.generated;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import javax.annotation.Generated;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-5-14")
+public class SpoutAggregateStats implements org.apache.thrift.TBase<SpoutAggregateStats, SpoutAggregateStats._Fields>, java.io.Serializable, Cloneable, Comparable<SpoutAggregateStats> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SpoutAggregateStats");
+
+ private static final org.apache.thrift.protocol.TField COMPLETE_LATENCY_MS_FIELD_DESC = new org.apache.thrift.protocol.TField("complete_latency_ms", org.apache.thrift.protocol.TType.DOUBLE, (short)513);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new SpoutAggregateStatsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new SpoutAggregateStatsTupleSchemeFactory());
+ }
+
+ private double complete_latency_ms; // optional
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ COMPLETE_LATENCY_MS((short)513, "complete_latency_ms");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 513: // COMPLETE_LATENCY_MS
+ return COMPLETE_LATENCY_MS;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ private static final int __COMPLETE_LATENCY_MS_ISSET_ID = 0;
+ private byte __isset_bitfield = 0;
+ private static final _Fields optionals[] = {_Fields.COMPLETE_LATENCY_MS};
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.COMPLETE_LATENCY_MS, new org.apache.thrift.meta_data.FieldMetaData("complete_latency_ms", org.apache.thrift.TFieldRequirementType.OPTIONAL,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SpoutAggregateStats.class, metaDataMap);
+ }
+
+ public SpoutAggregateStats() {
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public SpoutAggregateStats(SpoutAggregateStats other) {
+ __isset_bitfield = other.__isset_bitfield;
+ this.complete_latency_ms = other.complete_latency_ms;
+ }
+
+ public SpoutAggregateStats deepCopy() {
+ return new SpoutAggregateStats(this);
+ }
+
+ @Override
+ public void clear() {
+ set_complete_latency_ms_isSet(false);
+ this.complete_latency_ms = 0.0;
+ }
+
+ public double get_complete_latency_ms() {
+ return this.complete_latency_ms;
+ }
+
+ public void set_complete_latency_ms(double complete_latency_ms) {
+ this.complete_latency_ms = complete_latency_ms;
+ set_complete_latency_ms_isSet(true);
+ }
+
+ public void unset_complete_latency_ms() {
+ __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __COMPLETE_LATENCY_MS_ISSET_ID);
+ }
+
+ /** Returns true if field complete_latency_ms is set (has been assigned a value) and false otherwise */
+ public boolean is_set_complete_latency_ms() {
+ return EncodingUtils.testBit(__isset_bitfield, __COMPLETE_LATENCY_MS_ISSET_ID);
+ }
+
+ public void set_complete_latency_ms_isSet(boolean value) {
+ __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __COMPLETE_LATENCY_MS_ISSET_ID, value);
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case COMPLETE_LATENCY_MS:
+ if (value == null) {
+ unset_complete_latency_ms();
+ } else {
+ set_complete_latency_ms((Double)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case COMPLETE_LATENCY_MS:
+ return Double.valueOf(get_complete_latency_ms());
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** 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 COMPLETE_LATENCY_MS:
+ return is_set_complete_latency_ms();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof SpoutAggregateStats)
+ return this.equals((SpoutAggregateStats)that);
+ return false;
+ }
+
+ public boolean equals(SpoutAggregateStats that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_complete_latency_ms = true && this.is_set_complete_latency_ms();
+ boolean that_present_complete_latency_ms = true && that.is_set_complete_latency_ms();
+ if (this_present_complete_latency_ms || that_present_complete_latency_ms) {
+ if (!(this_present_complete_latency_ms && that_present_complete_latency_ms))
+ return false;
+ if (this.complete_latency_ms != that.complete_latency_ms)
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_complete_latency_ms = true && (is_set_complete_latency_ms());
+ list.add(present_complete_latency_ms);
+ if (present_complete_latency_ms)
+ list.add(complete_latency_ms);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(SpoutAggregateStats other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(is_set_complete_latency_ms()).compareTo(other.is_set_complete_latency_ms());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (is_set_complete_latency_ms()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.complete_latency_ms, other.complete_latency_ms);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder("SpoutAggregateStats(");
+ boolean first = true;
+
+ if (is_set_complete_latency_ms()) {
+ sb.append("complete_latency_ms:");
+ sb.append(this.complete_latency_ms);
+ first = false;
+ }
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+ __isset_bitfield = 0;
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class SpoutAggregateStatsStandardSchemeFactory implements SchemeFactory {
+ public SpoutAggregateStatsStandardScheme getScheme() {
+ return new SpoutAggregateStatsStandardScheme();
+ }
+ }
+
+ private static class SpoutAggregateStatsStandardScheme extends StandardScheme<SpoutAggregateStats> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, SpoutAggregateStats struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 513: // COMPLETE_LATENCY_MS
+ if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
+ struct.complete_latency_ms = iprot.readDouble();
+ struct.set_complete_latency_ms_isSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, SpoutAggregateStats struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.is_set_complete_latency_ms()) {
+ oprot.writeFieldBegin(COMPLETE_LATENCY_MS_FIELD_DESC);
+ oprot.writeDouble(struct.complete_latency_ms);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class SpoutAggregateStatsTupleSchemeFactory implements SchemeFactory {
+ public SpoutAggregateStatsTupleScheme getScheme() {
+ return new SpoutAggregateStatsTupleScheme();
+ }
+ }
+
+ private static class SpoutAggregateStatsTupleScheme extends TupleScheme<SpoutAggregateStats> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, SpoutAggregateStats struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.is_set_complete_latency_ms()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.is_set_complete_latency_ms()) {
+ oprot.writeDouble(struct.complete_latency_ms);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, SpoutAggregateStats struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.complete_latency_ms = iprot.readDouble();
+ struct.set_complete_latency_ms_isSet(true);
+ }
+ }
+ }
+
+}
+
http://git-wip-us.apache.org/repos/asf/storm/blob/a16b50c9/storm-core/src/jvm/backtype/storm/generated/StormBase.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/generated/StormBase.java b/storm-core/src/jvm/backtype/storm/generated/StormBase.java
index b00f072..9d20aa5 100644
--- a/storm-core/src/jvm/backtype/storm/generated/StormBase.java
+++ b/storm-core/src/jvm/backtype/storm/generated/StormBase.java
@@ -51,7 +51,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-3-5")
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-5-14")
public class StormBase implements org.apache.thrift.TBase<StormBase, StormBase._Fields>, java.io.Serializable, Cloneable, Comparable<StormBase> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StormBase");
@@ -984,15 +984,15 @@ public class StormBase implements org.apache.thrift.TBase<StormBase, StormBase._
case 4: // COMPONENT_EXECUTORS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map416 = iprot.readMapBegin();
- struct.component_executors = new HashMap<String,Integer>(2*_map416.size);
- String _key417;
- int _val418;
- for (int _i419 = 0; _i419 < _map416.size; ++_i419)
+ org.apache.thrift.protocol.TMap _map532 = iprot.readMapBegin();
+ struct.component_executors = new HashMap<String,Integer>(2*_map532.size);
+ String _key533;
+ int _val534;
+ for (int _i535 = 0; _i535 < _map532.size; ++_i535)
{
- _key417 = iprot.readString();
- _val418 = iprot.readI32();
- struct.component_executors.put(_key417, _val418);
+ _key533 = iprot.readString();
+ _val534 = iprot.readI32();
+ struct.component_executors.put(_key533, _val534);
}
iprot.readMapEnd();
}
@@ -1065,10 +1065,10 @@ public class StormBase implements org.apache.thrift.TBase<StormBase, StormBase._
oprot.writeFieldBegin(COMPONENT_EXECUTORS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, struct.component_executors.size()));
- for (Map.Entry<String, Integer> _iter420 : struct.component_executors.entrySet())
+ for (Map.Entry<String, Integer> _iter536 : struct.component_executors.entrySet())
{
- oprot.writeString(_iter420.getKey());
- oprot.writeI32(_iter420.getValue());
+ oprot.writeString(_iter536.getKey());
+ oprot.writeI32(_iter536.getValue());
}
oprot.writeMapEnd();
}
@@ -1141,10 +1141,10 @@ public class StormBase implements org.apache.thrift.TBase<StormBase, StormBase._
if (struct.is_set_component_executors()) {
{
oprot.writeI32(struct.component_executors.size());
- for (Map.Entry<String, Integer> _iter421 : struct.component_executors.entrySet())
+ for (Map.Entry<String, Integer> _iter537 : struct.component_executors.entrySet())
{
- oprot.writeString(_iter421.getKey());
- oprot.writeI32(_iter421.getValue());
+ oprot.writeString(_iter537.getKey());
+ oprot.writeI32(_iter537.getValue());
}
}
}
@@ -1174,15 +1174,15 @@ public class StormBase implements org.apache.thrift.TBase<StormBase, StormBase._
BitSet incoming = iprot.readBitSet(5);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TMap _map422 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32());
- struct.component_executors = new HashMap<String,Integer>(2*_map422.size);
- String _key423;
- int _val424;
- for (int _i425 = 0; _i425 < _map422.size; ++_i425)
+ org.apache.thrift.protocol.TMap _map538 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32());
+ struct.component_executors = new HashMap<String,Integer>(2*_map538.size);
+ String _key539;
+ int _val540;
+ for (int _i541 = 0; _i541 < _map538.size; ++_i541)
{
- _key423 = iprot.readString();
- _val424 = iprot.readI32();
- struct.component_executors.put(_key423, _val424);
+ _key539 = iprot.readString();
+ _val540 = iprot.readI32();
+ struct.component_executors.put(_key539, _val540);
}
}
struct.set_component_executors_isSet(true);
http://git-wip-us.apache.org/repos/asf/storm/blob/a16b50c9/storm-core/src/jvm/backtype/storm/generated/SupervisorInfo.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/generated/SupervisorInfo.java b/storm-core/src/jvm/backtype/storm/generated/SupervisorInfo.java
index 9083b0d..fb14c4a 100644
--- a/storm-core/src/jvm/backtype/storm/generated/SupervisorInfo.java
+++ b/storm-core/src/jvm/backtype/storm/generated/SupervisorInfo.java
@@ -51,7 +51,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-4-20")
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-5-14")
public class SupervisorInfo implements org.apache.thrift.TBase<SupervisorInfo, SupervisorInfo._Fields>, java.io.Serializable, Cloneable, Comparable<SupervisorInfo> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SupervisorInfo");
@@ -990,13 +990,13 @@ public class SupervisorInfo implements org.apache.thrift.TBase<SupervisorInfo, S
case 4: // USED_PORTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list336 = iprot.readListBegin();
- struct.used_ports = new ArrayList<Long>(_list336.size);
- long _elem337;
- for (int _i338 = 0; _i338 < _list336.size; ++_i338)
+ org.apache.thrift.protocol.TList _list452 = iprot.readListBegin();
+ struct.used_ports = new ArrayList<Long>(_list452.size);
+ long _elem453;
+ for (int _i454 = 0; _i454 < _list452.size; ++_i454)
{
- _elem337 = iprot.readI64();
- struct.used_ports.add(_elem337);
+ _elem453 = iprot.readI64();
+ struct.used_ports.add(_elem453);
}
iprot.readListEnd();
}
@@ -1008,13 +1008,13 @@ public class SupervisorInfo implements org.apache.thrift.TBase<SupervisorInfo, S
case 5: // META
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list339 = iprot.readListBegin();
- struct.meta = new ArrayList<Long>(_list339.size);
- long _elem340;
- for (int _i341 = 0; _i341 < _list339.size; ++_i341)
+ org.apache.thrift.protocol.TList _list455 = iprot.readListBegin();
+ struct.meta = new ArrayList<Long>(_list455.size);
+ long _elem456;
+ for (int _i457 = 0; _i457 < _list455.size; ++_i457)
{
- _elem340 = iprot.readI64();
- struct.meta.add(_elem340);
+ _elem456 = iprot.readI64();
+ struct.meta.add(_elem456);
}
iprot.readListEnd();
}
@@ -1026,15 +1026,15 @@ public class SupervisorInfo implements org.apache.thrift.TBase<SupervisorInfo, S
case 6: // SCHEDULER_META
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map342 = iprot.readMapBegin();
- struct.scheduler_meta = new HashMap<String,String>(2*_map342.size);
- String _key343;
- String _val344;
- for (int _i345 = 0; _i345 < _map342.size; ++_i345)
+ org.apache.thrift.protocol.TMap _map458 = iprot.readMapBegin();
+ struct.scheduler_meta = new HashMap<String,String>(2*_map458.size);
+ String _key459;
+ String _val460;
+ for (int _i461 = 0; _i461 < _map458.size; ++_i461)
{
- _key343 = iprot.readString();
- _val344 = iprot.readString();
- struct.scheduler_meta.put(_key343, _val344);
+ _key459 = iprot.readString();
+ _val460 = iprot.readString();
+ struct.scheduler_meta.put(_key459, _val460);
}
iprot.readMapEnd();
}
@@ -1092,9 +1092,9 @@ public class SupervisorInfo implements org.apache.thrift.TBase<SupervisorInfo, S
oprot.writeFieldBegin(USED_PORTS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.used_ports.size()));
- for (long _iter346 : struct.used_ports)
+ for (long _iter462 : struct.used_ports)
{
- oprot.writeI64(_iter346);
+ oprot.writeI64(_iter462);
}
oprot.writeListEnd();
}
@@ -1106,9 +1106,9 @@ public class SupervisorInfo implements org.apache.thrift.TBase<SupervisorInfo, S
oprot.writeFieldBegin(META_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.meta.size()));
- for (long _iter347 : struct.meta)
+ for (long _iter463 : struct.meta)
{
- oprot.writeI64(_iter347);
+ oprot.writeI64(_iter463);
}
oprot.writeListEnd();
}
@@ -1120,10 +1120,10 @@ public class SupervisorInfo implements org.apache.thrift.TBase<SupervisorInfo, S
oprot.writeFieldBegin(SCHEDULER_META_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.scheduler_meta.size()));
- for (Map.Entry<String, String> _iter348 : struct.scheduler_meta.entrySet())
+ for (Map.Entry<String, String> _iter464 : struct.scheduler_meta.entrySet())
{
- oprot.writeString(_iter348.getKey());
- oprot.writeString(_iter348.getValue());
+ oprot.writeString(_iter464.getKey());
+ oprot.writeString(_iter464.getValue());
}
oprot.writeMapEnd();
}
@@ -1187,28 +1187,28 @@ public class SupervisorInfo implements org.apache.thrift.TBase<SupervisorInfo, S
if (struct.is_set_used_ports()) {
{
oprot.writeI32(struct.used_ports.size());
- for (long _iter349 : struct.used_ports)
+ for (long _iter465 : struct.used_ports)
{
- oprot.writeI64(_iter349);
+ oprot.writeI64(_iter465);
}
}
}
if (struct.is_set_meta()) {
{
oprot.writeI32(struct.meta.size());
- for (long _iter350 : struct.meta)
+ for (long _iter466 : struct.meta)
{
- oprot.writeI64(_iter350);
+ oprot.writeI64(_iter466);
}
}
}
if (struct.is_set_scheduler_meta()) {
{
oprot.writeI32(struct.scheduler_meta.size());
- for (Map.Entry<String, String> _iter351 : struct.scheduler_meta.entrySet())
+ for (Map.Entry<String, String> _iter467 : struct.scheduler_meta.entrySet())
{
- oprot.writeString(_iter351.getKey());
- oprot.writeString(_iter351.getValue());
+ oprot.writeString(_iter467.getKey());
+ oprot.writeString(_iter467.getValue());
}
}
}
@@ -1234,41 +1234,41 @@ public class SupervisorInfo implements org.apache.thrift.TBase<SupervisorInfo, S
}
if (incoming.get(1)) {
{
- org.apache.thrift.protocol.TList _list352 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.used_ports = new ArrayList<Long>(_list352.size);
- long _elem353;
- for (int _i354 = 0; _i354 < _list352.size; ++_i354)
+ org.apache.thrift.protocol.TList _list468 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.used_ports = new ArrayList<Long>(_list468.size);
+ long _elem469;
+ for (int _i470 = 0; _i470 < _list468.size; ++_i470)
{
- _elem353 = iprot.readI64();
- struct.used_ports.add(_elem353);
+ _elem469 = iprot.readI64();
+ struct.used_ports.add(_elem469);
}
}
struct.set_used_ports_isSet(true);
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list355 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
- struct.meta = new ArrayList<Long>(_list355.size);
- long _elem356;
- for (int _i357 = 0; _i357 < _list355.size; ++_i357)
+ org.apache.thrift.protocol.TList _list471 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
+ struct.meta = new ArrayList<Long>(_list471.size);
+ long _elem472;
+ for (int _i473 = 0; _i473 < _list471.size; ++_i473)
{
- _elem356 = iprot.readI64();
- struct.meta.add(_elem356);
+ _elem472 = iprot.readI64();
+ struct.meta.add(_elem472);
}
}
struct.set_meta_isSet(true);
}
if (incoming.get(3)) {
{
- org.apache.thrift.protocol.TMap _map358 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.scheduler_meta = new HashMap<String,String>(2*_map358.size);
- String _key359;
- String _val360;
- for (int _i361 = 0; _i361 < _map358.size; ++_i361)
+ org.apache.thrift.protocol.TMap _map474 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.scheduler_meta = new HashMap<String,String>(2*_map474.size);
+ String _key475;
+ String _val476;
+ for (int _i477 = 0; _i477 < _map474.size; ++_i477)
{
- _key359 = iprot.readString();
- _val360 = iprot.readString();
- struct.scheduler_meta.put(_key359, _val360);
+ _key475 = iprot.readString();
+ _val476 = iprot.readString();
+ struct.scheduler_meta.put(_key475, _val476);
}
}
struct.set_scheduler_meta_isSet(true);