public Object getFieldValue(_Fields field) { switch (field) { case FORCE_GC: return isForceGC(); } throw new IllegalStateException(); }
@Override public int compareTo(getMemoryUsage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetForceGC()).compareTo(other.isSetForceGC()); if (lastComparison != 0) { return lastComparison; } if (isSetForceGC()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.forceGC, other.forceGC); if (lastComparison != 0) { return lastComparison; } } return 0; }
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); } }
public void read(org.apache.thrift.protocol.TProtocol iprot, getMemoryUsage_args 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 1: // FORCE_GC if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.forceGC = iprot.readBool(); struct.setForceGCIsSet(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(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); }
public getMemoryUsage_args deepCopy() { return new getMemoryUsage_args(this); }
public getMemoryUsage_args getEmptyArgsInstance() { return new getMemoryUsage_args(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, getMemoryUsage_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.forceGC = iprot.readBool(); struct.setForceGCIsSet(true); } } }
@Override public void clear() { setForceGCIsSet(false); this.forceGC = false; }
public getMemoryUsage_args( boolean forceGC) { this(); this.forceGC = forceGC; setForceGCIsSet(true); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, getMemoryUsage_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetForceGC()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetForceGC()) { oprot.writeBool(struct.forceGC); } }
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); } }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getMemoryUsage_args) return this.equals((getMemoryUsage_args)that); return false; }
public getMemoryUsage_args getEmptyArgsInstance() { return new getMemoryUsage_args(); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMemoryUsage", org.apache.thrift.protocol.TMessageType.CALL, 0)); getMemoryUsage_args args = new getMemoryUsage_args(); args.setForceGC(forceGC); args.write(prot); prot.writeMessageEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, getMemoryUsage_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(FORCE_GC_FIELD_DESC); oprot.writeBool(struct.forceGC); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void setFieldValue(_Fields field, Object value) { switch (field) { case FORCE_GC: if (value == null) { unsetForceGC(); } else { setForceGC((Boolean)value); } break; } }
public getMemoryUsage_args setForceGC(boolean forceGC) { this.forceGC = forceGC; setForceGCIsSet(true); return this; }
/** 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 FORCE_GC: return isSetForceGC(); } throw new IllegalStateException(); }
public void send_getMemoryUsage(boolean forceGC) throws org.apache.thrift.TException { getMemoryUsage_args args = new getMemoryUsage_args(); args.setForceGC(forceGC); sendBase("getMemoryUsage", args); }