/** * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ package org.apache.hadoop.corona; 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 org.slf4j.Logger; import org.slf4j.LoggerFactory; public class CoronaProxyJobTrackerService { /** * Corona ProxyJobTracker Service API. */ public interface Iface { public void setClusterManagerSafeModeFlag(boolean flagValue) throws org.apache.thrift.TException; public boolean getClusterManagerSafeModeFlag() throws org.apache.thrift.TException; public String getSystemDir() throws org.apache.thrift.TException; public void cleanJobHistoryCache(String jobId) throws org.apache.thrift.TException; } public interface AsyncIface { public void setClusterManagerSafeModeFlag(boolean flagValue, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setClusterManagerSafeModeFlag_call> resultHandler) throws org.apache.thrift.TException; public void getClusterManagerSafeModeFlag(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getClusterManagerSafeModeFlag_call> resultHandler) throws org.apache.thrift.TException; public void getSystemDir(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSystemDir_call> resultHandler) throws org.apache.thrift.TException; public void cleanJobHistoryCache(String jobId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.cleanJobHistoryCache_call> resultHandler) throws org.apache.thrift.TException; } public static class Client extends org.apache.thrift.TServiceClient implements Iface { public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> { public Factory() {} public Client getClient(org.apache.thrift.protocol.TProtocol prot) { return new Client(prot); } public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { return new Client(iprot, oprot); } } public Client(org.apache.thrift.protocol.TProtocol prot) { super(prot, prot); } public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { super(iprot, oprot); } public void setClusterManagerSafeModeFlag(boolean flagValue) throws org.apache.thrift.TException { send_setClusterManagerSafeModeFlag(flagValue); recv_setClusterManagerSafeModeFlag(); } public void send_setClusterManagerSafeModeFlag(boolean flagValue) throws org.apache.thrift.TException { setClusterManagerSafeModeFlag_args args = new setClusterManagerSafeModeFlag_args(); args.setFlagValue(flagValue); sendBase("setClusterManagerSafeModeFlag", args); } public void recv_setClusterManagerSafeModeFlag() throws org.apache.thrift.TException { setClusterManagerSafeModeFlag_result result = new setClusterManagerSafeModeFlag_result(); receiveBase(result, "setClusterManagerSafeModeFlag"); return; } public boolean getClusterManagerSafeModeFlag() throws org.apache.thrift.TException { send_getClusterManagerSafeModeFlag(); return recv_getClusterManagerSafeModeFlag(); } public void send_getClusterManagerSafeModeFlag() throws org.apache.thrift.TException { getClusterManagerSafeModeFlag_args args = new getClusterManagerSafeModeFlag_args(); sendBase("getClusterManagerSafeModeFlag", args); } public boolean recv_getClusterManagerSafeModeFlag() throws org.apache.thrift.TException { getClusterManagerSafeModeFlag_result result = new getClusterManagerSafeModeFlag_result(); receiveBase(result, "getClusterManagerSafeModeFlag"); if (result.isSetSuccess()) { return result.success; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClusterManagerSafeModeFlag failed: unknown result"); } public String getSystemDir() throws org.apache.thrift.TException { send_getSystemDir(); return recv_getSystemDir(); } public void send_getSystemDir() throws org.apache.thrift.TException { getSystemDir_args args = new getSystemDir_args(); sendBase("getSystemDir", args); } public String recv_getSystemDir() throws org.apache.thrift.TException { getSystemDir_result result = new getSystemDir_result(); receiveBase(result, "getSystemDir"); if (result.isSetSuccess()) { return result.success; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSystemDir failed: unknown result"); } public void cleanJobHistoryCache(String jobId) throws org.apache.thrift.TException { send_cleanJobHistoryCache(jobId); recv_cleanJobHistoryCache(); } public void send_cleanJobHistoryCache(String jobId) throws org.apache.thrift.TException { cleanJobHistoryCache_args args = new cleanJobHistoryCache_args(); args.setJobId(jobId); sendBase("cleanJobHistoryCache", args); } public void recv_cleanJobHistoryCache() throws org.apache.thrift.TException { cleanJobHistoryCache_result result = new cleanJobHistoryCache_result(); receiveBase(result, "cleanJobHistoryCache"); return; } } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> { private org.apache.thrift.async.TAsyncClientManager clientManager; private org.apache.thrift.protocol.TProtocolFactory protocolFactory; public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) { this.clientManager = clientManager; this.protocolFactory = protocolFactory; } public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) { return new AsyncClient(protocolFactory, clientManager, transport); } } public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) { super(protocolFactory, clientManager, transport); } public void setClusterManagerSafeModeFlag(boolean flagValue, org.apache.thrift.async.AsyncMethodCallback<setClusterManagerSafeModeFlag_call> resultHandler) throws org.apache.thrift.TException { checkReady(); setClusterManagerSafeModeFlag_call method_call = new setClusterManagerSafeModeFlag_call(flagValue, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class setClusterManagerSafeModeFlag_call extends org.apache.thrift.async.TAsyncMethodCall { private boolean flagValue; public setClusterManagerSafeModeFlag_call(boolean flagValue, org.apache.thrift.async.AsyncMethodCallback<setClusterManagerSafeModeFlag_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.flagValue = flagValue; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setClusterManagerSafeModeFlag", org.apache.thrift.protocol.TMessageType.CALL, 0)); setClusterManagerSafeModeFlag_args args = new setClusterManagerSafeModeFlag_args(); args.setFlagValue(flagValue); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_setClusterManagerSafeModeFlag(); } } public void getClusterManagerSafeModeFlag(org.apache.thrift.async.AsyncMethodCallback<getClusterManagerSafeModeFlag_call> resultHandler) throws org.apache.thrift.TException { checkReady(); getClusterManagerSafeModeFlag_call method_call = new getClusterManagerSafeModeFlag_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getClusterManagerSafeModeFlag_call extends org.apache.thrift.async.TAsyncMethodCall { public getClusterManagerSafeModeFlag_call(org.apache.thrift.async.AsyncMethodCallback<getClusterManagerSafeModeFlag_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getClusterManagerSafeModeFlag", org.apache.thrift.protocol.TMessageType.CALL, 0)); getClusterManagerSafeModeFlag_args args = new getClusterManagerSafeModeFlag_args(); args.write(prot); prot.writeMessageEnd(); } public boolean getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getClusterManagerSafeModeFlag(); } } public void getSystemDir(org.apache.thrift.async.AsyncMethodCallback<getSystemDir_call> resultHandler) throws org.apache.thrift.TException { checkReady(); getSystemDir_call method_call = new getSystemDir_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getSystemDir_call extends org.apache.thrift.async.TAsyncMethodCall { public getSystemDir_call(org.apache.thrift.async.AsyncMethodCallback<getSystemDir_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSystemDir", org.apache.thrift.protocol.TMessageType.CALL, 0)); getSystemDir_args args = new getSystemDir_args(); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getSystemDir(); } } public void cleanJobHistoryCache(String jobId, org.apache.thrift.async.AsyncMethodCallback<cleanJobHistoryCache_call> resultHandler) throws org.apache.thrift.TException { checkReady(); cleanJobHistoryCache_call method_call = new cleanJobHistoryCache_call(jobId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class cleanJobHistoryCache_call extends org.apache.thrift.async.TAsyncMethodCall { private String jobId; public cleanJobHistoryCache_call(String jobId, org.apache.thrift.async.AsyncMethodCallback<cleanJobHistoryCache_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.jobId = jobId; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("cleanJobHistoryCache", org.apache.thrift.protocol.TMessageType.CALL, 0)); cleanJobHistoryCache_args args = new cleanJobHistoryCache_args(); args.setJobId(jobId); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_cleanJobHistoryCache(); } } } public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>())); } protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) { super(iface, getProcessMap(processMap)); } private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) { processMap.put("setClusterManagerSafeModeFlag", new setClusterManagerSafeModeFlag()); processMap.put("getClusterManagerSafeModeFlag", new getClusterManagerSafeModeFlag()); processMap.put("getSystemDir", new getSystemDir()); processMap.put("cleanJobHistoryCache", new cleanJobHistoryCache()); return processMap; } private static class setClusterManagerSafeModeFlag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setClusterManagerSafeModeFlag_args> { public setClusterManagerSafeModeFlag() { super("setClusterManagerSafeModeFlag"); } protected setClusterManagerSafeModeFlag_args getEmptyArgsInstance() { return new setClusterManagerSafeModeFlag_args(); } protected setClusterManagerSafeModeFlag_result getResult(I iface, setClusterManagerSafeModeFlag_args args) throws org.apache.thrift.TException { setClusterManagerSafeModeFlag_result result = new setClusterManagerSafeModeFlag_result(); iface.setClusterManagerSafeModeFlag(args.flagValue); return result; } } private static class getClusterManagerSafeModeFlag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getClusterManagerSafeModeFlag_args> { public getClusterManagerSafeModeFlag() { super("getClusterManagerSafeModeFlag"); } protected getClusterManagerSafeModeFlag_args getEmptyArgsInstance() { return new getClusterManagerSafeModeFlag_args(); } protected getClusterManagerSafeModeFlag_result getResult(I iface, getClusterManagerSafeModeFlag_args args) throws org.apache.thrift.TException { getClusterManagerSafeModeFlag_result result = new getClusterManagerSafeModeFlag_result(); result.success = iface.getClusterManagerSafeModeFlag(); result.setSuccessIsSet(true); return result; } } private static class getSystemDir<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSystemDir_args> { public getSystemDir() { super("getSystemDir"); } protected getSystemDir_args getEmptyArgsInstance() { return new getSystemDir_args(); } protected getSystemDir_result getResult(I iface, getSystemDir_args args) throws org.apache.thrift.TException { getSystemDir_result result = new getSystemDir_result(); result.success = iface.getSystemDir(); return result; } } private static class cleanJobHistoryCache<I extends Iface> extends org.apache.thrift.ProcessFunction<I, cleanJobHistoryCache_args> { public cleanJobHistoryCache() { super("cleanJobHistoryCache"); } protected cleanJobHistoryCache_args getEmptyArgsInstance() { return new cleanJobHistoryCache_args(); } protected cleanJobHistoryCache_result getResult(I iface, cleanJobHistoryCache_args args) throws org.apache.thrift.TException { cleanJobHistoryCache_result result = new cleanJobHistoryCache_result(); iface.cleanJobHistoryCache(args.jobId); return result; } } } public static class setClusterManagerSafeModeFlag_args implements org.apache.thrift.TBase<setClusterManagerSafeModeFlag_args, setClusterManagerSafeModeFlag_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setClusterManagerSafeModeFlag_args"); private static final org.apache.thrift.protocol.TField FLAG_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("flagValue", org.apache.thrift.protocol.TType.BOOL, (short)1); public boolean flagValue; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { FLAG_VALUE((short)1, "flagValue"); 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: // FLAG_VALUE return FLAG_VALUE; 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 __FLAGVALUE_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); 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.FLAG_VALUE, new org.apache.thrift.meta_data.FieldMetaData("flagValue", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setClusterManagerSafeModeFlag_args.class, metaDataMap); } public setClusterManagerSafeModeFlag_args() { } public setClusterManagerSafeModeFlag_args( boolean flagValue) { this(); this.flagValue = flagValue; setFlagValueIsSet(true); } /** * Performs a deep copy on <i>other</i>. */ public setClusterManagerSafeModeFlag_args(setClusterManagerSafeModeFlag_args other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); this.flagValue = other.flagValue; } public setClusterManagerSafeModeFlag_args deepCopy() { return new setClusterManagerSafeModeFlag_args(this); } @Override public void clear() { setFlagValueIsSet(false); this.flagValue = false; } public boolean isFlagValue() { return this.flagValue; } public setClusterManagerSafeModeFlag_args setFlagValue(boolean flagValue) { this.flagValue = flagValue; setFlagValueIsSet(true); return this; } public void unsetFlagValue() { __isset_bit_vector.clear(__FLAGVALUE_ISSET_ID); } /** Returns true if field flagValue is set (has been assigned a value) and false otherwise */ public boolean isSetFlagValue() { return __isset_bit_vector.get(__FLAGVALUE_ISSET_ID); } public void setFlagValueIsSet(boolean value) { __isset_bit_vector.set(__FLAGVALUE_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { case FLAG_VALUE: if (value == null) { unsetFlagValue(); } else { setFlagValue((Boolean)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case FLAG_VALUE: return Boolean.valueOf(isFlagValue()); } 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 FLAG_VALUE: return isSetFlagValue(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof setClusterManagerSafeModeFlag_args) return this.equals((setClusterManagerSafeModeFlag_args)that); return false; } public boolean equals(setClusterManagerSafeModeFlag_args that) { if (that == null) return false; boolean this_present_flagValue = true; boolean that_present_flagValue = true; if (this_present_flagValue || that_present_flagValue) { if (!(this_present_flagValue && that_present_flagValue)) return false; if (this.flagValue != that.flagValue) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(setClusterManagerSafeModeFlag_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; setClusterManagerSafeModeFlag_args typedOther = (setClusterManagerSafeModeFlag_args)other; lastComparison = Boolean.valueOf(isSetFlagValue()).compareTo(typedOther.isSetFlagValue()); if (lastComparison != 0) { return lastComparison; } if (isSetFlagValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.flagValue, typedOther.flagValue); 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 { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // FLAG_VALUE if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.flagValue = iprot.readBool(); setFlagValueIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(FLAG_VALUE_FIELD_DESC); oprot.writeBool(this.flagValue); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("setClusterManagerSafeModeFlag_args("); boolean first = true; sb.append("flagValue:"); sb.append(this.flagValue); first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } 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_bit_vector = new BitSet(1); 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 static class setClusterManagerSafeModeFlag_result implements org.apache.thrift.TBase<setClusterManagerSafeModeFlag_result, setClusterManagerSafeModeFlag_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setClusterManagerSafeModeFlag_result"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; 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) { 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); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setClusterManagerSafeModeFlag_result.class, metaDataMap); } public setClusterManagerSafeModeFlag_result() { } /** * Performs a deep copy on <i>other</i>. */ public setClusterManagerSafeModeFlag_result(setClusterManagerSafeModeFlag_result other) { } public setClusterManagerSafeModeFlag_result deepCopy() { return new setClusterManagerSafeModeFlag_result(this); } @Override public void clear() { } public void setFieldValue(_Fields field, Object value) { switch (field) { } } public Object getFieldValue(_Fields field) { switch (field) { } 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) { } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof setClusterManagerSafeModeFlag_result) return this.equals((setClusterManagerSafeModeFlag_result)that); return false; } public boolean equals(setClusterManagerSafeModeFlag_result that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } public int compareTo(setClusterManagerSafeModeFlag_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; setClusterManagerSafeModeFlag_result typedOther = (setClusterManagerSafeModeFlag_result)other; 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 { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("setClusterManagerSafeModeFlag_result("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } 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); } } } public static class getClusterManagerSafeModeFlag_args implements org.apache.thrift.TBase<getClusterManagerSafeModeFlag_args, getClusterManagerSafeModeFlag_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClusterManagerSafeModeFlag_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; 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) { 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); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClusterManagerSafeModeFlag_args.class, metaDataMap); } public getClusterManagerSafeModeFlag_args() { } /** * Performs a deep copy on <i>other</i>. */ public getClusterManagerSafeModeFlag_args(getClusterManagerSafeModeFlag_args other) { } public getClusterManagerSafeModeFlag_args deepCopy() { return new getClusterManagerSafeModeFlag_args(this); } @Override public void clear() { } public void setFieldValue(_Fields field, Object value) { switch (field) { } } public Object getFieldValue(_Fields field) { switch (field) { } 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) { } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getClusterManagerSafeModeFlag_args) return this.equals((getClusterManagerSafeModeFlag_args)that); return false; } public boolean equals(getClusterManagerSafeModeFlag_args that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } public int compareTo(getClusterManagerSafeModeFlag_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getClusterManagerSafeModeFlag_args typedOther = (getClusterManagerSafeModeFlag_args)other; 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 { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("getClusterManagerSafeModeFlag_args("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } 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); } } } public static class getClusterManagerSafeModeFlag_result implements org.apache.thrift.TBase<getClusterManagerSafeModeFlag_result, getClusterManagerSafeModeFlag_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClusterManagerSafeModeFlag_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); public boolean success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"); 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 0: // SUCCESS return SUCCESS; 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 __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClusterManagerSafeModeFlag_result.class, metaDataMap); } public getClusterManagerSafeModeFlag_result() { } public getClusterManagerSafeModeFlag_result( boolean success) { this(); this.success = success; setSuccessIsSet(true); } /** * Performs a deep copy on <i>other</i>. */ public getClusterManagerSafeModeFlag_result(getClusterManagerSafeModeFlag_result other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); this.success = other.success; } public getClusterManagerSafeModeFlag_result deepCopy() { return new getClusterManagerSafeModeFlag_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; } public boolean isSuccess() { return this.success; } public getClusterManagerSafeModeFlag_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bit_vector.set(__SUCCESS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Boolean)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return Boolean.valueOf(isSuccess()); } 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 SUCCESS: return isSetSuccess(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getClusterManagerSafeModeFlag_result) return this.equals((getClusterManagerSafeModeFlag_result)that); return false; } public boolean equals(getClusterManagerSafeModeFlag_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(getClusterManagerSafeModeFlag_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getClusterManagerSafeModeFlag_result typedOther = (getClusterManagerSafeModeFlag_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 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 { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(this.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("getClusterManagerSafeModeFlag_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } 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); } } } public static class getSystemDir_args implements org.apache.thrift.TBase<getSystemDir_args, getSystemDir_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSystemDir_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; 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) { 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); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSystemDir_args.class, metaDataMap); } public getSystemDir_args() { } /** * Performs a deep copy on <i>other</i>. */ public getSystemDir_args(getSystemDir_args other) { } public getSystemDir_args deepCopy() { return new getSystemDir_args(this); } @Override public void clear() { } public void setFieldValue(_Fields field, Object value) { switch (field) { } } public Object getFieldValue(_Fields field) { switch (field) { } 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) { } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getSystemDir_args) return this.equals((getSystemDir_args)that); return false; } public boolean equals(getSystemDir_args that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } public int compareTo(getSystemDir_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getSystemDir_args typedOther = (getSystemDir_args)other; 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 { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("getSystemDir_args("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } 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); } } } public static class getSystemDir_result implements org.apache.thrift.TBase<getSystemDir_result, getSystemDir_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSystemDir_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); public String success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"); 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 0: // SUCCESS return SUCCESS; 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 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSystemDir_result.class, metaDataMap); } public getSystemDir_result() { } public getSystemDir_result( String success) { this(); this.success = success; } /** * Performs a deep copy on <i>other</i>. */ public getSystemDir_result(getSystemDir_result other) { if (other.isSetSuccess()) { this.success = other.success; } } public getSystemDir_result deepCopy() { return new getSystemDir_result(this); } @Override public void clear() { this.success = null; } public String getSuccess() { return this.success; } public getSystemDir_result setSuccess(String success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); } 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 SUCCESS: return isSetSuccess(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getSystemDir_result) return this.equals((getSystemDir_result)that); return false; } public boolean equals(getSystemDir_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(getSystemDir_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getSystemDir_result typedOther = (getSystemDir_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 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 { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.STRING) { this.success = iprot.readString(); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeString(this.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("getSystemDir_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } 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); } } } public static class cleanJobHistoryCache_args implements org.apache.thrift.TBase<cleanJobHistoryCache_args, cleanJobHistoryCache_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cleanJobHistoryCache_args"); private static final org.apache.thrift.protocol.TField JOB_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("jobId", org.apache.thrift.protocol.TType.STRING, (short)1); public String jobId; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { JOB_ID((short)1, "jobId"); 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: // JOB_ID return JOB_ID; 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 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.JOB_ID, new org.apache.thrift.meta_data.FieldMetaData("jobId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cleanJobHistoryCache_args.class, metaDataMap); } public cleanJobHistoryCache_args() { } public cleanJobHistoryCache_args( String jobId) { this(); this.jobId = jobId; } /** * Performs a deep copy on <i>other</i>. */ public cleanJobHistoryCache_args(cleanJobHistoryCache_args other) { if (other.isSetJobId()) { this.jobId = other.jobId; } } public cleanJobHistoryCache_args deepCopy() { return new cleanJobHistoryCache_args(this); } @Override public void clear() { this.jobId = null; } public String getJobId() { return this.jobId; } public cleanJobHistoryCache_args setJobId(String jobId) { this.jobId = jobId; return this; } public void unsetJobId() { this.jobId = null; } /** Returns true if field jobId is set (has been assigned a value) and false otherwise */ public boolean isSetJobId() { return this.jobId != null; } public void setJobIdIsSet(boolean value) { if (!value) { this.jobId = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case JOB_ID: if (value == null) { unsetJobId(); } else { setJobId((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case JOB_ID: return getJobId(); } 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 JOB_ID: return isSetJobId(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof cleanJobHistoryCache_args) return this.equals((cleanJobHistoryCache_args)that); return false; } public boolean equals(cleanJobHistoryCache_args that) { if (that == null) return false; boolean this_present_jobId = true && this.isSetJobId(); boolean that_present_jobId = true && that.isSetJobId(); if (this_present_jobId || that_present_jobId) { if (!(this_present_jobId && that_present_jobId)) return false; if (!this.jobId.equals(that.jobId)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(cleanJobHistoryCache_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; cleanJobHistoryCache_args typedOther = (cleanJobHistoryCache_args)other; lastComparison = Boolean.valueOf(isSetJobId()).compareTo(typedOther.isSetJobId()); if (lastComparison != 0) { return lastComparison; } if (isSetJobId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jobId, typedOther.jobId); 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 { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // JOB_ID if (field.type == org.apache.thrift.protocol.TType.STRING) { this.jobId = iprot.readString(); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.jobId != null) { oprot.writeFieldBegin(JOB_ID_FIELD_DESC); oprot.writeString(this.jobId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("cleanJobHistoryCache_args("); boolean first = true; sb.append("jobId:"); if (this.jobId == null) { sb.append("null"); } else { sb.append(this.jobId); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } 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); } } } public static class cleanJobHistoryCache_result implements org.apache.thrift.TBase<cleanJobHistoryCache_result, cleanJobHistoryCache_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cleanJobHistoryCache_result"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; 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) { 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); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cleanJobHistoryCache_result.class, metaDataMap); } public cleanJobHistoryCache_result() { } /** * Performs a deep copy on <i>other</i>. */ public cleanJobHistoryCache_result(cleanJobHistoryCache_result other) { } public cleanJobHistoryCache_result deepCopy() { return new cleanJobHistoryCache_result(this); } @Override public void clear() { } public void setFieldValue(_Fields field, Object value) { switch (field) { } } public Object getFieldValue(_Fields field) { switch (field) { } 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) { } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof cleanJobHistoryCache_result) return this.equals((cleanJobHistoryCache_result)that); return false; } public boolean equals(cleanJobHistoryCache_result that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } public int compareTo(cleanJobHistoryCache_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; cleanJobHistoryCache_result typedOther = (cleanJobHistoryCache_result)other; 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 { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("cleanJobHistoryCache_result("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } 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); } } } }