@Override public int compareTo(shutdownTabletServer_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(isSetSec()).compareTo(other.isSetSec()); if (lastComparison != 0) { return lastComparison; } if (isSetSec()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sec, other.sec); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); if (lastComparison != 0) { return lastComparison; } if (isSetTnase()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); if (lastComparison != 0) { return lastComparison; } } return 0; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.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 void read(org.apache.thrift.protocol.TProtocol iprot, shutdownTabletServer_result 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: // SEC if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(); struct.sec.read(iprot); struct.setSecIsSet(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 void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; shutdownTabletServer_result result = new shutdownTabletServer_result(); if (e instanceof org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException) { result.sec = (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException) e; result.setSecIsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } };
@Override public int compareTo(shutdownTabletServer_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSec()).compareTo(other.isSetSec()); if (lastComparison != 0) { return lastComparison; } if (isSetSec()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sec, other.sec); if (lastComparison != 0) { return lastComparison; } } return 0; }
public shutdownTabletServer_result deepCopy() { return new shutdownTabletServer_result(this); }
public boolean equals(shutdownTabletServer_result that) { if (that == null) return false; boolean this_present_sec = true && this.isSetSec(); boolean that_present_sec = true && that.isSetSec(); if (this_present_sec || that_present_sec) { if (!(this_present_sec && that_present_sec)) return false; if (!this.sec.equals(that.sec)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, shutdownTabletServer_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSec()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetSec()) { struct.sec.write(oprot); } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_sec = true && (isSetSec()); list.add(present_sec); if (present_sec) list.add(sec); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public shutdownTabletServer_result(shutdownTabletServer_result other) { if (other.isSetSec()) { this.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(other.sec); } }
public Object getFieldValue(_Fields field) { switch (field) { case SEC: return getSec(); } throw new IllegalStateException(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof shutdownTabletServer_result) return this.equals((shutdownTabletServer_result)that); return false; }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, shutdownTabletServer_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(); struct.sec.read(iprot); struct.setSecIsSet(true); } } }
public shutdownTabletServer_result getResult(I iface, shutdownTabletServer_args args) throws org.apache.thrift.TException { shutdownTabletServer_result result = new shutdownTabletServer_result(); try { iface.shutdownTabletServer(args.tinfo, args.credentials, args.tabletServer, args.force); } catch (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException sec) { result.sec = sec; } return result; } }
/** 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 SEC: return isSetSec(); } throw new IllegalStateException(); }
public void onComplete(Void o) { shutdownTabletServer_result result = new shutdownTabletServer_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) {
public void recv_shutdownTabletServer() throws org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException, org.apache.thrift.TException { shutdownTabletServer_result result = new shutdownTabletServer_result(); receiveBase(result, "shutdownTabletServer"); if (result.sec != null) { throw result.sec; } return; }
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); } }