/** * Autogenerated by Thrift Compiler (0.7.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ package org.apache.hadoop.corona; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.util.HashMap; import java.util.EnumMap; import java.util.Set; import java.util.HashSet; import java.util.EnumSet; import java.util.Collections; import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class ClusterManagerService { /** * Cluster Manager Service API. */ public interface Iface { public PoolInfoStrings getActualPoolInfo(ActualPoolInfoArgs a) throws InvalidPoolInfo, SafeModeException, org.apache.thrift.TException; public ActualPoolInfoResponse getActualPoolInfoV2(ActualPoolInfoArgs a) throws InvalidPoolInfo, SafeModeException, org.apache.thrift.TException; public String getNextSessionId() throws SafeModeException, org.apache.thrift.TException; public SessionRegistrationData sessionStart(String handle, SessionInfo info) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException; public void sessionUpdateInfo(String handle, SessionInfo info) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException; public void sessionEnd(String handle, SessionStatus status) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException; public void sessionHeartbeat(String handle) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException; public void sessionHeartbeatV2(String handle, HeartbeatArgs heartbeatArgs) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException; public void requestResource(String handle, List<ResourceRequest> requestList) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException; public void releaseResource(String handle, List<Integer> idList) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException; public NodeHeartbeatResponse nodeHeartbeat(ClusterNodeInfo node) throws DisallowedNode, SafeModeException, org.apache.thrift.TException; public void nodeFeedback(String handle, List<ResourceType> resourceTypes, List<NodeUsageReport> stats) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException; public void refreshNodes() throws SafeModeException, org.apache.thrift.TException; public RestartNodesResponse restartNodes(RestartNodesArgs restartNodesArgs) throws SafeModeException, org.apache.thrift.TException; public List<RunningSession> getSessions() throws SafeModeException, org.apache.thrift.TException; public SessionInfo getSessionInfo(String handle) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException; public void killSession(String sessionId) throws SafeModeException, org.apache.thrift.TException; public void killSessions(KillSessionsArgs killSessionsArgs) throws SafeModeException, org.apache.thrift.TException; public boolean setSafeMode(boolean safeMode) throws org.apache.thrift.TException; public boolean persistState() throws org.apache.thrift.TException; } public interface AsyncIface { public void getActualPoolInfo(ActualPoolInfoArgs a, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActualPoolInfo_call> resultHandler) throws org.apache.thrift.TException; public void getActualPoolInfoV2(ActualPoolInfoArgs a, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActualPoolInfoV2_call> resultHandler) throws org.apache.thrift.TException; public void getNextSessionId(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNextSessionId_call> resultHandler) throws org.apache.thrift.TException; public void sessionStart(String handle, SessionInfo info, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sessionStart_call> resultHandler) throws org.apache.thrift.TException; public void sessionUpdateInfo(String handle, SessionInfo info, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sessionUpdateInfo_call> resultHandler) throws org.apache.thrift.TException; public void sessionEnd(String handle, SessionStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sessionEnd_call> resultHandler) throws org.apache.thrift.TException; public void sessionHeartbeat(String handle, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sessionHeartbeat_call> resultHandler) throws org.apache.thrift.TException; public void sessionHeartbeatV2(String handle, HeartbeatArgs heartbeatArgs, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sessionHeartbeatV2_call> resultHandler) throws org.apache.thrift.TException; public void requestResource(String handle, List<ResourceRequest> requestList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.requestResource_call> resultHandler) throws org.apache.thrift.TException; public void releaseResource(String handle, List<Integer> idList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.releaseResource_call> resultHandler) throws org.apache.thrift.TException; public void nodeHeartbeat(ClusterNodeInfo node, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.nodeHeartbeat_call> resultHandler) throws org.apache.thrift.TException; public void nodeFeedback(String handle, List<ResourceType> resourceTypes, List<NodeUsageReport> stats, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.nodeFeedback_call> resultHandler) throws org.apache.thrift.TException; public void refreshNodes(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refreshNodes_call> resultHandler) throws org.apache.thrift.TException; public void restartNodes(RestartNodesArgs restartNodesArgs, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.restartNodes_call> resultHandler) throws org.apache.thrift.TException; public void getSessions(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSessions_call> resultHandler) throws org.apache.thrift.TException; public void getSessionInfo(String handle, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSessionInfo_call> resultHandler) throws org.apache.thrift.TException; public void killSession(String sessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.killSession_call> resultHandler) throws org.apache.thrift.TException; public void killSessions(KillSessionsArgs killSessionsArgs, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.killSessions_call> resultHandler) throws org.apache.thrift.TException; public void setSafeMode(boolean safeMode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setSafeMode_call> resultHandler) throws org.apache.thrift.TException; public void persistState(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.persistState_call> resultHandler) throws org.apache.thrift.TException; } public static class Client extends org.apache.thrift.TServiceClient implements Iface { public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> { public Factory() {} public Client getClient(org.apache.thrift.protocol.TProtocol prot) { return new Client(prot); } public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { return new Client(iprot, oprot); } } public Client(org.apache.thrift.protocol.TProtocol prot) { super(prot, prot); } public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { super(iprot, oprot); } public PoolInfoStrings getActualPoolInfo(ActualPoolInfoArgs a) throws InvalidPoolInfo, SafeModeException, org.apache.thrift.TException { send_getActualPoolInfo(a); return recv_getActualPoolInfo(); } public void send_getActualPoolInfo(ActualPoolInfoArgs a) throws org.apache.thrift.TException { getActualPoolInfo_args args = new getActualPoolInfo_args(); args.setA(a); sendBase("getActualPoolInfo", args); } public PoolInfoStrings recv_getActualPoolInfo() throws InvalidPoolInfo, SafeModeException, org.apache.thrift.TException { getActualPoolInfo_result result = new getActualPoolInfo_result(); receiveBase(result, "getActualPoolInfo"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } if (result.f != null) { throw result.f; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActualPoolInfo failed: unknown result"); } public ActualPoolInfoResponse getActualPoolInfoV2(ActualPoolInfoArgs a) throws InvalidPoolInfo, SafeModeException, org.apache.thrift.TException { send_getActualPoolInfoV2(a); return recv_getActualPoolInfoV2(); } public void send_getActualPoolInfoV2(ActualPoolInfoArgs a) throws org.apache.thrift.TException { getActualPoolInfoV2_args args = new getActualPoolInfoV2_args(); args.setA(a); sendBase("getActualPoolInfoV2", args); } public ActualPoolInfoResponse recv_getActualPoolInfoV2() throws InvalidPoolInfo, SafeModeException, org.apache.thrift.TException { getActualPoolInfoV2_result result = new getActualPoolInfoV2_result(); receiveBase(result, "getActualPoolInfoV2"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } if (result.f != null) { throw result.f; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActualPoolInfoV2 failed: unknown result"); } public String getNextSessionId() throws SafeModeException, org.apache.thrift.TException { send_getNextSessionId(); return recv_getNextSessionId(); } public void send_getNextSessionId() throws org.apache.thrift.TException { getNextSessionId_args args = new getNextSessionId_args(); sendBase("getNextSessionId", args); } public String recv_getNextSessionId() throws SafeModeException, org.apache.thrift.TException { getNextSessionId_result result = new getNextSessionId_result(); receiveBase(result, "getNextSessionId"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNextSessionId failed: unknown result"); } public SessionRegistrationData sessionStart(String handle, SessionInfo info) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { send_sessionStart(handle, info); return recv_sessionStart(); } public void send_sessionStart(String handle, SessionInfo info) throws org.apache.thrift.TException { sessionStart_args args = new sessionStart_args(); args.setHandle(handle); args.setInfo(info); sendBase("sessionStart", args); } public SessionRegistrationData recv_sessionStart() throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { sessionStart_result result = new sessionStart_result(); receiveBase(result, "sessionStart"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } if (result.f != null) { throw result.f; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sessionStart failed: unknown result"); } public void sessionUpdateInfo(String handle, SessionInfo info) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { send_sessionUpdateInfo(handle, info); recv_sessionUpdateInfo(); } public void send_sessionUpdateInfo(String handle, SessionInfo info) throws org.apache.thrift.TException { sessionUpdateInfo_args args = new sessionUpdateInfo_args(); args.setHandle(handle); args.setInfo(info); sendBase("sessionUpdateInfo", args); } public void recv_sessionUpdateInfo() throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { sessionUpdateInfo_result result = new sessionUpdateInfo_result(); receiveBase(result, "sessionUpdateInfo"); if (result.e != null) { throw result.e; } if (result.f != null) { throw result.f; } return; } public void sessionEnd(String handle, SessionStatus status) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { send_sessionEnd(handle, status); recv_sessionEnd(); } public void send_sessionEnd(String handle, SessionStatus status) throws org.apache.thrift.TException { sessionEnd_args args = new sessionEnd_args(); args.setHandle(handle); args.setStatus(status); sendBase("sessionEnd", args); } public void recv_sessionEnd() throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { sessionEnd_result result = new sessionEnd_result(); receiveBase(result, "sessionEnd"); if (result.e != null) { throw result.e; } if (result.f != null) { throw result.f; } return; } public void sessionHeartbeat(String handle) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { send_sessionHeartbeat(handle); recv_sessionHeartbeat(); } public void send_sessionHeartbeat(String handle) throws org.apache.thrift.TException { sessionHeartbeat_args args = new sessionHeartbeat_args(); args.setHandle(handle); sendBase("sessionHeartbeat", args); } public void recv_sessionHeartbeat() throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { sessionHeartbeat_result result = new sessionHeartbeat_result(); receiveBase(result, "sessionHeartbeat"); if (result.e != null) { throw result.e; } if (result.f != null) { throw result.f; } return; } public void sessionHeartbeatV2(String handle, HeartbeatArgs heartbeatArgs) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { send_sessionHeartbeatV2(handle, heartbeatArgs); recv_sessionHeartbeatV2(); } public void send_sessionHeartbeatV2(String handle, HeartbeatArgs heartbeatArgs) throws org.apache.thrift.TException { sessionHeartbeatV2_args args = new sessionHeartbeatV2_args(); args.setHandle(handle); args.setHeartbeatArgs(heartbeatArgs); sendBase("sessionHeartbeatV2", args); } public void recv_sessionHeartbeatV2() throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { sessionHeartbeatV2_result result = new sessionHeartbeatV2_result(); receiveBase(result, "sessionHeartbeatV2"); if (result.e != null) { throw result.e; } if (result.f != null) { throw result.f; } return; } public void requestResource(String handle, List<ResourceRequest> requestList) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { send_requestResource(handle, requestList); recv_requestResource(); } public void send_requestResource(String handle, List<ResourceRequest> requestList) throws org.apache.thrift.TException { requestResource_args args = new requestResource_args(); args.setHandle(handle); args.setRequestList(requestList); sendBase("requestResource", args); } public void recv_requestResource() throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { requestResource_result result = new requestResource_result(); receiveBase(result, "requestResource"); if (result.e != null) { throw result.e; } if (result.f != null) { throw result.f; } return; } public void releaseResource(String handle, List<Integer> idList) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { send_releaseResource(handle, idList); recv_releaseResource(); } public void send_releaseResource(String handle, List<Integer> idList) throws org.apache.thrift.TException { releaseResource_args args = new releaseResource_args(); args.setHandle(handle); args.setIdList(idList); sendBase("releaseResource", args); } public void recv_releaseResource() throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { releaseResource_result result = new releaseResource_result(); receiveBase(result, "releaseResource"); if (result.e != null) { throw result.e; } if (result.f != null) { throw result.f; } return; } public NodeHeartbeatResponse nodeHeartbeat(ClusterNodeInfo node) throws DisallowedNode, SafeModeException, org.apache.thrift.TException { send_nodeHeartbeat(node); return recv_nodeHeartbeat(); } public void send_nodeHeartbeat(ClusterNodeInfo node) throws org.apache.thrift.TException { nodeHeartbeat_args args = new nodeHeartbeat_args(); args.setNode(node); sendBase("nodeHeartbeat", args); } public NodeHeartbeatResponse recv_nodeHeartbeat() throws DisallowedNode, SafeModeException, org.apache.thrift.TException { nodeHeartbeat_result result = new nodeHeartbeat_result(); receiveBase(result, "nodeHeartbeat"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } if (result.f != null) { throw result.f; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "nodeHeartbeat failed: unknown result"); } public void nodeFeedback(String handle, List<ResourceType> resourceTypes, List<NodeUsageReport> stats) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { send_nodeFeedback(handle, resourceTypes, stats); recv_nodeFeedback(); } public void send_nodeFeedback(String handle, List<ResourceType> resourceTypes, List<NodeUsageReport> stats) throws org.apache.thrift.TException { nodeFeedback_args args = new nodeFeedback_args(); args.setHandle(handle); args.setResourceTypes(resourceTypes); args.setStats(stats); sendBase("nodeFeedback", args); } public void recv_nodeFeedback() throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { nodeFeedback_result result = new nodeFeedback_result(); receiveBase(result, "nodeFeedback"); if (result.e != null) { throw result.e; } if (result.f != null) { throw result.f; } return; } public void refreshNodes() throws SafeModeException, org.apache.thrift.TException { send_refreshNodes(); recv_refreshNodes(); } public void send_refreshNodes() throws org.apache.thrift.TException { refreshNodes_args args = new refreshNodes_args(); sendBase("refreshNodes", args); } public void recv_refreshNodes() throws SafeModeException, org.apache.thrift.TException { refreshNodes_result result = new refreshNodes_result(); receiveBase(result, "refreshNodes"); if (result.e != null) { throw result.e; } return; } public RestartNodesResponse restartNodes(RestartNodesArgs restartNodesArgs) throws SafeModeException, org.apache.thrift.TException { send_restartNodes(restartNodesArgs); return recv_restartNodes(); } public void send_restartNodes(RestartNodesArgs restartNodesArgs) throws org.apache.thrift.TException { restartNodes_args args = new restartNodes_args(); args.setRestartNodesArgs(restartNodesArgs); sendBase("restartNodes", args); } public RestartNodesResponse recv_restartNodes() throws SafeModeException, org.apache.thrift.TException { restartNodes_result result = new restartNodes_result(); receiveBase(result, "restartNodes"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "restartNodes failed: unknown result"); } public List<RunningSession> getSessions() throws SafeModeException, org.apache.thrift.TException { send_getSessions(); return recv_getSessions(); } public void send_getSessions() throws org.apache.thrift.TException { getSessions_args args = new getSessions_args(); sendBase("getSessions", args); } public List<RunningSession> recv_getSessions() throws SafeModeException, org.apache.thrift.TException { getSessions_result result = new getSessions_result(); receiveBase(result, "getSessions"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSessions failed: unknown result"); } public SessionInfo getSessionInfo(String handle) throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { send_getSessionInfo(handle); return recv_getSessionInfo(); } public void send_getSessionInfo(String handle) throws org.apache.thrift.TException { getSessionInfo_args args = new getSessionInfo_args(); args.setHandle(handle); sendBase("getSessionInfo", args); } public SessionInfo recv_getSessionInfo() throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { getSessionInfo_result result = new getSessionInfo_result(); receiveBase(result, "getSessionInfo"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } if (result.f != null) { throw result.f; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSessionInfo failed: unknown result"); } public void killSession(String sessionId) throws SafeModeException, org.apache.thrift.TException { send_killSession(sessionId); recv_killSession(); } public void send_killSession(String sessionId) throws org.apache.thrift.TException { killSession_args args = new killSession_args(); args.setSessionId(sessionId); sendBase("killSession", args); } public void recv_killSession() throws SafeModeException, org.apache.thrift.TException { killSession_result result = new killSession_result(); receiveBase(result, "killSession"); if (result.e != null) { throw result.e; } return; } public void killSessions(KillSessionsArgs killSessionsArgs) throws SafeModeException, org.apache.thrift.TException { send_killSessions(killSessionsArgs); recv_killSessions(); } public void send_killSessions(KillSessionsArgs killSessionsArgs) throws org.apache.thrift.TException { killSessions_args args = new killSessions_args(); args.setKillSessionsArgs(killSessionsArgs); sendBase("killSessions", args); } public void recv_killSessions() throws SafeModeException, org.apache.thrift.TException { killSessions_result result = new killSessions_result(); receiveBase(result, "killSessions"); if (result.e != null) { throw result.e; } return; } public boolean setSafeMode(boolean safeMode) throws org.apache.thrift.TException { send_setSafeMode(safeMode); return recv_setSafeMode(); } public void send_setSafeMode(boolean safeMode) throws org.apache.thrift.TException { setSafeMode_args args = new setSafeMode_args(); args.setSafeMode(safeMode); sendBase("setSafeMode", args); } public boolean recv_setSafeMode() throws org.apache.thrift.TException { setSafeMode_result result = new setSafeMode_result(); receiveBase(result, "setSafeMode"); if (result.isSetSuccess()) { return result.success; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setSafeMode failed: unknown result"); } public boolean persistState() throws org.apache.thrift.TException { send_persistState(); return recv_persistState(); } public void send_persistState() throws org.apache.thrift.TException { persistState_args args = new persistState_args(); sendBase("persistState", args); } public boolean recv_persistState() throws org.apache.thrift.TException { persistState_result result = new persistState_result(); receiveBase(result, "persistState"); if (result.isSetSuccess()) { return result.success; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "persistState failed: unknown result"); } } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> { private org.apache.thrift.async.TAsyncClientManager clientManager; private org.apache.thrift.protocol.TProtocolFactory protocolFactory; public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) { this.clientManager = clientManager; this.protocolFactory = protocolFactory; } public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) { return new AsyncClient(protocolFactory, clientManager, transport); } } public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) { super(protocolFactory, clientManager, transport); } public void getActualPoolInfo(ActualPoolInfoArgs a, org.apache.thrift.async.AsyncMethodCallback<getActualPoolInfo_call> resultHandler) throws org.apache.thrift.TException { checkReady(); getActualPoolInfo_call method_call = new getActualPoolInfo_call(a, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getActualPoolInfo_call extends org.apache.thrift.async.TAsyncMethodCall { private ActualPoolInfoArgs a; public getActualPoolInfo_call(ActualPoolInfoArgs a, org.apache.thrift.async.AsyncMethodCallback<getActualPoolInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.a = a; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActualPoolInfo", org.apache.thrift.protocol.TMessageType.CALL, 0)); getActualPoolInfo_args args = new getActualPoolInfo_args(); args.setA(a); args.write(prot); prot.writeMessageEnd(); } public PoolInfoStrings getResult() throws InvalidPoolInfo, SafeModeException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getActualPoolInfo(); } } public void getActualPoolInfoV2(ActualPoolInfoArgs a, org.apache.thrift.async.AsyncMethodCallback<getActualPoolInfoV2_call> resultHandler) throws org.apache.thrift.TException { checkReady(); getActualPoolInfoV2_call method_call = new getActualPoolInfoV2_call(a, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getActualPoolInfoV2_call extends org.apache.thrift.async.TAsyncMethodCall { private ActualPoolInfoArgs a; public getActualPoolInfoV2_call(ActualPoolInfoArgs a, org.apache.thrift.async.AsyncMethodCallback<getActualPoolInfoV2_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.a = a; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActualPoolInfoV2", org.apache.thrift.protocol.TMessageType.CALL, 0)); getActualPoolInfoV2_args args = new getActualPoolInfoV2_args(); args.setA(a); args.write(prot); prot.writeMessageEnd(); } public ActualPoolInfoResponse getResult() throws InvalidPoolInfo, SafeModeException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getActualPoolInfoV2(); } } public void getNextSessionId(org.apache.thrift.async.AsyncMethodCallback<getNextSessionId_call> resultHandler) throws org.apache.thrift.TException { checkReady(); getNextSessionId_call method_call = new getNextSessionId_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getNextSessionId_call extends org.apache.thrift.async.TAsyncMethodCall { public getNextSessionId_call(org.apache.thrift.async.AsyncMethodCallback<getNextSessionId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNextSessionId", org.apache.thrift.protocol.TMessageType.CALL, 0)); getNextSessionId_args args = new getNextSessionId_args(); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws SafeModeException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getNextSessionId(); } } public void sessionStart(String handle, SessionInfo info, org.apache.thrift.async.AsyncMethodCallback<sessionStart_call> resultHandler) throws org.apache.thrift.TException { checkReady(); sessionStart_call method_call = new sessionStart_call(handle, info, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sessionStart_call extends org.apache.thrift.async.TAsyncMethodCall { private String handle; private SessionInfo info; public sessionStart_call(String handle, SessionInfo info, org.apache.thrift.async.AsyncMethodCallback<sessionStart_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.handle = handle; this.info = info; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sessionStart", org.apache.thrift.protocol.TMessageType.CALL, 0)); sessionStart_args args = new sessionStart_args(); args.setHandle(handle); args.setInfo(info); args.write(prot); prot.writeMessageEnd(); } public SessionRegistrationData getResult() throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_sessionStart(); } } public void sessionUpdateInfo(String handle, SessionInfo info, org.apache.thrift.async.AsyncMethodCallback<sessionUpdateInfo_call> resultHandler) throws org.apache.thrift.TException { checkReady(); sessionUpdateInfo_call method_call = new sessionUpdateInfo_call(handle, info, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sessionUpdateInfo_call extends org.apache.thrift.async.TAsyncMethodCall { private String handle; private SessionInfo info; public sessionUpdateInfo_call(String handle, SessionInfo info, org.apache.thrift.async.AsyncMethodCallback<sessionUpdateInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.handle = handle; this.info = info; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sessionUpdateInfo", org.apache.thrift.protocol.TMessageType.CALL, 0)); sessionUpdateInfo_args args = new sessionUpdateInfo_args(); args.setHandle(handle); args.setInfo(info); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws InvalidSessionHandle, SafeModeException, 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_sessionUpdateInfo(); } } public void sessionEnd(String handle, SessionStatus status, org.apache.thrift.async.AsyncMethodCallback<sessionEnd_call> resultHandler) throws org.apache.thrift.TException { checkReady(); sessionEnd_call method_call = new sessionEnd_call(handle, status, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sessionEnd_call extends org.apache.thrift.async.TAsyncMethodCall { private String handle; private SessionStatus status; public sessionEnd_call(String handle, SessionStatus status, org.apache.thrift.async.AsyncMethodCallback<sessionEnd_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.handle = handle; this.status = status; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sessionEnd", org.apache.thrift.protocol.TMessageType.CALL, 0)); sessionEnd_args args = new sessionEnd_args(); args.setHandle(handle); args.setStatus(status); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws InvalidSessionHandle, SafeModeException, 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_sessionEnd(); } } public void sessionHeartbeat(String handle, org.apache.thrift.async.AsyncMethodCallback<sessionHeartbeat_call> resultHandler) throws org.apache.thrift.TException { checkReady(); sessionHeartbeat_call method_call = new sessionHeartbeat_call(handle, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sessionHeartbeat_call extends org.apache.thrift.async.TAsyncMethodCall { private String handle; public sessionHeartbeat_call(String handle, org.apache.thrift.async.AsyncMethodCallback<sessionHeartbeat_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.handle = handle; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sessionHeartbeat", org.apache.thrift.protocol.TMessageType.CALL, 0)); sessionHeartbeat_args args = new sessionHeartbeat_args(); args.setHandle(handle); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws InvalidSessionHandle, SafeModeException, 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_sessionHeartbeat(); } } public void sessionHeartbeatV2(String handle, HeartbeatArgs heartbeatArgs, org.apache.thrift.async.AsyncMethodCallback<sessionHeartbeatV2_call> resultHandler) throws org.apache.thrift.TException { checkReady(); sessionHeartbeatV2_call method_call = new sessionHeartbeatV2_call(handle, heartbeatArgs, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class sessionHeartbeatV2_call extends org.apache.thrift.async.TAsyncMethodCall { private String handle; private HeartbeatArgs heartbeatArgs; public sessionHeartbeatV2_call(String handle, HeartbeatArgs heartbeatArgs, org.apache.thrift.async.AsyncMethodCallback<sessionHeartbeatV2_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.handle = handle; this.heartbeatArgs = heartbeatArgs; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sessionHeartbeatV2", org.apache.thrift.protocol.TMessageType.CALL, 0)); sessionHeartbeatV2_args args = new sessionHeartbeatV2_args(); args.setHandle(handle); args.setHeartbeatArgs(heartbeatArgs); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws InvalidSessionHandle, SafeModeException, 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_sessionHeartbeatV2(); } } public void requestResource(String handle, List<ResourceRequest> requestList, org.apache.thrift.async.AsyncMethodCallback<requestResource_call> resultHandler) throws org.apache.thrift.TException { checkReady(); requestResource_call method_call = new requestResource_call(handle, requestList, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class requestResource_call extends org.apache.thrift.async.TAsyncMethodCall { private String handle; private List<ResourceRequest> requestList; public requestResource_call(String handle, List<ResourceRequest> requestList, org.apache.thrift.async.AsyncMethodCallback<requestResource_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.handle = handle; this.requestList = requestList; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("requestResource", org.apache.thrift.protocol.TMessageType.CALL, 0)); requestResource_args args = new requestResource_args(); args.setHandle(handle); args.setRequestList(requestList); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws InvalidSessionHandle, SafeModeException, 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_requestResource(); } } public void releaseResource(String handle, List<Integer> idList, org.apache.thrift.async.AsyncMethodCallback<releaseResource_call> resultHandler) throws org.apache.thrift.TException { checkReady(); releaseResource_call method_call = new releaseResource_call(handle, idList, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class releaseResource_call extends org.apache.thrift.async.TAsyncMethodCall { private String handle; private List<Integer> idList; public releaseResource_call(String handle, List<Integer> idList, org.apache.thrift.async.AsyncMethodCallback<releaseResource_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.handle = handle; this.idList = idList; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("releaseResource", org.apache.thrift.protocol.TMessageType.CALL, 0)); releaseResource_args args = new releaseResource_args(); args.setHandle(handle); args.setIdList(idList); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws InvalidSessionHandle, SafeModeException, 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_releaseResource(); } } public void nodeHeartbeat(ClusterNodeInfo node, org.apache.thrift.async.AsyncMethodCallback<nodeHeartbeat_call> resultHandler) throws org.apache.thrift.TException { checkReady(); nodeHeartbeat_call method_call = new nodeHeartbeat_call(node, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class nodeHeartbeat_call extends org.apache.thrift.async.TAsyncMethodCall { private ClusterNodeInfo node; public nodeHeartbeat_call(ClusterNodeInfo node, org.apache.thrift.async.AsyncMethodCallback<nodeHeartbeat_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.node = node; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("nodeHeartbeat", org.apache.thrift.protocol.TMessageType.CALL, 0)); nodeHeartbeat_args args = new nodeHeartbeat_args(); args.setNode(node); args.write(prot); prot.writeMessageEnd(); } public NodeHeartbeatResponse getResult() throws DisallowedNode, SafeModeException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_nodeHeartbeat(); } } public void nodeFeedback(String handle, List<ResourceType> resourceTypes, List<NodeUsageReport> stats, org.apache.thrift.async.AsyncMethodCallback<nodeFeedback_call> resultHandler) throws org.apache.thrift.TException { checkReady(); nodeFeedback_call method_call = new nodeFeedback_call(handle, resourceTypes, stats, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class nodeFeedback_call extends org.apache.thrift.async.TAsyncMethodCall { private String handle; private List<ResourceType> resourceTypes; private List<NodeUsageReport> stats; public nodeFeedback_call(String handle, List<ResourceType> resourceTypes, List<NodeUsageReport> stats, org.apache.thrift.async.AsyncMethodCallback<nodeFeedback_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.handle = handle; this.resourceTypes = resourceTypes; this.stats = stats; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("nodeFeedback", org.apache.thrift.protocol.TMessageType.CALL, 0)); nodeFeedback_args args = new nodeFeedback_args(); args.setHandle(handle); args.setResourceTypes(resourceTypes); args.setStats(stats); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws InvalidSessionHandle, SafeModeException, 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_nodeFeedback(); } } public void refreshNodes(org.apache.thrift.async.AsyncMethodCallback<refreshNodes_call> resultHandler) throws org.apache.thrift.TException { checkReady(); refreshNodes_call method_call = new refreshNodes_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class refreshNodes_call extends org.apache.thrift.async.TAsyncMethodCall { public refreshNodes_call(org.apache.thrift.async.AsyncMethodCallback<refreshNodes_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("refreshNodes", org.apache.thrift.protocol.TMessageType.CALL, 0)); refreshNodes_args args = new refreshNodes_args(); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws SafeModeException, 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_refreshNodes(); } } public void restartNodes(RestartNodesArgs restartNodesArgs, org.apache.thrift.async.AsyncMethodCallback<restartNodes_call> resultHandler) throws org.apache.thrift.TException { checkReady(); restartNodes_call method_call = new restartNodes_call(restartNodesArgs, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class restartNodes_call extends org.apache.thrift.async.TAsyncMethodCall { private RestartNodesArgs restartNodesArgs; public restartNodes_call(RestartNodesArgs restartNodesArgs, org.apache.thrift.async.AsyncMethodCallback<restartNodes_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.restartNodesArgs = restartNodesArgs; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("restartNodes", org.apache.thrift.protocol.TMessageType.CALL, 0)); restartNodes_args args = new restartNodes_args(); args.setRestartNodesArgs(restartNodesArgs); args.write(prot); prot.writeMessageEnd(); } public RestartNodesResponse getResult() throws SafeModeException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_restartNodes(); } } public void getSessions(org.apache.thrift.async.AsyncMethodCallback<getSessions_call> resultHandler) throws org.apache.thrift.TException { checkReady(); getSessions_call method_call = new getSessions_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getSessions_call extends org.apache.thrift.async.TAsyncMethodCall { public getSessions_call(org.apache.thrift.async.AsyncMethodCallback<getSessions_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSessions", org.apache.thrift.protocol.TMessageType.CALL, 0)); getSessions_args args = new getSessions_args(); args.write(prot); prot.writeMessageEnd(); } public List<RunningSession> getResult() throws SafeModeException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getSessions(); } } public void getSessionInfo(String handle, org.apache.thrift.async.AsyncMethodCallback<getSessionInfo_call> resultHandler) throws org.apache.thrift.TException { checkReady(); getSessionInfo_call method_call = new getSessionInfo_call(handle, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getSessionInfo_call extends org.apache.thrift.async.TAsyncMethodCall { private String handle; public getSessionInfo_call(String handle, org.apache.thrift.async.AsyncMethodCallback<getSessionInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.handle = handle; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSessionInfo", org.apache.thrift.protocol.TMessageType.CALL, 0)); getSessionInfo_args args = new getSessionInfo_args(); args.setHandle(handle); args.write(prot); prot.writeMessageEnd(); } public SessionInfo getResult() throws InvalidSessionHandle, SafeModeException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getSessionInfo(); } } public void killSession(String sessionId, org.apache.thrift.async.AsyncMethodCallback<killSession_call> resultHandler) throws org.apache.thrift.TException { checkReady(); killSession_call method_call = new killSession_call(sessionId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class killSession_call extends org.apache.thrift.async.TAsyncMethodCall { private String sessionId; public killSession_call(String sessionId, org.apache.thrift.async.AsyncMethodCallback<killSession_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.sessionId = sessionId; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("killSession", org.apache.thrift.protocol.TMessageType.CALL, 0)); killSession_args args = new killSession_args(); args.setSessionId(sessionId); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws SafeModeException, 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_killSession(); } } public void killSessions(KillSessionsArgs killSessionsArgs, org.apache.thrift.async.AsyncMethodCallback<killSessions_call> resultHandler) throws org.apache.thrift.TException { checkReady(); killSessions_call method_call = new killSessions_call(killSessionsArgs, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class killSessions_call extends org.apache.thrift.async.TAsyncMethodCall { private KillSessionsArgs killSessionsArgs; public killSessions_call(KillSessionsArgs killSessionsArgs, org.apache.thrift.async.AsyncMethodCallback<killSessions_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.killSessionsArgs = killSessionsArgs; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("killSessions", org.apache.thrift.protocol.TMessageType.CALL, 0)); killSessions_args args = new killSessions_args(); args.setKillSessionsArgs(killSessionsArgs); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws SafeModeException, 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_killSessions(); } } public void setSafeMode(boolean safeMode, org.apache.thrift.async.AsyncMethodCallback<setSafeMode_call> resultHandler) throws org.apache.thrift.TException { checkReady(); setSafeMode_call method_call = new setSafeMode_call(safeMode, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class setSafeMode_call extends org.apache.thrift.async.TAsyncMethodCall { private boolean safeMode; public setSafeMode_call(boolean safeMode, org.apache.thrift.async.AsyncMethodCallback<setSafeMode_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.safeMode = safeMode; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setSafeMode", org.apache.thrift.protocol.TMessageType.CALL, 0)); setSafeMode_args args = new setSafeMode_args(); args.setSafeMode(safeMode); args.write(prot); prot.writeMessageEnd(); } public boolean getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_setSafeMode(); } } public void persistState(org.apache.thrift.async.AsyncMethodCallback<persistState_call> resultHandler) throws org.apache.thrift.TException { checkReady(); persistState_call method_call = new persistState_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class persistState_call extends org.apache.thrift.async.TAsyncMethodCall { public persistState_call(org.apache.thrift.async.AsyncMethodCallback<persistState_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("persistState", org.apache.thrift.protocol.TMessageType.CALL, 0)); persistState_args args = new persistState_args(); args.write(prot); prot.writeMessageEnd(); } public boolean getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_persistState(); } } } public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>())); } protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) { super(iface, getProcessMap(processMap)); } private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) { processMap.put("getActualPoolInfo", new getActualPoolInfo()); processMap.put("getActualPoolInfoV2", new getActualPoolInfoV2()); processMap.put("getNextSessionId", new getNextSessionId()); processMap.put("sessionStart", new sessionStart()); processMap.put("sessionUpdateInfo", new sessionUpdateInfo()); processMap.put("sessionEnd", new sessionEnd()); processMap.put("sessionHeartbeat", new sessionHeartbeat()); processMap.put("sessionHeartbeatV2", new sessionHeartbeatV2()); processMap.put("requestResource", new requestResource()); processMap.put("releaseResource", new releaseResource()); processMap.put("nodeHeartbeat", new nodeHeartbeat()); processMap.put("nodeFeedback", new nodeFeedback()); processMap.put("refreshNodes", new refreshNodes()); processMap.put("restartNodes", new restartNodes()); processMap.put("getSessions", new getSessions()); processMap.put("getSessionInfo", new getSessionInfo()); processMap.put("killSession", new killSession()); processMap.put("killSessions", new killSessions()); processMap.put("setSafeMode", new setSafeMode()); processMap.put("persistState", new persistState()); return processMap; } private static class getActualPoolInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActualPoolInfo_args> { public getActualPoolInfo() { super("getActualPoolInfo"); } protected getActualPoolInfo_args getEmptyArgsInstance() { return new getActualPoolInfo_args(); } protected getActualPoolInfo_result getResult(I iface, getActualPoolInfo_args args) throws org.apache.thrift.TException { getActualPoolInfo_result result = new getActualPoolInfo_result(); try { result.success = iface.getActualPoolInfo(args.a); } catch (InvalidPoolInfo e) { result.e = e; } catch (SafeModeException f) { result.f = f; } return result; } } private static class getActualPoolInfoV2<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActualPoolInfoV2_args> { public getActualPoolInfoV2() { super("getActualPoolInfoV2"); } protected getActualPoolInfoV2_args getEmptyArgsInstance() { return new getActualPoolInfoV2_args(); } protected getActualPoolInfoV2_result getResult(I iface, getActualPoolInfoV2_args args) throws org.apache.thrift.TException { getActualPoolInfoV2_result result = new getActualPoolInfoV2_result(); try { result.success = iface.getActualPoolInfoV2(args.a); } catch (InvalidPoolInfo e) { result.e = e; } catch (SafeModeException f) { result.f = f; } return result; } } private static class getNextSessionId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNextSessionId_args> { public getNextSessionId() { super("getNextSessionId"); } protected getNextSessionId_args getEmptyArgsInstance() { return new getNextSessionId_args(); } protected getNextSessionId_result getResult(I iface, getNextSessionId_args args) throws org.apache.thrift.TException { getNextSessionId_result result = new getNextSessionId_result(); try { result.success = iface.getNextSessionId(); } catch (SafeModeException e) { result.e = e; } return result; } } private static class sessionStart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sessionStart_args> { public sessionStart() { super("sessionStart"); } protected sessionStart_args getEmptyArgsInstance() { return new sessionStart_args(); } protected sessionStart_result getResult(I iface, sessionStart_args args) throws org.apache.thrift.TException { sessionStart_result result = new sessionStart_result(); try { result.success = iface.sessionStart(args.handle, args.info); } catch (InvalidSessionHandle e) { result.e = e; } catch (SafeModeException f) { result.f = f; } return result; } } private static class sessionUpdateInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sessionUpdateInfo_args> { public sessionUpdateInfo() { super("sessionUpdateInfo"); } protected sessionUpdateInfo_args getEmptyArgsInstance() { return new sessionUpdateInfo_args(); } protected sessionUpdateInfo_result getResult(I iface, sessionUpdateInfo_args args) throws org.apache.thrift.TException { sessionUpdateInfo_result result = new sessionUpdateInfo_result(); try { iface.sessionUpdateInfo(args.handle, args.info); } catch (InvalidSessionHandle e) { result.e = e; } catch (SafeModeException f) { result.f = f; } return result; } } private static class sessionEnd<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sessionEnd_args> { public sessionEnd() { super("sessionEnd"); } protected sessionEnd_args getEmptyArgsInstance() { return new sessionEnd_args(); } protected sessionEnd_result getResult(I iface, sessionEnd_args args) throws org.apache.thrift.TException { sessionEnd_result result = new sessionEnd_result(); try { iface.sessionEnd(args.handle, args.status); } catch (InvalidSessionHandle e) { result.e = e; } catch (SafeModeException f) { result.f = f; } return result; } } private static class sessionHeartbeat<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sessionHeartbeat_args> { public sessionHeartbeat() { super("sessionHeartbeat"); } protected sessionHeartbeat_args getEmptyArgsInstance() { return new sessionHeartbeat_args(); } protected sessionHeartbeat_result getResult(I iface, sessionHeartbeat_args args) throws org.apache.thrift.TException { sessionHeartbeat_result result = new sessionHeartbeat_result(); try { iface.sessionHeartbeat(args.handle); } catch (InvalidSessionHandle e) { result.e = e; } catch (SafeModeException f) { result.f = f; } return result; } } private static class sessionHeartbeatV2<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sessionHeartbeatV2_args> { public sessionHeartbeatV2() { super("sessionHeartbeatV2"); } protected sessionHeartbeatV2_args getEmptyArgsInstance() { return new sessionHeartbeatV2_args(); } protected sessionHeartbeatV2_result getResult(I iface, sessionHeartbeatV2_args args) throws org.apache.thrift.TException { sessionHeartbeatV2_result result = new sessionHeartbeatV2_result(); try { iface.sessionHeartbeatV2(args.handle, args.heartbeatArgs); } catch (InvalidSessionHandle e) { result.e = e; } catch (SafeModeException f) { result.f = f; } return result; } } private static class requestResource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, requestResource_args> { public requestResource() { super("requestResource"); } protected requestResource_args getEmptyArgsInstance() { return new requestResource_args(); } protected requestResource_result getResult(I iface, requestResource_args args) throws org.apache.thrift.TException { requestResource_result result = new requestResource_result(); try { iface.requestResource(args.handle, args.requestList); } catch (InvalidSessionHandle e) { result.e = e; } catch (SafeModeException f) { result.f = f; } return result; } } private static class releaseResource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, releaseResource_args> { public releaseResource() { super("releaseResource"); } protected releaseResource_args getEmptyArgsInstance() { return new releaseResource_args(); } protected releaseResource_result getResult(I iface, releaseResource_args args) throws org.apache.thrift.TException { releaseResource_result result = new releaseResource_result(); try { iface.releaseResource(args.handle, args.idList); } catch (InvalidSessionHandle e) { result.e = e; } catch (SafeModeException f) { result.f = f; } return result; } } private static class nodeHeartbeat<I extends Iface> extends org.apache.thrift.ProcessFunction<I, nodeHeartbeat_args> { public nodeHeartbeat() { super("nodeHeartbeat"); } protected nodeHeartbeat_args getEmptyArgsInstance() { return new nodeHeartbeat_args(); } protected nodeHeartbeat_result getResult(I iface, nodeHeartbeat_args args) throws org.apache.thrift.TException { nodeHeartbeat_result result = new nodeHeartbeat_result(); try { result.success = iface.nodeHeartbeat(args.node); } catch (DisallowedNode e) { result.e = e; } catch (SafeModeException f) { result.f = f; } return result; } } private static class nodeFeedback<I extends Iface> extends org.apache.thrift.ProcessFunction<I, nodeFeedback_args> { public nodeFeedback() { super("nodeFeedback"); } protected nodeFeedback_args getEmptyArgsInstance() { return new nodeFeedback_args(); } protected nodeFeedback_result getResult(I iface, nodeFeedback_args args) throws org.apache.thrift.TException { nodeFeedback_result result = new nodeFeedback_result(); try { iface.nodeFeedback(args.handle, args.resourceTypes, args.stats); } catch (InvalidSessionHandle e) { result.e = e; } catch (SafeModeException f) { result.f = f; } return result; } } private static class refreshNodes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, refreshNodes_args> { public refreshNodes() { super("refreshNodes"); } protected refreshNodes_args getEmptyArgsInstance() { return new refreshNodes_args(); } protected refreshNodes_result getResult(I iface, refreshNodes_args args) throws org.apache.thrift.TException { refreshNodes_result result = new refreshNodes_result(); try { iface.refreshNodes(); } catch (SafeModeException e) { result.e = e; } return result; } } private static class restartNodes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, restartNodes_args> { public restartNodes() { super("restartNodes"); } protected restartNodes_args getEmptyArgsInstance() { return new restartNodes_args(); } protected restartNodes_result getResult(I iface, restartNodes_args args) throws org.apache.thrift.TException { restartNodes_result result = new restartNodes_result(); try { result.success = iface.restartNodes(args.restartNodesArgs); } catch (SafeModeException e) { result.e = e; } return result; } } private static class getSessions<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSessions_args> { public getSessions() { super("getSessions"); } protected getSessions_args getEmptyArgsInstance() { return new getSessions_args(); } protected getSessions_result getResult(I iface, getSessions_args args) throws org.apache.thrift.TException { getSessions_result result = new getSessions_result(); try { result.success = iface.getSessions(); } catch (SafeModeException e) { result.e = e; } return result; } } private static class getSessionInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSessionInfo_args> { public getSessionInfo() { super("getSessionInfo"); } protected getSessionInfo_args getEmptyArgsInstance() { return new getSessionInfo_args(); } protected getSessionInfo_result getResult(I iface, getSessionInfo_args args) throws org.apache.thrift.TException { getSessionInfo_result result = new getSessionInfo_result(); try { result.success = iface.getSessionInfo(args.handle); } catch (InvalidSessionHandle e) { result.e = e; } catch (SafeModeException f) { result.f = f; } return result; } } private static class killSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, killSession_args> { public killSession() { super("killSession"); } protected killSession_args getEmptyArgsInstance() { return new killSession_args(); } protected killSession_result getResult(I iface, killSession_args args) throws org.apache.thrift.TException { killSession_result result = new killSession_result(); try { iface.killSession(args.sessionId); } catch (SafeModeException e) { result.e = e; } return result; } } private static class killSessions<I extends Iface> extends org.apache.thrift.ProcessFunction<I, killSessions_args> { public killSessions() { super("killSessions"); } protected killSessions_args getEmptyArgsInstance() { return new killSessions_args(); } protected killSessions_result getResult(I iface, killSessions_args args) throws org.apache.thrift.TException { killSessions_result result = new killSessions_result(); try { iface.killSessions(args.killSessionsArgs); } catch (SafeModeException e) { result.e = e; } return result; } } private static class setSafeMode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setSafeMode_args> { public setSafeMode() { super("setSafeMode"); } protected setSafeMode_args getEmptyArgsInstance() { return new setSafeMode_args(); } protected setSafeMode_result getResult(I iface, setSafeMode_args args) throws org.apache.thrift.TException { setSafeMode_result result = new setSafeMode_result(); result.success = iface.setSafeMode(args.safeMode); result.setSuccessIsSet(true); return result; } } private static class persistState<I extends Iface> extends org.apache.thrift.ProcessFunction<I, persistState_args> { public persistState() { super("persistState"); } protected persistState_args getEmptyArgsInstance() { return new persistState_args(); } protected persistState_result getResult(I iface, persistState_args args) throws org.apache.thrift.TException { persistState_result result = new persistState_result(); result.success = iface.persistState(); result.setSuccessIsSet(true); return result; } } } public static class getActualPoolInfo_args implements org.apache.thrift.TBase<getActualPoolInfo_args, getActualPoolInfo_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActualPoolInfo_args"); private static final org.apache.thrift.protocol.TField A_FIELD_DESC = new org.apache.thrift.protocol.TField("a", org.apache.thrift.protocol.TType.STRUCT, (short)1); public ActualPoolInfoArgs a; // 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 { A((short)1, "a"); 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: // A return A; 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.A, new org.apache.thrift.meta_data.FieldMetaData("a", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ActualPoolInfoArgs.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActualPoolInfo_args.class, metaDataMap); } public getActualPoolInfo_args() { } public getActualPoolInfo_args( ActualPoolInfoArgs a) { this(); this.a = a; } /** * Performs a deep copy on <i>other</i>. */ public getActualPoolInfo_args(getActualPoolInfo_args other) { if (other.isSetA()) { this.a = new ActualPoolInfoArgs(other.a); } } public getActualPoolInfo_args deepCopy() { return new getActualPoolInfo_args(this); } @Override public void clear() { this.a = null; } public ActualPoolInfoArgs getA() { return this.a; } public getActualPoolInfo_args setA(ActualPoolInfoArgs a) { this.a = a; return this; } public void unsetA() { this.a = null; } /** Returns true if field a is set (has been assigned a value) and false otherwise */ public boolean isSetA() { return this.a != null; } public void setAIsSet(boolean value) { if (!value) { this.a = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case A: if (value == null) { unsetA(); } else { setA((ActualPoolInfoArgs)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case A: return getA(); } 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 A: return isSetA(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getActualPoolInfo_args) return this.equals((getActualPoolInfo_args)that); return false; } public boolean equals(getActualPoolInfo_args that) { if (that == null) return false; boolean this_present_a = true && this.isSetA(); boolean that_present_a = true && that.isSetA(); if (this_present_a || that_present_a) { if (!(this_present_a && that_present_a)) return false; if (!this.a.equals(that.a)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(getActualPoolInfo_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getActualPoolInfo_args typedOther = (getActualPoolInfo_args)other; lastComparison = Boolean.valueOf(isSetA()).compareTo(typedOther.isSetA()); if (lastComparison != 0) { return lastComparison; } if (isSetA()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.a, typedOther.a); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // A if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.a = new ActualPoolInfoArgs(); this.a.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.a != null) { oprot.writeFieldBegin(A_FIELD_DESC); this.a.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("getActualPoolInfo_args("); boolean first = true; sb.append("a:"); if (this.a == null) { sb.append("null"); } else { sb.append(this.a); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class getActualPoolInfo_result implements org.apache.thrift.TBase<getActualPoolInfo_result, getActualPoolInfo_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActualPoolInfo_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField F_FIELD_DESC = new org.apache.thrift.protocol.TField("f", org.apache.thrift.protocol.TType.STRUCT, (short)2); public PoolInfoStrings success; // required public InvalidPoolInfo e; // required public SafeModeException f; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), E((short)1, "e"), F((short)2, "f"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // E return E; case 2: // F return F; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PoolInfoStrings.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.F, new org.apache.thrift.meta_data.FieldMetaData("f", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActualPoolInfo_result.class, metaDataMap); } public getActualPoolInfo_result() { } public getActualPoolInfo_result( PoolInfoStrings success, InvalidPoolInfo e, SafeModeException f) { this(); this.success = success; this.e = e; this.f = f; } /** * Performs a deep copy on <i>other</i>. */ public getActualPoolInfo_result(getActualPoolInfo_result other) { if (other.isSetSuccess()) { this.success = new PoolInfoStrings(other.success); } if (other.isSetE()) { this.e = new InvalidPoolInfo(other.e); } if (other.isSetF()) { this.f = new SafeModeException(other.f); } } public getActualPoolInfo_result deepCopy() { return new getActualPoolInfo_result(this); } @Override public void clear() { this.success = null; this.e = null; this.f = null; } public PoolInfoStrings getSuccess() { return this.success; } public getActualPoolInfo_result setSuccess(PoolInfoStrings success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public InvalidPoolInfo getE() { return this.e; } public getActualPoolInfo_result setE(InvalidPoolInfo e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public SafeModeException getF() { return this.f; } public getActualPoolInfo_result setF(SafeModeException f) { this.f = f; return this; } public void unsetF() { this.f = null; } /** Returns true if field f is set (has been assigned a value) and false otherwise */ public boolean isSetF() { return this.f != null; } public void setFIsSet(boolean value) { if (!value) { this.f = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((PoolInfoStrings)value); } break; case E: if (value == null) { unsetE(); } else { setE((InvalidPoolInfo)value); } break; case F: if (value == null) { unsetF(); } else { setF((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); case F: return getF(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); case F: return isSetF(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getActualPoolInfo_result) return this.equals((getActualPoolInfo_result)that); return false; } public boolean equals(getActualPoolInfo_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } boolean this_present_f = true && this.isSetF(); boolean that_present_f = true && that.isSetF(); if (this_present_f || that_present_f) { if (!(this_present_f && that_present_f)) return false; if (!this.f.equals(that.f)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(getActualPoolInfo_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getActualPoolInfo_result typedOther = (getActualPoolInfo_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetF()).compareTo(typedOther.isSetF()); if (lastComparison != 0) { return lastComparison; } if (isSetF()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.f, typedOther.f); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new PoolInfoStrings(); this.success.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new InvalidPoolInfo(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // F if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.f = new SafeModeException(); this.f.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); this.success.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetF()) { oprot.writeFieldBegin(F_FIELD_DESC); this.f.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("getActualPoolInfo_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; if (!first) sb.append(", "); sb.append("f:"); if (this.f == null) { sb.append("null"); } else { sb.append(this.f); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class getActualPoolInfoV2_args implements org.apache.thrift.TBase<getActualPoolInfoV2_args, getActualPoolInfoV2_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActualPoolInfoV2_args"); private static final org.apache.thrift.protocol.TField A_FIELD_DESC = new org.apache.thrift.protocol.TField("a", org.apache.thrift.protocol.TType.STRUCT, (short)1); public ActualPoolInfoArgs a; // 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 { A((short)1, "a"); 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: // A return A; 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.A, new org.apache.thrift.meta_data.FieldMetaData("a", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ActualPoolInfoArgs.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActualPoolInfoV2_args.class, metaDataMap); } public getActualPoolInfoV2_args() { } public getActualPoolInfoV2_args( ActualPoolInfoArgs a) { this(); this.a = a; } /** * Performs a deep copy on <i>other</i>. */ public getActualPoolInfoV2_args(getActualPoolInfoV2_args other) { if (other.isSetA()) { this.a = new ActualPoolInfoArgs(other.a); } } public getActualPoolInfoV2_args deepCopy() { return new getActualPoolInfoV2_args(this); } @Override public void clear() { this.a = null; } public ActualPoolInfoArgs getA() { return this.a; } public getActualPoolInfoV2_args setA(ActualPoolInfoArgs a) { this.a = a; return this; } public void unsetA() { this.a = null; } /** Returns true if field a is set (has been assigned a value) and false otherwise */ public boolean isSetA() { return this.a != null; } public void setAIsSet(boolean value) { if (!value) { this.a = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case A: if (value == null) { unsetA(); } else { setA((ActualPoolInfoArgs)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case A: return getA(); } 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 A: return isSetA(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getActualPoolInfoV2_args) return this.equals((getActualPoolInfoV2_args)that); return false; } public boolean equals(getActualPoolInfoV2_args that) { if (that == null) return false; boolean this_present_a = true && this.isSetA(); boolean that_present_a = true && that.isSetA(); if (this_present_a || that_present_a) { if (!(this_present_a && that_present_a)) return false; if (!this.a.equals(that.a)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(getActualPoolInfoV2_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getActualPoolInfoV2_args typedOther = (getActualPoolInfoV2_args)other; lastComparison = Boolean.valueOf(isSetA()).compareTo(typedOther.isSetA()); if (lastComparison != 0) { return lastComparison; } if (isSetA()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.a, typedOther.a); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // A if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.a = new ActualPoolInfoArgs(); this.a.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.a != null) { oprot.writeFieldBegin(A_FIELD_DESC); this.a.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("getActualPoolInfoV2_args("); boolean first = true; sb.append("a:"); if (this.a == null) { sb.append("null"); } else { sb.append(this.a); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class getActualPoolInfoV2_result implements org.apache.thrift.TBase<getActualPoolInfoV2_result, getActualPoolInfoV2_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActualPoolInfoV2_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField F_FIELD_DESC = new org.apache.thrift.protocol.TField("f", org.apache.thrift.protocol.TType.STRUCT, (short)2); public ActualPoolInfoResponse success; // required public InvalidPoolInfo e; // required public SafeModeException f; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), E((short)1, "e"), F((short)2, "f"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // E return E; case 2: // F return F; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ActualPoolInfoResponse.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.F, new org.apache.thrift.meta_data.FieldMetaData("f", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActualPoolInfoV2_result.class, metaDataMap); } public getActualPoolInfoV2_result() { } public getActualPoolInfoV2_result( ActualPoolInfoResponse success, InvalidPoolInfo e, SafeModeException f) { this(); this.success = success; this.e = e; this.f = f; } /** * Performs a deep copy on <i>other</i>. */ public getActualPoolInfoV2_result(getActualPoolInfoV2_result other) { if (other.isSetSuccess()) { this.success = new ActualPoolInfoResponse(other.success); } if (other.isSetE()) { this.e = new InvalidPoolInfo(other.e); } if (other.isSetF()) { this.f = new SafeModeException(other.f); } } public getActualPoolInfoV2_result deepCopy() { return new getActualPoolInfoV2_result(this); } @Override public void clear() { this.success = null; this.e = null; this.f = null; } public ActualPoolInfoResponse getSuccess() { return this.success; } public getActualPoolInfoV2_result setSuccess(ActualPoolInfoResponse success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public InvalidPoolInfo getE() { return this.e; } public getActualPoolInfoV2_result setE(InvalidPoolInfo e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public SafeModeException getF() { return this.f; } public getActualPoolInfoV2_result setF(SafeModeException f) { this.f = f; return this; } public void unsetF() { this.f = null; } /** Returns true if field f is set (has been assigned a value) and false otherwise */ public boolean isSetF() { return this.f != null; } public void setFIsSet(boolean value) { if (!value) { this.f = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((ActualPoolInfoResponse)value); } break; case E: if (value == null) { unsetE(); } else { setE((InvalidPoolInfo)value); } break; case F: if (value == null) { unsetF(); } else { setF((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); case F: return getF(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); case F: return isSetF(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getActualPoolInfoV2_result) return this.equals((getActualPoolInfoV2_result)that); return false; } public boolean equals(getActualPoolInfoV2_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } boolean this_present_f = true && this.isSetF(); boolean that_present_f = true && that.isSetF(); if (this_present_f || that_present_f) { if (!(this_present_f && that_present_f)) return false; if (!this.f.equals(that.f)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(getActualPoolInfoV2_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getActualPoolInfoV2_result typedOther = (getActualPoolInfoV2_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetF()).compareTo(typedOther.isSetF()); if (lastComparison != 0) { return lastComparison; } if (isSetF()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.f, typedOther.f); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new ActualPoolInfoResponse(); this.success.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new InvalidPoolInfo(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // F if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.f = new SafeModeException(); this.f.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); this.success.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetF()) { oprot.writeFieldBegin(F_FIELD_DESC); this.f.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("getActualPoolInfoV2_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; if (!first) sb.append(", "); sb.append("f:"); if (this.f == null) { sb.append("null"); } else { sb.append(this.f); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class getNextSessionId_args implements org.apache.thrift.TBase<getNextSessionId_args, getNextSessionId_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNextSessionId_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNextSessionId_args.class, metaDataMap); } public getNextSessionId_args() { } /** * Performs a deep copy on <i>other</i>. */ public getNextSessionId_args(getNextSessionId_args other) { } public getNextSessionId_args deepCopy() { return new getNextSessionId_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 getNextSessionId_args) return this.equals((getNextSessionId_args)that); return false; } public boolean equals(getNextSessionId_args that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } public int compareTo(getNextSessionId_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getNextSessionId_args typedOther = (getNextSessionId_args)other; return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("getNextSessionId_args("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class getNextSessionId_result implements org.apache.thrift.TBase<getNextSessionId_result, getNextSessionId_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNextSessionId_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); public String success; // required public SafeModeException e; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), E((short)1, "e"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // E return E; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "SessionHandle"))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNextSessionId_result.class, metaDataMap); } public getNextSessionId_result() { } public getNextSessionId_result( String success, SafeModeException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on <i>other</i>. */ public getNextSessionId_result(getNextSessionId_result other) { if (other.isSetSuccess()) { this.success = other.success; } if (other.isSetE()) { this.e = new SafeModeException(other.e); } } public getNextSessionId_result deepCopy() { return new getNextSessionId_result(this); } @Override public void clear() { this.success = null; this.e = null; } public String getSuccess() { return this.success; } public getNextSessionId_result setSuccess(String success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public SafeModeException getE() { return this.e; } public getNextSessionId_result setE(SafeModeException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((String)value); } break; case E: if (value == null) { unsetE(); } else { setE((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getNextSessionId_result) return this.equals((getNextSessionId_result)that); return false; } public boolean equals(getNextSessionId_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(getNextSessionId_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getNextSessionId_result typedOther = (getNextSessionId_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.STRING) { this.success = iprot.readString(); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new SafeModeException(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeString(this.success); oprot.writeFieldEnd(); } else if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("getNextSessionId_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class sessionStart_args implements org.apache.thrift.TBase<sessionStart_args, sessionStart_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sessionStart_args"); private static final org.apache.thrift.protocol.TField HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("handle", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("info", org.apache.thrift.protocol.TType.STRUCT, (short)2); public String handle; // required public SessionInfo info; // 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 { HANDLE((short)1, "handle"), INFO((short)2, "info"); 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: // HANDLE return HANDLE; case 2: // INFO return INFO; 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.HANDLE, new org.apache.thrift.meta_data.FieldMetaData("handle", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "SessionHandle"))); tmpMap.put(_Fields.INFO, new org.apache.thrift.meta_data.FieldMetaData("info", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SessionInfo.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sessionStart_args.class, metaDataMap); } public sessionStart_args() { } public sessionStart_args( String handle, SessionInfo info) { this(); this.handle = handle; this.info = info; } /** * Performs a deep copy on <i>other</i>. */ public sessionStart_args(sessionStart_args other) { if (other.isSetHandle()) { this.handle = other.handle; } if (other.isSetInfo()) { this.info = new SessionInfo(other.info); } } public sessionStart_args deepCopy() { return new sessionStart_args(this); } @Override public void clear() { this.handle = null; this.info = null; } public String getHandle() { return this.handle; } public sessionStart_args setHandle(String handle) { this.handle = handle; return this; } public void unsetHandle() { this.handle = null; } /** Returns true if field handle is set (has been assigned a value) and false otherwise */ public boolean isSetHandle() { return this.handle != null; } public void setHandleIsSet(boolean value) { if (!value) { this.handle = null; } } public SessionInfo getInfo() { return this.info; } public sessionStart_args setInfo(SessionInfo info) { this.info = info; return this; } public void unsetInfo() { this.info = null; } /** Returns true if field info is set (has been assigned a value) and false otherwise */ public boolean isSetInfo() { return this.info != null; } public void setInfoIsSet(boolean value) { if (!value) { this.info = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case HANDLE: if (value == null) { unsetHandle(); } else { setHandle((String)value); } break; case INFO: if (value == null) { unsetInfo(); } else { setInfo((SessionInfo)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case HANDLE: return getHandle(); case INFO: return getInfo(); } 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 HANDLE: return isSetHandle(); case INFO: return isSetInfo(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sessionStart_args) return this.equals((sessionStart_args)that); return false; } public boolean equals(sessionStart_args that) { if (that == null) return false; boolean this_present_handle = true && this.isSetHandle(); boolean that_present_handle = true && that.isSetHandle(); if (this_present_handle || that_present_handle) { if (!(this_present_handle && that_present_handle)) return false; if (!this.handle.equals(that.handle)) return false; } boolean this_present_info = true && this.isSetInfo(); boolean that_present_info = true && that.isSetInfo(); if (this_present_info || that_present_info) { if (!(this_present_info && that_present_info)) return false; if (!this.info.equals(that.info)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(sessionStart_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; sessionStart_args typedOther = (sessionStart_args)other; lastComparison = Boolean.valueOf(isSetHandle()).compareTo(typedOther.isSetHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetHandle()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.handle, typedOther.handle); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetInfo()).compareTo(typedOther.isSetInfo()); if (lastComparison != 0) { return lastComparison; } if (isSetInfo()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.info, typedOther.info); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // HANDLE if (field.type == org.apache.thrift.protocol.TType.STRING) { this.handle = iprot.readString(); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // INFO if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.info = new SessionInfo(); this.info.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.handle != null) { oprot.writeFieldBegin(HANDLE_FIELD_DESC); oprot.writeString(this.handle); oprot.writeFieldEnd(); } if (this.info != null) { oprot.writeFieldBegin(INFO_FIELD_DESC); this.info.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("sessionStart_args("); boolean first = true; sb.append("handle:"); if (this.handle == null) { sb.append("null"); } else { sb.append(this.handle); } first = false; if (!first) sb.append(", "); sb.append("info:"); if (this.info == null) { sb.append("null"); } else { sb.append(this.info); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class sessionStart_result implements org.apache.thrift.TBase<sessionStart_result, sessionStart_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sessionStart_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField F_FIELD_DESC = new org.apache.thrift.protocol.TField("f", org.apache.thrift.protocol.TType.STRUCT, (short)2); public SessionRegistrationData success; // required public InvalidSessionHandle e; // required public SafeModeException f; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), E((short)1, "e"), F((short)2, "f"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // E return E; case 2: // F return F; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SessionRegistrationData.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.F, new org.apache.thrift.meta_data.FieldMetaData("f", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sessionStart_result.class, metaDataMap); } public sessionStart_result() { } public sessionStart_result( SessionRegistrationData success, InvalidSessionHandle e, SafeModeException f) { this(); this.success = success; this.e = e; this.f = f; } /** * Performs a deep copy on <i>other</i>. */ public sessionStart_result(sessionStart_result other) { if (other.isSetSuccess()) { this.success = new SessionRegistrationData(other.success); } if (other.isSetE()) { this.e = new InvalidSessionHandle(other.e); } if (other.isSetF()) { this.f = new SafeModeException(other.f); } } public sessionStart_result deepCopy() { return new sessionStart_result(this); } @Override public void clear() { this.success = null; this.e = null; this.f = null; } public SessionRegistrationData getSuccess() { return this.success; } public sessionStart_result setSuccess(SessionRegistrationData success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public InvalidSessionHandle getE() { return this.e; } public sessionStart_result setE(InvalidSessionHandle e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public SafeModeException getF() { return this.f; } public sessionStart_result setF(SafeModeException f) { this.f = f; return this; } public void unsetF() { this.f = null; } /** Returns true if field f is set (has been assigned a value) and false otherwise */ public boolean isSetF() { return this.f != null; } public void setFIsSet(boolean value) { if (!value) { this.f = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((SessionRegistrationData)value); } break; case E: if (value == null) { unsetE(); } else { setE((InvalidSessionHandle)value); } break; case F: if (value == null) { unsetF(); } else { setF((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); case F: return getF(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); case F: return isSetF(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sessionStart_result) return this.equals((sessionStart_result)that); return false; } public boolean equals(sessionStart_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } boolean this_present_f = true && this.isSetF(); boolean that_present_f = true && that.isSetF(); if (this_present_f || that_present_f) { if (!(this_present_f && that_present_f)) return false; if (!this.f.equals(that.f)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(sessionStart_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; sessionStart_result typedOther = (sessionStart_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetF()).compareTo(typedOther.isSetF()); if (lastComparison != 0) { return lastComparison; } if (isSetF()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.f, typedOther.f); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new SessionRegistrationData(); this.success.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new InvalidSessionHandle(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // F if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.f = new SafeModeException(); this.f.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); this.success.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetF()) { oprot.writeFieldBegin(F_FIELD_DESC); this.f.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("sessionStart_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; if (!first) sb.append(", "); sb.append("f:"); if (this.f == null) { sb.append("null"); } else { sb.append(this.f); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class sessionUpdateInfo_args implements org.apache.thrift.TBase<sessionUpdateInfo_args, sessionUpdateInfo_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sessionUpdateInfo_args"); private static final org.apache.thrift.protocol.TField HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("handle", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("info", org.apache.thrift.protocol.TType.STRUCT, (short)2); public String handle; // required public SessionInfo info; // 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 { HANDLE((short)1, "handle"), INFO((short)2, "info"); 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: // HANDLE return HANDLE; case 2: // INFO return INFO; 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.HANDLE, new org.apache.thrift.meta_data.FieldMetaData("handle", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "SessionHandle"))); tmpMap.put(_Fields.INFO, new org.apache.thrift.meta_data.FieldMetaData("info", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SessionInfo.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sessionUpdateInfo_args.class, metaDataMap); } public sessionUpdateInfo_args() { } public sessionUpdateInfo_args( String handle, SessionInfo info) { this(); this.handle = handle; this.info = info; } /** * Performs a deep copy on <i>other</i>. */ public sessionUpdateInfo_args(sessionUpdateInfo_args other) { if (other.isSetHandle()) { this.handle = other.handle; } if (other.isSetInfo()) { this.info = new SessionInfo(other.info); } } public sessionUpdateInfo_args deepCopy() { return new sessionUpdateInfo_args(this); } @Override public void clear() { this.handle = null; this.info = null; } public String getHandle() { return this.handle; } public sessionUpdateInfo_args setHandle(String handle) { this.handle = handle; return this; } public void unsetHandle() { this.handle = null; } /** Returns true if field handle is set (has been assigned a value) and false otherwise */ public boolean isSetHandle() { return this.handle != null; } public void setHandleIsSet(boolean value) { if (!value) { this.handle = null; } } public SessionInfo getInfo() { return this.info; } public sessionUpdateInfo_args setInfo(SessionInfo info) { this.info = info; return this; } public void unsetInfo() { this.info = null; } /** Returns true if field info is set (has been assigned a value) and false otherwise */ public boolean isSetInfo() { return this.info != null; } public void setInfoIsSet(boolean value) { if (!value) { this.info = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case HANDLE: if (value == null) { unsetHandle(); } else { setHandle((String)value); } break; case INFO: if (value == null) { unsetInfo(); } else { setInfo((SessionInfo)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case HANDLE: return getHandle(); case INFO: return getInfo(); } 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 HANDLE: return isSetHandle(); case INFO: return isSetInfo(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sessionUpdateInfo_args) return this.equals((sessionUpdateInfo_args)that); return false; } public boolean equals(sessionUpdateInfo_args that) { if (that == null) return false; boolean this_present_handle = true && this.isSetHandle(); boolean that_present_handle = true && that.isSetHandle(); if (this_present_handle || that_present_handle) { if (!(this_present_handle && that_present_handle)) return false; if (!this.handle.equals(that.handle)) return false; } boolean this_present_info = true && this.isSetInfo(); boolean that_present_info = true && that.isSetInfo(); if (this_present_info || that_present_info) { if (!(this_present_info && that_present_info)) return false; if (!this.info.equals(that.info)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(sessionUpdateInfo_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; sessionUpdateInfo_args typedOther = (sessionUpdateInfo_args)other; lastComparison = Boolean.valueOf(isSetHandle()).compareTo(typedOther.isSetHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetHandle()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.handle, typedOther.handle); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetInfo()).compareTo(typedOther.isSetInfo()); if (lastComparison != 0) { return lastComparison; } if (isSetInfo()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.info, typedOther.info); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // HANDLE if (field.type == org.apache.thrift.protocol.TType.STRING) { this.handle = iprot.readString(); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // INFO if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.info = new SessionInfo(); this.info.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.handle != null) { oprot.writeFieldBegin(HANDLE_FIELD_DESC); oprot.writeString(this.handle); oprot.writeFieldEnd(); } if (this.info != null) { oprot.writeFieldBegin(INFO_FIELD_DESC); this.info.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("sessionUpdateInfo_args("); boolean first = true; sb.append("handle:"); if (this.handle == null) { sb.append("null"); } else { sb.append(this.handle); } first = false; if (!first) sb.append(", "); sb.append("info:"); if (this.info == null) { sb.append("null"); } else { sb.append(this.info); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class sessionUpdateInfo_result implements org.apache.thrift.TBase<sessionUpdateInfo_result, sessionUpdateInfo_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sessionUpdateInfo_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField F_FIELD_DESC = new org.apache.thrift.protocol.TField("f", org.apache.thrift.protocol.TType.STRUCT, (short)2); public InvalidSessionHandle e; // required public SafeModeException f; // 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 { E((short)1, "e"), F((short)2, "f"); 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: // E return E; case 2: // F return F; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.F, new org.apache.thrift.meta_data.FieldMetaData("f", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sessionUpdateInfo_result.class, metaDataMap); } public sessionUpdateInfo_result() { } public sessionUpdateInfo_result( InvalidSessionHandle e, SafeModeException f) { this(); this.e = e; this.f = f; } /** * Performs a deep copy on <i>other</i>. */ public sessionUpdateInfo_result(sessionUpdateInfo_result other) { if (other.isSetE()) { this.e = new InvalidSessionHandle(other.e); } if (other.isSetF()) { this.f = new SafeModeException(other.f); } } public sessionUpdateInfo_result deepCopy() { return new sessionUpdateInfo_result(this); } @Override public void clear() { this.e = null; this.f = null; } public InvalidSessionHandle getE() { return this.e; } public sessionUpdateInfo_result setE(InvalidSessionHandle e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public SafeModeException getF() { return this.f; } public sessionUpdateInfo_result setF(SafeModeException f) { this.f = f; return this; } public void unsetF() { this.f = null; } /** Returns true if field f is set (has been assigned a value) and false otherwise */ public boolean isSetF() { return this.f != null; } public void setFIsSet(boolean value) { if (!value) { this.f = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((InvalidSessionHandle)value); } break; case F: if (value == null) { unsetF(); } else { setF((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); case F: return getF(); } 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 E: return isSetE(); case F: return isSetF(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sessionUpdateInfo_result) return this.equals((sessionUpdateInfo_result)that); return false; } public boolean equals(sessionUpdateInfo_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } boolean this_present_f = true && this.isSetF(); boolean that_present_f = true && that.isSetF(); if (this_present_f || that_present_f) { if (!(this_present_f && that_present_f)) return false; if (!this.f.equals(that.f)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(sessionUpdateInfo_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; sessionUpdateInfo_result typedOther = (sessionUpdateInfo_result)other; lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetF()).compareTo(typedOther.isSetF()); if (lastComparison != 0) { return lastComparison; } if (isSetF()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.f, typedOther.f); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new InvalidSessionHandle(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // F if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.f = new SafeModeException(); this.f.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetF()) { oprot.writeFieldBegin(F_FIELD_DESC); this.f.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("sessionUpdateInfo_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; if (!first) sb.append(", "); sb.append("f:"); if (this.f == null) { sb.append("null"); } else { sb.append(this.f); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class sessionEnd_args implements org.apache.thrift.TBase<sessionEnd_args, sessionEnd_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sessionEnd_args"); private static final org.apache.thrift.protocol.TField HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("handle", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)2); public String handle; // required /** * * @see SessionStatus */ public SessionStatus status; // 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 { HANDLE((short)1, "handle"), /** * * @see SessionStatus */ STATUS((short)2, "status"); 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: // HANDLE return HANDLE; case 2: // STATUS return STATUS; 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.HANDLE, new org.apache.thrift.meta_data.FieldMetaData("handle", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "SessionHandle"))); tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, SessionStatus.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sessionEnd_args.class, metaDataMap); } public sessionEnd_args() { } public sessionEnd_args( String handle, SessionStatus status) { this(); this.handle = handle; this.status = status; } /** * Performs a deep copy on <i>other</i>. */ public sessionEnd_args(sessionEnd_args other) { if (other.isSetHandle()) { this.handle = other.handle; } if (other.isSetStatus()) { this.status = other.status; } } public sessionEnd_args deepCopy() { return new sessionEnd_args(this); } @Override public void clear() { this.handle = null; this.status = null; } public String getHandle() { return this.handle; } public sessionEnd_args setHandle(String handle) { this.handle = handle; return this; } public void unsetHandle() { this.handle = null; } /** Returns true if field handle is set (has been assigned a value) and false otherwise */ public boolean isSetHandle() { return this.handle != null; } public void setHandleIsSet(boolean value) { if (!value) { this.handle = null; } } /** * * @see SessionStatus */ public SessionStatus getStatus() { return this.status; } /** * * @see SessionStatus */ public sessionEnd_args setStatus(SessionStatus status) { this.status = status; return this; } public void unsetStatus() { this.status = null; } /** Returns true if field status is set (has been assigned a value) and false otherwise */ public boolean isSetStatus() { return this.status != null; } public void setStatusIsSet(boolean value) { if (!value) { this.status = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case HANDLE: if (value == null) { unsetHandle(); } else { setHandle((String)value); } break; case STATUS: if (value == null) { unsetStatus(); } else { setStatus((SessionStatus)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case HANDLE: return getHandle(); case STATUS: return getStatus(); } 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 HANDLE: return isSetHandle(); case STATUS: return isSetStatus(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sessionEnd_args) return this.equals((sessionEnd_args)that); return false; } public boolean equals(sessionEnd_args that) { if (that == null) return false; boolean this_present_handle = true && this.isSetHandle(); boolean that_present_handle = true && that.isSetHandle(); if (this_present_handle || that_present_handle) { if (!(this_present_handle && that_present_handle)) return false; if (!this.handle.equals(that.handle)) return false; } boolean this_present_status = true && this.isSetStatus(); boolean that_present_status = true && that.isSetStatus(); if (this_present_status || that_present_status) { if (!(this_present_status && that_present_status)) return false; if (!this.status.equals(that.status)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(sessionEnd_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; sessionEnd_args typedOther = (sessionEnd_args)other; lastComparison = Boolean.valueOf(isSetHandle()).compareTo(typedOther.isSetHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetHandle()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.handle, typedOther.handle); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // HANDLE if (field.type == org.apache.thrift.protocol.TType.STRING) { this.handle = iprot.readString(); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // STATUS if (field.type == org.apache.thrift.protocol.TType.I32) { this.status = SessionStatus.findByValue(iprot.readI32()); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.handle != null) { oprot.writeFieldBegin(HANDLE_FIELD_DESC); oprot.writeString(this.handle); oprot.writeFieldEnd(); } if (this.status != null) { oprot.writeFieldBegin(STATUS_FIELD_DESC); oprot.writeI32(this.status.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("sessionEnd_args("); boolean first = true; sb.append("handle:"); if (this.handle == null) { sb.append("null"); } else { sb.append(this.handle); } first = false; if (!first) sb.append(", "); sb.append("status:"); if (this.status == null) { sb.append("null"); } else { sb.append(this.status); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class sessionEnd_result implements org.apache.thrift.TBase<sessionEnd_result, sessionEnd_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sessionEnd_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField F_FIELD_DESC = new org.apache.thrift.protocol.TField("f", org.apache.thrift.protocol.TType.STRUCT, (short)2); public InvalidSessionHandle e; // required public SafeModeException f; // 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 { E((short)1, "e"), F((short)2, "f"); 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: // E return E; case 2: // F return F; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.F, new org.apache.thrift.meta_data.FieldMetaData("f", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sessionEnd_result.class, metaDataMap); } public sessionEnd_result() { } public sessionEnd_result( InvalidSessionHandle e, SafeModeException f) { this(); this.e = e; this.f = f; } /** * Performs a deep copy on <i>other</i>. */ public sessionEnd_result(sessionEnd_result other) { if (other.isSetE()) { this.e = new InvalidSessionHandle(other.e); } if (other.isSetF()) { this.f = new SafeModeException(other.f); } } public sessionEnd_result deepCopy() { return new sessionEnd_result(this); } @Override public void clear() { this.e = null; this.f = null; } public InvalidSessionHandle getE() { return this.e; } public sessionEnd_result setE(InvalidSessionHandle e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public SafeModeException getF() { return this.f; } public sessionEnd_result setF(SafeModeException f) { this.f = f; return this; } public void unsetF() { this.f = null; } /** Returns true if field f is set (has been assigned a value) and false otherwise */ public boolean isSetF() { return this.f != null; } public void setFIsSet(boolean value) { if (!value) { this.f = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((InvalidSessionHandle)value); } break; case F: if (value == null) { unsetF(); } else { setF((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); case F: return getF(); } 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 E: return isSetE(); case F: return isSetF(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sessionEnd_result) return this.equals((sessionEnd_result)that); return false; } public boolean equals(sessionEnd_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } boolean this_present_f = true && this.isSetF(); boolean that_present_f = true && that.isSetF(); if (this_present_f || that_present_f) { if (!(this_present_f && that_present_f)) return false; if (!this.f.equals(that.f)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(sessionEnd_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; sessionEnd_result typedOther = (sessionEnd_result)other; lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetF()).compareTo(typedOther.isSetF()); if (lastComparison != 0) { return lastComparison; } if (isSetF()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.f, typedOther.f); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new InvalidSessionHandle(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // F if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.f = new SafeModeException(); this.f.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetF()) { oprot.writeFieldBegin(F_FIELD_DESC); this.f.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("sessionEnd_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; if (!first) sb.append(", "); sb.append("f:"); if (this.f == null) { sb.append("null"); } else { sb.append(this.f); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class sessionHeartbeat_args implements org.apache.thrift.TBase<sessionHeartbeat_args, sessionHeartbeat_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sessionHeartbeat_args"); private static final org.apache.thrift.protocol.TField HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("handle", org.apache.thrift.protocol.TType.STRING, (short)1); public String handle; // 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 { HANDLE((short)1, "handle"); 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: // HANDLE return HANDLE; 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.HANDLE, new org.apache.thrift.meta_data.FieldMetaData("handle", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "SessionHandle"))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sessionHeartbeat_args.class, metaDataMap); } public sessionHeartbeat_args() { } public sessionHeartbeat_args( String handle) { this(); this.handle = handle; } /** * Performs a deep copy on <i>other</i>. */ public sessionHeartbeat_args(sessionHeartbeat_args other) { if (other.isSetHandle()) { this.handle = other.handle; } } public sessionHeartbeat_args deepCopy() { return new sessionHeartbeat_args(this); } @Override public void clear() { this.handle = null; } public String getHandle() { return this.handle; } public sessionHeartbeat_args setHandle(String handle) { this.handle = handle; return this; } public void unsetHandle() { this.handle = null; } /** Returns true if field handle is set (has been assigned a value) and false otherwise */ public boolean isSetHandle() { return this.handle != null; } public void setHandleIsSet(boolean value) { if (!value) { this.handle = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case HANDLE: if (value == null) { unsetHandle(); } else { setHandle((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case HANDLE: return getHandle(); } 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 HANDLE: return isSetHandle(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sessionHeartbeat_args) return this.equals((sessionHeartbeat_args)that); return false; } public boolean equals(sessionHeartbeat_args that) { if (that == null) return false; boolean this_present_handle = true && this.isSetHandle(); boolean that_present_handle = true && that.isSetHandle(); if (this_present_handle || that_present_handle) { if (!(this_present_handle && that_present_handle)) return false; if (!this.handle.equals(that.handle)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(sessionHeartbeat_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; sessionHeartbeat_args typedOther = (sessionHeartbeat_args)other; lastComparison = Boolean.valueOf(isSetHandle()).compareTo(typedOther.isSetHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetHandle()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.handle, typedOther.handle); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // HANDLE if (field.type == org.apache.thrift.protocol.TType.STRING) { this.handle = iprot.readString(); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.handle != null) { oprot.writeFieldBegin(HANDLE_FIELD_DESC); oprot.writeString(this.handle); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("sessionHeartbeat_args("); boolean first = true; sb.append("handle:"); if (this.handle == null) { sb.append("null"); } else { sb.append(this.handle); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class sessionHeartbeat_result implements org.apache.thrift.TBase<sessionHeartbeat_result, sessionHeartbeat_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sessionHeartbeat_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField F_FIELD_DESC = new org.apache.thrift.protocol.TField("f", org.apache.thrift.protocol.TType.STRUCT, (short)2); public InvalidSessionHandle e; // required public SafeModeException f; // 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 { E((short)1, "e"), F((short)2, "f"); 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: // E return E; case 2: // F return F; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.F, new org.apache.thrift.meta_data.FieldMetaData("f", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sessionHeartbeat_result.class, metaDataMap); } public sessionHeartbeat_result() { } public sessionHeartbeat_result( InvalidSessionHandle e, SafeModeException f) { this(); this.e = e; this.f = f; } /** * Performs a deep copy on <i>other</i>. */ public sessionHeartbeat_result(sessionHeartbeat_result other) { if (other.isSetE()) { this.e = new InvalidSessionHandle(other.e); } if (other.isSetF()) { this.f = new SafeModeException(other.f); } } public sessionHeartbeat_result deepCopy() { return new sessionHeartbeat_result(this); } @Override public void clear() { this.e = null; this.f = null; } public InvalidSessionHandle getE() { return this.e; } public sessionHeartbeat_result setE(InvalidSessionHandle e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public SafeModeException getF() { return this.f; } public sessionHeartbeat_result setF(SafeModeException f) { this.f = f; return this; } public void unsetF() { this.f = null; } /** Returns true if field f is set (has been assigned a value) and false otherwise */ public boolean isSetF() { return this.f != null; } public void setFIsSet(boolean value) { if (!value) { this.f = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((InvalidSessionHandle)value); } break; case F: if (value == null) { unsetF(); } else { setF((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); case F: return getF(); } 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 E: return isSetE(); case F: return isSetF(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sessionHeartbeat_result) return this.equals((sessionHeartbeat_result)that); return false; } public boolean equals(sessionHeartbeat_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } boolean this_present_f = true && this.isSetF(); boolean that_present_f = true && that.isSetF(); if (this_present_f || that_present_f) { if (!(this_present_f && that_present_f)) return false; if (!this.f.equals(that.f)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(sessionHeartbeat_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; sessionHeartbeat_result typedOther = (sessionHeartbeat_result)other; lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetF()).compareTo(typedOther.isSetF()); if (lastComparison != 0) { return lastComparison; } if (isSetF()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.f, typedOther.f); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new InvalidSessionHandle(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // F if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.f = new SafeModeException(); this.f.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetF()) { oprot.writeFieldBegin(F_FIELD_DESC); this.f.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("sessionHeartbeat_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; if (!first) sb.append(", "); sb.append("f:"); if (this.f == null) { sb.append("null"); } else { sb.append(this.f); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class sessionHeartbeatV2_args implements org.apache.thrift.TBase<sessionHeartbeatV2_args, sessionHeartbeatV2_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sessionHeartbeatV2_args"); private static final org.apache.thrift.protocol.TField HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("handle", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField HEARTBEAT_ARGS_FIELD_DESC = new org.apache.thrift.protocol.TField("heartbeatArgs", org.apache.thrift.protocol.TType.STRUCT, (short)2); public String handle; // required public HeartbeatArgs heartbeatArgs; // 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 { HANDLE((short)1, "handle"), HEARTBEAT_ARGS((short)2, "heartbeatArgs"); 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: // HANDLE return HANDLE; case 2: // HEARTBEAT_ARGS return HEARTBEAT_ARGS; 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.HANDLE, new org.apache.thrift.meta_data.FieldMetaData("handle", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "SessionHandle"))); tmpMap.put(_Fields.HEARTBEAT_ARGS, new org.apache.thrift.meta_data.FieldMetaData("heartbeatArgs", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HeartbeatArgs.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sessionHeartbeatV2_args.class, metaDataMap); } public sessionHeartbeatV2_args() { } public sessionHeartbeatV2_args( String handle, HeartbeatArgs heartbeatArgs) { this(); this.handle = handle; this.heartbeatArgs = heartbeatArgs; } /** * Performs a deep copy on <i>other</i>. */ public sessionHeartbeatV2_args(sessionHeartbeatV2_args other) { if (other.isSetHandle()) { this.handle = other.handle; } if (other.isSetHeartbeatArgs()) { this.heartbeatArgs = new HeartbeatArgs(other.heartbeatArgs); } } public sessionHeartbeatV2_args deepCopy() { return new sessionHeartbeatV2_args(this); } @Override public void clear() { this.handle = null; this.heartbeatArgs = null; } public String getHandle() { return this.handle; } public sessionHeartbeatV2_args setHandle(String handle) { this.handle = handle; return this; } public void unsetHandle() { this.handle = null; } /** Returns true if field handle is set (has been assigned a value) and false otherwise */ public boolean isSetHandle() { return this.handle != null; } public void setHandleIsSet(boolean value) { if (!value) { this.handle = null; } } public HeartbeatArgs getHeartbeatArgs() { return this.heartbeatArgs; } public sessionHeartbeatV2_args setHeartbeatArgs(HeartbeatArgs heartbeatArgs) { this.heartbeatArgs = heartbeatArgs; return this; } public void unsetHeartbeatArgs() { this.heartbeatArgs = null; } /** Returns true if field heartbeatArgs is set (has been assigned a value) and false otherwise */ public boolean isSetHeartbeatArgs() { return this.heartbeatArgs != null; } public void setHeartbeatArgsIsSet(boolean value) { if (!value) { this.heartbeatArgs = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case HANDLE: if (value == null) { unsetHandle(); } else { setHandle((String)value); } break; case HEARTBEAT_ARGS: if (value == null) { unsetHeartbeatArgs(); } else { setHeartbeatArgs((HeartbeatArgs)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case HANDLE: return getHandle(); case HEARTBEAT_ARGS: return getHeartbeatArgs(); } 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 HANDLE: return isSetHandle(); case HEARTBEAT_ARGS: return isSetHeartbeatArgs(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sessionHeartbeatV2_args) return this.equals((sessionHeartbeatV2_args)that); return false; } public boolean equals(sessionHeartbeatV2_args that) { if (that == null) return false; boolean this_present_handle = true && this.isSetHandle(); boolean that_present_handle = true && that.isSetHandle(); if (this_present_handle || that_present_handle) { if (!(this_present_handle && that_present_handle)) return false; if (!this.handle.equals(that.handle)) return false; } boolean this_present_heartbeatArgs = true && this.isSetHeartbeatArgs(); boolean that_present_heartbeatArgs = true && that.isSetHeartbeatArgs(); if (this_present_heartbeatArgs || that_present_heartbeatArgs) { if (!(this_present_heartbeatArgs && that_present_heartbeatArgs)) return false; if (!this.heartbeatArgs.equals(that.heartbeatArgs)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(sessionHeartbeatV2_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; sessionHeartbeatV2_args typedOther = (sessionHeartbeatV2_args)other; lastComparison = Boolean.valueOf(isSetHandle()).compareTo(typedOther.isSetHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetHandle()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.handle, typedOther.handle); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetHeartbeatArgs()).compareTo(typedOther.isSetHeartbeatArgs()); if (lastComparison != 0) { return lastComparison; } if (isSetHeartbeatArgs()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.heartbeatArgs, typedOther.heartbeatArgs); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // HANDLE if (field.type == org.apache.thrift.protocol.TType.STRING) { this.handle = iprot.readString(); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // HEARTBEAT_ARGS if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.heartbeatArgs = new HeartbeatArgs(); this.heartbeatArgs.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.handle != null) { oprot.writeFieldBegin(HANDLE_FIELD_DESC); oprot.writeString(this.handle); oprot.writeFieldEnd(); } if (this.heartbeatArgs != null) { oprot.writeFieldBegin(HEARTBEAT_ARGS_FIELD_DESC); this.heartbeatArgs.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("sessionHeartbeatV2_args("); boolean first = true; sb.append("handle:"); if (this.handle == null) { sb.append("null"); } else { sb.append(this.handle); } first = false; if (!first) sb.append(", "); sb.append("heartbeatArgs:"); if (this.heartbeatArgs == null) { sb.append("null"); } else { sb.append(this.heartbeatArgs); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class sessionHeartbeatV2_result implements org.apache.thrift.TBase<sessionHeartbeatV2_result, sessionHeartbeatV2_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sessionHeartbeatV2_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField F_FIELD_DESC = new org.apache.thrift.protocol.TField("f", org.apache.thrift.protocol.TType.STRUCT, (short)2); public InvalidSessionHandle e; // required public SafeModeException f; // 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 { E((short)1, "e"), F((short)2, "f"); 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: // E return E; case 2: // F return F; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.F, new org.apache.thrift.meta_data.FieldMetaData("f", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sessionHeartbeatV2_result.class, metaDataMap); } public sessionHeartbeatV2_result() { } public sessionHeartbeatV2_result( InvalidSessionHandle e, SafeModeException f) { this(); this.e = e; this.f = f; } /** * Performs a deep copy on <i>other</i>. */ public sessionHeartbeatV2_result(sessionHeartbeatV2_result other) { if (other.isSetE()) { this.e = new InvalidSessionHandle(other.e); } if (other.isSetF()) { this.f = new SafeModeException(other.f); } } public sessionHeartbeatV2_result deepCopy() { return new sessionHeartbeatV2_result(this); } @Override public void clear() { this.e = null; this.f = null; } public InvalidSessionHandle getE() { return this.e; } public sessionHeartbeatV2_result setE(InvalidSessionHandle e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public SafeModeException getF() { return this.f; } public sessionHeartbeatV2_result setF(SafeModeException f) { this.f = f; return this; } public void unsetF() { this.f = null; } /** Returns true if field f is set (has been assigned a value) and false otherwise */ public boolean isSetF() { return this.f != null; } public void setFIsSet(boolean value) { if (!value) { this.f = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((InvalidSessionHandle)value); } break; case F: if (value == null) { unsetF(); } else { setF((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); case F: return getF(); } 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 E: return isSetE(); case F: return isSetF(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof sessionHeartbeatV2_result) return this.equals((sessionHeartbeatV2_result)that); return false; } public boolean equals(sessionHeartbeatV2_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } boolean this_present_f = true && this.isSetF(); boolean that_present_f = true && that.isSetF(); if (this_present_f || that_present_f) { if (!(this_present_f && that_present_f)) return false; if (!this.f.equals(that.f)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(sessionHeartbeatV2_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; sessionHeartbeatV2_result typedOther = (sessionHeartbeatV2_result)other; lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetF()).compareTo(typedOther.isSetF()); if (lastComparison != 0) { return lastComparison; } if (isSetF()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.f, typedOther.f); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new InvalidSessionHandle(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // F if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.f = new SafeModeException(); this.f.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetF()) { oprot.writeFieldBegin(F_FIELD_DESC); this.f.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("sessionHeartbeatV2_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; if (!first) sb.append(", "); sb.append("f:"); if (this.f == null) { sb.append("null"); } else { sb.append(this.f); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class requestResource_args implements org.apache.thrift.TBase<requestResource_args, requestResource_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestResource_args"); private static final org.apache.thrift.protocol.TField HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("handle", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REQUEST_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("requestList", org.apache.thrift.protocol.TType.LIST, (short)2); public String handle; // required public List<ResourceRequest> requestList; // 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 { HANDLE((short)1, "handle"), REQUEST_LIST((short)2, "requestList"); 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: // HANDLE return HANDLE; case 2: // REQUEST_LIST return REQUEST_LIST; 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.HANDLE, new org.apache.thrift.meta_data.FieldMetaData("handle", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "SessionHandle"))); tmpMap.put(_Fields.REQUEST_LIST, new org.apache.thrift.meta_data.FieldMetaData("requestList", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ResourceRequest.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestResource_args.class, metaDataMap); } public requestResource_args() { } public requestResource_args( String handle, List<ResourceRequest> requestList) { this(); this.handle = handle; this.requestList = requestList; } /** * Performs a deep copy on <i>other</i>. */ public requestResource_args(requestResource_args other) { if (other.isSetHandle()) { this.handle = other.handle; } if (other.isSetRequestList()) { List<ResourceRequest> __this__requestList = new ArrayList<ResourceRequest>(); for (ResourceRequest other_element : other.requestList) { __this__requestList.add(new ResourceRequest(other_element)); } this.requestList = __this__requestList; } } public requestResource_args deepCopy() { return new requestResource_args(this); } @Override public void clear() { this.handle = null; this.requestList = null; } public String getHandle() { return this.handle; } public requestResource_args setHandle(String handle) { this.handle = handle; return this; } public void unsetHandle() { this.handle = null; } /** Returns true if field handle is set (has been assigned a value) and false otherwise */ public boolean isSetHandle() { return this.handle != null; } public void setHandleIsSet(boolean value) { if (!value) { this.handle = null; } } public int getRequestListSize() { return (this.requestList == null) ? 0 : this.requestList.size(); } public java.util.Iterator<ResourceRequest> getRequestListIterator() { return (this.requestList == null) ? null : this.requestList.iterator(); } public void addToRequestList(ResourceRequest elem) { if (this.requestList == null) { this.requestList = new ArrayList<ResourceRequest>(); } this.requestList.add(elem); } public List<ResourceRequest> getRequestList() { return this.requestList; } public requestResource_args setRequestList(List<ResourceRequest> requestList) { this.requestList = requestList; return this; } public void unsetRequestList() { this.requestList = null; } /** Returns true if field requestList is set (has been assigned a value) and false otherwise */ public boolean isSetRequestList() { return this.requestList != null; } public void setRequestListIsSet(boolean value) { if (!value) { this.requestList = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case HANDLE: if (value == null) { unsetHandle(); } else { setHandle((String)value); } break; case REQUEST_LIST: if (value == null) { unsetRequestList(); } else { setRequestList((List<ResourceRequest>)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case HANDLE: return getHandle(); case REQUEST_LIST: return getRequestList(); } 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 HANDLE: return isSetHandle(); case REQUEST_LIST: return isSetRequestList(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof requestResource_args) return this.equals((requestResource_args)that); return false; } public boolean equals(requestResource_args that) { if (that == null) return false; boolean this_present_handle = true && this.isSetHandle(); boolean that_present_handle = true && that.isSetHandle(); if (this_present_handle || that_present_handle) { if (!(this_present_handle && that_present_handle)) return false; if (!this.handle.equals(that.handle)) return false; } boolean this_present_requestList = true && this.isSetRequestList(); boolean that_present_requestList = true && that.isSetRequestList(); if (this_present_requestList || that_present_requestList) { if (!(this_present_requestList && that_present_requestList)) return false; if (!this.requestList.equals(that.requestList)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(requestResource_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; requestResource_args typedOther = (requestResource_args)other; lastComparison = Boolean.valueOf(isSetHandle()).compareTo(typedOther.isSetHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetHandle()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.handle, typedOther.handle); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRequestList()).compareTo(typedOther.isSetRequestList()); if (lastComparison != 0) { return lastComparison; } if (isSetRequestList()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestList, typedOther.requestList); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // HANDLE if (field.type == org.apache.thrift.protocol.TType.STRING) { this.handle = iprot.readString(); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // REQUEST_LIST if (field.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list43 = iprot.readListBegin(); this.requestList = new ArrayList<ResourceRequest>(_list43.size); for (int _i44 = 0; _i44 < _list43.size; ++_i44) { ResourceRequest _elem45; // required _elem45 = new ResourceRequest(); _elem45.read(iprot); this.requestList.add(_elem45); } iprot.readListEnd(); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.handle != null) { oprot.writeFieldBegin(HANDLE_FIELD_DESC); oprot.writeString(this.handle); oprot.writeFieldEnd(); } if (this.requestList != null) { oprot.writeFieldBegin(REQUEST_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.requestList.size())); for (ResourceRequest _iter46 : this.requestList) { _iter46.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("requestResource_args("); boolean first = true; sb.append("handle:"); if (this.handle == null) { sb.append("null"); } else { sb.append(this.handle); } first = false; if (!first) sb.append(", "); sb.append("requestList:"); if (this.requestList == null) { sb.append("null"); } else { sb.append(this.requestList); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class requestResource_result implements org.apache.thrift.TBase<requestResource_result, requestResource_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestResource_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField F_FIELD_DESC = new org.apache.thrift.protocol.TField("f", org.apache.thrift.protocol.TType.STRUCT, (short)2); public InvalidSessionHandle e; // required public SafeModeException f; // 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 { E((short)1, "e"), F((short)2, "f"); 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: // E return E; case 2: // F return F; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.F, new org.apache.thrift.meta_data.FieldMetaData("f", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestResource_result.class, metaDataMap); } public requestResource_result() { } public requestResource_result( InvalidSessionHandle e, SafeModeException f) { this(); this.e = e; this.f = f; } /** * Performs a deep copy on <i>other</i>. */ public requestResource_result(requestResource_result other) { if (other.isSetE()) { this.e = new InvalidSessionHandle(other.e); } if (other.isSetF()) { this.f = new SafeModeException(other.f); } } public requestResource_result deepCopy() { return new requestResource_result(this); } @Override public void clear() { this.e = null; this.f = null; } public InvalidSessionHandle getE() { return this.e; } public requestResource_result setE(InvalidSessionHandle e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public SafeModeException getF() { return this.f; } public requestResource_result setF(SafeModeException f) { this.f = f; return this; } public void unsetF() { this.f = null; } /** Returns true if field f is set (has been assigned a value) and false otherwise */ public boolean isSetF() { return this.f != null; } public void setFIsSet(boolean value) { if (!value) { this.f = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((InvalidSessionHandle)value); } break; case F: if (value == null) { unsetF(); } else { setF((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); case F: return getF(); } 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 E: return isSetE(); case F: return isSetF(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof requestResource_result) return this.equals((requestResource_result)that); return false; } public boolean equals(requestResource_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } boolean this_present_f = true && this.isSetF(); boolean that_present_f = true && that.isSetF(); if (this_present_f || that_present_f) { if (!(this_present_f && that_present_f)) return false; if (!this.f.equals(that.f)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(requestResource_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; requestResource_result typedOther = (requestResource_result)other; lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetF()).compareTo(typedOther.isSetF()); if (lastComparison != 0) { return lastComparison; } if (isSetF()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.f, typedOther.f); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new InvalidSessionHandle(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // F if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.f = new SafeModeException(); this.f.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetF()) { oprot.writeFieldBegin(F_FIELD_DESC); this.f.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("requestResource_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; if (!first) sb.append(", "); sb.append("f:"); if (this.f == null) { sb.append("null"); } else { sb.append(this.f); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class releaseResource_args implements org.apache.thrift.TBase<releaseResource_args, releaseResource_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("releaseResource_args"); private static final org.apache.thrift.protocol.TField HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("handle", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("idList", org.apache.thrift.protocol.TType.LIST, (short)2); public String handle; // required public List<Integer> idList; // 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 { HANDLE((short)1, "handle"), ID_LIST((short)2, "idList"); 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: // HANDLE return HANDLE; case 2: // ID_LIST return ID_LIST; 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.HANDLE, new org.apache.thrift.meta_data.FieldMetaData("handle", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "SessionHandle"))); tmpMap.put(_Fields.ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("idList", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ResourceRequestId")))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(releaseResource_args.class, metaDataMap); } public releaseResource_args() { } public releaseResource_args( String handle, List<Integer> idList) { this(); this.handle = handle; this.idList = idList; } /** * Performs a deep copy on <i>other</i>. */ public releaseResource_args(releaseResource_args other) { if (other.isSetHandle()) { this.handle = other.handle; } if (other.isSetIdList()) { List<Integer> __this__idList = new ArrayList<Integer>(); for (Integer other_element : other.idList) { __this__idList.add(other_element); } this.idList = __this__idList; } } public releaseResource_args deepCopy() { return new releaseResource_args(this); } @Override public void clear() { this.handle = null; this.idList = null; } public String getHandle() { return this.handle; } public releaseResource_args setHandle(String handle) { this.handle = handle; return this; } public void unsetHandle() { this.handle = null; } /** Returns true if field handle is set (has been assigned a value) and false otherwise */ public boolean isSetHandle() { return this.handle != null; } public void setHandleIsSet(boolean value) { if (!value) { this.handle = null; } } public int getIdListSize() { return (this.idList == null) ? 0 : this.idList.size(); } public java.util.Iterator<Integer> getIdListIterator() { return (this.idList == null) ? null : this.idList.iterator(); } public void addToIdList(int elem) { if (this.idList == null) { this.idList = new ArrayList<Integer>(); } this.idList.add(elem); } public List<Integer> getIdList() { return this.idList; } public releaseResource_args setIdList(List<Integer> idList) { this.idList = idList; return this; } public void unsetIdList() { this.idList = null; } /** Returns true if field idList is set (has been assigned a value) and false otherwise */ public boolean isSetIdList() { return this.idList != null; } public void setIdListIsSet(boolean value) { if (!value) { this.idList = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case HANDLE: if (value == null) { unsetHandle(); } else { setHandle((String)value); } break; case ID_LIST: if (value == null) { unsetIdList(); } else { setIdList((List<Integer>)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case HANDLE: return getHandle(); case ID_LIST: return getIdList(); } 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 HANDLE: return isSetHandle(); case ID_LIST: return isSetIdList(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof releaseResource_args) return this.equals((releaseResource_args)that); return false; } public boolean equals(releaseResource_args that) { if (that == null) return false; boolean this_present_handle = true && this.isSetHandle(); boolean that_present_handle = true && that.isSetHandle(); if (this_present_handle || that_present_handle) { if (!(this_present_handle && that_present_handle)) return false; if (!this.handle.equals(that.handle)) return false; } boolean this_present_idList = true && this.isSetIdList(); boolean that_present_idList = true && that.isSetIdList(); if (this_present_idList || that_present_idList) { if (!(this_present_idList && that_present_idList)) return false; if (!this.idList.equals(that.idList)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(releaseResource_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; releaseResource_args typedOther = (releaseResource_args)other; lastComparison = Boolean.valueOf(isSetHandle()).compareTo(typedOther.isSetHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetHandle()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.handle, typedOther.handle); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetIdList()).compareTo(typedOther.isSetIdList()); if (lastComparison != 0) { return lastComparison; } if (isSetIdList()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.idList, typedOther.idList); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // HANDLE if (field.type == org.apache.thrift.protocol.TType.STRING) { this.handle = iprot.readString(); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // ID_LIST if (field.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list47 = iprot.readListBegin(); this.idList = new ArrayList<Integer>(_list47.size); for (int _i48 = 0; _i48 < _list47.size; ++_i48) { int _elem49; // required _elem49 = iprot.readI32(); this.idList.add(_elem49); } iprot.readListEnd(); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.handle != null) { oprot.writeFieldBegin(HANDLE_FIELD_DESC); oprot.writeString(this.handle); oprot.writeFieldEnd(); } if (this.idList != null) { oprot.writeFieldBegin(ID_LIST_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.idList.size())); for (int _iter50 : this.idList) { oprot.writeI32(_iter50); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("releaseResource_args("); boolean first = true; sb.append("handle:"); if (this.handle == null) { sb.append("null"); } else { sb.append(this.handle); } first = false; if (!first) sb.append(", "); sb.append("idList:"); if (this.idList == null) { sb.append("null"); } else { sb.append(this.idList); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class releaseResource_result implements org.apache.thrift.TBase<releaseResource_result, releaseResource_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("releaseResource_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField F_FIELD_DESC = new org.apache.thrift.protocol.TField("f", org.apache.thrift.protocol.TType.STRUCT, (short)2); public InvalidSessionHandle e; // required public SafeModeException f; // 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 { E((short)1, "e"), F((short)2, "f"); 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: // E return E; case 2: // F return F; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.F, new org.apache.thrift.meta_data.FieldMetaData("f", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(releaseResource_result.class, metaDataMap); } public releaseResource_result() { } public releaseResource_result( InvalidSessionHandle e, SafeModeException f) { this(); this.e = e; this.f = f; } /** * Performs a deep copy on <i>other</i>. */ public releaseResource_result(releaseResource_result other) { if (other.isSetE()) { this.e = new InvalidSessionHandle(other.e); } if (other.isSetF()) { this.f = new SafeModeException(other.f); } } public releaseResource_result deepCopy() { return new releaseResource_result(this); } @Override public void clear() { this.e = null; this.f = null; } public InvalidSessionHandle getE() { return this.e; } public releaseResource_result setE(InvalidSessionHandle e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public SafeModeException getF() { return this.f; } public releaseResource_result setF(SafeModeException f) { this.f = f; return this; } public void unsetF() { this.f = null; } /** Returns true if field f is set (has been assigned a value) and false otherwise */ public boolean isSetF() { return this.f != null; } public void setFIsSet(boolean value) { if (!value) { this.f = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((InvalidSessionHandle)value); } break; case F: if (value == null) { unsetF(); } else { setF((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); case F: return getF(); } 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 E: return isSetE(); case F: return isSetF(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof releaseResource_result) return this.equals((releaseResource_result)that); return false; } public boolean equals(releaseResource_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } boolean this_present_f = true && this.isSetF(); boolean that_present_f = true && that.isSetF(); if (this_present_f || that_present_f) { if (!(this_present_f && that_present_f)) return false; if (!this.f.equals(that.f)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(releaseResource_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; releaseResource_result typedOther = (releaseResource_result)other; lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetF()).compareTo(typedOther.isSetF()); if (lastComparison != 0) { return lastComparison; } if (isSetF()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.f, typedOther.f); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new InvalidSessionHandle(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // F if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.f = new SafeModeException(); this.f.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetF()) { oprot.writeFieldBegin(F_FIELD_DESC); this.f.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("releaseResource_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; if (!first) sb.append(", "); sb.append("f:"); if (this.f == null) { sb.append("null"); } else { sb.append(this.f); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class nodeHeartbeat_args implements org.apache.thrift.TBase<nodeHeartbeat_args, nodeHeartbeat_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("nodeHeartbeat_args"); private static final org.apache.thrift.protocol.TField NODE_FIELD_DESC = new org.apache.thrift.protocol.TField("node", org.apache.thrift.protocol.TType.STRUCT, (short)1); public ClusterNodeInfo node; // 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 { NODE((short)1, "node"); 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: // NODE return NODE; 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.NODE, new org.apache.thrift.meta_data.FieldMetaData("node", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClusterNodeInfo.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(nodeHeartbeat_args.class, metaDataMap); } public nodeHeartbeat_args() { } public nodeHeartbeat_args( ClusterNodeInfo node) { this(); this.node = node; } /** * Performs a deep copy on <i>other</i>. */ public nodeHeartbeat_args(nodeHeartbeat_args other) { if (other.isSetNode()) { this.node = new ClusterNodeInfo(other.node); } } public nodeHeartbeat_args deepCopy() { return new nodeHeartbeat_args(this); } @Override public void clear() { this.node = null; } public ClusterNodeInfo getNode() { return this.node; } public nodeHeartbeat_args setNode(ClusterNodeInfo node) { this.node = node; return this; } public void unsetNode() { this.node = null; } /** Returns true if field node is set (has been assigned a value) and false otherwise */ public boolean isSetNode() { return this.node != null; } public void setNodeIsSet(boolean value) { if (!value) { this.node = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case NODE: if (value == null) { unsetNode(); } else { setNode((ClusterNodeInfo)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case NODE: return getNode(); } 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 NODE: return isSetNode(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof nodeHeartbeat_args) return this.equals((nodeHeartbeat_args)that); return false; } public boolean equals(nodeHeartbeat_args that) { if (that == null) return false; boolean this_present_node = true && this.isSetNode(); boolean that_present_node = true && that.isSetNode(); if (this_present_node || that_present_node) { if (!(this_present_node && that_present_node)) return false; if (!this.node.equals(that.node)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(nodeHeartbeat_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; nodeHeartbeat_args typedOther = (nodeHeartbeat_args)other; lastComparison = Boolean.valueOf(isSetNode()).compareTo(typedOther.isSetNode()); if (lastComparison != 0) { return lastComparison; } if (isSetNode()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.node, typedOther.node); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // NODE if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.node = new ClusterNodeInfo(); this.node.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.node != null) { oprot.writeFieldBegin(NODE_FIELD_DESC); this.node.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("nodeHeartbeat_args("); boolean first = true; sb.append("node:"); if (this.node == null) { sb.append("null"); } else { sb.append(this.node); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class nodeHeartbeat_result implements org.apache.thrift.TBase<nodeHeartbeat_result, nodeHeartbeat_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("nodeHeartbeat_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField F_FIELD_DESC = new org.apache.thrift.protocol.TField("f", org.apache.thrift.protocol.TType.STRUCT, (short)2); public NodeHeartbeatResponse success; // required public DisallowedNode e; // required public SafeModeException f; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), E((short)1, "e"), F((short)2, "f"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // E return E; case 2: // F return F; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NodeHeartbeatResponse.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.F, new org.apache.thrift.meta_data.FieldMetaData("f", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(nodeHeartbeat_result.class, metaDataMap); } public nodeHeartbeat_result() { } public nodeHeartbeat_result( NodeHeartbeatResponse success, DisallowedNode e, SafeModeException f) { this(); this.success = success; this.e = e; this.f = f; } /** * Performs a deep copy on <i>other</i>. */ public nodeHeartbeat_result(nodeHeartbeat_result other) { if (other.isSetSuccess()) { this.success = new NodeHeartbeatResponse(other.success); } if (other.isSetE()) { this.e = new DisallowedNode(other.e); } if (other.isSetF()) { this.f = new SafeModeException(other.f); } } public nodeHeartbeat_result deepCopy() { return new nodeHeartbeat_result(this); } @Override public void clear() { this.success = null; this.e = null; this.f = null; } public NodeHeartbeatResponse getSuccess() { return this.success; } public nodeHeartbeat_result setSuccess(NodeHeartbeatResponse success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public DisallowedNode getE() { return this.e; } public nodeHeartbeat_result setE(DisallowedNode e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public SafeModeException getF() { return this.f; } public nodeHeartbeat_result setF(SafeModeException f) { this.f = f; return this; } public void unsetF() { this.f = null; } /** Returns true if field f is set (has been assigned a value) and false otherwise */ public boolean isSetF() { return this.f != null; } public void setFIsSet(boolean value) { if (!value) { this.f = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((NodeHeartbeatResponse)value); } break; case E: if (value == null) { unsetE(); } else { setE((DisallowedNode)value); } break; case F: if (value == null) { unsetF(); } else { setF((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); case F: return getF(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); case F: return isSetF(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof nodeHeartbeat_result) return this.equals((nodeHeartbeat_result)that); return false; } public boolean equals(nodeHeartbeat_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } boolean this_present_f = true && this.isSetF(); boolean that_present_f = true && that.isSetF(); if (this_present_f || that_present_f) { if (!(this_present_f && that_present_f)) return false; if (!this.f.equals(that.f)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(nodeHeartbeat_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; nodeHeartbeat_result typedOther = (nodeHeartbeat_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetF()).compareTo(typedOther.isSetF()); if (lastComparison != 0) { return lastComparison; } if (isSetF()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.f, typedOther.f); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new NodeHeartbeatResponse(); this.success.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new DisallowedNode(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // F if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.f = new SafeModeException(); this.f.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); this.success.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetF()) { oprot.writeFieldBegin(F_FIELD_DESC); this.f.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("nodeHeartbeat_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; if (!first) sb.append(", "); sb.append("f:"); if (this.f == null) { sb.append("null"); } else { sb.append(this.f); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class nodeFeedback_args implements org.apache.thrift.TBase<nodeFeedback_args, nodeFeedback_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("nodeFeedback_args"); private static final org.apache.thrift.protocol.TField HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("handle", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField RESOURCE_TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("resourceTypes", org.apache.thrift.protocol.TType.LIST, (short)2); private static final org.apache.thrift.protocol.TField STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("stats", org.apache.thrift.protocol.TType.LIST, (short)3); public String handle; // required public List<ResourceType> resourceTypes; // required public List<NodeUsageReport> stats; // 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 { HANDLE((short)1, "handle"), RESOURCE_TYPES((short)2, "resourceTypes"), STATS((short)3, "stats"); 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: // HANDLE return HANDLE; case 2: // RESOURCE_TYPES return RESOURCE_TYPES; case 3: // STATS return STATS; 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.HANDLE, new org.apache.thrift.meta_data.FieldMetaData("handle", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "SessionHandle"))); tmpMap.put(_Fields.RESOURCE_TYPES, new org.apache.thrift.meta_data.FieldMetaData("resourceTypes", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ResourceType.class)))); tmpMap.put(_Fields.STATS, new org.apache.thrift.meta_data.FieldMetaData("stats", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NodeUsageReport.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(nodeFeedback_args.class, metaDataMap); } public nodeFeedback_args() { } public nodeFeedback_args( String handle, List<ResourceType> resourceTypes, List<NodeUsageReport> stats) { this(); this.handle = handle; this.resourceTypes = resourceTypes; this.stats = stats; } /** * Performs a deep copy on <i>other</i>. */ public nodeFeedback_args(nodeFeedback_args other) { if (other.isSetHandle()) { this.handle = other.handle; } if (other.isSetResourceTypes()) { List<ResourceType> __this__resourceTypes = new ArrayList<ResourceType>(); for (ResourceType other_element : other.resourceTypes) { __this__resourceTypes.add(other_element); } this.resourceTypes = __this__resourceTypes; } if (other.isSetStats()) { List<NodeUsageReport> __this__stats = new ArrayList<NodeUsageReport>(); for (NodeUsageReport other_element : other.stats) { __this__stats.add(new NodeUsageReport(other_element)); } this.stats = __this__stats; } } public nodeFeedback_args deepCopy() { return new nodeFeedback_args(this); } @Override public void clear() { this.handle = null; this.resourceTypes = null; this.stats = null; } public String getHandle() { return this.handle; } public nodeFeedback_args setHandle(String handle) { this.handle = handle; return this; } public void unsetHandle() { this.handle = null; } /** Returns true if field handle is set (has been assigned a value) and false otherwise */ public boolean isSetHandle() { return this.handle != null; } public void setHandleIsSet(boolean value) { if (!value) { this.handle = null; } } public int getResourceTypesSize() { return (this.resourceTypes == null) ? 0 : this.resourceTypes.size(); } public java.util.Iterator<ResourceType> getResourceTypesIterator() { return (this.resourceTypes == null) ? null : this.resourceTypes.iterator(); } public void addToResourceTypes(ResourceType elem) { if (this.resourceTypes == null) { this.resourceTypes = new ArrayList<ResourceType>(); } this.resourceTypes.add(elem); } public List<ResourceType> getResourceTypes() { return this.resourceTypes; } public nodeFeedback_args setResourceTypes(List<ResourceType> resourceTypes) { this.resourceTypes = resourceTypes; return this; } public void unsetResourceTypes() { this.resourceTypes = null; } /** Returns true if field resourceTypes is set (has been assigned a value) and false otherwise */ public boolean isSetResourceTypes() { return this.resourceTypes != null; } public void setResourceTypesIsSet(boolean value) { if (!value) { this.resourceTypes = null; } } public int getStatsSize() { return (this.stats == null) ? 0 : this.stats.size(); } public java.util.Iterator<NodeUsageReport> getStatsIterator() { return (this.stats == null) ? null : this.stats.iterator(); } public void addToStats(NodeUsageReport elem) { if (this.stats == null) { this.stats = new ArrayList<NodeUsageReport>(); } this.stats.add(elem); } public List<NodeUsageReport> getStats() { return this.stats; } public nodeFeedback_args setStats(List<NodeUsageReport> stats) { this.stats = stats; return this; } public void unsetStats() { this.stats = null; } /** Returns true if field stats is set (has been assigned a value) and false otherwise */ public boolean isSetStats() { return this.stats != null; } public void setStatsIsSet(boolean value) { if (!value) { this.stats = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case HANDLE: if (value == null) { unsetHandle(); } else { setHandle((String)value); } break; case RESOURCE_TYPES: if (value == null) { unsetResourceTypes(); } else { setResourceTypes((List<ResourceType>)value); } break; case STATS: if (value == null) { unsetStats(); } else { setStats((List<NodeUsageReport>)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case HANDLE: return getHandle(); case RESOURCE_TYPES: return getResourceTypes(); case STATS: return getStats(); } 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 HANDLE: return isSetHandle(); case RESOURCE_TYPES: return isSetResourceTypes(); case STATS: return isSetStats(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof nodeFeedback_args) return this.equals((nodeFeedback_args)that); return false; } public boolean equals(nodeFeedback_args that) { if (that == null) return false; boolean this_present_handle = true && this.isSetHandle(); boolean that_present_handle = true && that.isSetHandle(); if (this_present_handle || that_present_handle) { if (!(this_present_handle && that_present_handle)) return false; if (!this.handle.equals(that.handle)) return false; } boolean this_present_resourceTypes = true && this.isSetResourceTypes(); boolean that_present_resourceTypes = true && that.isSetResourceTypes(); if (this_present_resourceTypes || that_present_resourceTypes) { if (!(this_present_resourceTypes && that_present_resourceTypes)) return false; if (!this.resourceTypes.equals(that.resourceTypes)) return false; } boolean this_present_stats = true && this.isSetStats(); boolean that_present_stats = true && that.isSetStats(); if (this_present_stats || that_present_stats) { if (!(this_present_stats && that_present_stats)) return false; if (!this.stats.equals(that.stats)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(nodeFeedback_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; nodeFeedback_args typedOther = (nodeFeedback_args)other; lastComparison = Boolean.valueOf(isSetHandle()).compareTo(typedOther.isSetHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetHandle()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.handle, typedOther.handle); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetResourceTypes()).compareTo(typedOther.isSetResourceTypes()); if (lastComparison != 0) { return lastComparison; } if (isSetResourceTypes()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resourceTypes, typedOther.resourceTypes); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetStats()).compareTo(typedOther.isSetStats()); if (lastComparison != 0) { return lastComparison; } if (isSetStats()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stats, typedOther.stats); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // HANDLE if (field.type == org.apache.thrift.protocol.TType.STRING) { this.handle = iprot.readString(); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // RESOURCE_TYPES if (field.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list51 = iprot.readListBegin(); this.resourceTypes = new ArrayList<ResourceType>(_list51.size); for (int _i52 = 0; _i52 < _list51.size; ++_i52) { ResourceType _elem53; // required _elem53 = ResourceType.findByValue(iprot.readI32()); this.resourceTypes.add(_elem53); } iprot.readListEnd(); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 3: // STATS if (field.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list54 = iprot.readListBegin(); this.stats = new ArrayList<NodeUsageReport>(_list54.size); for (int _i55 = 0; _i55 < _list54.size; ++_i55) { NodeUsageReport _elem56; // required _elem56 = new NodeUsageReport(); _elem56.read(iprot); this.stats.add(_elem56); } iprot.readListEnd(); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.handle != null) { oprot.writeFieldBegin(HANDLE_FIELD_DESC); oprot.writeString(this.handle); oprot.writeFieldEnd(); } if (this.resourceTypes != null) { oprot.writeFieldBegin(RESOURCE_TYPES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.resourceTypes.size())); for (ResourceType _iter57 : this.resourceTypes) { oprot.writeI32(_iter57.getValue()); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (this.stats != null) { oprot.writeFieldBegin(STATS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.stats.size())); for (NodeUsageReport _iter58 : this.stats) { _iter58.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("nodeFeedback_args("); boolean first = true; sb.append("handle:"); if (this.handle == null) { sb.append("null"); } else { sb.append(this.handle); } first = false; if (!first) sb.append(", "); sb.append("resourceTypes:"); if (this.resourceTypes == null) { sb.append("null"); } else { sb.append(this.resourceTypes); } first = false; if (!first) sb.append(", "); sb.append("stats:"); if (this.stats == null) { sb.append("null"); } else { sb.append(this.stats); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class nodeFeedback_result implements org.apache.thrift.TBase<nodeFeedback_result, nodeFeedback_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("nodeFeedback_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField F_FIELD_DESC = new org.apache.thrift.protocol.TField("f", org.apache.thrift.protocol.TType.STRUCT, (short)2); public InvalidSessionHandle e; // required public SafeModeException f; // 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 { E((short)1, "e"), F((short)2, "f"); 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: // E return E; case 2: // F return F; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.F, new org.apache.thrift.meta_data.FieldMetaData("f", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(nodeFeedback_result.class, metaDataMap); } public nodeFeedback_result() { } public nodeFeedback_result( InvalidSessionHandle e, SafeModeException f) { this(); this.e = e; this.f = f; } /** * Performs a deep copy on <i>other</i>. */ public nodeFeedback_result(nodeFeedback_result other) { if (other.isSetE()) { this.e = new InvalidSessionHandle(other.e); } if (other.isSetF()) { this.f = new SafeModeException(other.f); } } public nodeFeedback_result deepCopy() { return new nodeFeedback_result(this); } @Override public void clear() { this.e = null; this.f = null; } public InvalidSessionHandle getE() { return this.e; } public nodeFeedback_result setE(InvalidSessionHandle e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public SafeModeException getF() { return this.f; } public nodeFeedback_result setF(SafeModeException f) { this.f = f; return this; } public void unsetF() { this.f = null; } /** Returns true if field f is set (has been assigned a value) and false otherwise */ public boolean isSetF() { return this.f != null; } public void setFIsSet(boolean value) { if (!value) { this.f = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((InvalidSessionHandle)value); } break; case F: if (value == null) { unsetF(); } else { setF((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); case F: return getF(); } 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 E: return isSetE(); case F: return isSetF(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof nodeFeedback_result) return this.equals((nodeFeedback_result)that); return false; } public boolean equals(nodeFeedback_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } boolean this_present_f = true && this.isSetF(); boolean that_present_f = true && that.isSetF(); if (this_present_f || that_present_f) { if (!(this_present_f && that_present_f)) return false; if (!this.f.equals(that.f)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(nodeFeedback_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; nodeFeedback_result typedOther = (nodeFeedback_result)other; lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetF()).compareTo(typedOther.isSetF()); if (lastComparison != 0) { return lastComparison; } if (isSetF()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.f, typedOther.f); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new InvalidSessionHandle(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // F if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.f = new SafeModeException(); this.f.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetF()) { oprot.writeFieldBegin(F_FIELD_DESC); this.f.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("nodeFeedback_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; if (!first) sb.append(", "); sb.append("f:"); if (this.f == null) { sb.append("null"); } else { sb.append(this.f); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class refreshNodes_args implements org.apache.thrift.TBase<refreshNodes_args, refreshNodes_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refreshNodes_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refreshNodes_args.class, metaDataMap); } public refreshNodes_args() { } /** * Performs a deep copy on <i>other</i>. */ public refreshNodes_args(refreshNodes_args other) { } public refreshNodes_args deepCopy() { return new refreshNodes_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 refreshNodes_args) return this.equals((refreshNodes_args)that); return false; } public boolean equals(refreshNodes_args that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } public int compareTo(refreshNodes_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; refreshNodes_args typedOther = (refreshNodes_args)other; return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("refreshNodes_args("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class refreshNodes_result implements org.apache.thrift.TBase<refreshNodes_result, refreshNodes_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refreshNodes_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); public SafeModeException e; // 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 { E((short)1, "e"); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refreshNodes_result.class, metaDataMap); } public refreshNodes_result() { } public refreshNodes_result( SafeModeException e) { this(); this.e = e; } /** * Performs a deep copy on <i>other</i>. */ public refreshNodes_result(refreshNodes_result other) { if (other.isSetE()) { this.e = new SafeModeException(other.e); } } public refreshNodes_result deepCopy() { return new refreshNodes_result(this); } @Override public void clear() { this.e = null; } public SafeModeException getE() { return this.e; } public refreshNodes_result setE(SafeModeException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof refreshNodes_result) return this.equals((refreshNodes_result)that); return false; } public boolean equals(refreshNodes_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(refreshNodes_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; refreshNodes_result typedOther = (refreshNodes_result)other; lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new SafeModeException(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("refreshNodes_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class restartNodes_args implements org.apache.thrift.TBase<restartNodes_args, restartNodes_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("restartNodes_args"); private static final org.apache.thrift.protocol.TField RESTART_NODES_ARGS_FIELD_DESC = new org.apache.thrift.protocol.TField("restartNodesArgs", org.apache.thrift.protocol.TType.STRUCT, (short)1); public RestartNodesArgs restartNodesArgs; // 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 { RESTART_NODES_ARGS((short)1, "restartNodesArgs"); 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: // RESTART_NODES_ARGS return RESTART_NODES_ARGS; 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.RESTART_NODES_ARGS, new org.apache.thrift.meta_data.FieldMetaData("restartNodesArgs", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RestartNodesArgs.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(restartNodes_args.class, metaDataMap); } public restartNodes_args() { } public restartNodes_args( RestartNodesArgs restartNodesArgs) { this(); this.restartNodesArgs = restartNodesArgs; } /** * Performs a deep copy on <i>other</i>. */ public restartNodes_args(restartNodes_args other) { if (other.isSetRestartNodesArgs()) { this.restartNodesArgs = new RestartNodesArgs(other.restartNodesArgs); } } public restartNodes_args deepCopy() { return new restartNodes_args(this); } @Override public void clear() { this.restartNodesArgs = null; } public RestartNodesArgs getRestartNodesArgs() { return this.restartNodesArgs; } public restartNodes_args setRestartNodesArgs(RestartNodesArgs restartNodesArgs) { this.restartNodesArgs = restartNodesArgs; return this; } public void unsetRestartNodesArgs() { this.restartNodesArgs = null; } /** Returns true if field restartNodesArgs is set (has been assigned a value) and false otherwise */ public boolean isSetRestartNodesArgs() { return this.restartNodesArgs != null; } public void setRestartNodesArgsIsSet(boolean value) { if (!value) { this.restartNodesArgs = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case RESTART_NODES_ARGS: if (value == null) { unsetRestartNodesArgs(); } else { setRestartNodesArgs((RestartNodesArgs)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case RESTART_NODES_ARGS: return getRestartNodesArgs(); } 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 RESTART_NODES_ARGS: return isSetRestartNodesArgs(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof restartNodes_args) return this.equals((restartNodes_args)that); return false; } public boolean equals(restartNodes_args that) { if (that == null) return false; boolean this_present_restartNodesArgs = true && this.isSetRestartNodesArgs(); boolean that_present_restartNodesArgs = true && that.isSetRestartNodesArgs(); if (this_present_restartNodesArgs || that_present_restartNodesArgs) { if (!(this_present_restartNodesArgs && that_present_restartNodesArgs)) return false; if (!this.restartNodesArgs.equals(that.restartNodesArgs)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(restartNodes_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; restartNodes_args typedOther = (restartNodes_args)other; lastComparison = Boolean.valueOf(isSetRestartNodesArgs()).compareTo(typedOther.isSetRestartNodesArgs()); if (lastComparison != 0) { return lastComparison; } if (isSetRestartNodesArgs()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.restartNodesArgs, typedOther.restartNodesArgs); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // RESTART_NODES_ARGS if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.restartNodesArgs = new RestartNodesArgs(); this.restartNodesArgs.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.restartNodesArgs != null) { oprot.writeFieldBegin(RESTART_NODES_ARGS_FIELD_DESC); this.restartNodesArgs.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("restartNodes_args("); boolean first = true; sb.append("restartNodesArgs:"); if (this.restartNodesArgs == null) { sb.append("null"); } else { sb.append(this.restartNodesArgs); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class restartNodes_result implements org.apache.thrift.TBase<restartNodes_result, restartNodes_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("restartNodes_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); public RestartNodesResponse success; // required public SafeModeException e; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), E((short)1, "e"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // E return E; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RestartNodesResponse.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(restartNodes_result.class, metaDataMap); } public restartNodes_result() { } public restartNodes_result( RestartNodesResponse success, SafeModeException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on <i>other</i>. */ public restartNodes_result(restartNodes_result other) { if (other.isSetSuccess()) { this.success = new RestartNodesResponse(other.success); } if (other.isSetE()) { this.e = new SafeModeException(other.e); } } public restartNodes_result deepCopy() { return new restartNodes_result(this); } @Override public void clear() { this.success = null; this.e = null; } public RestartNodesResponse getSuccess() { return this.success; } public restartNodes_result setSuccess(RestartNodesResponse success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public SafeModeException getE() { return this.e; } public restartNodes_result setE(SafeModeException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((RestartNodesResponse)value); } break; case E: if (value == null) { unsetE(); } else { setE((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof restartNodes_result) return this.equals((restartNodes_result)that); return false; } public boolean equals(restartNodes_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(restartNodes_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; restartNodes_result typedOther = (restartNodes_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new RestartNodesResponse(); this.success.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new SafeModeException(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); this.success.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("restartNodes_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class getSessions_args implements org.apache.thrift.TBase<getSessions_args, getSessions_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSessions_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSessions_args.class, metaDataMap); } public getSessions_args() { } /** * Performs a deep copy on <i>other</i>. */ public getSessions_args(getSessions_args other) { } public getSessions_args deepCopy() { return new getSessions_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 getSessions_args) return this.equals((getSessions_args)that); return false; } public boolean equals(getSessions_args that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } public int compareTo(getSessions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getSessions_args typedOther = (getSessions_args)other; return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("getSessions_args("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class getSessions_result implements org.apache.thrift.TBase<getSessions_result, getSessions_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSessions_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); public List<RunningSession> success; // required public SafeModeException e; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), E((short)1, "e"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // E return E; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RunningSession.class)))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSessions_result.class, metaDataMap); } public getSessions_result() { } public getSessions_result( List<RunningSession> success, SafeModeException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on <i>other</i>. */ public getSessions_result(getSessions_result other) { if (other.isSetSuccess()) { List<RunningSession> __this__success = new ArrayList<RunningSession>(); for (RunningSession other_element : other.success) { __this__success.add(new RunningSession(other_element)); } this.success = __this__success; } if (other.isSetE()) { this.e = new SafeModeException(other.e); } } public getSessions_result deepCopy() { return new getSessions_result(this); } @Override public void clear() { this.success = null; this.e = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator<RunningSession> getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(RunningSession elem) { if (this.success == null) { this.success = new ArrayList<RunningSession>(); } this.success.add(elem); } public List<RunningSession> getSuccess() { return this.success; } public getSessions_result setSuccess(List<RunningSession> success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public SafeModeException getE() { return this.e; } public getSessions_result setE(SafeModeException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List<RunningSession>)value); } break; case E: if (value == null) { unsetE(); } else { setE((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getSessions_result) return this.equals((getSessions_result)that); return false; } public boolean equals(getSessions_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(getSessions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getSessions_result typedOther = (getSessions_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list59 = iprot.readListBegin(); this.success = new ArrayList<RunningSession>(_list59.size); for (int _i60 = 0; _i60 < _list59.size; ++_i60) { RunningSession _elem61; // required _elem61 = new RunningSession(); _elem61.read(iprot); this.success.add(_elem61); } iprot.readListEnd(); } } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new SafeModeException(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size())); for (RunningSession _iter62 : this.success) { _iter62.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } else if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("getSessions_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class getSessionInfo_args implements org.apache.thrift.TBase<getSessionInfo_args, getSessionInfo_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSessionInfo_args"); private static final org.apache.thrift.protocol.TField HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("handle", org.apache.thrift.protocol.TType.STRING, (short)1); public String handle; // 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 { HANDLE((short)1, "handle"); 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: // HANDLE return HANDLE; 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.HANDLE, new org.apache.thrift.meta_data.FieldMetaData("handle", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "SessionHandle"))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSessionInfo_args.class, metaDataMap); } public getSessionInfo_args() { } public getSessionInfo_args( String handle) { this(); this.handle = handle; } /** * Performs a deep copy on <i>other</i>. */ public getSessionInfo_args(getSessionInfo_args other) { if (other.isSetHandle()) { this.handle = other.handle; } } public getSessionInfo_args deepCopy() { return new getSessionInfo_args(this); } @Override public void clear() { this.handle = null; } public String getHandle() { return this.handle; } public getSessionInfo_args setHandle(String handle) { this.handle = handle; return this; } public void unsetHandle() { this.handle = null; } /** Returns true if field handle is set (has been assigned a value) and false otherwise */ public boolean isSetHandle() { return this.handle != null; } public void setHandleIsSet(boolean value) { if (!value) { this.handle = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case HANDLE: if (value == null) { unsetHandle(); } else { setHandle((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case HANDLE: return getHandle(); } 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 HANDLE: return isSetHandle(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getSessionInfo_args) return this.equals((getSessionInfo_args)that); return false; } public boolean equals(getSessionInfo_args that) { if (that == null) return false; boolean this_present_handle = true && this.isSetHandle(); boolean that_present_handle = true && that.isSetHandle(); if (this_present_handle || that_present_handle) { if (!(this_present_handle && that_present_handle)) return false; if (!this.handle.equals(that.handle)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(getSessionInfo_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getSessionInfo_args typedOther = (getSessionInfo_args)other; lastComparison = Boolean.valueOf(isSetHandle()).compareTo(typedOther.isSetHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetHandle()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.handle, typedOther.handle); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // HANDLE if (field.type == org.apache.thrift.protocol.TType.STRING) { this.handle = iprot.readString(); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.handle != null) { oprot.writeFieldBegin(HANDLE_FIELD_DESC); oprot.writeString(this.handle); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("getSessionInfo_args("); boolean first = true; sb.append("handle:"); if (this.handle == null) { sb.append("null"); } else { sb.append(this.handle); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class getSessionInfo_result implements org.apache.thrift.TBase<getSessionInfo_result, getSessionInfo_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSessionInfo_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField F_FIELD_DESC = new org.apache.thrift.protocol.TField("f", org.apache.thrift.protocol.TType.STRUCT, (short)2); public SessionInfo success; // required public InvalidSessionHandle e; // required public SafeModeException f; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), E((short)1, "e"), F((short)2, "f"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // E return E; case 2: // F return F; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SessionInfo.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.F, new org.apache.thrift.meta_data.FieldMetaData("f", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSessionInfo_result.class, metaDataMap); } public getSessionInfo_result() { } public getSessionInfo_result( SessionInfo success, InvalidSessionHandle e, SafeModeException f) { this(); this.success = success; this.e = e; this.f = f; } /** * Performs a deep copy on <i>other</i>. */ public getSessionInfo_result(getSessionInfo_result other) { if (other.isSetSuccess()) { this.success = new SessionInfo(other.success); } if (other.isSetE()) { this.e = new InvalidSessionHandle(other.e); } if (other.isSetF()) { this.f = new SafeModeException(other.f); } } public getSessionInfo_result deepCopy() { return new getSessionInfo_result(this); } @Override public void clear() { this.success = null; this.e = null; this.f = null; } public SessionInfo getSuccess() { return this.success; } public getSessionInfo_result setSuccess(SessionInfo success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public InvalidSessionHandle getE() { return this.e; } public getSessionInfo_result setE(InvalidSessionHandle e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public SafeModeException getF() { return this.f; } public getSessionInfo_result setF(SafeModeException f) { this.f = f; return this; } public void unsetF() { this.f = null; } /** Returns true if field f is set (has been assigned a value) and false otherwise */ public boolean isSetF() { return this.f != null; } public void setFIsSet(boolean value) { if (!value) { this.f = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((SessionInfo)value); } break; case E: if (value == null) { unsetE(); } else { setE((InvalidSessionHandle)value); } break; case F: if (value == null) { unsetF(); } else { setF((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); case F: return getF(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); case F: return isSetF(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getSessionInfo_result) return this.equals((getSessionInfo_result)that); return false; } public boolean equals(getSessionInfo_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } boolean this_present_f = true && this.isSetF(); boolean that_present_f = true && that.isSetF(); if (this_present_f || that_present_f) { if (!(this_present_f && that_present_f)) return false; if (!this.f.equals(that.f)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(getSessionInfo_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getSessionInfo_result typedOther = (getSessionInfo_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetF()).compareTo(typedOther.isSetF()); if (lastComparison != 0) { return lastComparison; } if (isSetF()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.f, typedOther.f); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.success = new SessionInfo(); this.success.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new InvalidSessionHandle(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; case 2: // F if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.f = new SafeModeException(); this.f.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); this.success.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } else if (this.isSetF()) { oprot.writeFieldBegin(F_FIELD_DESC); this.f.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("getSessionInfo_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; if (!first) sb.append(", "); sb.append("f:"); if (this.f == null) { sb.append("null"); } else { sb.append(this.f); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class killSession_args implements org.apache.thrift.TBase<killSession_args, killSession_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("killSession_args"); private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)1); public String sessionId; // 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 { SESSION_ID((short)1, "sessionId"); 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: // SESSION_ID return SESSION_ID; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", 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(killSession_args.class, metaDataMap); } public killSession_args() { } public killSession_args( String sessionId) { this(); this.sessionId = sessionId; } /** * Performs a deep copy on <i>other</i>. */ public killSession_args(killSession_args other) { if (other.isSetSessionId()) { this.sessionId = other.sessionId; } } public killSession_args deepCopy() { return new killSession_args(this); } @Override public void clear() { this.sessionId = null; } public String getSessionId() { return this.sessionId; } public killSession_args setSessionId(String sessionId) { this.sessionId = sessionId; return this; } public void unsetSessionId() { this.sessionId = null; } /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */ public boolean isSetSessionId() { return this.sessionId != null; } public void setSessionIdIsSet(boolean value) { if (!value) { this.sessionId = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SESSION_ID: if (value == null) { unsetSessionId(); } else { setSessionId((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SESSION_ID: return getSessionId(); } 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 SESSION_ID: return isSetSessionId(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof killSession_args) return this.equals((killSession_args)that); return false; } public boolean equals(killSession_args that) { if (that == null) return false; boolean this_present_sessionId = true && this.isSetSessionId(); boolean that_present_sessionId = true && that.isSetSessionId(); if (this_present_sessionId || that_present_sessionId) { if (!(this_present_sessionId && that_present_sessionId)) return false; if (!this.sessionId.equals(that.sessionId)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(killSession_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; killSession_args typedOther = (killSession_args)other; lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // SESSION_ID if (field.type == org.apache.thrift.protocol.TType.STRING) { this.sessionId = iprot.readString(); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.sessionId != null) { oprot.writeFieldBegin(SESSION_ID_FIELD_DESC); oprot.writeString(this.sessionId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("killSession_args("); boolean first = true; sb.append("sessionId:"); if (this.sessionId == null) { sb.append("null"); } else { sb.append(this.sessionId); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class killSession_result implements org.apache.thrift.TBase<killSession_result, killSession_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("killSession_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); public SafeModeException e; // 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 { E((short)1, "e"); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(killSession_result.class, metaDataMap); } public killSession_result() { } public killSession_result( SafeModeException e) { this(); this.e = e; } /** * Performs a deep copy on <i>other</i>. */ public killSession_result(killSession_result other) { if (other.isSetE()) { this.e = new SafeModeException(other.e); } } public killSession_result deepCopy() { return new killSession_result(this); } @Override public void clear() { this.e = null; } public SafeModeException getE() { return this.e; } public killSession_result setE(SafeModeException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof killSession_result) return this.equals((killSession_result)that); return false; } public boolean equals(killSession_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(killSession_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; killSession_result typedOther = (killSession_result)other; lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new SafeModeException(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("killSession_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class killSessions_args implements org.apache.thrift.TBase<killSessions_args, killSessions_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("killSessions_args"); private static final org.apache.thrift.protocol.TField KILL_SESSIONS_ARGS_FIELD_DESC = new org.apache.thrift.protocol.TField("killSessionsArgs", org.apache.thrift.protocol.TType.STRUCT, (short)1); public KillSessionsArgs killSessionsArgs; // 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 { KILL_SESSIONS_ARGS((short)1, "killSessionsArgs"); 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: // KILL_SESSIONS_ARGS return KILL_SESSIONS_ARGS; 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.KILL_SESSIONS_ARGS, new org.apache.thrift.meta_data.FieldMetaData("killSessionsArgs", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, KillSessionsArgs.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(killSessions_args.class, metaDataMap); } public killSessions_args() { } public killSessions_args( KillSessionsArgs killSessionsArgs) { this(); this.killSessionsArgs = killSessionsArgs; } /** * Performs a deep copy on <i>other</i>. */ public killSessions_args(killSessions_args other) { if (other.isSetKillSessionsArgs()) { this.killSessionsArgs = new KillSessionsArgs(other.killSessionsArgs); } } public killSessions_args deepCopy() { return new killSessions_args(this); } @Override public void clear() { this.killSessionsArgs = null; } public KillSessionsArgs getKillSessionsArgs() { return this.killSessionsArgs; } public killSessions_args setKillSessionsArgs(KillSessionsArgs killSessionsArgs) { this.killSessionsArgs = killSessionsArgs; return this; } public void unsetKillSessionsArgs() { this.killSessionsArgs = null; } /** Returns true if field killSessionsArgs is set (has been assigned a value) and false otherwise */ public boolean isSetKillSessionsArgs() { return this.killSessionsArgs != null; } public void setKillSessionsArgsIsSet(boolean value) { if (!value) { this.killSessionsArgs = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case KILL_SESSIONS_ARGS: if (value == null) { unsetKillSessionsArgs(); } else { setKillSessionsArgs((KillSessionsArgs)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case KILL_SESSIONS_ARGS: return getKillSessionsArgs(); } 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 KILL_SESSIONS_ARGS: return isSetKillSessionsArgs(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof killSessions_args) return this.equals((killSessions_args)that); return false; } public boolean equals(killSessions_args that) { if (that == null) return false; boolean this_present_killSessionsArgs = true && this.isSetKillSessionsArgs(); boolean that_present_killSessionsArgs = true && that.isSetKillSessionsArgs(); if (this_present_killSessionsArgs || that_present_killSessionsArgs) { if (!(this_present_killSessionsArgs && that_present_killSessionsArgs)) return false; if (!this.killSessionsArgs.equals(that.killSessionsArgs)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(killSessions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; killSessions_args typedOther = (killSessions_args)other; lastComparison = Boolean.valueOf(isSetKillSessionsArgs()).compareTo(typedOther.isSetKillSessionsArgs()); if (lastComparison != 0) { return lastComparison; } if (isSetKillSessionsArgs()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.killSessionsArgs, typedOther.killSessionsArgs); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // KILL_SESSIONS_ARGS if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.killSessionsArgs = new KillSessionsArgs(); this.killSessionsArgs.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.killSessionsArgs != null) { oprot.writeFieldBegin(KILL_SESSIONS_ARGS_FIELD_DESC); this.killSessionsArgs.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("killSessions_args("); boolean first = true; sb.append("killSessionsArgs:"); if (this.killSessionsArgs == null) { sb.append("null"); } else { sb.append(this.killSessionsArgs); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class killSessions_result implements org.apache.thrift.TBase<killSessions_result, killSessions_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("killSessions_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); public SafeModeException e; // 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 { E((short)1, "e"); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(killSessions_result.class, metaDataMap); } public killSessions_result() { } public killSessions_result( SafeModeException e) { this(); this.e = e; } /** * Performs a deep copy on <i>other</i>. */ public killSessions_result(killSessions_result other) { if (other.isSetE()) { this.e = new SafeModeException(other.e); } } public killSessions_result deepCopy() { return new killSessions_result(this); } @Override public void clear() { this.e = null; } public SafeModeException getE() { return this.e; } public killSessions_result setE(SafeModeException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((SafeModeException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof killSessions_result) return this.equals((killSessions_result)that); return false; } public boolean equals(killSessions_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(killSessions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; killSessions_result typedOther = (killSessions_result)other; lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // E if (field.type == org.apache.thrift.protocol.TType.STRUCT) { this.e = new SafeModeException(); this.e.read(iprot); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetE()) { oprot.writeFieldBegin(E_FIELD_DESC); this.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("killSessions_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class setSafeMode_args implements org.apache.thrift.TBase<setSafeMode_args, setSafeMode_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setSafeMode_args"); private static final org.apache.thrift.protocol.TField SAFE_MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("safeMode", org.apache.thrift.protocol.TType.BOOL, (short)1); public boolean safeMode; // 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 { SAFE_MODE((short)1, "safeMode"); 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: // SAFE_MODE return SAFE_MODE; 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 __SAFEMODE_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SAFE_MODE, new org.apache.thrift.meta_data.FieldMetaData("safeMode", 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(setSafeMode_args.class, metaDataMap); } public setSafeMode_args() { } public setSafeMode_args( boolean safeMode) { this(); this.safeMode = safeMode; setSafeModeIsSet(true); } /** * Performs a deep copy on <i>other</i>. */ public setSafeMode_args(setSafeMode_args other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); this.safeMode = other.safeMode; } public setSafeMode_args deepCopy() { return new setSafeMode_args(this); } @Override public void clear() { setSafeModeIsSet(false); this.safeMode = false; } public boolean isSafeMode() { return this.safeMode; } public setSafeMode_args setSafeMode(boolean safeMode) { this.safeMode = safeMode; setSafeModeIsSet(true); return this; } public void unsetSafeMode() { __isset_bit_vector.clear(__SAFEMODE_ISSET_ID); } /** Returns true if field safeMode is set (has been assigned a value) and false otherwise */ public boolean isSetSafeMode() { return __isset_bit_vector.get(__SAFEMODE_ISSET_ID); } public void setSafeModeIsSet(boolean value) { __isset_bit_vector.set(__SAFEMODE_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { case SAFE_MODE: if (value == null) { unsetSafeMode(); } else { setSafeMode((Boolean)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SAFE_MODE: return Boolean.valueOf(isSafeMode()); } 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 SAFE_MODE: return isSetSafeMode(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof setSafeMode_args) return this.equals((setSafeMode_args)that); return false; } public boolean equals(setSafeMode_args that) { if (that == null) return false; boolean this_present_safeMode = true; boolean that_present_safeMode = true; if (this_present_safeMode || that_present_safeMode) { if (!(this_present_safeMode && that_present_safeMode)) return false; if (this.safeMode != that.safeMode) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(setSafeMode_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; setSafeMode_args typedOther = (setSafeMode_args)other; lastComparison = Boolean.valueOf(isSetSafeMode()).compareTo(typedOther.isSetSafeMode()); if (lastComparison != 0) { return lastComparison; } if (isSetSafeMode()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safeMode, typedOther.safeMode); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 1: // SAFE_MODE if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.safeMode = iprot.readBool(); setSafeModeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(SAFE_MODE_FIELD_DESC); oprot.writeBool(this.safeMode); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("setSafeMode_args("); boolean first = true; sb.append("safeMode:"); sb.append(this.safeMode); first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bit_vector = new BitSet(1); read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class setSafeMode_result implements org.apache.thrift.TBase<setSafeMode_result, setSafeMode_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setSafeMode_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); public boolean success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setSafeMode_result.class, metaDataMap); } public setSafeMode_result() { } public setSafeMode_result( boolean success) { this(); this.success = success; setSuccessIsSet(true); } /** * Performs a deep copy on <i>other</i>. */ public setSafeMode_result(setSafeMode_result other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); this.success = other.success; } public setSafeMode_result deepCopy() { return new setSafeMode_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; } public boolean isSuccess() { return this.success; } public setSafeMode_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bit_vector.set(__SUCCESS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Boolean)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return Boolean.valueOf(isSuccess()); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof setSafeMode_result) return this.equals((setSafeMode_result)that); return false; } public boolean equals(setSafeMode_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(setSafeMode_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; setSafeMode_result typedOther = (setSafeMode_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(this.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("setSafeMode_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bit_vector = new BitSet(1); read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class persistState_args implements org.apache.thrift.TBase<persistState_args, persistState_args._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("persistState_args"); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(persistState_args.class, metaDataMap); } public persistState_args() { } /** * Performs a deep copy on <i>other</i>. */ public persistState_args(persistState_args other) { } public persistState_args deepCopy() { return new persistState_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 persistState_args) return this.equals((persistState_args)that); return false; } public boolean equals(persistState_args that) { if (that == null) return false; return true; } @Override public int hashCode() { return 0; } public int compareTo(persistState_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; persistState_args typedOther = (persistState_args)other; return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("persistState_args("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } public static class persistState_result implements org.apache.thrift.TBase<persistState_result, persistState_result._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("persistState_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); public boolean success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private BitSet __isset_bit_vector = new BitSet(1); public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(persistState_result.class, metaDataMap); } public persistState_result() { } public persistState_result( boolean success) { this(); this.success = success; setSuccessIsSet(true); } /** * Performs a deep copy on <i>other</i>. */ public persistState_result(persistState_result other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); this.success = other.success; } public persistState_result deepCopy() { return new persistState_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; } public boolean isSuccess() { return this.success; } public persistState_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bit_vector.clear(__SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return __isset_bit_vector.get(__SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bit_vector.set(__SUCCESS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Boolean)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return Boolean.valueOf(isSuccess()); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof persistState_result) return this.equals((persistState_result)that); return false; } public boolean equals(persistState_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } return true; } @Override public int hashCode() { return 0; } public int compareTo(persistState_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; persistState_result typedOther = (persistState_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (field.id) { case 0: // SUCCESS if (field.type == org.apache.thrift.protocol.TType.BOOL) { this.success = iprot.readBool(); setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { oprot.writeStructBegin(STRUCT_DESC); if (this.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(this.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } @Override public String toString() { StringBuilder sb = new StringBuilder("persistState_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bit_vector = new BitSet(1); read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } } }