/* * Copyright 2013-2016 consulo.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package consulo.execution.testframework.thrift.runner; 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.AsyncFrameBuffer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.*; public class TestInterface { public interface Iface { public void runStarted() throws org.apache.thrift.TException; public void runFinished() throws org.apache.thrift.TException; public void suiteStarted(String name, String location) throws org.apache.thrift.TException; public void suiteTestCount(int count) throws org.apache.thrift.TException; public void suiteFinished(String name) throws org.apache.thrift.TException; public void testStarted(String name, String location) throws org.apache.thrift.TException; public void testFailed(String name, String message, String trace, boolean testError, String actual, String expected) throws org.apache.thrift.TException; public void testIgnored(String name, String comment, String trace) throws org.apache.thrift.TException; public void testOutput(String name, String text, boolean stdOut) throws org.apache.thrift.TException; public void testFinished(String name, long time) throws org.apache.thrift.TException; } public interface AsyncIface { public void runStarted(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void runFinished(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void suiteStarted(String name, String location, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void suiteTestCount(int count, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void suiteFinished(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void testStarted(String name, String location, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void testFailed(String name, String message, String trace, boolean testError, String actual, String expected, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void testIgnored(String name, String comment, String trace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void testOutput(String name, String text, boolean stdOut, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void testFinished(String name, long time, 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 void runStarted() throws org.apache.thrift.TException { send_runStarted(); recv_runStarted(); } public void send_runStarted() throws org.apache.thrift.TException { runStarted_args args = new runStarted_args(); sendBase("runStarted", args); } public void recv_runStarted() throws org.apache.thrift.TException { runStarted_result result = new runStarted_result(); receiveBase(result, "runStarted"); return; } public void runFinished() throws org.apache.thrift.TException { send_runFinished(); recv_runFinished(); } public void send_runFinished() throws org.apache.thrift.TException { runFinished_args args = new runFinished_args(); sendBase("runFinished", args); } public void recv_runFinished() throws org.apache.thrift.TException { runFinished_result result = new runFinished_result(); receiveBase(result, "runFinished"); return; } public void suiteStarted(String name, String location) throws org.apache.thrift.TException { send_suiteStarted(name, location); recv_suiteStarted(); } public void send_suiteStarted(String name, String location) throws org.apache.thrift.TException { suiteStarted_args args = new suiteStarted_args(); args.setName(name); args.setLocation(location); sendBase("suiteStarted", args); } public void recv_suiteStarted() throws org.apache.thrift.TException { suiteStarted_result result = new suiteStarted_result(); receiveBase(result, "suiteStarted"); return; } public void suiteTestCount(int count) throws org.apache.thrift.TException { send_suiteTestCount(count); recv_suiteTestCount(); } public void send_suiteTestCount(int count) throws org.apache.thrift.TException { suiteTestCount_args args = new suiteTestCount_args(); args.setCount(count); sendBase("suiteTestCount", args); } public void recv_suiteTestCount() throws org.apache.thrift.TException { suiteTestCount_result result = new suiteTestCount_result(); receiveBase(result, "suiteTestCount"); return; } public void suiteFinished(String name) throws org.apache.thrift.TException { send_suiteFinished(name); recv_suiteFinished(); } public void send_suiteFinished(String name) throws org.apache.thrift.TException { suiteFinished_args args = new suiteFinished_args(); args.setName(name); sendBase("suiteFinished", args); } public void recv_suiteFinished() throws org.apache.thrift.TException { suiteFinished_result result = new suiteFinished_result(); receiveBase(result, "suiteFinished"); return; } public void testStarted(String name, String location) throws org.apache.thrift.TException { send_testStarted(name, location); recv_testStarted(); } public void send_testStarted(String name, String location) throws org.apache.thrift.TException { testStarted_args args = new testStarted_args(); args.setName(name); args.setLocation(location); sendBase("testStarted", args); } public void recv_testStarted() throws org.apache.thrift.TException { testStarted_result result = new testStarted_result(); receiveBase(result, "testStarted"); return; } public void testFailed(String name, String message, String trace, boolean testError, String actual, String expected) throws org.apache.thrift.TException { send_testFailed(name, message, trace, testError, actual, expected); recv_testFailed(); } public void send_testFailed(String name, String message, String trace, boolean testError, String actual, String expected) throws org.apache.thrift.TException { testFailed_args args = new testFailed_args(); args.setName(name); args.setMessage(message); args.setTrace(trace); args.setTestError(testError); args.setActual(actual); args.setExpected(expected); sendBase("testFailed", args); } public void recv_testFailed() throws org.apache.thrift.TException { testFailed_result result = new testFailed_result(); receiveBase(result, "testFailed"); return; } public void testIgnored(String name, String comment, String trace) throws org.apache.thrift.TException { send_testIgnored(name, comment, trace); recv_testIgnored(); } public void send_testIgnored(String name, String comment, String trace) throws org.apache.thrift.TException { testIgnored_args args = new testIgnored_args(); args.setName(name); args.setComment(comment); args.setTrace(trace); sendBase("testIgnored", args); } public void recv_testIgnored() throws org.apache.thrift.TException { testIgnored_result result = new testIgnored_result(); receiveBase(result, "testIgnored"); return; } public void testOutput(String name, String text, boolean stdOut) throws org.apache.thrift.TException { send_testOutput(name, text, stdOut); recv_testOutput(); } public void send_testOutput(String name, String text, boolean stdOut) throws org.apache.thrift.TException { testOutput_args args = new testOutput_args(); args.setName(name); args.setText(text); args.setStdOut(stdOut); sendBase("testOutput", args); } public void recv_testOutput() throws org.apache.thrift.TException { testOutput_result result = new testOutput_result(); receiveBase(result, "testOutput"); return; } public void testFinished(String name, long time) throws org.apache.thrift.TException { send_testFinished(name, time); recv_testFinished(); } public void send_testFinished(String name, long time) throws org.apache.thrift.TException { testFinished_args args = new testFinished_args(); args.setName(name); args.setTime(time); sendBase("testFinished", args); } public void recv_testFinished() throws org.apache.thrift.TException { testFinished_result result = new testFinished_result(); receiveBase(result, "testFinished"); return; } } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> { private org.apache.thrift.async.TAsyncClientManager clientManager; private org.apache.thrift.protocol.TProtocolFactory protocolFactory; public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) { this.clientManager = clientManager; this.protocolFactory = protocolFactory; } public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) { return new AsyncClient(protocolFactory, clientManager, transport); } } public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) { super(protocolFactory, clientManager, transport); } public void runStarted(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); runStarted_call method_call = new runStarted_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class runStarted_call extends org.apache.thrift.async.TAsyncMethodCall { public runStarted_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("runStarted", org.apache.thrift.protocol.TMessageType.CALL, 0)); runStarted_args args = new runStarted_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_runStarted(); } } public void runFinished(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); runFinished_call method_call = new runFinished_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class runFinished_call extends org.apache.thrift.async.TAsyncMethodCall { public runFinished_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("runFinished", org.apache.thrift.protocol.TMessageType.CALL, 0)); runFinished_args args = new runFinished_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_runFinished(); } } public void suiteStarted(String name, String location, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); suiteStarted_call method_call = new suiteStarted_call(name, location, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class suiteStarted_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; private String location; public suiteStarted_call(String name, String location, 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.name = name; this.location = location; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("suiteStarted", org.apache.thrift.protocol.TMessageType.CALL, 0)); suiteStarted_args args = new suiteStarted_args(); args.setName(name); args.setLocation(location); 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_suiteStarted(); } } public void suiteTestCount(int count, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); suiteTestCount_call method_call = new suiteTestCount_call(count, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class suiteTestCount_call extends org.apache.thrift.async.TAsyncMethodCall { private int count; public suiteTestCount_call(int count, 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.count = count; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("suiteTestCount", org.apache.thrift.protocol.TMessageType.CALL, 0)); suiteTestCount_args args = new suiteTestCount_args(); args.setCount(count); 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_suiteTestCount(); } } public void suiteFinished(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); suiteFinished_call method_call = new suiteFinished_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class suiteFinished_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; public suiteFinished_call(String name, 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.name = name; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("suiteFinished", org.apache.thrift.protocol.TMessageType.CALL, 0)); suiteFinished_args args = new suiteFinished_args(); args.setName(name); 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_suiteFinished(); } } public void testStarted(String name, String location, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); testStarted_call method_call = new testStarted_call(name, location, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class testStarted_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; private String location; public testStarted_call(String name, String location, 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.name = name; this.location = location; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("testStarted", org.apache.thrift.protocol.TMessageType.CALL, 0)); testStarted_args args = new testStarted_args(); args.setName(name); args.setLocation(location); 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_testStarted(); } } public void testFailed(String name, String message, String trace, boolean testError, String actual, String expected, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); testFailed_call method_call = new testFailed_call(name, message, trace, testError, actual, expected, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class testFailed_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; private String message; private String trace; private boolean testError; private String actual; private String expected; public testFailed_call(String name, String message, String trace, boolean testError, String actual, String expected, 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.name = name; this.message = message; this.trace = trace; this.testError = testError; this.actual = actual; this.expected = expected; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("testFailed", org.apache.thrift.protocol.TMessageType.CALL, 0)); testFailed_args args = new testFailed_args(); args.setName(name); args.setMessage(message); args.setTrace(trace); args.setTestError(testError); args.setActual(actual); args.setExpected(expected); 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_testFailed(); } } public void testIgnored(String name, String comment, String trace, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); testIgnored_call method_call = new testIgnored_call(name, comment, trace, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class testIgnored_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; private String comment; private String trace; public testIgnored_call(String name, String comment, String trace, 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.name = name; this.comment = comment; this.trace = trace; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("testIgnored", org.apache.thrift.protocol.TMessageType.CALL, 0)); testIgnored_args args = new testIgnored_args(); args.setName(name); args.setComment(comment); args.setTrace(trace); 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_testIgnored(); } } public void testOutput(String name, String text, boolean stdOut, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); testOutput_call method_call = new testOutput_call(name, text, stdOut, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class testOutput_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; private String text; private boolean stdOut; public testOutput_call(String name, String text, boolean stdOut, 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.name = name; this.text = text; this.stdOut = stdOut; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("testOutput", org.apache.thrift.protocol.TMessageType.CALL, 0)); testOutput_args args = new testOutput_args(); args.setName(name); args.setText(text); args.setStdOut(stdOut); 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_testOutput(); } } public void testFinished(String name, long time, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); testFinished_call method_call = new testFinished_call(name, time, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class testFinished_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; private long time; public testFinished_call(String name, long time, 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.name = name; this.time = time; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("testFinished", org.apache.thrift.protocol.TMessageType.CALL, 0)); testFinished_args args = new testFinished_args(); args.setName(name); args.setTime(time); 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_testFinished(); } } } 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("runStarted", new runStarted()); processMap.put("runFinished", new runFinished()); processMap.put("suiteStarted", new suiteStarted()); processMap.put("suiteTestCount", new suiteTestCount()); processMap.put("suiteFinished", new suiteFinished()); processMap.put("testStarted", new testStarted()); processMap.put("testFailed", new testFailed()); processMap.put("testIgnored", new testIgnored()); processMap.put("testOutput", new testOutput()); processMap.put("testFinished", new testFinished()); return processMap; } public static class runStarted<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runStarted_args> { public runStarted() { super("runStarted"); } public runStarted_args getEmptyArgsInstance() { return new runStarted_args(); } protected boolean isOneway() { return false; } public runStarted_result getResult(I iface, runStarted_args args) throws org.apache.thrift.TException { runStarted_result result = new runStarted_result(); iface.runStarted(); return result; } } public static class runFinished<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runFinished_args> { public runFinished() { super("runFinished"); } public runFinished_args getEmptyArgsInstance() { return new runFinished_args(); } protected boolean isOneway() { return false; } public runFinished_result getResult(I iface, runFinished_args args) throws org.apache.thrift.TException { runFinished_result result = new runFinished_result(); iface.runFinished(); return result; } } public static class suiteStarted<I extends Iface> extends org.apache.thrift.ProcessFunction<I, suiteStarted_args> { public suiteStarted() { super("suiteStarted"); } public suiteStarted_args getEmptyArgsInstance() { return new suiteStarted_args(); } protected boolean isOneway() { return false; } public suiteStarted_result getResult(I iface, suiteStarted_args args) throws org.apache.thrift.TException { suiteStarted_result result = new suiteStarted_result(); iface.suiteStarted(args.name, args.location); return result; } } public static class suiteTestCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, suiteTestCount_args> { public suiteTestCount() { super("suiteTestCount"); } public suiteTestCount_args getEmptyArgsInstance() { return new suiteTestCount_args(); } protected boolean isOneway() { return false; } public suiteTestCount_result getResult(I iface, suiteTestCount_args args) throws org.apache.thrift.TException { suiteTestCount_result result = new suiteTestCount_result(); iface.suiteTestCount(args.count); return result; } } public static class suiteFinished<I extends Iface> extends org.apache.thrift.ProcessFunction<I, suiteFinished_args> { public suiteFinished() { super("suiteFinished"); } public suiteFinished_args getEmptyArgsInstance() { return new suiteFinished_args(); } protected boolean isOneway() { return false; } public suiteFinished_result getResult(I iface, suiteFinished_args args) throws org.apache.thrift.TException { suiteFinished_result result = new suiteFinished_result(); iface.suiteFinished(args.name); return result; } } public static class testStarted<I extends Iface> extends org.apache.thrift.ProcessFunction<I, testStarted_args> { public testStarted() { super("testStarted"); } public testStarted_args getEmptyArgsInstance() { return new testStarted_args(); } protected boolean isOneway() { return false; } public testStarted_result getResult(I iface, testStarted_args args) throws org.apache.thrift.TException { testStarted_result result = new testStarted_result(); iface.testStarted(args.name, args.location); return result; } } public static class testFailed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, testFailed_args> { public testFailed() { super("testFailed"); } public testFailed_args getEmptyArgsInstance() { return new testFailed_args(); } protected boolean isOneway() { return false; } public testFailed_result getResult(I iface, testFailed_args args) throws org.apache.thrift.TException { testFailed_result result = new testFailed_result(); iface.testFailed(args.name, args.message, args.trace, args.testError, args.actual, args.expected); return result; } } public static class testIgnored<I extends Iface> extends org.apache.thrift.ProcessFunction<I, testIgnored_args> { public testIgnored() { super("testIgnored"); } public testIgnored_args getEmptyArgsInstance() { return new testIgnored_args(); } protected boolean isOneway() { return false; } public testIgnored_result getResult(I iface, testIgnored_args args) throws org.apache.thrift.TException { testIgnored_result result = new testIgnored_result(); iface.testIgnored(args.name, args.comment, args.trace); return result; } } public static class testOutput<I extends Iface> extends org.apache.thrift.ProcessFunction<I, testOutput_args> { public testOutput() { super("testOutput"); } public testOutput_args getEmptyArgsInstance() { return new testOutput_args(); } protected boolean isOneway() { return false; } public testOutput_result getResult(I iface, testOutput_args args) throws org.apache.thrift.TException { testOutput_result result = new testOutput_result(); iface.testOutput(args.name, args.text, args.stdOut); return result; } } public static class testFinished<I extends Iface> extends org.apache.thrift.ProcessFunction<I, testFinished_args> { public testFinished() { super("testFinished"); } public testFinished_args getEmptyArgsInstance() { return new testFinished_args(); } protected boolean isOneway() { return false; } public testFinished_result getResult(I iface, testFinished_args args) throws org.apache.thrift.TException { testFinished_result result = new testFinished_result(); iface.testFinished(args.name, args.time); 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("runStarted", new runStarted()); processMap.put("runFinished", new runFinished()); processMap.put("suiteStarted", new suiteStarted()); processMap.put("suiteTestCount", new suiteTestCount()); processMap.put("suiteFinished", new suiteFinished()); processMap.put("testStarted", new testStarted()); processMap.put("testFailed", new testFailed()); processMap.put("testIgnored", new testIgnored()); processMap.put("testOutput", new testOutput()); processMap.put("testFinished", new testFinished()); return processMap; } public static class runStarted<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, runStarted_args, Void> { public runStarted() { super("runStarted"); } public runStarted_args getEmptyArgsInstance() { return new runStarted_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) { runStarted_result result = new runStarted_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; runStarted_result result = new runStarted_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, runStarted_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.runStarted(resultHandler); } } public static class runFinished<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, runFinished_args, Void> { public runFinished() { super("runFinished"); } public runFinished_args getEmptyArgsInstance() { return new runFinished_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) { runFinished_result result = new runFinished_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; runFinished_result result = new runFinished_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, runFinished_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.runFinished(resultHandler); } } public static class suiteStarted<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, suiteStarted_args, Void> { public suiteStarted() { super("suiteStarted"); } public suiteStarted_args getEmptyArgsInstance() { return new suiteStarted_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) { suiteStarted_result result = new suiteStarted_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; suiteStarted_result result = new suiteStarted_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, suiteStarted_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.suiteStarted(args.name, args.location,resultHandler); } } public static class suiteTestCount<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, suiteTestCount_args, Void> { public suiteTestCount() { super("suiteTestCount"); } public suiteTestCount_args getEmptyArgsInstance() { return new suiteTestCount_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) { suiteTestCount_result result = new suiteTestCount_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; suiteTestCount_result result = new suiteTestCount_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, suiteTestCount_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.suiteTestCount(args.count,resultHandler); } } public static class suiteFinished<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, suiteFinished_args, Void> { public suiteFinished() { super("suiteFinished"); } public suiteFinished_args getEmptyArgsInstance() { return new suiteFinished_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) { suiteFinished_result result = new suiteFinished_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; suiteFinished_result result = new suiteFinished_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, suiteFinished_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.suiteFinished(args.name,resultHandler); } } public static class testStarted<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, testStarted_args, Void> { public testStarted() { super("testStarted"); } public testStarted_args getEmptyArgsInstance() { return new testStarted_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) { testStarted_result result = new testStarted_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; testStarted_result result = new testStarted_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, testStarted_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.testStarted(args.name, args.location,resultHandler); } } public static class testFailed<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, testFailed_args, Void> { public testFailed() { super("testFailed"); } public testFailed_args getEmptyArgsInstance() { return new testFailed_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) { testFailed_result result = new testFailed_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; testFailed_result result = new testFailed_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, testFailed_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.testFailed(args.name, args.message, args.trace, args.testError, args.actual, args.expected,resultHandler); } } public static class testIgnored<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, testIgnored_args, Void> { public testIgnored() { super("testIgnored"); } public testIgnored_args getEmptyArgsInstance() { return new testIgnored_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) { testIgnored_result result = new testIgnored_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; testIgnored_result result = new testIgnored_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, testIgnored_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.testIgnored(args.name, args.comment, args.trace,resultHandler); } } public static class testOutput<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, testOutput_args, Void> { public testOutput() { super("testOutput"); } public testOutput_args getEmptyArgsInstance() { return new testOutput_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) { testOutput_result result = new testOutput_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; testOutput_result result = new testOutput_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, testOutput_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.testOutput(args.name, args.text, args.stdOut,resultHandler); } } public static class testFinished<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, testFinished_args, Void> { public testFinished() { super("testFinished"); } public testFinished_args getEmptyArgsInstance() { return new testFinished_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) { testFinished_result result = new testFinished_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; testFinished_result result = new testFinished_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, testFinished_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.testFinished(args.name, args.time,resultHandler); } } } public static class runStarted_args implements org.apache.thrift.TBase<runStarted_args, runStarted_args._Fields>, java.io.Serializable, Cloneable, Comparable<runStarted_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runStarted_args"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new runStarted_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new runStarted_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(runStarted_args.class, metaDataMap); } public runStarted_args() { } /** * Performs a deep copy on <i>other</i>. */ public runStarted_args(runStarted_args other) { } public runStarted_args deepCopy() { return new runStarted_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 runStarted_args) return this.equals((runStarted_args)that); return false; } public boolean equals(runStarted_args that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(runStarted_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("runStarted_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 runStarted_argsStandardSchemeFactory implements SchemeFactory { public runStarted_argsStandardScheme getScheme() { return new runStarted_argsStandardScheme(); } } private static class runStarted_argsStandardScheme extends StandardScheme<runStarted_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, runStarted_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, runStarted_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class runStarted_argsTupleSchemeFactory implements SchemeFactory { public runStarted_argsTupleScheme getScheme() { return new runStarted_argsTupleScheme(); } } private static class runStarted_argsTupleScheme extends TupleScheme<runStarted_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, runStarted_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, runStarted_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class runStarted_result implements org.apache.thrift.TBase<runStarted_result, runStarted_result._Fields>, java.io.Serializable, Cloneable, Comparable<runStarted_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runStarted_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new runStarted_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new runStarted_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(runStarted_result.class, metaDataMap); } public runStarted_result() { } /** * Performs a deep copy on <i>other</i>. */ public runStarted_result(runStarted_result other) { } public runStarted_result deepCopy() { return new runStarted_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 runStarted_result) return this.equals((runStarted_result)that); return false; } public boolean equals(runStarted_result that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(runStarted_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("runStarted_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 runStarted_resultStandardSchemeFactory implements SchemeFactory { public runStarted_resultStandardScheme getScheme() { return new runStarted_resultStandardScheme(); } } private static class runStarted_resultStandardScheme extends StandardScheme<runStarted_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, runStarted_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, runStarted_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class runStarted_resultTupleSchemeFactory implements SchemeFactory { public runStarted_resultTupleScheme getScheme() { return new runStarted_resultTupleScheme(); } } private static class runStarted_resultTupleScheme extends TupleScheme<runStarted_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, runStarted_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, runStarted_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class runFinished_args implements org.apache.thrift.TBase<runFinished_args, runFinished_args._Fields>, java.io.Serializable, Cloneable, Comparable<runFinished_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runFinished_args"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new runFinished_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new runFinished_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(runFinished_args.class, metaDataMap); } public runFinished_args() { } /** * Performs a deep copy on <i>other</i>. */ public runFinished_args(runFinished_args other) { } public runFinished_args deepCopy() { return new runFinished_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 runFinished_args) return this.equals((runFinished_args)that); return false; } public boolean equals(runFinished_args that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(runFinished_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("runFinished_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 runFinished_argsStandardSchemeFactory implements SchemeFactory { public runFinished_argsStandardScheme getScheme() { return new runFinished_argsStandardScheme(); } } private static class runFinished_argsStandardScheme extends StandardScheme<runFinished_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, runFinished_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, runFinished_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class runFinished_argsTupleSchemeFactory implements SchemeFactory { public runFinished_argsTupleScheme getScheme() { return new runFinished_argsTupleScheme(); } } private static class runFinished_argsTupleScheme extends TupleScheme<runFinished_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, runFinished_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, runFinished_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class runFinished_result implements org.apache.thrift.TBase<runFinished_result, runFinished_result._Fields>, java.io.Serializable, Cloneable, Comparable<runFinished_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runFinished_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new runFinished_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new runFinished_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(runFinished_result.class, metaDataMap); } public runFinished_result() { } /** * Performs a deep copy on <i>other</i>. */ public runFinished_result(runFinished_result other) { } public runFinished_result deepCopy() { return new runFinished_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 runFinished_result) return this.equals((runFinished_result)that); return false; } public boolean equals(runFinished_result that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(runFinished_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("runFinished_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 runFinished_resultStandardSchemeFactory implements SchemeFactory { public runFinished_resultStandardScheme getScheme() { return new runFinished_resultStandardScheme(); } } private static class runFinished_resultStandardScheme extends StandardScheme<runFinished_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, runFinished_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, runFinished_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class runFinished_resultTupleSchemeFactory implements SchemeFactory { public runFinished_resultTupleScheme getScheme() { return new runFinished_resultTupleScheme(); } } private static class runFinished_resultTupleScheme extends TupleScheme<runFinished_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, runFinished_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, runFinished_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class suiteStarted_args implements org.apache.thrift.TBase<suiteStarted_args, suiteStarted_args._Fields>, java.io.Serializable, Cloneable, Comparable<suiteStarted_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("suiteStarted_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("location", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new suiteStarted_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new suiteStarted_argsTupleSchemeFactory()); } public String name; // required public String location; // 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 { NAME((short)1, "name"), LOCATION((short)2, "location"); 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: // NAME return NAME; case 2: // LOCATION return LOCATION; 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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.LOCATION, new org.apache.thrift.meta_data.FieldMetaData("location", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(suiteStarted_args.class, metaDataMap); } public suiteStarted_args() { } public suiteStarted_args( String name, String location) { this(); this.name = name; this.location = location; } /** * Performs a deep copy on <i>other</i>. */ public suiteStarted_args(suiteStarted_args other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetLocation()) { this.location = other.location; } } public suiteStarted_args deepCopy() { return new suiteStarted_args(this); } @Override public void clear() { this.name = null; this.location = null; } public String getName() { return this.name; } public suiteStarted_args setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public String getLocation() { return this.location; } public suiteStarted_args setLocation(String location) { this.location = location; return this; } public void unsetLocation() { this.location = null; } /** Returns true if field location is set (has been assigned a value) and false otherwise */ public boolean isSetLocation() { return this.location != null; } public void setLocationIsSet(boolean value) { if (!value) { this.location = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; case LOCATION: if (value == null) { unsetLocation(); } else { setLocation((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); case LOCATION: return getLocation(); } 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 NAME: return isSetName(); case LOCATION: return isSetLocation(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof suiteStarted_args) return this.equals((suiteStarted_args)that); return false; } public boolean equals(suiteStarted_args that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } boolean this_present_location = true && this.isSetLocation(); boolean that_present_location = true && that.isSetLocation(); if (this_present_location || that_present_location) { if (!(this_present_location && that_present_location)) return false; if (!this.location.equals(that.location)) return false; } return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(suiteStarted_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetLocation()).compareTo(other.isSetLocation()); if (lastComparison != 0) { return lastComparison; } if (isSetLocation()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, other.location); 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("suiteStarted_args("); boolean first = true; sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } first = false; if (!first) sb.append(", "); sb.append("location:"); if (this.location == null) { sb.append("null"); } else { sb.append(this.location); } 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 suiteStarted_argsStandardSchemeFactory implements SchemeFactory { public suiteStarted_argsStandardScheme getScheme() { return new suiteStarted_argsStandardScheme(); } } private static class suiteStarted_argsStandardScheme extends StandardScheme<suiteStarted_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, suiteStarted_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: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // LOCATION if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.location = iprot.readString(); struct.setLocationIsSet(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, suiteStarted_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.location != null) { oprot.writeFieldBegin(LOCATION_FIELD_DESC); oprot.writeString(struct.location); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class suiteStarted_argsTupleSchemeFactory implements SchemeFactory { public suiteStarted_argsTupleScheme getScheme() { return new suiteStarted_argsTupleScheme(); } } private static class suiteStarted_argsTupleScheme extends TupleScheme<suiteStarted_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, suiteStarted_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetName()) { optionals.set(0); } if (struct.isSetLocation()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetName()) { oprot.writeString(struct.name); } if (struct.isSetLocation()) { oprot.writeString(struct.location); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, suiteStarted_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } if (incoming.get(1)) { struct.location = iprot.readString(); struct.setLocationIsSet(true); } } } } public static class suiteStarted_result implements org.apache.thrift.TBase<suiteStarted_result, suiteStarted_result._Fields>, java.io.Serializable, Cloneable, Comparable<suiteStarted_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("suiteStarted_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new suiteStarted_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new suiteStarted_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(suiteStarted_result.class, metaDataMap); } public suiteStarted_result() { } /** * Performs a deep copy on <i>other</i>. */ public suiteStarted_result(suiteStarted_result other) { } public suiteStarted_result deepCopy() { return new suiteStarted_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 suiteStarted_result) return this.equals((suiteStarted_result)that); return false; } public boolean equals(suiteStarted_result that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(suiteStarted_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("suiteStarted_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 suiteStarted_resultStandardSchemeFactory implements SchemeFactory { public suiteStarted_resultStandardScheme getScheme() { return new suiteStarted_resultStandardScheme(); } } private static class suiteStarted_resultStandardScheme extends StandardScheme<suiteStarted_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, suiteStarted_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, suiteStarted_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class suiteStarted_resultTupleSchemeFactory implements SchemeFactory { public suiteStarted_resultTupleScheme getScheme() { return new suiteStarted_resultTupleScheme(); } } private static class suiteStarted_resultTupleScheme extends TupleScheme<suiteStarted_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, suiteStarted_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, suiteStarted_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class suiteTestCount_args implements org.apache.thrift.TBase<suiteTestCount_args, suiteTestCount_args._Fields>, java.io.Serializable, Cloneable, Comparable<suiteTestCount_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("suiteTestCount_args"); private static final org.apache.thrift.protocol.TField COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("count", org.apache.thrift.protocol.TType.I32, (short)1); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new suiteTestCount_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new suiteTestCount_argsTupleSchemeFactory()); } public int count; // 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 { COUNT((short)1, "count"); 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: // COUNT return COUNT; 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 __COUNT_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.COUNT, new org.apache.thrift.meta_data.FieldMetaData("count", 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(suiteTestCount_args.class, metaDataMap); } public suiteTestCount_args() { } public suiteTestCount_args( int count) { this(); this.count = count; setCountIsSet(true); } /** * Performs a deep copy on <i>other</i>. */ public suiteTestCount_args(suiteTestCount_args other) { __isset_bitfield = other.__isset_bitfield; this.count = other.count; } public suiteTestCount_args deepCopy() { return new suiteTestCount_args(this); } @Override public void clear() { setCountIsSet(false); this.count = 0; } public int getCount() { return this.count; } public suiteTestCount_args setCount(int count) { this.count = count; setCountIsSet(true); return this; } public void unsetCount() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __COUNT_ISSET_ID); } /** Returns true if field count is set (has been assigned a value) and false otherwise */ public boolean isSetCount() { return EncodingUtils.testBit(__isset_bitfield, __COUNT_ISSET_ID); } public void setCountIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __COUNT_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { case COUNT: if (value == null) { unsetCount(); } else { setCount((Integer)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case COUNT: return Integer.valueOf(getCount()); } 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 COUNT: return isSetCount(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof suiteTestCount_args) return this.equals((suiteTestCount_args)that); return false; } public boolean equals(suiteTestCount_args that) { if (that == null) return false; boolean this_present_count = true; boolean that_present_count = true; if (this_present_count || that_present_count) { if (!(this_present_count && that_present_count)) return false; if (this.count != that.count) return false; } return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(suiteTestCount_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCount()).compareTo(other.isSetCount()); if (lastComparison != 0) { return lastComparison; } if (isSetCount()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.count, other.count); 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("suiteTestCount_args("); boolean first = true; sb.append("count:"); sb.append(this.count); 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 suiteTestCount_argsStandardSchemeFactory implements SchemeFactory { public suiteTestCount_argsStandardScheme getScheme() { return new suiteTestCount_argsStandardScheme(); } } private static class suiteTestCount_argsStandardScheme extends StandardScheme<suiteTestCount_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, suiteTestCount_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: // COUNT if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.count = iprot.readI32(); struct.setCountIsSet(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, suiteTestCount_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(COUNT_FIELD_DESC); oprot.writeI32(struct.count); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class suiteTestCount_argsTupleSchemeFactory implements SchemeFactory { public suiteTestCount_argsTupleScheme getScheme() { return new suiteTestCount_argsTupleScheme(); } } private static class suiteTestCount_argsTupleScheme extends TupleScheme<suiteTestCount_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, suiteTestCount_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCount()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetCount()) { oprot.writeI32(struct.count); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, suiteTestCount_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.count = iprot.readI32(); struct.setCountIsSet(true); } } } } public static class suiteTestCount_result implements org.apache.thrift.TBase<suiteTestCount_result, suiteTestCount_result._Fields>, java.io.Serializable, Cloneable, Comparable<suiteTestCount_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("suiteTestCount_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new suiteTestCount_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new suiteTestCount_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(suiteTestCount_result.class, metaDataMap); } public suiteTestCount_result() { } /** * Performs a deep copy on <i>other</i>. */ public suiteTestCount_result(suiteTestCount_result other) { } public suiteTestCount_result deepCopy() { return new suiteTestCount_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 suiteTestCount_result) return this.equals((suiteTestCount_result)that); return false; } public boolean equals(suiteTestCount_result that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(suiteTestCount_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("suiteTestCount_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 suiteTestCount_resultStandardSchemeFactory implements SchemeFactory { public suiteTestCount_resultStandardScheme getScheme() { return new suiteTestCount_resultStandardScheme(); } } private static class suiteTestCount_resultStandardScheme extends StandardScheme<suiteTestCount_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, suiteTestCount_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, suiteTestCount_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class suiteTestCount_resultTupleSchemeFactory implements SchemeFactory { public suiteTestCount_resultTupleScheme getScheme() { return new suiteTestCount_resultTupleScheme(); } } private static class suiteTestCount_resultTupleScheme extends TupleScheme<suiteTestCount_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, suiteTestCount_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, suiteTestCount_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class suiteFinished_args implements org.apache.thrift.TBase<suiteFinished_args, suiteFinished_args._Fields>, java.io.Serializable, Cloneable, Comparable<suiteFinished_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("suiteFinished_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new suiteFinished_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new suiteFinished_argsTupleSchemeFactory()); } public String name; // 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 { NAME((short)1, "name"); 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: // NAME return NAME; 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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(suiteFinished_args.class, metaDataMap); } public suiteFinished_args() { } public suiteFinished_args( String name) { this(); this.name = name; } /** * Performs a deep copy on <i>other</i>. */ public suiteFinished_args(suiteFinished_args other) { if (other.isSetName()) { this.name = other.name; } } public suiteFinished_args deepCopy() { return new suiteFinished_args(this); } @Override public void clear() { this.name = null; } public String getName() { return this.name; } public suiteFinished_args setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); } 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 NAME: return isSetName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof suiteFinished_args) return this.equals((suiteFinished_args)that); return false; } public boolean equals(suiteFinished_args that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(suiteFinished_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); 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("suiteFinished_args("); boolean first = true; sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } 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 suiteFinished_argsStandardSchemeFactory implements SchemeFactory { public suiteFinished_argsStandardScheme getScheme() { return new suiteFinished_argsStandardScheme(); } } private static class suiteFinished_argsStandardScheme extends StandardScheme<suiteFinished_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, suiteFinished_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: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(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, suiteFinished_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class suiteFinished_argsTupleSchemeFactory implements SchemeFactory { public suiteFinished_argsTupleScheme getScheme() { return new suiteFinished_argsTupleScheme(); } } private static class suiteFinished_argsTupleScheme extends TupleScheme<suiteFinished_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, suiteFinished_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetName()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetName()) { oprot.writeString(struct.name); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, suiteFinished_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } } } } public static class suiteFinished_result implements org.apache.thrift.TBase<suiteFinished_result, suiteFinished_result._Fields>, java.io.Serializable, Cloneable, Comparable<suiteFinished_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("suiteFinished_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new suiteFinished_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new suiteFinished_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(suiteFinished_result.class, metaDataMap); } public suiteFinished_result() { } /** * Performs a deep copy on <i>other</i>. */ public suiteFinished_result(suiteFinished_result other) { } public suiteFinished_result deepCopy() { return new suiteFinished_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 suiteFinished_result) return this.equals((suiteFinished_result)that); return false; } public boolean equals(suiteFinished_result that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(suiteFinished_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("suiteFinished_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 suiteFinished_resultStandardSchemeFactory implements SchemeFactory { public suiteFinished_resultStandardScheme getScheme() { return new suiteFinished_resultStandardScheme(); } } private static class suiteFinished_resultStandardScheme extends StandardScheme<suiteFinished_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, suiteFinished_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, suiteFinished_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class suiteFinished_resultTupleSchemeFactory implements SchemeFactory { public suiteFinished_resultTupleScheme getScheme() { return new suiteFinished_resultTupleScheme(); } } private static class suiteFinished_resultTupleScheme extends TupleScheme<suiteFinished_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, suiteFinished_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, suiteFinished_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class testStarted_args implements org.apache.thrift.TBase<testStarted_args, testStarted_args._Fields>, java.io.Serializable, Cloneable, Comparable<testStarted_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("testStarted_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("location", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new testStarted_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new testStarted_argsTupleSchemeFactory()); } public String name; // required public String location; // 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 { NAME((short)1, "name"), LOCATION((short)2, "location"); 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: // NAME return NAME; case 2: // LOCATION return LOCATION; 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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.LOCATION, new org.apache.thrift.meta_data.FieldMetaData("location", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(testStarted_args.class, metaDataMap); } public testStarted_args() { } public testStarted_args( String name, String location) { this(); this.name = name; this.location = location; } /** * Performs a deep copy on <i>other</i>. */ public testStarted_args(testStarted_args other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetLocation()) { this.location = other.location; } } public testStarted_args deepCopy() { return new testStarted_args(this); } @Override public void clear() { this.name = null; this.location = null; } public String getName() { return this.name; } public testStarted_args setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public String getLocation() { return this.location; } public testStarted_args setLocation(String location) { this.location = location; return this; } public void unsetLocation() { this.location = null; } /** Returns true if field location is set (has been assigned a value) and false otherwise */ public boolean isSetLocation() { return this.location != null; } public void setLocationIsSet(boolean value) { if (!value) { this.location = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; case LOCATION: if (value == null) { unsetLocation(); } else { setLocation((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); case LOCATION: return getLocation(); } 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 NAME: return isSetName(); case LOCATION: return isSetLocation(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof testStarted_args) return this.equals((testStarted_args)that); return false; } public boolean equals(testStarted_args that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } boolean this_present_location = true && this.isSetLocation(); boolean that_present_location = true && that.isSetLocation(); if (this_present_location || that_present_location) { if (!(this_present_location && that_present_location)) return false; if (!this.location.equals(that.location)) return false; } return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(testStarted_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetLocation()).compareTo(other.isSetLocation()); if (lastComparison != 0) { return lastComparison; } if (isSetLocation()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, other.location); 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("testStarted_args("); boolean first = true; sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } first = false; if (!first) sb.append(", "); sb.append("location:"); if (this.location == null) { sb.append("null"); } else { sb.append(this.location); } 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 testStarted_argsStandardSchemeFactory implements SchemeFactory { public testStarted_argsStandardScheme getScheme() { return new testStarted_argsStandardScheme(); } } private static class testStarted_argsStandardScheme extends StandardScheme<testStarted_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, testStarted_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: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // LOCATION if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.location = iprot.readString(); struct.setLocationIsSet(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, testStarted_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.location != null) { oprot.writeFieldBegin(LOCATION_FIELD_DESC); oprot.writeString(struct.location); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class testStarted_argsTupleSchemeFactory implements SchemeFactory { public testStarted_argsTupleScheme getScheme() { return new testStarted_argsTupleScheme(); } } private static class testStarted_argsTupleScheme extends TupleScheme<testStarted_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, testStarted_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetName()) { optionals.set(0); } if (struct.isSetLocation()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetName()) { oprot.writeString(struct.name); } if (struct.isSetLocation()) { oprot.writeString(struct.location); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, testStarted_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } if (incoming.get(1)) { struct.location = iprot.readString(); struct.setLocationIsSet(true); } } } } public static class testStarted_result implements org.apache.thrift.TBase<testStarted_result, testStarted_result._Fields>, java.io.Serializable, Cloneable, Comparable<testStarted_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("testStarted_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new testStarted_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new testStarted_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(testStarted_result.class, metaDataMap); } public testStarted_result() { } /** * Performs a deep copy on <i>other</i>. */ public testStarted_result(testStarted_result other) { } public testStarted_result deepCopy() { return new testStarted_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 testStarted_result) return this.equals((testStarted_result)that); return false; } public boolean equals(testStarted_result that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(testStarted_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("testStarted_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 testStarted_resultStandardSchemeFactory implements SchemeFactory { public testStarted_resultStandardScheme getScheme() { return new testStarted_resultStandardScheme(); } } private static class testStarted_resultStandardScheme extends StandardScheme<testStarted_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, testStarted_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, testStarted_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class testStarted_resultTupleSchemeFactory implements SchemeFactory { public testStarted_resultTupleScheme getScheme() { return new testStarted_resultTupleScheme(); } } private static class testStarted_resultTupleScheme extends TupleScheme<testStarted_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, testStarted_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, testStarted_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class testFailed_args implements org.apache.thrift.TBase<testFailed_args, testFailed_args._Fields>, java.io.Serializable, Cloneable, Comparable<testFailed_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("testFailed_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TRACE_FIELD_DESC = new org.apache.thrift.protocol.TField("trace", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField TEST_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("testError", org.apache.thrift.protocol.TType.BOOL, (short)4); private static final org.apache.thrift.protocol.TField ACTUAL_FIELD_DESC = new org.apache.thrift.protocol.TField("actual", org.apache.thrift.protocol.TType.STRING, (short)5); private static final org.apache.thrift.protocol.TField EXPECTED_FIELD_DESC = new org.apache.thrift.protocol.TField("expected", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new testFailed_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new testFailed_argsTupleSchemeFactory()); } public String name; // required public String message; // required public String trace; // required public boolean testError; // required public String actual; // required public String expected; // 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 { NAME((short)1, "name"), MESSAGE((short)2, "message"), TRACE((short)3, "trace"), TEST_ERROR((short)4, "testError"), ACTUAL((short)5, "actual"), EXPECTED((short)6, "expected"); 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: // NAME return NAME; case 2: // MESSAGE return MESSAGE; case 3: // TRACE return TRACE; case 4: // TEST_ERROR return TEST_ERROR; case 5: // ACTUAL return ACTUAL; case 6: // EXPECTED return EXPECTED; 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 __TESTERROR_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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TRACE, new org.apache.thrift.meta_data.FieldMetaData("trace", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TEST_ERROR, new org.apache.thrift.meta_data.FieldMetaData("testError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.ACTUAL, new org.apache.thrift.meta_data.FieldMetaData("actual", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.EXPECTED, new org.apache.thrift.meta_data.FieldMetaData("expected", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(testFailed_args.class, metaDataMap); } public testFailed_args() { } public testFailed_args( String name, String message, String trace, boolean testError, String actual, String expected) { this(); this.name = name; this.message = message; this.trace = trace; this.testError = testError; setTestErrorIsSet(true); this.actual = actual; this.expected = expected; } /** * Performs a deep copy on <i>other</i>. */ public testFailed_args(testFailed_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } if (other.isSetMessage()) { this.message = other.message; } if (other.isSetTrace()) { this.trace = other.trace; } this.testError = other.testError; if (other.isSetActual()) { this.actual = other.actual; } if (other.isSetExpected()) { this.expected = other.expected; } } public testFailed_args deepCopy() { return new testFailed_args(this); } @Override public void clear() { this.name = null; this.message = null; this.trace = null; setTestErrorIsSet(false); this.testError = false; this.actual = null; this.expected = null; } public String getName() { return this.name; } public testFailed_args setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public String getMessage() { return this.message; } public testFailed_args setMessage(String message) { this.message = message; return this; } public void unsetMessage() { this.message = null; } /** Returns true if field message is set (has been assigned a value) and false otherwise */ public boolean isSetMessage() { return this.message != null; } public void setMessageIsSet(boolean value) { if (!value) { this.message = null; } } public String getTrace() { return this.trace; } public testFailed_args setTrace(String trace) { this.trace = trace; return this; } public void unsetTrace() { this.trace = null; } /** Returns true if field trace is set (has been assigned a value) and false otherwise */ public boolean isSetTrace() { return this.trace != null; } public void setTraceIsSet(boolean value) { if (!value) { this.trace = null; } } public boolean isTestError() { return this.testError; } public testFailed_args setTestError(boolean testError) { this.testError = testError; setTestErrorIsSet(true); return this; } public void unsetTestError() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TESTERROR_ISSET_ID); } /** Returns true if field testError is set (has been assigned a value) and false otherwise */ public boolean isSetTestError() { return EncodingUtils.testBit(__isset_bitfield, __TESTERROR_ISSET_ID); } public void setTestErrorIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TESTERROR_ISSET_ID, value); } public String getActual() { return this.actual; } public testFailed_args setActual(String actual) { this.actual = actual; return this; } public void unsetActual() { this.actual = null; } /** Returns true if field actual is set (has been assigned a value) and false otherwise */ public boolean isSetActual() { return this.actual != null; } public void setActualIsSet(boolean value) { if (!value) { this.actual = null; } } public String getExpected() { return this.expected; } public testFailed_args setExpected(String expected) { this.expected = expected; return this; } public void unsetExpected() { this.expected = null; } /** Returns true if field expected is set (has been assigned a value) and false otherwise */ public boolean isSetExpected() { return this.expected != null; } public void setExpectedIsSet(boolean value) { if (!value) { this.expected = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; case MESSAGE: if (value == null) { unsetMessage(); } else { setMessage((String)value); } break; case TRACE: if (value == null) { unsetTrace(); } else { setTrace((String)value); } break; case TEST_ERROR: if (value == null) { unsetTestError(); } else { setTestError((Boolean)value); } break; case ACTUAL: if (value == null) { unsetActual(); } else { setActual((String)value); } break; case EXPECTED: if (value == null) { unsetExpected(); } else { setExpected((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); case MESSAGE: return getMessage(); case TRACE: return getTrace(); case TEST_ERROR: return Boolean.valueOf(isTestError()); case ACTUAL: return getActual(); case EXPECTED: return getExpected(); } 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 NAME: return isSetName(); case MESSAGE: return isSetMessage(); case TRACE: return isSetTrace(); case TEST_ERROR: return isSetTestError(); case ACTUAL: return isSetActual(); case EXPECTED: return isSetExpected(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof testFailed_args) return this.equals((testFailed_args)that); return false; } public boolean equals(testFailed_args that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } boolean this_present_message = true && this.isSetMessage(); boolean that_present_message = true && that.isSetMessage(); if (this_present_message || that_present_message) { if (!(this_present_message && that_present_message)) return false; if (!this.message.equals(that.message)) return false; } boolean this_present_trace = true && this.isSetTrace(); boolean that_present_trace = true && that.isSetTrace(); if (this_present_trace || that_present_trace) { if (!(this_present_trace && that_present_trace)) return false; if (!this.trace.equals(that.trace)) return false; } boolean this_present_testError = true; boolean that_present_testError = true; if (this_present_testError || that_present_testError) { if (!(this_present_testError && that_present_testError)) return false; if (this.testError != that.testError) return false; } boolean this_present_actual = true && this.isSetActual(); boolean that_present_actual = true && that.isSetActual(); if (this_present_actual || that_present_actual) { if (!(this_present_actual && that_present_actual)) return false; if (!this.actual.equals(that.actual)) return false; } boolean this_present_expected = true && this.isSetExpected(); boolean that_present_expected = true && that.isSetExpected(); if (this_present_expected || that_present_expected) { if (!(this_present_expected && that_present_expected)) return false; if (!this.expected.equals(that.expected)) return false; } return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(testFailed_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTrace()).compareTo(other.isSetTrace()); if (lastComparison != 0) { return lastComparison; } if (isSetTrace()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.trace, other.trace); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTestError()).compareTo(other.isSetTestError()); if (lastComparison != 0) { return lastComparison; } if (isSetTestError()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.testError, other.testError); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetActual()).compareTo(other.isSetActual()); if (lastComparison != 0) { return lastComparison; } if (isSetActual()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.actual, other.actual); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetExpected()).compareTo(other.isSetExpected()); if (lastComparison != 0) { return lastComparison; } if (isSetExpected()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expected, other.expected); 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("testFailed_args("); boolean first = true; sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } first = false; if (!first) sb.append(", "); sb.append("message:"); if (this.message == null) { sb.append("null"); } else { sb.append(this.message); } first = false; if (!first) sb.append(", "); sb.append("trace:"); if (this.trace == null) { sb.append("null"); } else { sb.append(this.trace); } first = false; if (!first) sb.append(", "); sb.append("testError:"); sb.append(this.testError); first = false; if (!first) sb.append(", "); sb.append("actual:"); if (this.actual == null) { sb.append("null"); } else { sb.append(this.actual); } first = false; if (!first) sb.append(", "); sb.append("expected:"); if (this.expected == null) { sb.append("null"); } else { sb.append(this.expected); } 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 testFailed_argsStandardSchemeFactory implements SchemeFactory { public testFailed_argsStandardScheme getScheme() { return new testFailed_argsStandardScheme(); } } private static class testFailed_argsStandardScheme extends StandardScheme<testFailed_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, testFailed_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: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // MESSAGE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.message = iprot.readString(); struct.setMessageIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRACE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.trace = iprot.readString(); struct.setTraceIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TEST_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.testError = iprot.readBool(); struct.setTestErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // ACTUAL if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.actual = iprot.readString(); struct.setActualIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // EXPECTED if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.expected = iprot.readString(); struct.setExpectedIsSet(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, testFailed_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.message != null) { oprot.writeFieldBegin(MESSAGE_FIELD_DESC); oprot.writeString(struct.message); oprot.writeFieldEnd(); } if (struct.trace != null) { oprot.writeFieldBegin(TRACE_FIELD_DESC); oprot.writeString(struct.trace); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TEST_ERROR_FIELD_DESC); oprot.writeBool(struct.testError); oprot.writeFieldEnd(); if (struct.actual != null) { oprot.writeFieldBegin(ACTUAL_FIELD_DESC); oprot.writeString(struct.actual); oprot.writeFieldEnd(); } if (struct.expected != null) { oprot.writeFieldBegin(EXPECTED_FIELD_DESC); oprot.writeString(struct.expected); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class testFailed_argsTupleSchemeFactory implements SchemeFactory { public testFailed_argsTupleScheme getScheme() { return new testFailed_argsTupleScheme(); } } private static class testFailed_argsTupleScheme extends TupleScheme<testFailed_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, testFailed_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetName()) { optionals.set(0); } if (struct.isSetMessage()) { optionals.set(1); } if (struct.isSetTrace()) { optionals.set(2); } if (struct.isSetTestError()) { optionals.set(3); } if (struct.isSetActual()) { optionals.set(4); } if (struct.isSetExpected()) { optionals.set(5); } oprot.writeBitSet(optionals, 6); if (struct.isSetName()) { oprot.writeString(struct.name); } if (struct.isSetMessage()) { oprot.writeString(struct.message); } if (struct.isSetTrace()) { oprot.writeString(struct.trace); } if (struct.isSetTestError()) { oprot.writeBool(struct.testError); } if (struct.isSetActual()) { oprot.writeString(struct.actual); } if (struct.isSetExpected()) { oprot.writeString(struct.expected); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, testFailed_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } if (incoming.get(1)) { struct.message = iprot.readString(); struct.setMessageIsSet(true); } if (incoming.get(2)) { struct.trace = iprot.readString(); struct.setTraceIsSet(true); } if (incoming.get(3)) { struct.testError = iprot.readBool(); struct.setTestErrorIsSet(true); } if (incoming.get(4)) { struct.actual = iprot.readString(); struct.setActualIsSet(true); } if (incoming.get(5)) { struct.expected = iprot.readString(); struct.setExpectedIsSet(true); } } } } public static class testFailed_result implements org.apache.thrift.TBase<testFailed_result, testFailed_result._Fields>, java.io.Serializable, Cloneable, Comparable<testFailed_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("testFailed_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new testFailed_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new testFailed_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(testFailed_result.class, metaDataMap); } public testFailed_result() { } /** * Performs a deep copy on <i>other</i>. */ public testFailed_result(testFailed_result other) { } public testFailed_result deepCopy() { return new testFailed_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 testFailed_result) return this.equals((testFailed_result)that); return false; } public boolean equals(testFailed_result that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(testFailed_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("testFailed_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 testFailed_resultStandardSchemeFactory implements SchemeFactory { public testFailed_resultStandardScheme getScheme() { return new testFailed_resultStandardScheme(); } } private static class testFailed_resultStandardScheme extends StandardScheme<testFailed_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, testFailed_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, testFailed_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class testFailed_resultTupleSchemeFactory implements SchemeFactory { public testFailed_resultTupleScheme getScheme() { return new testFailed_resultTupleScheme(); } } private static class testFailed_resultTupleScheme extends TupleScheme<testFailed_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, testFailed_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, testFailed_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class testIgnored_args implements org.apache.thrift.TBase<testIgnored_args, testIgnored_args._Fields>, java.io.Serializable, Cloneable, Comparable<testIgnored_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("testIgnored_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField COMMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("comment", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField TRACE_FIELD_DESC = new org.apache.thrift.protocol.TField("trace", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new testIgnored_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new testIgnored_argsTupleSchemeFactory()); } public String name; // required public String comment; // required public String trace; // 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 { NAME((short)1, "name"), COMMENT((short)2, "comment"), TRACE((short)3, "trace"); 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: // NAME return NAME; case 2: // COMMENT return COMMENT; case 3: // TRACE return TRACE; 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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.COMMENT, new org.apache.thrift.meta_data.FieldMetaData("comment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TRACE, new org.apache.thrift.meta_data.FieldMetaData("trace", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(testIgnored_args.class, metaDataMap); } public testIgnored_args() { } public testIgnored_args( String name, String comment, String trace) { this(); this.name = name; this.comment = comment; this.trace = trace; } /** * Performs a deep copy on <i>other</i>. */ public testIgnored_args(testIgnored_args other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetComment()) { this.comment = other.comment; } if (other.isSetTrace()) { this.trace = other.trace; } } public testIgnored_args deepCopy() { return new testIgnored_args(this); } @Override public void clear() { this.name = null; this.comment = null; this.trace = null; } public String getName() { return this.name; } public testIgnored_args setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public String getComment() { return this.comment; } public testIgnored_args setComment(String comment) { this.comment = comment; return this; } public void unsetComment() { this.comment = null; } /** Returns true if field comment is set (has been assigned a value) and false otherwise */ public boolean isSetComment() { return this.comment != null; } public void setCommentIsSet(boolean value) { if (!value) { this.comment = null; } } public String getTrace() { return this.trace; } public testIgnored_args setTrace(String trace) { this.trace = trace; return this; } public void unsetTrace() { this.trace = null; } /** Returns true if field trace is set (has been assigned a value) and false otherwise */ public boolean isSetTrace() { return this.trace != null; } public void setTraceIsSet(boolean value) { if (!value) { this.trace = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; case COMMENT: if (value == null) { unsetComment(); } else { setComment((String)value); } break; case TRACE: if (value == null) { unsetTrace(); } else { setTrace((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); case COMMENT: return getComment(); case TRACE: return getTrace(); } 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 NAME: return isSetName(); case COMMENT: return isSetComment(); case TRACE: return isSetTrace(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof testIgnored_args) return this.equals((testIgnored_args)that); return false; } public boolean equals(testIgnored_args that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } boolean this_present_comment = true && this.isSetComment(); boolean that_present_comment = true && that.isSetComment(); if (this_present_comment || that_present_comment) { if (!(this_present_comment && that_present_comment)) return false; if (!this.comment.equals(that.comment)) return false; } boolean this_present_trace = true && this.isSetTrace(); boolean that_present_trace = true && that.isSetTrace(); if (this_present_trace || that_present_trace) { if (!(this_present_trace && that_present_trace)) return false; if (!this.trace.equals(that.trace)) return false; } return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(testIgnored_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetComment()).compareTo(other.isSetComment()); if (lastComparison != 0) { return lastComparison; } if (isSetComment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, other.comment); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTrace()).compareTo(other.isSetTrace()); if (lastComparison != 0) { return lastComparison; } if (isSetTrace()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.trace, other.trace); 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("testIgnored_args("); boolean first = true; sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } first = false; if (!first) sb.append(", "); sb.append("comment:"); if (this.comment == null) { sb.append("null"); } else { sb.append(this.comment); } first = false; if (!first) sb.append(", "); sb.append("trace:"); if (this.trace == null) { sb.append("null"); } else { sb.append(this.trace); } 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 testIgnored_argsStandardSchemeFactory implements SchemeFactory { public testIgnored_argsStandardScheme getScheme() { return new testIgnored_argsStandardScheme(); } } private static class testIgnored_argsStandardScheme extends StandardScheme<testIgnored_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, testIgnored_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: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // COMMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.comment = iprot.readString(); struct.setCommentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TRACE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.trace = iprot.readString(); struct.setTraceIsSet(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, testIgnored_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.comment != null) { oprot.writeFieldBegin(COMMENT_FIELD_DESC); oprot.writeString(struct.comment); oprot.writeFieldEnd(); } if (struct.trace != null) { oprot.writeFieldBegin(TRACE_FIELD_DESC); oprot.writeString(struct.trace); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class testIgnored_argsTupleSchemeFactory implements SchemeFactory { public testIgnored_argsTupleScheme getScheme() { return new testIgnored_argsTupleScheme(); } } private static class testIgnored_argsTupleScheme extends TupleScheme<testIgnored_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, testIgnored_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetName()) { optionals.set(0); } if (struct.isSetComment()) { optionals.set(1); } if (struct.isSetTrace()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetName()) { oprot.writeString(struct.name); } if (struct.isSetComment()) { oprot.writeString(struct.comment); } if (struct.isSetTrace()) { oprot.writeString(struct.trace); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, testIgnored_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } if (incoming.get(1)) { struct.comment = iprot.readString(); struct.setCommentIsSet(true); } if (incoming.get(2)) { struct.trace = iprot.readString(); struct.setTraceIsSet(true); } } } } public static class testIgnored_result implements org.apache.thrift.TBase<testIgnored_result, testIgnored_result._Fields>, java.io.Serializable, Cloneable, Comparable<testIgnored_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("testIgnored_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new testIgnored_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new testIgnored_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(testIgnored_result.class, metaDataMap); } public testIgnored_result() { } /** * Performs a deep copy on <i>other</i>. */ public testIgnored_result(testIgnored_result other) { } public testIgnored_result deepCopy() { return new testIgnored_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 testIgnored_result) return this.equals((testIgnored_result)that); return false; } public boolean equals(testIgnored_result that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(testIgnored_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("testIgnored_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 testIgnored_resultStandardSchemeFactory implements SchemeFactory { public testIgnored_resultStandardScheme getScheme() { return new testIgnored_resultStandardScheme(); } } private static class testIgnored_resultStandardScheme extends StandardScheme<testIgnored_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, testIgnored_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, testIgnored_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class testIgnored_resultTupleSchemeFactory implements SchemeFactory { public testIgnored_resultTupleScheme getScheme() { return new testIgnored_resultTupleScheme(); } } private static class testIgnored_resultTupleScheme extends TupleScheme<testIgnored_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, testIgnored_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, testIgnored_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class testOutput_args implements org.apache.thrift.TBase<testOutput_args, testOutput_args._Fields>, java.io.Serializable, Cloneable, Comparable<testOutput_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("testOutput_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("text", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField STD_OUT_FIELD_DESC = new org.apache.thrift.protocol.TField("stdOut", org.apache.thrift.protocol.TType.BOOL, (short)3); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new testOutput_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new testOutput_argsTupleSchemeFactory()); } public String name; // required public String text; // required public boolean stdOut; // 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 { NAME((short)1, "name"), TEXT((short)2, "text"), STD_OUT((short)3, "stdOut"); 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: // NAME return NAME; case 2: // TEXT return TEXT; case 3: // STD_OUT return STD_OUT; 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 __STDOUT_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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.STD_OUT, new org.apache.thrift.meta_data.FieldMetaData("stdOut", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(testOutput_args.class, metaDataMap); } public testOutput_args() { } public testOutput_args( String name, String text, boolean stdOut) { this(); this.name = name; this.text = text; this.stdOut = stdOut; setStdOutIsSet(true); } /** * Performs a deep copy on <i>other</i>. */ public testOutput_args(testOutput_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } if (other.isSetText()) { this.text = other.text; } this.stdOut = other.stdOut; } public testOutput_args deepCopy() { return new testOutput_args(this); } @Override public void clear() { this.name = null; this.text = null; setStdOutIsSet(false); this.stdOut = false; } public String getName() { return this.name; } public testOutput_args setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public String getText() { return this.text; } public testOutput_args setText(String text) { this.text = text; return this; } public void unsetText() { this.text = null; } /** Returns true if field text is set (has been assigned a value) and false otherwise */ public boolean isSetText() { return this.text != null; } public void setTextIsSet(boolean value) { if (!value) { this.text = null; } } public boolean isStdOut() { return this.stdOut; } public testOutput_args setStdOut(boolean stdOut) { this.stdOut = stdOut; setStdOutIsSet(true); return this; } public void unsetStdOut() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STDOUT_ISSET_ID); } /** Returns true if field stdOut is set (has been assigned a value) and false otherwise */ public boolean isSetStdOut() { return EncodingUtils.testBit(__isset_bitfield, __STDOUT_ISSET_ID); } public void setStdOutIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STDOUT_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; case TEXT: if (value == null) { unsetText(); } else { setText((String)value); } break; case STD_OUT: if (value == null) { unsetStdOut(); } else { setStdOut((Boolean)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); case TEXT: return getText(); case STD_OUT: return Boolean.valueOf(isStdOut()); } 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 NAME: return isSetName(); case TEXT: return isSetText(); case STD_OUT: return isSetStdOut(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof testOutput_args) return this.equals((testOutput_args)that); return false; } public boolean equals(testOutput_args that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } boolean this_present_text = true && this.isSetText(); boolean that_present_text = true && that.isSetText(); if (this_present_text || that_present_text) { if (!(this_present_text && that_present_text)) return false; if (!this.text.equals(that.text)) return false; } boolean this_present_stdOut = true; boolean that_present_stdOut = true; if (this_present_stdOut || that_present_stdOut) { if (!(this_present_stdOut && that_present_stdOut)) return false; if (this.stdOut != that.stdOut) return false; } return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(testOutput_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetText()).compareTo(other.isSetText()); if (lastComparison != 0) { return lastComparison; } if (isSetText()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, other.text); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStdOut()).compareTo(other.isSetStdOut()); if (lastComparison != 0) { return lastComparison; } if (isSetStdOut()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stdOut, other.stdOut); 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("testOutput_args("); boolean first = true; sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } first = false; if (!first) sb.append(", "); sb.append("text:"); if (this.text == null) { sb.append("null"); } else { sb.append(this.text); } first = false; if (!first) sb.append(", "); sb.append("stdOut:"); sb.append(this.stdOut); 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 testOutput_argsStandardSchemeFactory implements SchemeFactory { public testOutput_argsStandardScheme getScheme() { return new testOutput_argsStandardScheme(); } } private static class testOutput_argsStandardScheme extends StandardScheme<testOutput_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, testOutput_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: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TEXT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.text = iprot.readString(); struct.setTextIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // STD_OUT if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.stdOut = iprot.readBool(); struct.setStdOutIsSet(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, testOutput_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.text != null) { oprot.writeFieldBegin(TEXT_FIELD_DESC); oprot.writeString(struct.text); oprot.writeFieldEnd(); } oprot.writeFieldBegin(STD_OUT_FIELD_DESC); oprot.writeBool(struct.stdOut); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class testOutput_argsTupleSchemeFactory implements SchemeFactory { public testOutput_argsTupleScheme getScheme() { return new testOutput_argsTupleScheme(); } } private static class testOutput_argsTupleScheme extends TupleScheme<testOutput_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, testOutput_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetName()) { optionals.set(0); } if (struct.isSetText()) { optionals.set(1); } if (struct.isSetStdOut()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetName()) { oprot.writeString(struct.name); } if (struct.isSetText()) { oprot.writeString(struct.text); } if (struct.isSetStdOut()) { oprot.writeBool(struct.stdOut); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, testOutput_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } if (incoming.get(1)) { struct.text = iprot.readString(); struct.setTextIsSet(true); } if (incoming.get(2)) { struct.stdOut = iprot.readBool(); struct.setStdOutIsSet(true); } } } } public static class testOutput_result implements org.apache.thrift.TBase<testOutput_result, testOutput_result._Fields>, java.io.Serializable, Cloneable, Comparable<testOutput_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("testOutput_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new testOutput_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new testOutput_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(testOutput_result.class, metaDataMap); } public testOutput_result() { } /** * Performs a deep copy on <i>other</i>. */ public testOutput_result(testOutput_result other) { } public testOutput_result deepCopy() { return new testOutput_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 testOutput_result) return this.equals((testOutput_result)that); return false; } public boolean equals(testOutput_result that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(testOutput_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("testOutput_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 testOutput_resultStandardSchemeFactory implements SchemeFactory { public testOutput_resultStandardScheme getScheme() { return new testOutput_resultStandardScheme(); } } private static class testOutput_resultStandardScheme extends StandardScheme<testOutput_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, testOutput_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, testOutput_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class testOutput_resultTupleSchemeFactory implements SchemeFactory { public testOutput_resultTupleScheme getScheme() { return new testOutput_resultTupleScheme(); } } private static class testOutput_resultTupleScheme extends TupleScheme<testOutput_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, testOutput_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, testOutput_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class testFinished_args implements org.apache.thrift.TBase<testFinished_args, testFinished_args._Fields>, java.io.Serializable, Cloneable, Comparable<testFinished_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("testFinished_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("time", org.apache.thrift.protocol.TType.I64, (short)2); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new testFinished_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new testFinished_argsTupleSchemeFactory()); } public String name; // required public long time; // 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 { NAME((short)1, "name"), TIME((short)2, "time"); 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: // NAME return NAME; case 2: // TIME return TIME; 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 __TIME_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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIME, new org.apache.thrift.meta_data.FieldMetaData("time", 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(testFinished_args.class, metaDataMap); } public testFinished_args() { } public testFinished_args( String name, long time) { this(); this.name = name; this.time = time; setTimeIsSet(true); } /** * Performs a deep copy on <i>other</i>. */ public testFinished_args(testFinished_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } this.time = other.time; } public testFinished_args deepCopy() { return new testFinished_args(this); } @Override public void clear() { this.name = null; setTimeIsSet(false); this.time = 0; } public String getName() { return this.name; } public testFinished_args setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public long getTime() { return this.time; } public testFinished_args setTime(long time) { this.time = time; setTimeIsSet(true); return this; } public void unsetTime() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIME_ISSET_ID); } /** Returns true if field time is set (has been assigned a value) and false otherwise */ public boolean isSetTime() { return EncodingUtils.testBit(__isset_bitfield, __TIME_ISSET_ID); } public void setTimeIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIME_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; case TIME: if (value == null) { unsetTime(); } else { setTime((Long)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); case TIME: return Long.valueOf(getTime()); } 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 NAME: return isSetName(); case TIME: return isSetTime(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof testFinished_args) return this.equals((testFinished_args)that); return false; } public boolean equals(testFinished_args that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } boolean this_present_time = true; boolean that_present_time = true; if (this_present_time || that_present_time) { if (!(this_present_time && that_present_time)) return false; if (this.time != that.time) return false; } return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(testFinished_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTime()).compareTo(other.isSetTime()); if (lastComparison != 0) { return lastComparison; } if (isSetTime()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.time, other.time); 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("testFinished_args("); boolean first = true; sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } first = false; if (!first) sb.append(", "); sb.append("time:"); sb.append(this.time); 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 testFinished_argsStandardSchemeFactory implements SchemeFactory { public testFinished_argsStandardScheme getScheme() { return new testFinished_argsStandardScheme(); } } private static class testFinished_argsStandardScheme extends StandardScheme<testFinished_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, testFinished_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: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // TIME if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.time = iprot.readI64(); struct.setTimeIsSet(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, testFinished_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIME_FIELD_DESC); oprot.writeI64(struct.time); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class testFinished_argsTupleSchemeFactory implements SchemeFactory { public testFinished_argsTupleScheme getScheme() { return new testFinished_argsTupleScheme(); } } private static class testFinished_argsTupleScheme extends TupleScheme<testFinished_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, testFinished_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetName()) { optionals.set(0); } if (struct.isSetTime()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetName()) { oprot.writeString(struct.name); } if (struct.isSetTime()) { oprot.writeI64(struct.time); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, testFinished_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } if (incoming.get(1)) { struct.time = iprot.readI64(); struct.setTimeIsSet(true); } } } } public static class testFinished_result implements org.apache.thrift.TBase<testFinished_result, testFinished_result._Fields>, java.io.Serializable, Cloneable, Comparable<testFinished_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("testFinished_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new testFinished_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new testFinished_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(testFinished_result.class, metaDataMap); } public testFinished_result() { } /** * Performs a deep copy on <i>other</i>. */ public testFinished_result(testFinished_result other) { } public testFinished_result deepCopy() { return new testFinished_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 testFinished_result) return this.equals((testFinished_result)that); return false; } public boolean equals(testFinished_result that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } @Override public int compareTo(testFinished_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("testFinished_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 testFinished_resultStandardSchemeFactory implements SchemeFactory { public testFinished_resultStandardScheme getScheme() { return new testFinished_resultStandardScheme(); } } private static class testFinished_resultStandardScheme extends StandardScheme<testFinished_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, testFinished_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, testFinished_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class testFinished_resultTupleSchemeFactory implements SchemeFactory { public testFinished_resultTupleScheme getScheme() { return new testFinished_resultTupleScheme(); } } private static class testFinished_resultTupleScheme extends TupleScheme<testFinished_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, testFinished_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, testFinished_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } }