View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    *
9    *     http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  /**
18   * Autogenerated by Thrift Compiler (0.9.0)
19   *
20   * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
21   *  @generated
22   */
23  package org.apache.accumulo.core.master.thrift;
24  
25  import org.apache.thrift.scheme.IScheme;
26  import org.apache.thrift.scheme.SchemeFactory;
27  import org.apache.thrift.scheme.StandardScheme;
28  
29  import org.apache.thrift.scheme.TupleScheme;
30  import org.apache.thrift.protocol.TTupleProtocol;
31  import org.apache.thrift.protocol.TProtocolException;
32  import org.apache.thrift.EncodingUtils;
33  import org.apache.thrift.TException;
34  import java.util.List;
35  import java.util.ArrayList;
36  import java.util.Map;
37  import java.util.HashMap;
38  import java.util.EnumMap;
39  import java.util.Set;
40  import java.util.HashSet;
41  import java.util.EnumSet;
42  import java.util.Collections;
43  import java.util.BitSet;
44  import java.nio.ByteBuffer;
45  import java.util.Arrays;
46  import org.slf4j.Logger;
47  import org.slf4j.LoggerFactory;
48  
49  @SuppressWarnings("all") public class TabletServerStatus implements org.apache.thrift.TBase<TabletServerStatus, TabletServerStatus._Fields>, java.io.Serializable, Cloneable {
50    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TabletServerStatus");
51  
52    private static final org.apache.thrift.protocol.TField TABLE_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("tableMap", org.apache.thrift.protocol.TType.MAP, (short)1);
53    private static final org.apache.thrift.protocol.TField LAST_CONTACT_FIELD_DESC = new org.apache.thrift.protocol.TField("lastContact", org.apache.thrift.protocol.TType.I64, (short)2);
54    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)3);
55    private static final org.apache.thrift.protocol.TField OS_LOAD_FIELD_DESC = new org.apache.thrift.protocol.TField("osLoad", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
56    private static final org.apache.thrift.protocol.TField HOLD_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("holdTime", org.apache.thrift.protocol.TType.I64, (short)7);
57    private static final org.apache.thrift.protocol.TField LOOKUPS_FIELD_DESC = new org.apache.thrift.protocol.TField("lookups", org.apache.thrift.protocol.TType.I64, (short)8);
58    private static final org.apache.thrift.protocol.TField INDEX_CACHE_HITS_FIELD_DESC = new org.apache.thrift.protocol.TField("indexCacheHits", org.apache.thrift.protocol.TType.I64, (short)10);
59    private static final org.apache.thrift.protocol.TField INDEX_CACHE_REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("indexCacheRequest", org.apache.thrift.protocol.TType.I64, (short)11);
60    private static final org.apache.thrift.protocol.TField DATA_CACHE_HITS_FIELD_DESC = new org.apache.thrift.protocol.TField("dataCacheHits", org.apache.thrift.protocol.TType.I64, (short)12);
61    private static final org.apache.thrift.protocol.TField DATA_CACHE_REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("dataCacheRequest", org.apache.thrift.protocol.TType.I64, (short)13);
62    private static final org.apache.thrift.protocol.TField LOG_SORTS_FIELD_DESC = new org.apache.thrift.protocol.TField("logSorts", org.apache.thrift.protocol.TType.LIST, (short)14);
63  
64    private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
65    static {
66      schemes.put(StandardScheme.class, new TabletServerStatusStandardSchemeFactory());
67      schemes.put(TupleScheme.class, new TabletServerStatusTupleSchemeFactory());
68    }
69  
70    public Map<String,TableInfo> tableMap; // required
71    public long lastContact; // required
72    public String name; // required
73    public double osLoad; // required
74    public long holdTime; // required
75    public long lookups; // required
76    public long indexCacheHits; // required
77    public long indexCacheRequest; // required
78    public long dataCacheHits; // required
79    public long dataCacheRequest; // required
80    public List<RecoveryStatus> logSorts; // required
81  
82    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
83    @SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
84      TABLE_MAP((short)1, "tableMap"),
85      LAST_CONTACT((short)2, "lastContact"),
86      NAME((short)3, "name"),
87      OS_LOAD((short)5, "osLoad"),
88      HOLD_TIME((short)7, "holdTime"),
89      LOOKUPS((short)8, "lookups"),
90      INDEX_CACHE_HITS((short)10, "indexCacheHits"),
91      INDEX_CACHE_REQUEST((short)11, "indexCacheRequest"),
92      DATA_CACHE_HITS((short)12, "dataCacheHits"),
93      DATA_CACHE_REQUEST((short)13, "dataCacheRequest"),
94      LOG_SORTS((short)14, "logSorts");
95  
96      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
97  
98      static {
99        for (_Fields field : EnumSet.allOf(_Fields.class)) {
100         byName.put(field.getFieldName(), field);
101       }
102     }
103 
104     /**
105      * Find the _Fields constant that matches fieldId, or null if its not found.
106      */
107     public static _Fields findByThriftId(int fieldId) {
108       switch(fieldId) {
109         case 1: // TABLE_MAP
110           return TABLE_MAP;
111         case 2: // LAST_CONTACT
112           return LAST_CONTACT;
113         case 3: // NAME
114           return NAME;
115         case 5: // OS_LOAD
116           return OS_LOAD;
117         case 7: // HOLD_TIME
118           return HOLD_TIME;
119         case 8: // LOOKUPS
120           return LOOKUPS;
121         case 10: // INDEX_CACHE_HITS
122           return INDEX_CACHE_HITS;
123         case 11: // INDEX_CACHE_REQUEST
124           return INDEX_CACHE_REQUEST;
125         case 12: // DATA_CACHE_HITS
126           return DATA_CACHE_HITS;
127         case 13: // DATA_CACHE_REQUEST
128           return DATA_CACHE_REQUEST;
129         case 14: // LOG_SORTS
130           return LOG_SORTS;
131         default:
132           return null;
133       }
134     }
135 
136     /**
137      * Find the _Fields constant that matches fieldId, throwing an exception
138      * if it is not found.
139      */
140     public static _Fields findByThriftIdOrThrow(int fieldId) {
141       _Fields fields = findByThriftId(fieldId);
142       if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
143       return fields;
144     }
145 
146     /**
147      * Find the _Fields constant that matches name, or null if its not found.
148      */
149     public static _Fields findByName(String name) {
150       return byName.get(name);
151     }
152 
153     private final short _thriftId;
154     private final String _fieldName;
155 
156     _Fields(short thriftId, String fieldName) {
157       _thriftId = thriftId;
158       _fieldName = fieldName;
159     }
160 
161     public short getThriftFieldId() {
162       return _thriftId;
163     }
164 
165     public String getFieldName() {
166       return _fieldName;
167     }
168   }
169 
170   // isset id assignments
171   private static final int __LASTCONTACT_ISSET_ID = 0;
172   private static final int __OSLOAD_ISSET_ID = 1;
173   private static final int __HOLDTIME_ISSET_ID = 2;
174   private static final int __LOOKUPS_ISSET_ID = 3;
175   private static final int __INDEXCACHEHITS_ISSET_ID = 4;
176   private static final int __INDEXCACHEREQUEST_ISSET_ID = 5;
177   private static final int __DATACACHEHITS_ISSET_ID = 6;
178   private static final int __DATACACHEREQUEST_ISSET_ID = 7;
179   private byte __isset_bitfield = 0;
180   public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
181   static {
182     Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
183     tmpMap.put(_Fields.TABLE_MAP, new org.apache.thrift.meta_data.FieldMetaData("tableMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
184         new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
185             new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
186             new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TableInfo.class))));
187     tmpMap.put(_Fields.LAST_CONTACT, new org.apache.thrift.meta_data.FieldMetaData("lastContact", org.apache.thrift.TFieldRequirementType.DEFAULT, 
188         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
189     tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
190         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
191     tmpMap.put(_Fields.OS_LOAD, new org.apache.thrift.meta_data.FieldMetaData("osLoad", org.apache.thrift.TFieldRequirementType.DEFAULT, 
192         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
193     tmpMap.put(_Fields.HOLD_TIME, new org.apache.thrift.meta_data.FieldMetaData("holdTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
194         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
195     tmpMap.put(_Fields.LOOKUPS, new org.apache.thrift.meta_data.FieldMetaData("lookups", org.apache.thrift.TFieldRequirementType.DEFAULT, 
196         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
197     tmpMap.put(_Fields.INDEX_CACHE_HITS, new org.apache.thrift.meta_data.FieldMetaData("indexCacheHits", org.apache.thrift.TFieldRequirementType.DEFAULT, 
198         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
199     tmpMap.put(_Fields.INDEX_CACHE_REQUEST, new org.apache.thrift.meta_data.FieldMetaData("indexCacheRequest", org.apache.thrift.TFieldRequirementType.DEFAULT, 
200         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
201     tmpMap.put(_Fields.DATA_CACHE_HITS, new org.apache.thrift.meta_data.FieldMetaData("dataCacheHits", org.apache.thrift.TFieldRequirementType.DEFAULT, 
202         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
203     tmpMap.put(_Fields.DATA_CACHE_REQUEST, new org.apache.thrift.meta_data.FieldMetaData("dataCacheRequest", org.apache.thrift.TFieldRequirementType.DEFAULT, 
204         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
205     tmpMap.put(_Fields.LOG_SORTS, new org.apache.thrift.meta_data.FieldMetaData("logSorts", org.apache.thrift.TFieldRequirementType.DEFAULT, 
206         new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
207             new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RecoveryStatus.class))));
208     metaDataMap = Collections.unmodifiableMap(tmpMap);
209     org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TabletServerStatus.class, metaDataMap);
210   }
211 
212   public TabletServerStatus() {
213   }
214 
215   public TabletServerStatus(
216     Map<String,TableInfo> tableMap,
217     long lastContact,
218     String name,
219     double osLoad,
220     long holdTime,
221     long lookups,
222     long indexCacheHits,
223     long indexCacheRequest,
224     long dataCacheHits,
225     long dataCacheRequest,
226     List<RecoveryStatus> logSorts)
227   {
228     this();
229     this.tableMap = tableMap;
230     this.lastContact = lastContact;
231     setLastContactIsSet(true);
232     this.name = name;
233     this.osLoad = osLoad;
234     setOsLoadIsSet(true);
235     this.holdTime = holdTime;
236     setHoldTimeIsSet(true);
237     this.lookups = lookups;
238     setLookupsIsSet(true);
239     this.indexCacheHits = indexCacheHits;
240     setIndexCacheHitsIsSet(true);
241     this.indexCacheRequest = indexCacheRequest;
242     setIndexCacheRequestIsSet(true);
243     this.dataCacheHits = dataCacheHits;
244     setDataCacheHitsIsSet(true);
245     this.dataCacheRequest = dataCacheRequest;
246     setDataCacheRequestIsSet(true);
247     this.logSorts = logSorts;
248   }
249 
250   /**
251    * Performs a deep copy on <i>other</i>.
252    */
253   public TabletServerStatus(TabletServerStatus other) {
254     __isset_bitfield = other.__isset_bitfield;
255     if (other.isSetTableMap()) {
256       Map<String,TableInfo> __this__tableMap = new HashMap<String,TableInfo>();
257       for (Map.Entry<String, TableInfo> other_element : other.tableMap.entrySet()) {
258 
259         String other_element_key = other_element.getKey();
260         TableInfo other_element_value = other_element.getValue();
261 
262         String __this__tableMap_copy_key = other_element_key;
263 
264         TableInfo __this__tableMap_copy_value = new TableInfo(other_element_value);
265 
266         __this__tableMap.put(__this__tableMap_copy_key, __this__tableMap_copy_value);
267       }
268       this.tableMap = __this__tableMap;
269     }
270     this.lastContact = other.lastContact;
271     if (other.isSetName()) {
272       this.name = other.name;
273     }
274     this.osLoad = other.osLoad;
275     this.holdTime = other.holdTime;
276     this.lookups = other.lookups;
277     this.indexCacheHits = other.indexCacheHits;
278     this.indexCacheRequest = other.indexCacheRequest;
279     this.dataCacheHits = other.dataCacheHits;
280     this.dataCacheRequest = other.dataCacheRequest;
281     if (other.isSetLogSorts()) {
282       List<RecoveryStatus> __this__logSorts = new ArrayList<RecoveryStatus>();
283       for (RecoveryStatus other_element : other.logSorts) {
284         __this__logSorts.add(new RecoveryStatus(other_element));
285       }
286       this.logSorts = __this__logSorts;
287     }
288   }
289 
290   public TabletServerStatus deepCopy() {
291     return new TabletServerStatus(this);
292   }
293 
294   @Override
295   public void clear() {
296     this.tableMap = null;
297     setLastContactIsSet(false);
298     this.lastContact = 0;
299     this.name = null;
300     setOsLoadIsSet(false);
301     this.osLoad = 0.0;
302     setHoldTimeIsSet(false);
303     this.holdTime = 0;
304     setLookupsIsSet(false);
305     this.lookups = 0;
306     setIndexCacheHitsIsSet(false);
307     this.indexCacheHits = 0;
308     setIndexCacheRequestIsSet(false);
309     this.indexCacheRequest = 0;
310     setDataCacheHitsIsSet(false);
311     this.dataCacheHits = 0;
312     setDataCacheRequestIsSet(false);
313     this.dataCacheRequest = 0;
314     this.logSorts = null;
315   }
316 
317   public int getTableMapSize() {
318     return (this.tableMap == null) ? 0 : this.tableMap.size();
319   }
320 
321   public void putToTableMap(String key, TableInfo val) {
322     if (this.tableMap == null) {
323       this.tableMap = new HashMap<String,TableInfo>();
324     }
325     this.tableMap.put(key, val);
326   }
327 
328   public Map<String,TableInfo> getTableMap() {
329     return this.tableMap;
330   }
331 
332   public TabletServerStatus setTableMap(Map<String,TableInfo> tableMap) {
333     this.tableMap = tableMap;
334     return this;
335   }
336 
337   public void unsetTableMap() {
338     this.tableMap = null;
339   }
340 
341   /** Returns true if field tableMap is set (has been assigned a value) and false otherwise */
342   public boolean isSetTableMap() {
343     return this.tableMap != null;
344   }
345 
346   public void setTableMapIsSet(boolean value) {
347     if (!value) {
348       this.tableMap = null;
349     }
350   }
351 
352   public long getLastContact() {
353     return this.lastContact;
354   }
355 
356   public TabletServerStatus setLastContact(long lastContact) {
357     this.lastContact = lastContact;
358     setLastContactIsSet(true);
359     return this;
360   }
361 
362   public void unsetLastContact() {
363     __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LASTCONTACT_ISSET_ID);
364   }
365 
366   /** Returns true if field lastContact is set (has been assigned a value) and false otherwise */
367   public boolean isSetLastContact() {
368     return EncodingUtils.testBit(__isset_bitfield, __LASTCONTACT_ISSET_ID);
369   }
370 
371   public void setLastContactIsSet(boolean value) {
372     __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LASTCONTACT_ISSET_ID, value);
373   }
374 
375   public String getName() {
376     return this.name;
377   }
378 
379   public TabletServerStatus setName(String name) {
380     this.name = name;
381     return this;
382   }
383 
384   public void unsetName() {
385     this.name = null;
386   }
387 
388   /** Returns true if field name is set (has been assigned a value) and false otherwise */
389   public boolean isSetName() {
390     return this.name != null;
391   }
392 
393   public void setNameIsSet(boolean value) {
394     if (!value) {
395       this.name = null;
396     }
397   }
398 
399   public double getOsLoad() {
400     return this.osLoad;
401   }
402 
403   public TabletServerStatus setOsLoad(double osLoad) {
404     this.osLoad = osLoad;
405     setOsLoadIsSet(true);
406     return this;
407   }
408 
409   public void unsetOsLoad() {
410     __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OSLOAD_ISSET_ID);
411   }
412 
413   /** Returns true if field osLoad is set (has been assigned a value) and false otherwise */
414   public boolean isSetOsLoad() {
415     return EncodingUtils.testBit(__isset_bitfield, __OSLOAD_ISSET_ID);
416   }
417 
418   public void setOsLoadIsSet(boolean value) {
419     __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OSLOAD_ISSET_ID, value);
420   }
421 
422   public long getHoldTime() {
423     return this.holdTime;
424   }
425 
426   public TabletServerStatus setHoldTime(long holdTime) {
427     this.holdTime = holdTime;
428     setHoldTimeIsSet(true);
429     return this;
430   }
431 
432   public void unsetHoldTime() {
433     __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
434   }
435 
436   /** Returns true if field holdTime is set (has been assigned a value) and false otherwise */
437   public boolean isSetHoldTime() {
438     return EncodingUtils.testBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
439   }
440 
441   public void setHoldTimeIsSet(boolean value) {
442     __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HOLDTIME_ISSET_ID, value);
443   }
444 
445   public long getLookups() {
446     return this.lookups;
447   }
448 
449   public TabletServerStatus setLookups(long lookups) {
450     this.lookups = lookups;
451     setLookupsIsSet(true);
452     return this;
453   }
454 
455   public void unsetLookups() {
456     __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LOOKUPS_ISSET_ID);
457   }
458 
459   /** Returns true if field lookups is set (has been assigned a value) and false otherwise */
460   public boolean isSetLookups() {
461     return EncodingUtils.testBit(__isset_bitfield, __LOOKUPS_ISSET_ID);
462   }
463 
464   public void setLookupsIsSet(boolean value) {
465     __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LOOKUPS_ISSET_ID, value);
466   }
467 
468   public long getIndexCacheHits() {
469     return this.indexCacheHits;
470   }
471 
472   public TabletServerStatus setIndexCacheHits(long indexCacheHits) {
473     this.indexCacheHits = indexCacheHits;
474     setIndexCacheHitsIsSet(true);
475     return this;
476   }
477 
478   public void unsetIndexCacheHits() {
479     __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INDEXCACHEHITS_ISSET_ID);
480   }
481 
482   /** Returns true if field indexCacheHits is set (has been assigned a value) and false otherwise */
483   public boolean isSetIndexCacheHits() {
484     return EncodingUtils.testBit(__isset_bitfield, __INDEXCACHEHITS_ISSET_ID);
485   }
486 
487   public void setIndexCacheHitsIsSet(boolean value) {
488     __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INDEXCACHEHITS_ISSET_ID, value);
489   }
490 
491   public long getIndexCacheRequest() {
492     return this.indexCacheRequest;
493   }
494 
495   public TabletServerStatus setIndexCacheRequest(long indexCacheRequest) {
496     this.indexCacheRequest = indexCacheRequest;
497     setIndexCacheRequestIsSet(true);
498     return this;
499   }
500 
501   public void unsetIndexCacheRequest() {
502     __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INDEXCACHEREQUEST_ISSET_ID);
503   }
504 
505   /** Returns true if field indexCacheRequest is set (has been assigned a value) and false otherwise */
506   public boolean isSetIndexCacheRequest() {
507     return EncodingUtils.testBit(__isset_bitfield, __INDEXCACHEREQUEST_ISSET_ID);
508   }
509 
510   public void setIndexCacheRequestIsSet(boolean value) {
511     __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INDEXCACHEREQUEST_ISSET_ID, value);
512   }
513 
514   public long getDataCacheHits() {
515     return this.dataCacheHits;
516   }
517 
518   public TabletServerStatus setDataCacheHits(long dataCacheHits) {
519     this.dataCacheHits = dataCacheHits;
520     setDataCacheHitsIsSet(true);
521     return this;
522   }
523 
524   public void unsetDataCacheHits() {
525     __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DATACACHEHITS_ISSET_ID);
526   }
527 
528   /** Returns true if field dataCacheHits is set (has been assigned a value) and false otherwise */
529   public boolean isSetDataCacheHits() {
530     return EncodingUtils.testBit(__isset_bitfield, __DATACACHEHITS_ISSET_ID);
531   }
532 
533   public void setDataCacheHitsIsSet(boolean value) {
534     __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DATACACHEHITS_ISSET_ID, value);
535   }
536 
537   public long getDataCacheRequest() {
538     return this.dataCacheRequest;
539   }
540 
541   public TabletServerStatus setDataCacheRequest(long dataCacheRequest) {
542     this.dataCacheRequest = dataCacheRequest;
543     setDataCacheRequestIsSet(true);
544     return this;
545   }
546 
547   public void unsetDataCacheRequest() {
548     __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DATACACHEREQUEST_ISSET_ID);
549   }
550 
551   /** Returns true if field dataCacheRequest is set (has been assigned a value) and false otherwise */
552   public boolean isSetDataCacheRequest() {
553     return EncodingUtils.testBit(__isset_bitfield, __DATACACHEREQUEST_ISSET_ID);
554   }
555 
556   public void setDataCacheRequestIsSet(boolean value) {
557     __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DATACACHEREQUEST_ISSET_ID, value);
558   }
559 
560   public int getLogSortsSize() {
561     return (this.logSorts == null) ? 0 : this.logSorts.size();
562   }
563 
564   public java.util.Iterator<RecoveryStatus> getLogSortsIterator() {
565     return (this.logSorts == null) ? null : this.logSorts.iterator();
566   }
567 
568   public void addToLogSorts(RecoveryStatus elem) {
569     if (this.logSorts == null) {
570       this.logSorts = new ArrayList<RecoveryStatus>();
571     }
572     this.logSorts.add(elem);
573   }
574 
575   public List<RecoveryStatus> getLogSorts() {
576     return this.logSorts;
577   }
578 
579   public TabletServerStatus setLogSorts(List<RecoveryStatus> logSorts) {
580     this.logSorts = logSorts;
581     return this;
582   }
583 
584   public void unsetLogSorts() {
585     this.logSorts = null;
586   }
587 
588   /** Returns true if field logSorts is set (has been assigned a value) and false otherwise */
589   public boolean isSetLogSorts() {
590     return this.logSorts != null;
591   }
592 
593   public void setLogSortsIsSet(boolean value) {
594     if (!value) {
595       this.logSorts = null;
596     }
597   }
598 
599   public void setFieldValue(_Fields field, Object value) {
600     switch (field) {
601     case TABLE_MAP:
602       if (value == null) {
603         unsetTableMap();
604       } else {
605         setTableMap((Map<String,TableInfo>)value);
606       }
607       break;
608 
609     case LAST_CONTACT:
610       if (value == null) {
611         unsetLastContact();
612       } else {
613         setLastContact((Long)value);
614       }
615       break;
616 
617     case NAME:
618       if (value == null) {
619         unsetName();
620       } else {
621         setName((String)value);
622       }
623       break;
624 
625     case OS_LOAD:
626       if (value == null) {
627         unsetOsLoad();
628       } else {
629         setOsLoad((Double)value);
630       }
631       break;
632 
633     case HOLD_TIME:
634       if (value == null) {
635         unsetHoldTime();
636       } else {
637         setHoldTime((Long)value);
638       }
639       break;
640 
641     case LOOKUPS:
642       if (value == null) {
643         unsetLookups();
644       } else {
645         setLookups((Long)value);
646       }
647       break;
648 
649     case INDEX_CACHE_HITS:
650       if (value == null) {
651         unsetIndexCacheHits();
652       } else {
653         setIndexCacheHits((Long)value);
654       }
655       break;
656 
657     case INDEX_CACHE_REQUEST:
658       if (value == null) {
659         unsetIndexCacheRequest();
660       } else {
661         setIndexCacheRequest((Long)value);
662       }
663       break;
664 
665     case DATA_CACHE_HITS:
666       if (value == null) {
667         unsetDataCacheHits();
668       } else {
669         setDataCacheHits((Long)value);
670       }
671       break;
672 
673     case DATA_CACHE_REQUEST:
674       if (value == null) {
675         unsetDataCacheRequest();
676       } else {
677         setDataCacheRequest((Long)value);
678       }
679       break;
680 
681     case LOG_SORTS:
682       if (value == null) {
683         unsetLogSorts();
684       } else {
685         setLogSorts((List<RecoveryStatus>)value);
686       }
687       break;
688 
689     }
690   }
691 
692   public Object getFieldValue(_Fields field) {
693     switch (field) {
694     case TABLE_MAP:
695       return getTableMap();
696 
697     case LAST_CONTACT:
698       return Long.valueOf(getLastContact());
699 
700     case NAME:
701       return getName();
702 
703     case OS_LOAD:
704       return Double.valueOf(getOsLoad());
705 
706     case HOLD_TIME:
707       return Long.valueOf(getHoldTime());
708 
709     case LOOKUPS:
710       return Long.valueOf(getLookups());
711 
712     case INDEX_CACHE_HITS:
713       return Long.valueOf(getIndexCacheHits());
714 
715     case INDEX_CACHE_REQUEST:
716       return Long.valueOf(getIndexCacheRequest());
717 
718     case DATA_CACHE_HITS:
719       return Long.valueOf(getDataCacheHits());
720 
721     case DATA_CACHE_REQUEST:
722       return Long.valueOf(getDataCacheRequest());
723 
724     case LOG_SORTS:
725       return getLogSorts();
726 
727     }
728     throw new IllegalStateException();
729   }
730 
731   /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
732   public boolean isSet(_Fields field) {
733     if (field == null) {
734       throw new IllegalArgumentException();
735     }
736 
737     switch (field) {
738     case TABLE_MAP:
739       return isSetTableMap();
740     case LAST_CONTACT:
741       return isSetLastContact();
742     case NAME:
743       return isSetName();
744     case OS_LOAD:
745       return isSetOsLoad();
746     case HOLD_TIME:
747       return isSetHoldTime();
748     case LOOKUPS:
749       return isSetLookups();
750     case INDEX_CACHE_HITS:
751       return isSetIndexCacheHits();
752     case INDEX_CACHE_REQUEST:
753       return isSetIndexCacheRequest();
754     case DATA_CACHE_HITS:
755       return isSetDataCacheHits();
756     case DATA_CACHE_REQUEST:
757       return isSetDataCacheRequest();
758     case LOG_SORTS:
759       return isSetLogSorts();
760     }
761     throw new IllegalStateException();
762   }
763 
764   @Override
765   public boolean equals(Object that) {
766     if (that == null)
767       return false;
768     if (that instanceof TabletServerStatus)
769       return this.equals((TabletServerStatus)that);
770     return false;
771   }
772 
773   public boolean equals(TabletServerStatus that) {
774     if (that == null)
775       return false;
776 
777     boolean this_present_tableMap = true && this.isSetTableMap();
778     boolean that_present_tableMap = true && that.isSetTableMap();
779     if (this_present_tableMap || that_present_tableMap) {
780       if (!(this_present_tableMap && that_present_tableMap))
781         return false;
782       if (!this.tableMap.equals(that.tableMap))
783         return false;
784     }
785 
786     boolean this_present_lastContact = true;
787     boolean that_present_lastContact = true;
788     if (this_present_lastContact || that_present_lastContact) {
789       if (!(this_present_lastContact && that_present_lastContact))
790         return false;
791       if (this.lastContact != that.lastContact)
792         return false;
793     }
794 
795     boolean this_present_name = true && this.isSetName();
796     boolean that_present_name = true && that.isSetName();
797     if (this_present_name || that_present_name) {
798       if (!(this_present_name && that_present_name))
799         return false;
800       if (!this.name.equals(that.name))
801         return false;
802     }
803 
804     boolean this_present_osLoad = true;
805     boolean that_present_osLoad = true;
806     if (this_present_osLoad || that_present_osLoad) {
807       if (!(this_present_osLoad && that_present_osLoad))
808         return false;
809       if (this.osLoad != that.osLoad)
810         return false;
811     }
812 
813     boolean this_present_holdTime = true;
814     boolean that_present_holdTime = true;
815     if (this_present_holdTime || that_present_holdTime) {
816       if (!(this_present_holdTime && that_present_holdTime))
817         return false;
818       if (this.holdTime != that.holdTime)
819         return false;
820     }
821 
822     boolean this_present_lookups = true;
823     boolean that_present_lookups = true;
824     if (this_present_lookups || that_present_lookups) {
825       if (!(this_present_lookups && that_present_lookups))
826         return false;
827       if (this.lookups != that.lookups)
828         return false;
829     }
830 
831     boolean this_present_indexCacheHits = true;
832     boolean that_present_indexCacheHits = true;
833     if (this_present_indexCacheHits || that_present_indexCacheHits) {
834       if (!(this_present_indexCacheHits && that_present_indexCacheHits))
835         return false;
836       if (this.indexCacheHits != that.indexCacheHits)
837         return false;
838     }
839 
840     boolean this_present_indexCacheRequest = true;
841     boolean that_present_indexCacheRequest = true;
842     if (this_present_indexCacheRequest || that_present_indexCacheRequest) {
843       if (!(this_present_indexCacheRequest && that_present_indexCacheRequest))
844         return false;
845       if (this.indexCacheRequest != that.indexCacheRequest)
846         return false;
847     }
848 
849     boolean this_present_dataCacheHits = true;
850     boolean that_present_dataCacheHits = true;
851     if (this_present_dataCacheHits || that_present_dataCacheHits) {
852       if (!(this_present_dataCacheHits && that_present_dataCacheHits))
853         return false;
854       if (this.dataCacheHits != that.dataCacheHits)
855         return false;
856     }
857 
858     boolean this_present_dataCacheRequest = true;
859     boolean that_present_dataCacheRequest = true;
860     if (this_present_dataCacheRequest || that_present_dataCacheRequest) {
861       if (!(this_present_dataCacheRequest && that_present_dataCacheRequest))
862         return false;
863       if (this.dataCacheRequest != that.dataCacheRequest)
864         return false;
865     }
866 
867     boolean this_present_logSorts = true && this.isSetLogSorts();
868     boolean that_present_logSorts = true && that.isSetLogSorts();
869     if (this_present_logSorts || that_present_logSorts) {
870       if (!(this_present_logSorts && that_present_logSorts))
871         return false;
872       if (!this.logSorts.equals(that.logSorts))
873         return false;
874     }
875 
876     return true;
877   }
878 
879   @Override
880   public int hashCode() {
881     return 0;
882   }
883 
884   public int compareTo(TabletServerStatus other) {
885     if (!getClass().equals(other.getClass())) {
886       return getClass().getName().compareTo(other.getClass().getName());
887     }
888 
889     int lastComparison = 0;
890     TabletServerStatus typedOther = (TabletServerStatus)other;
891 
892     lastComparison = Boolean.valueOf(isSetTableMap()).compareTo(typedOther.isSetTableMap());
893     if (lastComparison != 0) {
894       return lastComparison;
895     }
896     if (isSetTableMap()) {
897       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableMap, typedOther.tableMap);
898       if (lastComparison != 0) {
899         return lastComparison;
900       }
901     }
902     lastComparison = Boolean.valueOf(isSetLastContact()).compareTo(typedOther.isSetLastContact());
903     if (lastComparison != 0) {
904       return lastComparison;
905     }
906     if (isSetLastContact()) {
907       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastContact, typedOther.lastContact);
908       if (lastComparison != 0) {
909         return lastComparison;
910       }
911     }
912     lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
913     if (lastComparison != 0) {
914       return lastComparison;
915     }
916     if (isSetName()) {
917       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
918       if (lastComparison != 0) {
919         return lastComparison;
920       }
921     }
922     lastComparison = Boolean.valueOf(isSetOsLoad()).compareTo(typedOther.isSetOsLoad());
923     if (lastComparison != 0) {
924       return lastComparison;
925     }
926     if (isSetOsLoad()) {
927       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.osLoad, typedOther.osLoad);
928       if (lastComparison != 0) {
929         return lastComparison;
930       }
931     }
932     lastComparison = Boolean.valueOf(isSetHoldTime()).compareTo(typedOther.isSetHoldTime());
933     if (lastComparison != 0) {
934       return lastComparison;
935     }
936     if (isSetHoldTime()) {
937       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdTime, typedOther.holdTime);
938       if (lastComparison != 0) {
939         return lastComparison;
940       }
941     }
942     lastComparison = Boolean.valueOf(isSetLookups()).compareTo(typedOther.isSetLookups());
943     if (lastComparison != 0) {
944       return lastComparison;
945     }
946     if (isSetLookups()) {
947       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lookups, typedOther.lookups);
948       if (lastComparison != 0) {
949         return lastComparison;
950       }
951     }
952     lastComparison = Boolean.valueOf(isSetIndexCacheHits()).compareTo(typedOther.isSetIndexCacheHits());
953     if (lastComparison != 0) {
954       return lastComparison;
955     }
956     if (isSetIndexCacheHits()) {
957       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexCacheHits, typedOther.indexCacheHits);
958       if (lastComparison != 0) {
959         return lastComparison;
960       }
961     }
962     lastComparison = Boolean.valueOf(isSetIndexCacheRequest()).compareTo(typedOther.isSetIndexCacheRequest());
963     if (lastComparison != 0) {
964       return lastComparison;
965     }
966     if (isSetIndexCacheRequest()) {
967       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexCacheRequest, typedOther.indexCacheRequest);
968       if (lastComparison != 0) {
969         return lastComparison;
970       }
971     }
972     lastComparison = Boolean.valueOf(isSetDataCacheHits()).compareTo(typedOther.isSetDataCacheHits());
973     if (lastComparison != 0) {
974       return lastComparison;
975     }
976     if (isSetDataCacheHits()) {
977       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataCacheHits, typedOther.dataCacheHits);
978       if (lastComparison != 0) {
979         return lastComparison;
980       }
981     }
982     lastComparison = Boolean.valueOf(isSetDataCacheRequest()).compareTo(typedOther.isSetDataCacheRequest());
983     if (lastComparison != 0) {
984       return lastComparison;
985     }
986     if (isSetDataCacheRequest()) {
987       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataCacheRequest, typedOther.dataCacheRequest);
988       if (lastComparison != 0) {
989         return lastComparison;
990       }
991     }
992     lastComparison = Boolean.valueOf(isSetLogSorts()).compareTo(typedOther.isSetLogSorts());
993     if (lastComparison != 0) {
994       return lastComparison;
995     }
996     if (isSetLogSorts()) {
997       lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logSorts, typedOther.logSorts);
998       if (lastComparison != 0) {
999         return lastComparison;
1000       }
1001     }
1002     return 0;
1003   }
1004 
1005   public _Fields fieldForId(int fieldId) {
1006     return _Fields.findByThriftId(fieldId);
1007   }
1008 
1009   public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1010     schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
1011   }
1012 
1013   public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1014     schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
1015   }
1016 
1017   @Override
1018   public String toString() {
1019     StringBuilder sb = new StringBuilder("TabletServerStatus(");
1020     boolean first = true;
1021 
1022     sb.append("tableMap:");
1023     if (this.tableMap == null) {
1024       sb.append("null");
1025     } else {
1026       sb.append(this.tableMap);
1027     }
1028     first = false;
1029     if (!first) sb.append(", ");
1030     sb.append("lastContact:");
1031     sb.append(this.lastContact);
1032     first = false;
1033     if (!first) sb.append(", ");
1034     sb.append("name:");
1035     if (this.name == null) {
1036       sb.append("null");
1037     } else {
1038       sb.append(this.name);
1039     }
1040     first = false;
1041     if (!first) sb.append(", ");
1042     sb.append("osLoad:");
1043     sb.append(this.osLoad);
1044     first = false;
1045     if (!first) sb.append(", ");
1046     sb.append("holdTime:");
1047     sb.append(this.holdTime);
1048     first = false;
1049     if (!first) sb.append(", ");
1050     sb.append("lookups:");
1051     sb.append(this.lookups);
1052     first = false;
1053     if (!first) sb.append(", ");
1054     sb.append("indexCacheHits:");
1055     sb.append(this.indexCacheHits);
1056     first = false;
1057     if (!first) sb.append(", ");
1058     sb.append("indexCacheRequest:");
1059     sb.append(this.indexCacheRequest);
1060     first = false;
1061     if (!first) sb.append(", ");
1062     sb.append("dataCacheHits:");
1063     sb.append(this.dataCacheHits);
1064     first = false;
1065     if (!first) sb.append(", ");
1066     sb.append("dataCacheRequest:");
1067     sb.append(this.dataCacheRequest);
1068     first = false;
1069     if (!first) sb.append(", ");
1070     sb.append("logSorts:");
1071     if (this.logSorts == null) {
1072       sb.append("null");
1073     } else {
1074       sb.append(this.logSorts);
1075     }
1076     first = false;
1077     sb.append(")");
1078     return sb.toString();
1079   }
1080 
1081   public void validate() throws org.apache.thrift.TException {
1082     // check for required fields
1083     // check for sub-struct validity
1084   }
1085 
1086   private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1087     try {
1088       write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1089     } catch (org.apache.thrift.TException te) {
1090       throw new java.io.IOException(te);
1091     }
1092   }
1093 
1094   private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1095     try {
1096       // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1097       __isset_bitfield = 0;
1098       read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1099     } catch (org.apache.thrift.TException te) {
1100       throw new java.io.IOException(te);
1101     }
1102   }
1103 
1104   private static class TabletServerStatusStandardSchemeFactory implements SchemeFactory {
1105     public TabletServerStatusStandardScheme getScheme() {
1106       return new TabletServerStatusStandardScheme();
1107     }
1108   }
1109 
1110   private static class TabletServerStatusStandardScheme extends StandardScheme<TabletServerStatus> {
1111 
1112     public void read(org.apache.thrift.protocol.TProtocol iprot, TabletServerStatus struct) throws org.apache.thrift.TException {
1113       org.apache.thrift.protocol.TField schemeField;
1114       iprot.readStructBegin();
1115       while (true)
1116       {
1117         schemeField = iprot.readFieldBegin();
1118         if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
1119           break;
1120         }
1121         switch (schemeField.id) {
1122           case 1: // TABLE_MAP
1123             if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
1124               {
1125                 org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin();
1126                 struct.tableMap = new HashMap<String,TableInfo>(2*_map0.size);
1127                 for (int _i1 = 0; _i1 < _map0.size; ++_i1)
1128                 {
1129                   String _key2; // required
1130                   TableInfo _val3; // required
1131                   _key2 = iprot.readString();
1132                   _val3 = new TableInfo();
1133                   _val3.read(iprot);
1134                   struct.tableMap.put(_key2, _val3);
1135                 }
1136                 iprot.readMapEnd();
1137               }
1138               struct.setTableMapIsSet(true);
1139             } else { 
1140               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1141             }
1142             break;
1143           case 2: // LAST_CONTACT
1144             if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
1145               struct.lastContact = iprot.readI64();
1146               struct.setLastContactIsSet(true);
1147             } else { 
1148               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1149             }
1150             break;
1151           case 3: // NAME
1152             if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
1153               struct.name = iprot.readString();
1154               struct.setNameIsSet(true);
1155             } else { 
1156               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1157             }
1158             break;
1159           case 5: // OS_LOAD
1160             if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
1161               struct.osLoad = iprot.readDouble();
1162               struct.setOsLoadIsSet(true);
1163             } else { 
1164               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1165             }
1166             break;
1167           case 7: // HOLD_TIME
1168             if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
1169               struct.holdTime = iprot.readI64();
1170               struct.setHoldTimeIsSet(true);
1171             } else { 
1172               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1173             }
1174             break;
1175           case 8: // LOOKUPS
1176             if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
1177               struct.lookups = iprot.readI64();
1178               struct.setLookupsIsSet(true);
1179             } else { 
1180               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1181             }
1182             break;
1183           case 10: // INDEX_CACHE_HITS
1184             if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
1185               struct.indexCacheHits = iprot.readI64();
1186               struct.setIndexCacheHitsIsSet(true);
1187             } else { 
1188               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1189             }
1190             break;
1191           case 11: // INDEX_CACHE_REQUEST
1192             if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
1193               struct.indexCacheRequest = iprot.readI64();
1194               struct.setIndexCacheRequestIsSet(true);
1195             } else { 
1196               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1197             }
1198             break;
1199           case 12: // DATA_CACHE_HITS
1200             if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
1201               struct.dataCacheHits = iprot.readI64();
1202               struct.setDataCacheHitsIsSet(true);
1203             } else { 
1204               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1205             }
1206             break;
1207           case 13: // DATA_CACHE_REQUEST
1208             if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
1209               struct.dataCacheRequest = iprot.readI64();
1210               struct.setDataCacheRequestIsSet(true);
1211             } else { 
1212               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1213             }
1214             break;
1215           case 14: // LOG_SORTS
1216             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
1217               {
1218                 org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
1219                 struct.logSorts = new ArrayList<RecoveryStatus>(_list4.size);
1220                 for (int _i5 = 0; _i5 < _list4.size; ++_i5)
1221                 {
1222                   RecoveryStatus _elem6; // required
1223                   _elem6 = new RecoveryStatus();
1224                   _elem6.read(iprot);
1225                   struct.logSorts.add(_elem6);
1226                 }
1227                 iprot.readListEnd();
1228               }
1229               struct.setLogSortsIsSet(true);
1230             } else { 
1231               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1232             }
1233             break;
1234           default:
1235             org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
1236         }
1237         iprot.readFieldEnd();
1238       }
1239       iprot.readStructEnd();
1240 
1241       // check for required fields of primitive type, which can't be checked in the validate method
1242       struct.validate();
1243     }
1244 
1245     public void write(org.apache.thrift.protocol.TProtocol oprot, TabletServerStatus struct) throws org.apache.thrift.TException {
1246       struct.validate();
1247 
1248       oprot.writeStructBegin(STRUCT_DESC);
1249       if (struct.tableMap != null) {
1250         oprot.writeFieldBegin(TABLE_MAP_FIELD_DESC);
1251         {
1252           oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.tableMap.size()));
1253           for (Map.Entry<String, TableInfo> _iter7 : struct.tableMap.entrySet())
1254           {
1255             oprot.writeString(_iter7.getKey());
1256             _iter7.getValue().write(oprot);
1257           }
1258           oprot.writeMapEnd();
1259         }
1260         oprot.writeFieldEnd();
1261       }
1262       oprot.writeFieldBegin(LAST_CONTACT_FIELD_DESC);
1263       oprot.writeI64(struct.lastContact);
1264       oprot.writeFieldEnd();
1265       if (struct.name != null) {
1266         oprot.writeFieldBegin(NAME_FIELD_DESC);
1267         oprot.writeString(struct.name);
1268         oprot.writeFieldEnd();
1269       }
1270       oprot.writeFieldBegin(OS_LOAD_FIELD_DESC);
1271       oprot.writeDouble(struct.osLoad);
1272       oprot.writeFieldEnd();
1273       oprot.writeFieldBegin(HOLD_TIME_FIELD_DESC);
1274       oprot.writeI64(struct.holdTime);
1275       oprot.writeFieldEnd();
1276       oprot.writeFieldBegin(LOOKUPS_FIELD_DESC);
1277       oprot.writeI64(struct.lookups);
1278       oprot.writeFieldEnd();
1279       oprot.writeFieldBegin(INDEX_CACHE_HITS_FIELD_DESC);
1280       oprot.writeI64(struct.indexCacheHits);
1281       oprot.writeFieldEnd();
1282       oprot.writeFieldBegin(INDEX_CACHE_REQUEST_FIELD_DESC);
1283       oprot.writeI64(struct.indexCacheRequest);
1284       oprot.writeFieldEnd();
1285       oprot.writeFieldBegin(DATA_CACHE_HITS_FIELD_DESC);
1286       oprot.writeI64(struct.dataCacheHits);
1287       oprot.writeFieldEnd();
1288       oprot.writeFieldBegin(DATA_CACHE_REQUEST_FIELD_DESC);
1289       oprot.writeI64(struct.dataCacheRequest);
1290       oprot.writeFieldEnd();
1291       if (struct.logSorts != null) {
1292         oprot.writeFieldBegin(LOG_SORTS_FIELD_DESC);
1293         {
1294           oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.logSorts.size()));
1295           for (RecoveryStatus _iter8 : struct.logSorts)
1296           {
1297             _iter8.write(oprot);
1298           }
1299           oprot.writeListEnd();
1300         }
1301         oprot.writeFieldEnd();
1302       }
1303       oprot.writeFieldStop();
1304       oprot.writeStructEnd();
1305     }
1306 
1307   }
1308 
1309   private static class TabletServerStatusTupleSchemeFactory implements SchemeFactory {
1310     public TabletServerStatusTupleScheme getScheme() {
1311       return new TabletServerStatusTupleScheme();
1312     }
1313   }
1314 
1315   private static class TabletServerStatusTupleScheme extends TupleScheme<TabletServerStatus> {
1316 
1317     @Override
1318     public void write(org.apache.thrift.protocol.TProtocol prot, TabletServerStatus struct) throws org.apache.thrift.TException {
1319       TTupleProtocol oprot = (TTupleProtocol) prot;
1320       BitSet optionals = new BitSet();
1321       if (struct.isSetTableMap()) {
1322         optionals.set(0);
1323       }
1324       if (struct.isSetLastContact()) {
1325         optionals.set(1);
1326       }
1327       if (struct.isSetName()) {
1328         optionals.set(2);
1329       }
1330       if (struct.isSetOsLoad()) {
1331         optionals.set(3);
1332       }
1333       if (struct.isSetHoldTime()) {
1334         optionals.set(4);
1335       }
1336       if (struct.isSetLookups()) {
1337         optionals.set(5);
1338       }
1339       if (struct.isSetIndexCacheHits()) {
1340         optionals.set(6);
1341       }
1342       if (struct.isSetIndexCacheRequest()) {
1343         optionals.set(7);
1344       }
1345       if (struct.isSetDataCacheHits()) {
1346         optionals.set(8);
1347       }
1348       if (struct.isSetDataCacheRequest()) {
1349         optionals.set(9);
1350       }
1351       if (struct.isSetLogSorts()) {
1352         optionals.set(10);
1353       }
1354       oprot.writeBitSet(optionals, 11);
1355       if (struct.isSetTableMap()) {
1356         {
1357           oprot.writeI32(struct.tableMap.size());
1358           for (Map.Entry<String, TableInfo> _iter9 : struct.tableMap.entrySet())
1359           {
1360             oprot.writeString(_iter9.getKey());
1361             _iter9.getValue().write(oprot);
1362           }
1363         }
1364       }
1365       if (struct.isSetLastContact()) {
1366         oprot.writeI64(struct.lastContact);
1367       }
1368       if (struct.isSetName()) {
1369         oprot.writeString(struct.name);
1370       }
1371       if (struct.isSetOsLoad()) {
1372         oprot.writeDouble(struct.osLoad);
1373       }
1374       if (struct.isSetHoldTime()) {
1375         oprot.writeI64(struct.holdTime);
1376       }
1377       if (struct.isSetLookups()) {
1378         oprot.writeI64(struct.lookups);
1379       }
1380       if (struct.isSetIndexCacheHits()) {
1381         oprot.writeI64(struct.indexCacheHits);
1382       }
1383       if (struct.isSetIndexCacheRequest()) {
1384         oprot.writeI64(struct.indexCacheRequest);
1385       }
1386       if (struct.isSetDataCacheHits()) {
1387         oprot.writeI64(struct.dataCacheHits);
1388       }
1389       if (struct.isSetDataCacheRequest()) {
1390         oprot.writeI64(struct.dataCacheRequest);
1391       }
1392       if (struct.isSetLogSorts()) {
1393         {
1394           oprot.writeI32(struct.logSorts.size());
1395           for (RecoveryStatus _iter10 : struct.logSorts)
1396           {
1397             _iter10.write(oprot);
1398           }
1399         }
1400       }
1401     }
1402 
1403     @Override
1404     public void read(org.apache.thrift.protocol.TProtocol prot, TabletServerStatus struct) throws org.apache.thrift.TException {
1405       TTupleProtocol iprot = (TTupleProtocol) prot;
1406       BitSet incoming = iprot.readBitSet(11);
1407       if (incoming.get(0)) {
1408         {
1409           org.apache.thrift.protocol.TMap _map11 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
1410           struct.tableMap = new HashMap<String,TableInfo>(2*_map11.size);
1411           for (int _i12 = 0; _i12 < _map11.size; ++_i12)
1412           {
1413             String _key13; // required
1414             TableInfo _val14; // required
1415             _key13 = iprot.readString();
1416             _val14 = new TableInfo();
1417             _val14.read(iprot);
1418             struct.tableMap.put(_key13, _val14);
1419           }
1420         }
1421         struct.setTableMapIsSet(true);
1422       }
1423       if (incoming.get(1)) {
1424         struct.lastContact = iprot.readI64();
1425         struct.setLastContactIsSet(true);
1426       }
1427       if (incoming.get(2)) {
1428         struct.name = iprot.readString();
1429         struct.setNameIsSet(true);
1430       }
1431       if (incoming.get(3)) {
1432         struct.osLoad = iprot.readDouble();
1433         struct.setOsLoadIsSet(true);
1434       }
1435       if (incoming.get(4)) {
1436         struct.holdTime = iprot.readI64();
1437         struct.setHoldTimeIsSet(true);
1438       }
1439       if (incoming.get(5)) {
1440         struct.lookups = iprot.readI64();
1441         struct.setLookupsIsSet(true);
1442       }
1443       if (incoming.get(6)) {
1444         struct.indexCacheHits = iprot.readI64();
1445         struct.setIndexCacheHitsIsSet(true);
1446       }
1447       if (incoming.get(7)) {
1448         struct.indexCacheRequest = iprot.readI64();
1449         struct.setIndexCacheRequestIsSet(true);
1450       }
1451       if (incoming.get(8)) {
1452         struct.dataCacheHits = iprot.readI64();
1453         struct.setDataCacheHitsIsSet(true);
1454       }
1455       if (incoming.get(9)) {
1456         struct.dataCacheRequest = iprot.readI64();
1457         struct.setDataCacheRequestIsSet(true);
1458       }
1459       if (incoming.get(10)) {
1460         {
1461           org.apache.thrift.protocol.TList _list15 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
1462           struct.logSorts = new ArrayList<RecoveryStatus>(_list15.size);
1463           for (int _i16 = 0; _i16 < _list15.size; ++_i16)
1464           {
1465             RecoveryStatus _elem17; // required
1466             _elem17 = new RecoveryStatus();
1467             _elem17.read(iprot);
1468             struct.logSorts.add(_elem17);
1469           }
1470         }
1471         struct.setLogSortsIsSet(true);
1472       }
1473     }
1474   }
1475 
1476 }
1477