content: /**
   * Autogenerated by Thrift Compiler (0.9.1)
   *
   * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
   *  @generated
   */
  package com.airbnb.di.hive.replication.thrift;
  
  import org.apache.thrift.EncodingUtils;
  import org.apache.thrift.TException;
  import org.apache.thrift.async.AsyncMethodCallback;
  import org.apache.thrift.protocol.TTupleProtocol;
  import org.apache.thrift.scheme.IScheme;
  import org.apache.thrift.scheme.SchemeFactory;
  import org.apache.thrift.scheme.StandardScheme;
  import org.apache.thrift.scheme.TupleScheme;
  import org.apache.thrift.server.AbstractNonblockingServer.*;
  import org.slf4j.Logger;
  import org.slf4j.LoggerFactory;
  
  import java.util.ArrayList;
  import java.util.BitSet;
  import java.util.Collections;
  import java.util.EnumMap;
  import java.util.EnumSet;
  import java.util.HashMap;
  import java.util.List;
  import java.util.Map;
  
  public class TReplicationService {
  
    public interface Iface {
  
      public List<TReplicationJob> getActiveJobs(long afterId, int maxJobs) throws org.apache.thrift.TException;
  
      public List<TReplicationJob> getRetiredJobs(long afterId, int maxJobs) throws org.apache.thrift.TException;
  
      public Map<Long,TReplicationJob> getJobs(List<Long> ids) throws org.apache.thrift.TException;
  
      public void pause() throws org.apache.thrift.TException;
  
      public void resume() throws org.apache.thrift.TException;
  
      public long getLag() throws org.apache.thrift.TException;
  
    }
  
    public interface AsyncIface {
  
      public void getActiveJobs(long afterId, int maxJobs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
  
      public void getRetiredJobs(long afterId, int maxJobs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
  
      public void getJobs(List<Long> ids, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
  
      public void pause(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
  
      public void resume(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
  
      public void getLag(org.apache.thrift.async.AsyncMethodCallback 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 List<TReplicationJob> getActiveJobs(long afterId, int maxJobs) throws org.apache.thrift.TException
      {
        send_getActiveJobs(afterId, maxJobs);
        return recv_getActiveJobs();
      }
  
      public void send_getActiveJobs(long afterId, int maxJobs) throws org.apache.thrift.TException
      {
        getActiveJobs_args args = new getActiveJobs_args();
        args.setAfterId(afterId);
        args.setMaxJobs(maxJobs);
        sendBase("getActiveJobs", args);
      }
  
      public List<TReplicationJob> recv_getActiveJobs() throws org.apache.thrift.TException
      {
        getActiveJobs_result result = new getActiveJobs_result();
        receiveBase(result, "getActiveJobs");
        if (result.isSetSuccess()) {
          return result.success;
        }
        throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActiveJobs failed: unknown result");
      }
  
      public List<TReplicationJob> getRetiredJobs(long afterId, int maxJobs) throws org.apache.thrift.TException
      {
        send_getRetiredJobs(afterId, maxJobs);
        return recv_getRetiredJobs();
      }
  
      public void send_getRetiredJobs(long afterId, int maxJobs) throws org.apache.thrift.TException
      {
        getRetiredJobs_args args = new getRetiredJobs_args();
        args.setAfterId(afterId);
        args.setMaxJobs(maxJobs);
        sendBase("getRetiredJobs", args);
      }
  
      public List<TReplicationJob> recv_getRetiredJobs() throws org.apache.thrift.TException
      {
        getRetiredJobs_result result = new getRetiredJobs_result();
        receiveBase(result, "getRetiredJobs");
        if (result.isSetSuccess()) {
          return result.success;
        }
        throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRetiredJobs failed: unknown result");
      }
  
      public Map<Long,TReplicationJob> getJobs(List<Long> ids) throws org.apache.thrift.TException
      {
        send_getJobs(ids);
        return recv_getJobs();
      }
  
      public void send_getJobs(List<Long> ids) throws org.apache.thrift.TException
      {
        getJobs_args args = new getJobs_args();
        args.setIds(ids);
        sendBase("getJobs", args);
      }
  
      public Map<Long,TReplicationJob> recv_getJobs() throws org.apache.thrift.TException
      {
        getJobs_result result = new getJobs_result();
        receiveBase(result, "getJobs");
        if (result.isSetSuccess()) {
          return result.success;
        }
        throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getJobs failed: unknown result");
      }
  
      public void pause() throws org.apache.thrift.TException
      {
        send_pause();
        recv_pause();
      }
  
      public void send_pause() throws org.apache.thrift.TException
      {
        pause_args args = new pause_args();
        sendBase("pause", args);
      }
  
      public void recv_pause() throws org.apache.thrift.TException
      {
        pause_result result = new pause_result();
        receiveBase(result, "pause");
        return;
      }
  
      public void resume() throws org.apache.thrift.TException
      {
        send_resume();
        recv_resume();
      }
  
      public void send_resume() throws org.apache.thrift.TException
      {
        resume_args args = new resume_args();
        sendBase("resume", args);
      }
  
      public void recv_resume() throws org.apache.thrift.TException
      {
        resume_result result = new resume_result();
        receiveBase(result, "resume");
        return;
      }
  
      public long getLag() throws org.apache.thrift.TException
      {
        send_getLag();
        return recv_getLag();
      }
  
      public void send_getLag() throws org.apache.thrift.TException
      {
        getLag_args args = new getLag_args();
        sendBase("getLag", args);
      }
  
      public long recv_getLag() throws org.apache.thrift.TException
      {
        getLag_result result = new getLag_result();
        receiveBase(result, "getLag");
        if (result.isSetSuccess()) {
          return result.success;
        }
        throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLag failed: unknown result");
      }
  
    }
    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 getActiveJobs(long afterId, int maxJobs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
        checkReady();
        getActiveJobs_call method_call = new getActiveJobs_call(afterId, maxJobs, resultHandler, this, ___protocolFactory, ___transport);
        this.___currentMethod = method_call;
        ___manager.call(method_call);
      }
  
      public static class getActiveJobs_call extends org.apache.thrift.async.TAsyncMethodCall {
        private long afterId;
        private int maxJobs;
        public getActiveJobs_call(long afterId, int maxJobs, org.apache.thrift.async.AsyncMethodCallback 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.afterId = afterId;
          this.maxJobs = maxJobs;
        }
  
        public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
          prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActiveJobs", org.apache.thrift.protocol.TMessageType.CALL, 0));
          getActiveJobs_args args = new getActiveJobs_args();
          args.setAfterId(afterId);
          args.setMaxJobs(maxJobs);
          args.write(prot);
          prot.writeMessageEnd();
        }
  
        public List<TReplicationJob> 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_getActiveJobs();
        }
      }
  
      public void getRetiredJobs(long afterId, int maxJobs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
        checkReady();
        getRetiredJobs_call method_call = new getRetiredJobs_call(afterId, maxJobs, resultHandler, this, ___protocolFactory, ___transport);
        this.___currentMethod = method_call;
        ___manager.call(method_call);
      }
  
      public static class getRetiredJobs_call extends org.apache.thrift.async.TAsyncMethodCall {
        private long afterId;
        private int maxJobs;
        public getRetiredJobs_call(long afterId, int maxJobs, org.apache.thrift.async.AsyncMethodCallback 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.afterId = afterId;
          this.maxJobs = maxJobs;
        }
  
        public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
          prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRetiredJobs", org.apache.thrift.protocol.TMessageType.CALL, 0));
          getRetiredJobs_args args = new getRetiredJobs_args();
          args.setAfterId(afterId);
          args.setMaxJobs(maxJobs);
          args.write(prot);
          prot.writeMessageEnd();
        }
  
        public List<TReplicationJob> 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_getRetiredJobs();
        }
      }
  
      public void getJobs(List<Long> ids, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
        checkReady();
        getJobs_call method_call = new getJobs_call(ids, resultHandler, this, ___protocolFactory, ___transport);
        this.___currentMethod = method_call;
        ___manager.call(method_call);
      }
  
      public static class getJobs_call extends org.apache.thrift.async.TAsyncMethodCall {
        private List<Long> ids;
        public getJobs_call(List<Long> ids, org.apache.thrift.async.AsyncMethodCallback 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.ids = ids;
        }
  
        public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
          prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getJobs", org.apache.thrift.protocol.TMessageType.CALL, 0));
          getJobs_args args = new getJobs_args();
          args.setIds(ids);
          args.write(prot);
          prot.writeMessageEnd();
        }
  
        public Map<Long,TReplicationJob> 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_getJobs();
        }
      }
  
      public void pause(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
        checkReady();
        pause_call method_call = new pause_call(resultHandler, this, ___protocolFactory, ___transport);
        this.___currentMethod = method_call;
        ___manager.call(method_call);
      }
  
      public static class pause_call extends org.apache.thrift.async.TAsyncMethodCall {
        public pause_call(org.apache.thrift.async.AsyncMethodCallback 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("pause", org.apache.thrift.protocol.TMessageType.CALL, 0));
          pause_args args = new pause_args();
          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_pause();
        }
      }
  
      public void resume(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
        checkReady();
        resume_call method_call = new resume_call(resultHandler, this, ___protocolFactory, ___transport);
        this.___currentMethod = method_call;
        ___manager.call(method_call);
      }
  
      public static class resume_call extends org.apache.thrift.async.TAsyncMethodCall {
        public resume_call(org.apache.thrift.async.AsyncMethodCallback 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("resume", org.apache.thrift.protocol.TMessageType.CALL, 0));
          resume_args args = new resume_args();
          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_resume();
        }
      }
  
      public void getLag(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
        checkReady();
        getLag_call method_call = new getLag_call(resultHandler, this, ___protocolFactory, ___transport);
        this.___currentMethod = method_call;
        ___manager.call(method_call);
      }
  
      public static class getLag_call extends org.apache.thrift.async.TAsyncMethodCall {
        public getLag_call(org.apache.thrift.async.AsyncMethodCallback 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("getLag", org.apache.thrift.protocol.TMessageType.CALL, 0));
          getLag_args args = new getLag_args();
          args.write(prot);
          prot.writeMessageEnd();
        }
  
        public long 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_getLag();
        }
      }
  
    }
  
    public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> 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("getActiveJobs", new getActiveJobs());
        processMap.put("getRetiredJobs", new getRetiredJobs());
        processMap.put("getJobs", new getJobs());
        processMap.put("pause", new pause());
        processMap.put("resume", new resume());
        processMap.put("getLag", new getLag());
        return processMap;
      }
  
      public static class getActiveJobs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActiveJobs_args> {
        public getActiveJobs() {
          super("getActiveJobs");
        }
  
        public getActiveJobs_args getEmptyArgsInstance() {
          return new getActiveJobs_args();
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public getActiveJobs_result getResult(I iface, getActiveJobs_args args) throws org.apache.thrift.TException {
          getActiveJobs_result result = new getActiveJobs_result();
          result.success = iface.getActiveJobs(args.afterId, args.maxJobs);
          return result;
        }
      }
  
      public static class getRetiredJobs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRetiredJobs_args> {
        public getRetiredJobs() {
          super("getRetiredJobs");
        }
  
        public getRetiredJobs_args getEmptyArgsInstance() {
          return new getRetiredJobs_args();
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public getRetiredJobs_result getResult(I iface, getRetiredJobs_args args) throws org.apache.thrift.TException {
          getRetiredJobs_result result = new getRetiredJobs_result();
          result.success = iface.getRetiredJobs(args.afterId, args.maxJobs);
          return result;
        }
      }
  
      public static class getJobs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getJobs_args> {
        public getJobs() {
          super("getJobs");
        }
  
        public getJobs_args getEmptyArgsInstance() {
          return new getJobs_args();
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public getJobs_result getResult(I iface, getJobs_args args) throws org.apache.thrift.TException {
          getJobs_result result = new getJobs_result();
          result.success = iface.getJobs(args.ids);
          return result;
        }
      }
  
      public static class pause<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pause_args> {
        public pause() {
          super("pause");
        }
  
        public pause_args getEmptyArgsInstance() {
          return new pause_args();
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public pause_result getResult(I iface, pause_args args) throws org.apache.thrift.TException {
          pause_result result = new pause_result();
          iface.pause();
          return result;
        }
      }
  
      public static class resume<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resume_args> {
        public resume() {
          super("resume");
        }
  
        public resume_args getEmptyArgsInstance() {
          return new resume_args();
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public resume_result getResult(I iface, resume_args args) throws org.apache.thrift.TException {
          resume_result result = new resume_result();
          iface.resume();
          return result;
        }
      }
  
      public static class getLag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLag_args> {
        public getLag() {
          super("getLag");
        }
  
        public getLag_args getEmptyArgsInstance() {
          return new getLag_args();
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public getLag_result getResult(I iface, getLag_args args) throws org.apache.thrift.TException {
          getLag_result result = new getLag_result();
          result.success = iface.getLag();
          result.setSuccessIsSet(true);
          return result;
        }
      }
  
    }
  
    public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
      private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
      public AsyncProcessor(I iface) {
        super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
      }
  
      protected AsyncProcessor(I iface, Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
        super(iface, getProcessMap(processMap));
      }
  
      private static <I extends AsyncIface> Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase,?>> getProcessMap(Map<String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
        processMap.put("getActiveJobs", new getActiveJobs());
        processMap.put("getRetiredJobs", new getRetiredJobs());
        processMap.put("getJobs", new getJobs());
        processMap.put("pause", new pause());
        processMap.put("resume", new resume());
        processMap.put("getLag", new getLag());
        return processMap;
      }
  
      public static class getActiveJobs<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getActiveJobs_args, List<TReplicationJob>> {
        public getActiveJobs() {
          super("getActiveJobs");
        }
  
        public getActiveJobs_args getEmptyArgsInstance() {
          return new getActiveJobs_args();
        }
  
        public AsyncMethodCallback<List<TReplicationJob>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
          final org.apache.thrift.AsyncProcessFunction fcall = this;
          return new AsyncMethodCallback<List<TReplicationJob>>() { 
            public void onComplete(List<TReplicationJob> o) {
              getActiveJobs_result result = new getActiveJobs_result();
              result.success = o;
              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) {
              byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
              org.apache.thrift.TBase msg;
              getActiveJobs_result result = new getActiveJobs_result();
              {
                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();
            }
          };
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public void start(I iface, getActiveJobs_args args, org.apache.thrift.async.AsyncMethodCallback<List<TReplicationJob>> resultHandler) throws TException {
          iface.getActiveJobs(args.afterId, args.maxJobs,resultHandler);
        }
      }
  
      public static class getRetiredJobs<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getRetiredJobs_args, List<TReplicationJob>> {
        public getRetiredJobs() {
          super("getRetiredJobs");
        }
  
        public getRetiredJobs_args getEmptyArgsInstance() {
          return new getRetiredJobs_args();
        }
  
        public AsyncMethodCallback<List<TReplicationJob>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
          final org.apache.thrift.AsyncProcessFunction fcall = this;
          return new AsyncMethodCallback<List<TReplicationJob>>() { 
            public void onComplete(List<TReplicationJob> o) {
              getRetiredJobs_result result = new getRetiredJobs_result();
              result.success = o;
              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) {
              byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
              org.apache.thrift.TBase msg;
              getRetiredJobs_result result = new getRetiredJobs_result();
              {
                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();
            }
          };
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public void start(I iface, getRetiredJobs_args args, org.apache.thrift.async.AsyncMethodCallback<List<TReplicationJob>> resultHandler) throws TException {
          iface.getRetiredJobs(args.afterId, args.maxJobs,resultHandler);
        }
      }
  
      public static class getJobs<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getJobs_args, Map<Long,TReplicationJob>> {
        public getJobs() {
          super("getJobs");
        }
  
        public getJobs_args getEmptyArgsInstance() {
          return new getJobs_args();
        }
  
        public AsyncMethodCallback<Map<Long,TReplicationJob>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
          final org.apache.thrift.AsyncProcessFunction fcall = this;
          return new AsyncMethodCallback<Map<Long,TReplicationJob>>() { 
            public void onComplete(Map<Long,TReplicationJob> o) {
              getJobs_result result = new getJobs_result();
              result.success = o;
              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) {
              byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
              org.apache.thrift.TBase msg;
              getJobs_result result = new getJobs_result();
              {
                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();
            }
          };
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public void start(I iface, getJobs_args args, org.apache.thrift.async.AsyncMethodCallback<Map<Long,TReplicationJob>> resultHandler) throws TException {
          iface.getJobs(args.ids,resultHandler);
        }
      }
  
      public static class pause<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, pause_args, Void> {
        public pause() {
          super("pause");
        }
  
        public pause_args getEmptyArgsInstance() {
          return new pause_args();
        }
  
        public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
          final org.apache.thrift.AsyncProcessFunction fcall = this;
          return new AsyncMethodCallback<Void>() { 
            public void onComplete(Void o) {
              pause_result result = new pause_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) {
              byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
              org.apache.thrift.TBase msg;
              pause_result result = new pause_result();
              {
                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();
            }
          };
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public void start(I iface, pause_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
          iface.pause(resultHandler);
        }
      }
  
      public static class resume<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, resume_args, Void> {
        public resume() {
          super("resume");
        }
  
        public resume_args getEmptyArgsInstance() {
          return new resume_args();
        }
  
        public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
          final org.apache.thrift.AsyncProcessFunction fcall = this;
          return new AsyncMethodCallback<Void>() { 
            public void onComplete(Void o) {
              resume_result result = new resume_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) {
              byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
              org.apache.thrift.TBase msg;
              resume_result result = new resume_result();
              {
                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();
            }
          };
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public void start(I iface, resume_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
          iface.resume(resultHandler);
        }
      }
  
      public static class getLag<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLag_args, Long> {
        public getLag() {
          super("getLag");
        }
  
        public getLag_args getEmptyArgsInstance() {
          return new getLag_args();
        }
  
        public AsyncMethodCallback<Long> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
          final org.apache.thrift.AsyncProcessFunction fcall = this;
          return new AsyncMethodCallback<Long>() { 
            public void onComplete(Long o) {
              getLag_result result = new getLag_result();
              result.success = o;
              result.setSuccessIsSet(true);
              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) {
              byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
              org.apache.thrift.TBase msg;
              getLag_result result = new getLag_result();
              {
                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();
            }
          };
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public void start(I iface, getLag_args args, org.apache.thrift.async.AsyncMethodCallback<Long> resultHandler) throws TException {
          iface.getLag(resultHandler);
        }
      }
  
    }
  
    public static class getActiveJobs_args implements org.apache.thrift.TBase<getActiveJobs_args, getActiveJobs_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActiveJobs_args>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActiveJobs_args");
  
      private static final org.apache.thrift.protocol.TField AFTER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("afterId", org.apache.thrift.protocol.TType.I64, (short)1);
      private static final org.apache.thrift.protocol.TField MAX_JOBS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxJobs", org.apache.thrift.protocol.TType.I32, (short)2);
  
      private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
      static {
        schemes.put(StandardScheme.class, new getActiveJobs_argsStandardSchemeFactory());
        schemes.put(TupleScheme.class, new getActiveJobs_argsTupleSchemeFactory());
      }
  
      public long afterId; // required
      public int maxJobs; // 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 {
        AFTER_ID((short)1, "afterId"),
        MAX_JOBS((short)2, "maxJobs");
  
        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: // AFTER_ID
              return AFTER_ID;
            case 2: // MAX_JOBS
              return MAX_JOBS;
            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 __AFTERID_ISSET_ID = 0;
      private static final int __MAXJOBS_ISSET_ID = 1;
      private byte __isset_bitfield = 0;
      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.AFTER_ID, new org.apache.thrift.meta_data.FieldMetaData("afterId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
        tmpMap.put(_Fields.MAX_JOBS, new org.apache.thrift.meta_data.FieldMetaData("maxJobs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
        metaDataMap = Collections.unmodifiableMap(tmpMap);
        org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActiveJobs_args.class, metaDataMap);
      }
  
      public getActiveJobs_args() {
      }
  
      public getActiveJobs_args(
        long afterId,
        int maxJobs)
      {
        this();
        this.afterId = afterId;
        setAfterIdIsSet(true);
        this.maxJobs = maxJobs;
        setMaxJobsIsSet(true);
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public getActiveJobs_args(getActiveJobs_args other) {
        __isset_bitfield = other.__isset_bitfield;
        this.afterId = other.afterId;
        this.maxJobs = other.maxJobs;
      }
  
      public getActiveJobs_args deepCopy() {
        return new getActiveJobs_args(this);
      }
  
      @Override
      public void clear() {
        setAfterIdIsSet(false);
        this.afterId = 0;
        setMaxJobsIsSet(false);
        this.maxJobs = 0;
      }
  
      public long getAfterId() {
        return this.afterId;
      }
  
      public getActiveJobs_args setAfterId(long afterId) {
        this.afterId = afterId;
        setAfterIdIsSet(true);
        return this;
      }
  
      public void unsetAfterId() {
        __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __AFTERID_ISSET_ID);
      }
  
      /** Returns true if field afterId is set (has been assigned a value) and false otherwise */
      public boolean isSetAfterId() {
        return EncodingUtils.testBit(__isset_bitfield, __AFTERID_ISSET_ID);
      }
  
      public void setAfterIdIsSet(boolean value) {
        __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __AFTERID_ISSET_ID, value);
      }
  
      public int getMaxJobs() {
        return this.maxJobs;
      }
  
      public getActiveJobs_args setMaxJobs(int maxJobs) {
        this.maxJobs = maxJobs;
        setMaxJobsIsSet(true);
        return this;
      }
  
      public void unsetMaxJobs() {
        __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXJOBS_ISSET_ID);
      }
  
      /** Returns true if field maxJobs is set (has been assigned a value) and false otherwise */
      public boolean isSetMaxJobs() {
        return EncodingUtils.testBit(__isset_bitfield, __MAXJOBS_ISSET_ID);
      }
  
      public void setMaxJobsIsSet(boolean value) {
        __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXJOBS_ISSET_ID, value);
      }
  
      public void setFieldValue(_Fields field, Object value) {
        switch (field) {
        case AFTER_ID:
          if (value == null) {
            unsetAfterId();
          } else {
            setAfterId((Long)value);
          }
          break;
  
        case MAX_JOBS:
          if (value == null) {
            unsetMaxJobs();
          } else {
            setMaxJobs((Integer)value);
          }
          break;
  
        }
      }
  
      public Object getFieldValue(_Fields field) {
        switch (field) {
        case AFTER_ID:
          return Long.valueOf(getAfterId());
  
        case MAX_JOBS:
          return Integer.valueOf(getMaxJobs());
  
        }
        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 AFTER_ID:
          return isSetAfterId();
        case MAX_JOBS:
          return isSetMaxJobs();
        }
        throw new IllegalStateException();
      }
  
      @Override
      public boolean equals(Object that) {
        if (that == null)
          return false;
        if (that instanceof getActiveJobs_args)
          return this.equals((getActiveJobs_args)that);
        return false;
      }
  
      public boolean equals(getActiveJobs_args that) {
        if (that == null)
          return false;
  
        boolean this_present_afterId = true;
        boolean that_present_afterId = true;
        if (this_present_afterId || that_present_afterId) {
          if (!(this_present_afterId && that_present_afterId))
            return false;
          if (this.afterId != that.afterId)
            return false;
        }
  
        boolean this_present_maxJobs = true;
        boolean that_present_maxJobs = true;
        if (this_present_maxJobs || that_present_maxJobs) {
          if (!(this_present_maxJobs && that_present_maxJobs))
            return false;
          if (this.maxJobs != that.maxJobs)
            return false;
        }
  
        return true;
      }
  
      @Override
      public int hashCode() {
        return 0;
      }
  
      @Override
      public int compareTo(getActiveJobs_args other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        lastComparison = Boolean.valueOf(isSetAfterId()).compareTo(other.isSetAfterId());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (isSetAfterId()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afterId, other.afterId);
          if (lastComparison != 0) {
            return lastComparison;
          }
        }
        lastComparison = Boolean.valueOf(isSetMaxJobs()).compareTo(other.isSetMaxJobs());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (isSetMaxJobs()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxJobs, other.maxJobs);
          if (lastComparison != 0) {
            return lastComparison;
          }
        }
        return 0;
      }
  
      public _Fields fieldForId(int fieldId) {
        return _Fields.findByThriftId(fieldId);
      }
  
      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
        schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
      }
  
      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
        schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }
  
      @Override
      public String toString() {
        StringBuilder sb = new StringBuilder("getActiveJobs_args(");
        boolean first = true;
  
        sb.append("afterId:");
        sb.append(this.afterId);
        first = false;
        if (!first) sb.append(", ");
        sb.append("maxJobs:");
        sb.append(this.maxJobs);
        first = false;
        sb.append(")");
        return sb.toString();
      }
  
      public void validate() throws org.apache.thrift.TException {
        // check for required fields
        // check for sub-struct validity
      }
  
      private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
        try {
          write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
        try {
          // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
          __isset_bitfield = 0;
          read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private static class getActiveJobs_argsStandardSchemeFactory implements SchemeFactory {
        public getActiveJobs_argsStandardScheme getScheme() {
          return new getActiveJobs_argsStandardScheme();
        }
      }
  
      private static class getActiveJobs_argsStandardScheme extends StandardScheme<getActiveJobs_args> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, getActiveJobs_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: // AFTER_ID
                if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
                  struct.afterId = iprot.readI64();
                  struct.setAfterIdIsSet(true);
                } else { 
                  org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
                }
                break;
              case 2: // MAX_JOBS
                if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
                  struct.maxJobs = iprot.readI32();
                  struct.setMaxJobsIsSet(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 write(org.apache.thrift.protocol.TProtocol oprot, getActiveJobs_args struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          oprot.writeFieldBegin(AFTER_ID_FIELD_DESC);
          oprot.writeI64(struct.afterId);
          oprot.writeFieldEnd();
          oprot.writeFieldBegin(MAX_JOBS_FIELD_DESC);
          oprot.writeI32(struct.maxJobs);
          oprot.writeFieldEnd();
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class getActiveJobs_argsTupleSchemeFactory implements SchemeFactory {
        public getActiveJobs_argsTupleScheme getScheme() {
          return new getActiveJobs_argsTupleScheme();
        }
      }
  
      private static class getActiveJobs_argsTupleScheme extends TupleScheme<getActiveJobs_args> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, getActiveJobs_args struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
          BitSet optionals = new BitSet();
          if (struct.isSetAfterId()) {
            optionals.set(0);
          }
          if (struct.isSetMaxJobs()) {
            optionals.set(1);
          }
          oprot.writeBitSet(optionals, 2);
          if (struct.isSetAfterId()) {
            oprot.writeI64(struct.afterId);
          }
          if (struct.isSetMaxJobs()) {
            oprot.writeI32(struct.maxJobs);
          }
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, getActiveJobs_args struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
          BitSet incoming = iprot.readBitSet(2);
          if (incoming.get(0)) {
            struct.afterId = iprot.readI64();
            struct.setAfterIdIsSet(true);
          }
          if (incoming.get(1)) {
            struct.maxJobs = iprot.readI32();
            struct.setMaxJobsIsSet(true);
          }
        }
      }
  
    }
  
    public static class getActiveJobs_result implements org.apache.thrift.TBase<getActiveJobs_result, getActiveJobs_result._Fields>, java.io.Serializable, Cloneable, Comparable<getActiveJobs_result>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActiveJobs_result");
  
      private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
  
      private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
      static {
        schemes.put(StandardScheme.class, new getActiveJobs_resultStandardSchemeFactory());
        schemes.put(TupleScheme.class, new getActiveJobs_resultTupleSchemeFactory());
      }
  
      public List<TReplicationJob> 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
                new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TReplicationJob.class))));
        metaDataMap = Collections.unmodifiableMap(tmpMap);
        org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActiveJobs_result.class, metaDataMap);
      }
  
      public getActiveJobs_result() {
      }
  
      public getActiveJobs_result(
        List<TReplicationJob> success)
      {
        this();
        this.success = success;
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public getActiveJobs_result(getActiveJobs_result other) {
        if (other.isSetSuccess()) {
          List<TReplicationJob> __this__success = new ArrayList<TReplicationJob>(other.success.size());
          for (TReplicationJob other_element : other.success) {
            __this__success.add(new TReplicationJob(other_element));
          }
          this.success = __this__success;
        }
      }
  
      public getActiveJobs_result deepCopy() {
        return new getActiveJobs_result(this);
      }
  
      @Override
      public void clear() {
        this.success = null;
      }
  
      public int getSuccessSize() {
        return (this.success == null) ? 0 : this.success.size();
      }
  
      public java.util.Iterator<TReplicationJob> getSuccessIterator() {
        return (this.success == null) ? null : this.success.iterator();
      }
  
      public void addToSuccess(TReplicationJob elem) {
        if (this.success == null) {
          this.success = new ArrayList<TReplicationJob>();
        }
        this.success.add(elem);
      }
  
      public List<TReplicationJob> getSuccess() {
        return this.success;
      }
  
      public getActiveJobs_result setSuccess(List<TReplicationJob> 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((List<TReplicationJob>)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 getActiveJobs_result)
          return this.equals((getActiveJobs_result)that);
        return false;
      }
  
      public boolean equals(getActiveJobs_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;
      }
  
      @Override
      public int compareTo(getActiveJobs_result other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (isSetSuccess()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.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 {
        schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
      }
  
      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
        schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
        }
  
      @Override
      public String toString() {
        StringBuilder sb = new StringBuilder("getActiveJobs_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
        // check for sub-struct validity
      }
  
      private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
        try {
          write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
        try {
          read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private static class getActiveJobs_resultStandardSchemeFactory implements SchemeFactory {
        public getActiveJobs_resultStandardScheme getScheme() {
          return new getActiveJobs_resultStandardScheme();
        }
      }
  
      private static class getActiveJobs_resultStandardScheme extends StandardScheme<getActiveJobs_result> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, getActiveJobs_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 0: // SUCCESS
                if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
                  {
                    org.apache.thrift.protocol.TList _list26 = iprot.readListBegin();
                    struct.success = new ArrayList<TReplicationJob>(_list26.size);
                    for (int _i27 = 0; _i27 < _list26.size; ++_i27)
                    {
                      TReplicationJob _elem28;
                      _elem28 = new TReplicationJob();
                      _elem28.read(iprot);
                      struct.success.add(_elem28);
                    }
                    iprot.readListEnd();
                  }
                  struct.setSuccessIsSet(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 write(org.apache.thrift.protocol.TProtocol oprot, getActiveJobs_result struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          if (struct.success != null) {
            oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
            {
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
              for (TReplicationJob _iter29 : struct.success)
              {
                _iter29.write(oprot);
              }
              oprot.writeListEnd();
            }
            oprot.writeFieldEnd();
          }
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class getActiveJobs_resultTupleSchemeFactory implements SchemeFactory {
        public getActiveJobs_resultTupleScheme getScheme() {
          return new getActiveJobs_resultTupleScheme();
        }
      }
  
      private static class getActiveJobs_resultTupleScheme extends TupleScheme<getActiveJobs_result> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, getActiveJobs_result struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
          BitSet optionals = new BitSet();
          if (struct.isSetSuccess()) {
            optionals.set(0);
          }
          oprot.writeBitSet(optionals, 1);
          if (struct.isSetSuccess()) {
            {
              oprot.writeI32(struct.success.size());
              for (TReplicationJob _iter30 : struct.success)
              {
                _iter30.write(oprot);
              }
            }
          }
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, getActiveJobs_result struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
          BitSet incoming = iprot.readBitSet(1);
          if (incoming.get(0)) {
            {
              org.apache.thrift.protocol.TList _list31 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
              struct.success = new ArrayList<TReplicationJob>(_list31.size);
              for (int _i32 = 0; _i32 < _list31.size; ++_i32)
              {
                TReplicationJob _elem33;
                _elem33 = new TReplicationJob();
                _elem33.read(iprot);
                struct.success.add(_elem33);
              }
            }
            struct.setSuccessIsSet(true);
          }
        }
      }
  
    }
  
    public static class getRetiredJobs_args implements org.apache.thrift.TBase<getRetiredJobs_args, getRetiredJobs_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRetiredJobs_args>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRetiredJobs_args");
  
      private static final org.apache.thrift.protocol.TField AFTER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("afterId", org.apache.thrift.protocol.TType.I64, (short)1);
      private static final org.apache.thrift.protocol.TField MAX_JOBS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxJobs", org.apache.thrift.protocol.TType.I32, (short)2);
  
      private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
      static {
        schemes.put(StandardScheme.class, new getRetiredJobs_argsStandardSchemeFactory());
        schemes.put(TupleScheme.class, new getRetiredJobs_argsTupleSchemeFactory());
      }
  
      public long afterId; // required
      public int maxJobs; // 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 {
        AFTER_ID((short)1, "afterId"),
        MAX_JOBS((short)2, "maxJobs");
  
        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: // AFTER_ID
              return AFTER_ID;
            case 2: // MAX_JOBS
              return MAX_JOBS;
            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 __AFTERID_ISSET_ID = 0;
      private static final int __MAXJOBS_ISSET_ID = 1;
      private byte __isset_bitfield = 0;
      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.AFTER_ID, new org.apache.thrift.meta_data.FieldMetaData("afterId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
        tmpMap.put(_Fields.MAX_JOBS, new org.apache.thrift.meta_data.FieldMetaData("maxJobs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
        metaDataMap = Collections.unmodifiableMap(tmpMap);
        org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRetiredJobs_args.class, metaDataMap);
      }
  
      public getRetiredJobs_args() {
      }
  
      public getRetiredJobs_args(
        long afterId,
        int maxJobs)
      {
        this();
        this.afterId = afterId;
        setAfterIdIsSet(true);
        this.maxJobs = maxJobs;
        setMaxJobsIsSet(true);
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public getRetiredJobs_args(getRetiredJobs_args other) {
        __isset_bitfield = other.__isset_bitfield;
        this.afterId = other.afterId;
        this.maxJobs = other.maxJobs;
      }
  
      public getRetiredJobs_args deepCopy() {
        return new getRetiredJobs_args(this);
      }
  
      @Override
      public void clear() {
        setAfterIdIsSet(false);
        this.afterId = 0;
        setMaxJobsIsSet(false);
        this.maxJobs = 0;
      }
  
      public long getAfterId() {
        return this.afterId;
      }
  
      public getRetiredJobs_args setAfterId(long afterId) {
        this.afterId = afterId;
        setAfterIdIsSet(true);
        return this;
      }
  
      public void unsetAfterId() {
        __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __AFTERID_ISSET_ID);
      }
  
      /** Returns true if field afterId is set (has been assigned a value) and false otherwise */
      public boolean isSetAfterId() {
        return EncodingUtils.testBit(__isset_bitfield, __AFTERID_ISSET_ID);
      }
  
      public void setAfterIdIsSet(boolean value) {
        __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __AFTERID_ISSET_ID, value);
      }
  
      public int getMaxJobs() {
        return this.maxJobs;
      }
  
      public getRetiredJobs_args setMaxJobs(int maxJobs) {
        this.maxJobs = maxJobs;
        setMaxJobsIsSet(true);
        return this;
      }
  
      public void unsetMaxJobs() {
        __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXJOBS_ISSET_ID);
      }
  
      /** Returns true if field maxJobs is set (has been assigned a value) and false otherwise */
      public boolean isSetMaxJobs() {
        return EncodingUtils.testBit(__isset_bitfield, __MAXJOBS_ISSET_ID);
      }
  
      public void setMaxJobsIsSet(boolean value) {
        __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXJOBS_ISSET_ID, value);
      }
  
      public void setFieldValue(_Fields field, Object value) {
        switch (field) {
        case AFTER_ID:
          if (value == null) {
            unsetAfterId();
          } else {
            setAfterId((Long)value);
          }
          break;
  
        case MAX_JOBS:
          if (value == null) {
            unsetMaxJobs();
          } else {
            setMaxJobs((Integer)value);
          }
          break;
  
        }
      }
  
      public Object getFieldValue(_Fields field) {
        switch (field) {
        case AFTER_ID:
          return Long.valueOf(getAfterId());
  
        case MAX_JOBS:
          return Integer.valueOf(getMaxJobs());
  
        }
        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 AFTER_ID:
          return isSetAfterId();
        case MAX_JOBS:
          return isSetMaxJobs();
        }
        throw new IllegalStateException();
      }
  
      @Override
      public boolean equals(Object that) {
        if (that == null)
          return false;
        if (that instanceof getRetiredJobs_args)
          return this.equals((getRetiredJobs_args)that);
        return false;
      }
  
      public boolean equals(getRetiredJobs_args that) {
        if (that == null)
          return false;
  
        boolean this_present_afterId = true;
        boolean that_present_afterId = true;
        if (this_present_afterId || that_present_afterId) {
          if (!(this_present_afterId && that_present_afterId))
            return false;
          if (this.afterId != that.afterId)
            return false;
        }
  
        boolean this_present_maxJobs = true;
        boolean that_present_maxJobs = true;
        if (this_present_maxJobs || that_present_maxJobs) {
          if (!(this_present_maxJobs && that_present_maxJobs))
            return false;
          if (this.maxJobs != that.maxJobs)
            return false;
        }
  
        return true;
      }
  
      @Override
      public int hashCode() {
        return 0;
      }
  
      @Override
      public int compareTo(getRetiredJobs_args other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        lastComparison = Boolean.valueOf(isSetAfterId()).compareTo(other.isSetAfterId());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (isSetAfterId()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afterId, other.afterId);
          if (lastComparison != 0) {
            return lastComparison;
          }
        }
        lastComparison = Boolean.valueOf(isSetMaxJobs()).compareTo(other.isSetMaxJobs());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (isSetMaxJobs()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxJobs, other.maxJobs);
          if (lastComparison != 0) {
            return lastComparison;
          }
        }
        return 0;
      }
  
      public _Fields fieldForId(int fieldId) {
        return _Fields.findByThriftId(fieldId);
      }
  
      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
        schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
      }
  
      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
        schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }
  
      @Override
      public String toString() {
        StringBuilder sb = new StringBuilder("getRetiredJobs_args(");
        boolean first = true;
  
        sb.append("afterId:");
        sb.append(this.afterId);
        first = false;
        if (!first) sb.append(", ");
        sb.append("maxJobs:");
        sb.append(this.maxJobs);
        first = false;
        sb.append(")");
        return sb.toString();
      }
  
      public void validate() throws org.apache.thrift.TException {
        // check for required fields
        // check for sub-struct validity
      }
  
      private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
        try {
          write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
        try {
          // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
          __isset_bitfield = 0;
          read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private static class getRetiredJobs_argsStandardSchemeFactory implements SchemeFactory {
        public getRetiredJobs_argsStandardScheme getScheme() {
          return new getRetiredJobs_argsStandardScheme();
        }
      }
  
      private static class getRetiredJobs_argsStandardScheme extends StandardScheme<getRetiredJobs_args> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, getRetiredJobs_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: // AFTER_ID
                if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
                  struct.afterId = iprot.readI64();
                  struct.setAfterIdIsSet(true);
                } else { 
                  org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
                }
                break;
              case 2: // MAX_JOBS
                if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
                  struct.maxJobs = iprot.readI32();
                  struct.setMaxJobsIsSet(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 write(org.apache.thrift.protocol.TProtocol oprot, getRetiredJobs_args struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          oprot.writeFieldBegin(AFTER_ID_FIELD_DESC);
          oprot.writeI64(struct.afterId);
          oprot.writeFieldEnd();
          oprot.writeFieldBegin(MAX_JOBS_FIELD_DESC);
          oprot.writeI32(struct.maxJobs);
          oprot.writeFieldEnd();
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class getRetiredJobs_argsTupleSchemeFactory implements SchemeFactory {
        public getRetiredJobs_argsTupleScheme getScheme() {
          return new getRetiredJobs_argsTupleScheme();
        }
      }
  
      private static class getRetiredJobs_argsTupleScheme extends TupleScheme<getRetiredJobs_args> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, getRetiredJobs_args struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
          BitSet optionals = new BitSet();
          if (struct.isSetAfterId()) {
            optionals.set(0);
          }
          if (struct.isSetMaxJobs()) {
            optionals.set(1);
          }
          oprot.writeBitSet(optionals, 2);
          if (struct.isSetAfterId()) {
            oprot.writeI64(struct.afterId);
          }
          if (struct.isSetMaxJobs()) {
            oprot.writeI32(struct.maxJobs);
          }
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, getRetiredJobs_args struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
          BitSet incoming = iprot.readBitSet(2);
          if (incoming.get(0)) {
            struct.afterId = iprot.readI64();
            struct.setAfterIdIsSet(true);
          }
          if (incoming.get(1)) {
            struct.maxJobs = iprot.readI32();
            struct.setMaxJobsIsSet(true);
          }
        }
      }
  
    }
  
    public static class getRetiredJobs_result implements org.apache.thrift.TBase<getRetiredJobs_result, getRetiredJobs_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRetiredJobs_result>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRetiredJobs_result");
  
      private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
  
      private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
      static {
        schemes.put(StandardScheme.class, new getRetiredJobs_resultStandardSchemeFactory());
        schemes.put(TupleScheme.class, new getRetiredJobs_resultTupleSchemeFactory());
      }
  
      public List<TReplicationJob> 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
                new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TReplicationJob.class))));
        metaDataMap = Collections.unmodifiableMap(tmpMap);
        org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRetiredJobs_result.class, metaDataMap);
      }
  
      public getRetiredJobs_result() {
      }
  
      public getRetiredJobs_result(
        List<TReplicationJob> success)
      {
        this();
        this.success = success;
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public getRetiredJobs_result(getRetiredJobs_result other) {
        if (other.isSetSuccess()) {
          List<TReplicationJob> __this__success = new ArrayList<TReplicationJob>(other.success.size());
          for (TReplicationJob other_element : other.success) {
            __this__success.add(new TReplicationJob(other_element));
          }
          this.success = __this__success;
        }
      }
  
      public getRetiredJobs_result deepCopy() {
        return new getRetiredJobs_result(this);
      }
  
      @Override
      public void clear() {
        this.success = null;
      }
  
      public int getSuccessSize() {
        return (this.success == null) ? 0 : this.success.size();
      }
  
      public java.util.Iterator<TReplicationJob> getSuccessIterator() {
        return (this.success == null) ? null : this.success.iterator();
      }
  
      public void addToSuccess(TReplicationJob elem) {
        if (this.success == null) {
          this.success = new ArrayList<TReplicationJob>();
        }
        this.success.add(elem);
      }
  
      public List<TReplicationJob> getSuccess() {
        return this.success;
      }
  
      public getRetiredJobs_result setSuccess(List<TReplicationJob> 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((List<TReplicationJob>)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 getRetiredJobs_result)
          return this.equals((getRetiredJobs_result)that);
        return false;
      }
  
      public boolean equals(getRetiredJobs_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;
      }
  
      @Override
      public int compareTo(getRetiredJobs_result other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (isSetSuccess()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.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 {
        schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
      }
  
      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
        schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
        }
  
      @Override
      public String toString() {
        StringBuilder sb = new StringBuilder("getRetiredJobs_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
        // check for sub-struct validity
      }
  
      private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
        try {
          write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
        try {
          read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private static class getRetiredJobs_resultStandardSchemeFactory implements SchemeFactory {
        public getRetiredJobs_resultStandardScheme getScheme() {
          return new getRetiredJobs_resultStandardScheme();
        }
      }
  
      private static class getRetiredJobs_resultStandardScheme extends StandardScheme<getRetiredJobs_result> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, getRetiredJobs_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 0: // SUCCESS
                if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
                  {
                    org.apache.thrift.protocol.TList _list34 = iprot.readListBegin();
                    struct.success = new ArrayList<TReplicationJob>(_list34.size);
                    for (int _i35 = 0; _i35 < _list34.size; ++_i35)
                    {
                      TReplicationJob _elem36;
                      _elem36 = new TReplicationJob();
                      _elem36.read(iprot);
                      struct.success.add(_elem36);
                    }
                    iprot.readListEnd();
                  }
                  struct.setSuccessIsSet(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 write(org.apache.thrift.protocol.TProtocol oprot, getRetiredJobs_result struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          if (struct.success != null) {
            oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
            {
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
              for (TReplicationJob _iter37 : struct.success)
              {
                _iter37.write(oprot);
              }
              oprot.writeListEnd();
            }
            oprot.writeFieldEnd();
          }
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class getRetiredJobs_resultTupleSchemeFactory implements SchemeFactory {
        public getRetiredJobs_resultTupleScheme getScheme() {
          return new getRetiredJobs_resultTupleScheme();
        }
      }
  
      private static class getRetiredJobs_resultTupleScheme extends TupleScheme<getRetiredJobs_result> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, getRetiredJobs_result struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
          BitSet optionals = new BitSet();
          if (struct.isSetSuccess()) {
            optionals.set(0);
          }
          oprot.writeBitSet(optionals, 1);
          if (struct.isSetSuccess()) {
            {
              oprot.writeI32(struct.success.size());
              for (TReplicationJob _iter38 : struct.success)
              {
                _iter38.write(oprot);
              }
            }
          }
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, getRetiredJobs_result struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
          BitSet incoming = iprot.readBitSet(1);
          if (incoming.get(0)) {
            {
              org.apache.thrift.protocol.TList _list39 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
              struct.success = new ArrayList<TReplicationJob>(_list39.size);
              for (int _i40 = 0; _i40 < _list39.size; ++_i40)
              {
                TReplicationJob _elem41;
                _elem41 = new TReplicationJob();
                _elem41.read(iprot);
                struct.success.add(_elem41);
              }
            }
            struct.setSuccessIsSet(true);
          }
        }
      }
  
    }
  
    public static class getJobs_args implements org.apache.thrift.TBase<getJobs_args, getJobs_args._Fields>, java.io.Serializable, Cloneable, Comparable<getJobs_args>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getJobs_args");
  
      private static final org.apache.thrift.protocol.TField IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("ids", org.apache.thrift.protocol.TType.LIST, (short)1);
  
      private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
      static {
        schemes.put(StandardScheme.class, new getJobs_argsStandardSchemeFactory());
        schemes.put(TupleScheme.class, new getJobs_argsTupleSchemeFactory());
      }
  
      public List<Long> ids; // 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 {
        IDS((short)1, "ids");
  
        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: // IDS
              return IDS;
            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.IDS, new org.apache.thrift.meta_data.FieldMetaData("ids", org.apache.thrift.TFieldRequirementType.DEFAULT, 
            new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
                new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
        metaDataMap = Collections.unmodifiableMap(tmpMap);
        org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getJobs_args.class, metaDataMap);
      }
  
      public getJobs_args() {
      }
  
      public getJobs_args(
        List<Long> ids)
      {
        this();
        this.ids = ids;
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public getJobs_args(getJobs_args other) {
        if (other.isSetIds()) {
          List<Long> __this__ids = new ArrayList<Long>(other.ids);
          this.ids = __this__ids;
        }
      }
  
      public getJobs_args deepCopy() {
        return new getJobs_args(this);
      }
  
      @Override
      public void clear() {
        this.ids = null;
      }
  
      public int getIdsSize() {
        return (this.ids == null) ? 0 : this.ids.size();
      }
  
      public java.util.Iterator<Long> getIdsIterator() {
        return (this.ids == null) ? null : this.ids.iterator();
      }
  
      public void addToIds(long elem) {
        if (this.ids == null) {
          this.ids = new ArrayList<Long>();
        }
        this.ids.add(elem);
      }
  
      public List<Long> getIds() {
        return this.ids;
      }
  
      public getJobs_args setIds(List<Long> ids) {
        this.ids = ids;
        return this;
      }
  
      public void unsetIds() {
        this.ids = null;
      }
  
      /** Returns true if field ids is set (has been assigned a value) and false otherwise */
      public boolean isSetIds() {
        return this.ids != null;
      }
  
      public void setIdsIsSet(boolean value) {
        if (!value) {
          this.ids = null;
        }
      }
  
      public void setFieldValue(_Fields field, Object value) {
        switch (field) {
        case IDS:
          if (value == null) {
            unsetIds();
          } else {
            setIds((List<Long>)value);
          }
          break;
  
        }
      }
  
      public Object getFieldValue(_Fields field) {
        switch (field) {
        case IDS:
          return getIds();
  
        }
        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 IDS:
          return isSetIds();
        }
        throw new IllegalStateException();
      }
  
      @Override
      public boolean equals(Object that) {
        if (that == null)
          return false;
        if (that instanceof getJobs_args)
          return this.equals((getJobs_args)that);
        return false;
      }
  
      public boolean equals(getJobs_args that) {
        if (that == null)
          return false;
  
        boolean this_present_ids = true && this.isSetIds();
        boolean that_present_ids = true && that.isSetIds();
        if (this_present_ids || that_present_ids) {
          if (!(this_present_ids && that_present_ids))
            return false;
          if (!this.ids.equals(that.ids))
            return false;
        }
  
        return true;
      }
  
      @Override
      public int hashCode() {
        return 0;
      }
  
      @Override
      public int compareTo(getJobs_args other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        lastComparison = Boolean.valueOf(isSetIds()).compareTo(other.isSetIds());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (isSetIds()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ids, other.ids);
          if (lastComparison != 0) {
            return lastComparison;
          }
        }
        return 0;
      }
  
      public _Fields fieldForId(int fieldId) {
        return _Fields.findByThriftId(fieldId);
      }
  
      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
        schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
      }
  
      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
        schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }
  
      @Override
      public String toString() {
        StringBuilder sb = new StringBuilder("getJobs_args(");
        boolean first = true;
  
        sb.append("ids:");
        if (this.ids == null) {
          sb.append("null");
        } else {
          sb.append(this.ids);
        }
        first = false;
        sb.append(")");
        return sb.toString();
      }
  
      public void validate() throws org.apache.thrift.TException {
        // check for required fields
        // check for sub-struct validity
      }
  
      private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
        try {
          write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
        try {
          read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private static class getJobs_argsStandardSchemeFactory implements SchemeFactory {
        public getJobs_argsStandardScheme getScheme() {
          return new getJobs_argsStandardScheme();
        }
      }
  
      private static class getJobs_argsStandardScheme extends StandardScheme<getJobs_args> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, getJobs_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: // IDS
                if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
                  {
                    org.apache.thrift.protocol.TList _list42 = iprot.readListBegin();
                    struct.ids = new ArrayList<Long>(_list42.size);
                    for (int _i43 = 0; _i43 < _list42.size; ++_i43)
                    {
                      long _elem44;
                      _elem44 = iprot.readI64();
                      struct.ids.add(_elem44);
                    }
                    iprot.readListEnd();
                  }
                  struct.setIdsIsSet(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 write(org.apache.thrift.protocol.TProtocol oprot, getJobs_args struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          if (struct.ids != null) {
            oprot.writeFieldBegin(IDS_FIELD_DESC);
            {
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.ids.size()));
              for (long _iter45 : struct.ids)
              {
                oprot.writeI64(_iter45);
              }
              oprot.writeListEnd();
            }
            oprot.writeFieldEnd();
          }
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class getJobs_argsTupleSchemeFactory implements SchemeFactory {
        public getJobs_argsTupleScheme getScheme() {
          return new getJobs_argsTupleScheme();
        }
      }
  
      private static class getJobs_argsTupleScheme extends TupleScheme<getJobs_args> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, getJobs_args struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
          BitSet optionals = new BitSet();
          if (struct.isSetIds()) {
            optionals.set(0);
          }
          oprot.writeBitSet(optionals, 1);
          if (struct.isSetIds()) {
            {
              oprot.writeI32(struct.ids.size());
              for (long _iter46 : struct.ids)
              {
                oprot.writeI64(_iter46);
              }
            }
          }
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, getJobs_args struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
          BitSet incoming = iprot.readBitSet(1);
          if (incoming.get(0)) {
            {
              org.apache.thrift.protocol.TList _list47 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
              struct.ids = new ArrayList<Long>(_list47.size);
              for (int _i48 = 0; _i48 < _list47.size; ++_i48)
              {
                long _elem49;
                _elem49 = iprot.readI64();
                struct.ids.add(_elem49);
              }
            }
            struct.setIdsIsSet(true);
          }
        }
      }
  
    }
  
    public static class getJobs_result implements org.apache.thrift.TBase<getJobs_result, getJobs_result._Fields>, java.io.Serializable, Cloneable, Comparable<getJobs_result>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getJobs_result");
  
      private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
  
      private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
      static {
        schemes.put(StandardScheme.class, new getJobs_resultStandardSchemeFactory());
        schemes.put(TupleScheme.class, new getJobs_resultTupleSchemeFactory());
      }
  
      public Map<Long,TReplicationJob> 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
                new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
                new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TReplicationJob.class))));
        metaDataMap = Collections.unmodifiableMap(tmpMap);
        org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getJobs_result.class, metaDataMap);
      }
  
      public getJobs_result() {
      }
  
      public getJobs_result(
        Map<Long,TReplicationJob> success)
      {
        this();
        this.success = success;
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public getJobs_result(getJobs_result other) {
        if (other.isSetSuccess()) {
          Map<Long,TReplicationJob> __this__success = new HashMap<Long,TReplicationJob>(other.success.size());
          for (Map.Entry<Long, TReplicationJob> other_element : other.success.entrySet()) {
  
            Long other_element_key = other_element.getKey();
            TReplicationJob other_element_value = other_element.getValue();
  
            Long __this__success_copy_key = other_element_key;
  
            TReplicationJob __this__success_copy_value = new TReplicationJob(other_element_value);
  
            __this__success.put(__this__success_copy_key, __this__success_copy_value);
          }
          this.success = __this__success;
        }
      }
  
      public getJobs_result deepCopy() {
        return new getJobs_result(this);
      }
  
      @Override
      public void clear() {
        this.success = null;
      }
  
      public int getSuccessSize() {
        return (this.success == null) ? 0 : this.success.size();
      }
  
      public void putToSuccess(long key, TReplicationJob val) {
        if (this.success == null) {
          this.success = new HashMap<Long,TReplicationJob>();
        }
        this.success.put(key, val);
      }
  
      public Map<Long,TReplicationJob> getSuccess() {
        return this.success;
      }
  
      public getJobs_result setSuccess(Map<Long,TReplicationJob> 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((Map<Long,TReplicationJob>)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 getJobs_result)
          return this.equals((getJobs_result)that);
        return false;
      }
  
      public boolean equals(getJobs_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;
      }
  
      @Override
      public int compareTo(getJobs_result other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (isSetSuccess()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.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 {
        schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
      }
  
      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
        schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
        }
  
      @Override
      public String toString() {
        StringBuilder sb = new StringBuilder("getJobs_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
        // check for sub-struct validity
      }
  
      private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
        try {
          write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
        try {
          read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private static class getJobs_resultStandardSchemeFactory implements SchemeFactory {
        public getJobs_resultStandardScheme getScheme() {
          return new getJobs_resultStandardScheme();
        }
      }
  
      private static class getJobs_resultStandardScheme extends StandardScheme<getJobs_result> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, getJobs_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 0: // SUCCESS
                if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
                  {
                    org.apache.thrift.protocol.TMap _map50 = iprot.readMapBegin();
                    struct.success = new HashMap<Long,TReplicationJob>(2*_map50.size);
                    for (int _i51 = 0; _i51 < _map50.size; ++_i51)
                    {
                      long _key52;
                      TReplicationJob _val53;
                      _key52 = iprot.readI64();
                      _val53 = new TReplicationJob();
                      _val53.read(iprot);
                      struct.success.put(_key52, _val53);
                    }
                    iprot.readMapEnd();
                  }
                  struct.setSuccessIsSet(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 write(org.apache.thrift.protocol.TProtocol oprot, getJobs_result struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          if (struct.success != null) {
            oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
            {
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
              for (Map.Entry<Long, TReplicationJob> _iter54 : struct.success.entrySet())
              {
                oprot.writeI64(_iter54.getKey());
                _iter54.getValue().write(oprot);
              }
              oprot.writeMapEnd();
            }
            oprot.writeFieldEnd();
          }
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class getJobs_resultTupleSchemeFactory implements SchemeFactory {
        public getJobs_resultTupleScheme getScheme() {
          return new getJobs_resultTupleScheme();
        }
      }
  
      private static class getJobs_resultTupleScheme extends TupleScheme<getJobs_result> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, getJobs_result struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
          BitSet optionals = new BitSet();
          if (struct.isSetSuccess()) {
            optionals.set(0);
          }
          oprot.writeBitSet(optionals, 1);
          if (struct.isSetSuccess()) {
            {
              oprot.writeI32(struct.success.size());
              for (Map.Entry<Long, TReplicationJob> _iter55 : struct.success.entrySet())
              {
                oprot.writeI64(_iter55.getKey());
                _iter55.getValue().write(oprot);
              }
            }
          }
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, getJobs_result struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
          BitSet incoming = iprot.readBitSet(1);
          if (incoming.get(0)) {
            {
              org.apache.thrift.protocol.TMap _map56 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
              struct.success = new HashMap<Long,TReplicationJob>(2*_map56.size);
              for (int _i57 = 0; _i57 < _map56.size; ++_i57)
              {
                long _key58;
                TReplicationJob _val59;
                _key58 = iprot.readI64();
                _val59 = new TReplicationJob();
                _val59.read(iprot);
                struct.success.put(_key58, _val59);
              }
            }
            struct.setSuccessIsSet(true);
          }
        }
      }
  
    }
  
    public static class pause_args implements org.apache.thrift.TBase<pause_args, pause_args._Fields>, java.io.Serializable, Cloneable, Comparable<pause_args>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pause_args");
  
  
      private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
      static {
        schemes.put(StandardScheme.class, new pause_argsStandardSchemeFactory());
        schemes.put(TupleScheme.class, new pause_argsTupleSchemeFactory());
      }
  
  
      /** 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(pause_args.class, metaDataMap);
      }
  
      public pause_args() {
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public pause_args(pause_args other) {
      }
  
      public pause_args deepCopy() {
        return new pause_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 pause_args)
          return this.equals((pause_args)that);
        return false;
      }
  
      public boolean equals(pause_args that) {
        if (that == null)
          return false;
  
        return true;
      }
  
      @Override
      public int hashCode() {
        return 0;
      }
  
      @Override
      public int compareTo(pause_args other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        return 0;
      }
  
      public _Fields fieldForId(int fieldId) {
        return _Fields.findByThriftId(fieldId);
      }
  
      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
        schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
      }
  
      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
        schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }
  
      @Override
      public String toString() {
        StringBuilder sb = new StringBuilder("pause_args(");
        boolean first = true;
  
        sb.append(")");
        return sb.toString();
      }
  
      public void validate() throws org.apache.thrift.TException {
        // check for required fields
        // check for sub-struct validity
      }
  
      private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
        try {
          write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
        try {
          read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private static class pause_argsStandardSchemeFactory implements SchemeFactory {
        public pause_argsStandardScheme getScheme() {
          return new pause_argsStandardScheme();
        }
      }
  
      private static class pause_argsStandardScheme extends StandardScheme<pause_args> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, pause_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) {
              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 write(org.apache.thrift.protocol.TProtocol oprot, pause_args struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class pause_argsTupleSchemeFactory implements SchemeFactory {
        public pause_argsTupleScheme getScheme() {
          return new pause_argsTupleScheme();
        }
      }
  
      private static class pause_argsTupleScheme extends TupleScheme<pause_args> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, pause_args struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, pause_args struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
        }
      }
  
    }
  
    public static class pause_result implements org.apache.thrift.TBase<pause_result, pause_result._Fields>, java.io.Serializable, Cloneable, Comparable<pause_result>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pause_result");
  
  
      private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
      static {
        schemes.put(StandardScheme.class, new pause_resultStandardSchemeFactory());
        schemes.put(TupleScheme.class, new pause_resultTupleSchemeFactory());
      }
  
  
      /** 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(pause_result.class, metaDataMap);
      }
  
      public pause_result() {
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public pause_result(pause_result other) {
      }
  
      public pause_result deepCopy() {
        return new pause_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 pause_result)
          return this.equals((pause_result)that);
        return false;
      }
  
      public boolean equals(pause_result that) {
        if (that == null)
          return false;
  
        return true;
      }
  
      @Override
      public int hashCode() {
        return 0;
      }
  
      @Override
      public int compareTo(pause_result other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        return 0;
      }
  
      public _Fields fieldForId(int fieldId) {
        return _Fields.findByThriftId(fieldId);
      }
  
      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
        schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
      }
  
      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
        schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
        }
  
      @Override
      public String toString() {
        StringBuilder sb = new StringBuilder("pause_result(");
        boolean first = true;
  
        sb.append(")");
        return sb.toString();
      }
  
      public void validate() throws org.apache.thrift.TException {
        // check for required fields
        // check for sub-struct validity
      }
  
      private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
        try {
          write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
        try {
          read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private static class pause_resultStandardSchemeFactory implements SchemeFactory {
        public pause_resultStandardScheme getScheme() {
          return new pause_resultStandardScheme();
        }
      }
  
      private static class pause_resultStandardScheme extends StandardScheme<pause_result> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, pause_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) {
              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 write(org.apache.thrift.protocol.TProtocol oprot, pause_result struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class pause_resultTupleSchemeFactory implements SchemeFactory {
        public pause_resultTupleScheme getScheme() {
          return new pause_resultTupleScheme();
        }
      }
  
      private static class pause_resultTupleScheme extends TupleScheme<pause_result> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, pause_result struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, pause_result struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
        }
      }
  
    }
  
    public static class resume_args implements org.apache.thrift.TBase<resume_args, resume_args._Fields>, java.io.Serializable, Cloneable, Comparable<resume_args>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resume_args");
  
  
      private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
      static {
        schemes.put(StandardScheme.class, new resume_argsStandardSchemeFactory());
        schemes.put(TupleScheme.class, new resume_argsTupleSchemeFactory());
      }
  
  
      /** 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(resume_args.class, metaDataMap);
      }
  
      public resume_args() {
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public resume_args(resume_args other) {
      }
  
      public resume_args deepCopy() {
        return new resume_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 resume_args)
          return this.equals((resume_args)that);
        return false;
      }
  
      public boolean equals(resume_args that) {
        if (that == null)
          return false;
  
        return true;
      }
  
      @Override
      public int hashCode() {
        return 0;
      }
  
      @Override
      public int compareTo(resume_args other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        return 0;
      }
  
      public _Fields fieldForId(int fieldId) {
        return _Fields.findByThriftId(fieldId);
      }
  
      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
        schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
      }
  
      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
        schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }
  
      @Override
      public String toString() {
        StringBuilder sb = new StringBuilder("resume_args(");
        boolean first = true;
  
        sb.append(")");
        return sb.toString();
      }
  
      public void validate() throws org.apache.thrift.TException {
        // check for required fields
        // check for sub-struct validity
      }
  
      private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
        try {
          write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
        try {
          read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private static class resume_argsStandardSchemeFactory implements SchemeFactory {
        public resume_argsStandardScheme getScheme() {
          return new resume_argsStandardScheme();
        }
      }
  
      private static class resume_argsStandardScheme extends StandardScheme<resume_args> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, resume_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) {
              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 write(org.apache.thrift.protocol.TProtocol oprot, resume_args struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class resume_argsTupleSchemeFactory implements SchemeFactory {
        public resume_argsTupleScheme getScheme() {
          return new resume_argsTupleScheme();
        }
      }
  
      private static class resume_argsTupleScheme extends TupleScheme<resume_args> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, resume_args struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, resume_args struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
        }
      }
  
    }
  
    public static class resume_result implements org.apache.thrift.TBase<resume_result, resume_result._Fields>, java.io.Serializable, Cloneable, Comparable<resume_result>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resume_result");
  
  
      private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
      static {
        schemes.put(StandardScheme.class, new resume_resultStandardSchemeFactory());
        schemes.put(TupleScheme.class, new resume_resultTupleSchemeFactory());
      }
  
  
      /** 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(resume_result.class, metaDataMap);
      }
  
      public resume_result() {
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public resume_result(resume_result other) {
      }
  
      public resume_result deepCopy() {
        return new resume_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 resume_result)
          return this.equals((resume_result)that);
        return false;
      }
  
      public boolean equals(resume_result that) {
        if (that == null)
          return false;
  
        return true;
      }
  
      @Override
      public int hashCode() {
        return 0;
      }
  
      @Override
      public int compareTo(resume_result other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        return 0;
      }
  
      public _Fields fieldForId(int fieldId) {
        return _Fields.findByThriftId(fieldId);
      }
  
      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
        schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
      }
  
      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
        schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
        }
  
      @Override
      public String toString() {
        StringBuilder sb = new StringBuilder("resume_result(");
        boolean first = true;
  
        sb.append(")");
        return sb.toString();
      }
  
      public void validate() throws org.apache.thrift.TException {
        // check for required fields
        // check for sub-struct validity
      }
  
      private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
        try {
          write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
        try {
          read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private static class resume_resultStandardSchemeFactory implements SchemeFactory {
        public resume_resultStandardScheme getScheme() {
          return new resume_resultStandardScheme();
        }
      }
  
      private static class resume_resultStandardScheme extends StandardScheme<resume_result> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, resume_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) {
              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 write(org.apache.thrift.protocol.TProtocol oprot, resume_result struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class resume_resultTupleSchemeFactory implements SchemeFactory {
        public resume_resultTupleScheme getScheme() {
          return new resume_resultTupleScheme();
        }
      }
  
      private static class resume_resultTupleScheme extends TupleScheme<resume_result> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, resume_result struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, resume_result struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
        }
      }
  
    }
  
    public static class getLag_args implements org.apache.thrift.TBase<getLag_args, getLag_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLag_args>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLag_args");
  
  
      private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
      static {
        schemes.put(StandardScheme.class, new getLag_argsStandardSchemeFactory());
        schemes.put(TupleScheme.class, new getLag_argsTupleSchemeFactory());
      }
  
  
      /** 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(getLag_args.class, metaDataMap);
      }
  
      public getLag_args() {
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public getLag_args(getLag_args other) {
      }
  
      public getLag_args deepCopy() {
        return new getLag_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 getLag_args)
          return this.equals((getLag_args)that);
        return false;
      }
  
      public boolean equals(getLag_args that) {
        if (that == null)
          return false;
  
        return true;
      }
  
      @Override
      public int hashCode() {
        return 0;
      }
  
      @Override
      public int compareTo(getLag_args other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        return 0;
      }
  
      public _Fields fieldForId(int fieldId) {
        return _Fields.findByThriftId(fieldId);
      }
  
      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
        schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
      }
  
      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
        schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
      }
  
      @Override
      public String toString() {
        StringBuilder sb = new StringBuilder("getLag_args(");
        boolean first = true;
  
        sb.append(")");
        return sb.toString();
      }
  
      public void validate() throws org.apache.thrift.TException {
        // check for required fields
        // check for sub-struct validity
      }
  
      private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
        try {
          write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
        try {
          read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private static class getLag_argsStandardSchemeFactory implements SchemeFactory {
        public getLag_argsStandardScheme getScheme() {
          return new getLag_argsStandardScheme();
        }
      }
  
      private static class getLag_argsStandardScheme extends StandardScheme<getLag_args> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, getLag_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) {
              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 write(org.apache.thrift.protocol.TProtocol oprot, getLag_args struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class getLag_argsTupleSchemeFactory implements SchemeFactory {
        public getLag_argsTupleScheme getScheme() {
          return new getLag_argsTupleScheme();
        }
      }
  
      private static class getLag_argsTupleScheme extends TupleScheme<getLag_args> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, getLag_args struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, getLag_args struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
        }
      }
  
    }
  
    public static class getLag_result implements org.apache.thrift.TBase<getLag_result, getLag_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLag_result>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLag_result");
  
      private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
  
      private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
      static {
        schemes.put(StandardScheme.class, new getLag_resultStandardSchemeFactory());
        schemes.put(TupleScheme.class, new getLag_resultTupleSchemeFactory());
      }
  
      public long 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 byte __isset_bitfield = 0;
      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.I64)));
        metaDataMap = Collections.unmodifiableMap(tmpMap);
        org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLag_result.class, metaDataMap);
      }
  
      public getLag_result() {
      }
  
      public getLag_result(
        long success)
      {
        this();
        this.success = success;
        setSuccessIsSet(true);
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public getLag_result(getLag_result other) {
        __isset_bitfield = other.__isset_bitfield;
        this.success = other.success;
      }
  
      public getLag_result deepCopy() {
        return new getLag_result(this);
      }
  
      @Override
      public void clear() {
        setSuccessIsSet(false);
        this.success = 0;
      }
  
      public long getSuccess() {
        return this.success;
      }
  
      public getLag_result setSuccess(long success) {
        this.success = success;
        setSuccessIsSet(true);
        return this;
      }
  
      public void unsetSuccess() {
        __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
      }
  
      /** Returns true if field success is set (has been assigned a value) and false otherwise */
      public boolean isSetSuccess() {
        return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
      }
  
      public void setSuccessIsSet(boolean value) {
        __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
      }
  
      public void setFieldValue(_Fields field, Object value) {
        switch (field) {
        case SUCCESS:
          if (value == null) {
            unsetSuccess();
          } else {
            setSuccess((Long)value);
          }
          break;
  
        }
      }
  
      public Object getFieldValue(_Fields field) {
        switch (field) {
        case SUCCESS:
          return Long.valueOf(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 getLag_result)
          return this.equals((getLag_result)that);
        return false;
      }
  
      public boolean equals(getLag_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;
      }
  
      @Override
      public int compareTo(getLag_result other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (isSetSuccess()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.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 {
        schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
      }
  
      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
        schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
        }
  
      @Override
      public String toString() {
        StringBuilder sb = new StringBuilder("getLag_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
        // check for sub-struct validity
      }
  
      private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
        try {
          write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
        try {
          // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
          __isset_bitfield = 0;
          read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
        } catch (org.apache.thrift.TException te) {
          throw new java.io.IOException(te);
        }
      }
  
      private static class getLag_resultStandardSchemeFactory implements SchemeFactory {
        public getLag_resultStandardScheme getScheme() {
          return new getLag_resultStandardScheme();
        }
      }
  
      private static class getLag_resultStandardScheme extends StandardScheme<getLag_result> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, getLag_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 0: // SUCCESS
                if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
                  struct.success = iprot.readI64();
                  struct.setSuccessIsSet(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 write(org.apache.thrift.protocol.TProtocol oprot, getLag_result struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          if (struct.isSetSuccess()) {
            oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
            oprot.writeI64(struct.success);
            oprot.writeFieldEnd();
          }
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class getLag_resultTupleSchemeFactory implements SchemeFactory {
        public getLag_resultTupleScheme getScheme() {
          return new getLag_resultTupleScheme();
        }
      }
  
      private static class getLag_resultTupleScheme extends TupleScheme<getLag_result> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, getLag_result struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
          BitSet optionals = new BitSet();
          if (struct.isSetSuccess()) {
            optionals.set(0);
          }
          oprot.writeBitSet(optionals, 1);
          if (struct.isSetSuccess()) {
            oprot.writeI64(struct.success);
          }
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, getLag_result struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
          BitSet incoming = iprot.readBitSet(1);
          if (incoming.get(0)) {
            struct.success = iprot.readI64();
            struct.setSuccessIsSet(true);
          }
        }
      }
  
    }
  
  }
  