summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java10127
1 files changed, 6353 insertions, 3774 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java b/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java
index 4733419..e5cb8a5 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java
@@ -1,152 +1,131 @@
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.17.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.openslx.bwlp.thrift.iface;
-import org.apache.thrift.scheme.IScheme;
-import org.apache.thrift.scheme.SchemeFactory;
-import org.apache.thrift.scheme.StandardScheme;
-
-import org.apache.thrift.scheme.TupleScheme;
-import org.apache.thrift.protocol.TTupleProtocol;
-import org.apache.thrift.protocol.TProtocolException;
-import org.apache.thrift.EncodingUtils;
-import org.apache.thrift.TException;
-import org.apache.thrift.async.AsyncMethodCallback;
-import org.apache.thrift.server.AbstractNonblockingServer.*;
-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 javax.annotation.Generated;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-06")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.17.0)", date = "2023-02-23")
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public class MasterServer {
public interface Iface {
public boolean ping() throws org.apache.thrift.TException;
- public SessionData authenticate(String login, String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
+ public SessionData authenticate(java.lang.String login, java.lang.String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
- public ClientSessionData localAccountLogin(String login, String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
+ public ClientSessionData localAccountLogin(java.lang.String login, java.lang.String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
- public void setUsedSatellite(String sessionId, String satelliteName) throws org.apache.thrift.TException;
+ public void setUsedSatellite(java.lang.String sessionId, java.lang.String satelliteName) throws org.apache.thrift.TException;
- public List<UserInfo> findUser(String sessionId, String organizationId, String searchTerm) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
+ public java.util.List<UserInfo> findUser(java.lang.String sessionId, java.lang.String organizationId, java.lang.String searchTerm) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
- public List<ImageSummaryRead> getPublicImages(String sessionId, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
+ public java.util.List<ImageSummaryRead> getPublicImages(java.lang.String sessionId, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
- public ImageDetailsRead getImageDetails(String sessionId, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException;
+ public ImageDetailsRead getImageDetails(java.lang.String sessionId, java.lang.String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException;
- public UserInfo getUser(String userToken, String userId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException;
+ public UserInfo getUser(java.lang.String userToken, java.lang.String userId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException;
- public void invalidateSession(String sessionId) throws TInvalidTokenException, org.apache.thrift.TException;
+ public void invalidateSession(java.lang.String sessionId) throws TInvalidTokenException, org.apache.thrift.TException;
- public UserInfo getUserFromToken(String token) throws TInvalidTokenException, org.apache.thrift.TException;
+ public ClientSessionData getSessionFromAccessCode(java.lang.String accessCode) throws TNotFoundException, TAuthorizationException, org.apache.thrift.TException;
- public boolean isServerAuthenticated(String serverSessionId) throws org.apache.thrift.TException;
+ public UserInfo getUserFromToken(java.lang.String token) throws TInvalidTokenException, org.apache.thrift.TException;
- public ByteBuffer startServerAuthentication(int satelliteId) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
+ public boolean isServerAuthenticated(java.lang.String serverSessionId) throws org.apache.thrift.TException;
- public ServerSessionData serverAuthenticate(int satelliteId, ByteBuffer challengeResponse) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
+ public java.nio.ByteBuffer startServerAuthentication(int satelliteId) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
- public ImagePublishData getImageData(String serverSessionId, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException;
+ public ServerSessionData serverAuthenticate(int satelliteId, java.nio.ByteBuffer challengeResponse) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
- public TransferInformation submitImage(String userToken, ImagePublishData imageDescription, List<ByteBuffer> blockHashes) throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException;
+ public ImagePublishData getImageData(java.lang.String serverSessionId, java.lang.String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException;
- public int registerSatellite(String userToken, String displayName, List<String> addresses, String modulus, String exponent, ByteBuffer certsha256) throws TInvocationException, org.apache.thrift.TException;
+ public TransferInformation submitImage(java.lang.String userToken, ImagePublishData imageDescription, java.util.List<java.nio.ByteBuffer> blockHashes) throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException;
- public boolean updateSatellite(String serverSessionId, String displayName, List<String> addresses) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
+ public int registerSatellite(java.lang.String userToken, java.lang.String displayName, java.util.List<java.lang.String> addresses, java.lang.String modulus, java.lang.String exponent, java.nio.ByteBuffer certsha256) throws TInvocationException, org.apache.thrift.TException;
- public TransferInformation downloadImage(String sessionId, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException;
+ public boolean updateSatellite(java.lang.String serverSessionId, java.lang.String displayName, java.util.List<java.lang.String> addresses) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
- public List<Organization> getOrganizations() throws TInvocationException, org.apache.thrift.TException;
+ public TransferInformation downloadImage(java.lang.String sessionId, java.lang.String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException;
- public List<OperatingSystem> getOperatingSystems() throws TInvocationException, org.apache.thrift.TException;
+ public java.util.List<Organization> getOrganizations() throws TInvocationException, org.apache.thrift.TException;
- public List<Virtualizer> getVirtualizers() throws TInvocationException, org.apache.thrift.TException;
+ public java.util.List<OperatingSystem> getOperatingSystems() throws TInvocationException, org.apache.thrift.TException;
- public List<MasterTag> getTags(long startDate) throws TInvocationException, org.apache.thrift.TException;
+ public java.util.List<Virtualizer> getVirtualizers() throws TInvocationException, org.apache.thrift.TException;
- public List<MasterSoftware> getSoftware(long startDate) throws TInvocationException, org.apache.thrift.TException;
+ public java.util.List<MasterTag> getTags(long startDate) throws TInvocationException, org.apache.thrift.TException;
- public TransferStatus queryUploadStatus(String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException;
+ public java.util.List<MasterSoftware> getSoftware(long startDate) throws TInvocationException, org.apache.thrift.TException;
+
+ public TransferStatus queryUploadStatus(java.lang.String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException;
}
public interface AsyncIface {
- public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void ping(org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException;
+
+ public void authenticate(java.lang.String login, java.lang.String password, org.apache.thrift.async.AsyncMethodCallback<SessionData> resultHandler) throws org.apache.thrift.TException;
- public void authenticate(String login, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void localAccountLogin(java.lang.String login, java.lang.String password, org.apache.thrift.async.AsyncMethodCallback<ClientSessionData> resultHandler) throws org.apache.thrift.TException;
- public void localAccountLogin(String login, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void setUsedSatellite(java.lang.String sessionId, java.lang.String satelliteName, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException;
- public void setUsedSatellite(String sessionId, String satelliteName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void findUser(java.lang.String sessionId, java.lang.String organizationId, java.lang.String searchTerm, org.apache.thrift.async.AsyncMethodCallback<java.util.List<UserInfo>> resultHandler) throws org.apache.thrift.TException;
- public void findUser(String sessionId, String organizationId, String searchTerm, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getPublicImages(java.lang.String sessionId, int page, org.apache.thrift.async.AsyncMethodCallback<java.util.List<ImageSummaryRead>> resultHandler) throws org.apache.thrift.TException;
- public void getPublicImages(String sessionId, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getImageDetails(java.lang.String sessionId, java.lang.String imageBaseId, org.apache.thrift.async.AsyncMethodCallback<ImageDetailsRead> resultHandler) throws org.apache.thrift.TException;
- public void getImageDetails(String sessionId, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getUser(java.lang.String userToken, java.lang.String userId, org.apache.thrift.async.AsyncMethodCallback<UserInfo> resultHandler) throws org.apache.thrift.TException;
- public void getUser(String userToken, String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void invalidateSession(java.lang.String sessionId, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException;
- public void invalidateSession(String sessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getSessionFromAccessCode(java.lang.String accessCode, org.apache.thrift.async.AsyncMethodCallback<ClientSessionData> resultHandler) throws org.apache.thrift.TException;
- public void getUserFromToken(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getUserFromToken(java.lang.String token, org.apache.thrift.async.AsyncMethodCallback<UserInfo> resultHandler) throws org.apache.thrift.TException;
- public void isServerAuthenticated(String serverSessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void isServerAuthenticated(java.lang.String serverSessionId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException;
- public void startServerAuthentication(int satelliteId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void startServerAuthentication(int satelliteId, org.apache.thrift.async.AsyncMethodCallback<java.nio.ByteBuffer> resultHandler) throws org.apache.thrift.TException;
- public void serverAuthenticate(int satelliteId, ByteBuffer challengeResponse, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void serverAuthenticate(int satelliteId, java.nio.ByteBuffer challengeResponse, org.apache.thrift.async.AsyncMethodCallback<ServerSessionData> resultHandler) throws org.apache.thrift.TException;
- public void getImageData(String serverSessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getImageData(java.lang.String serverSessionId, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback<ImagePublishData> resultHandler) throws org.apache.thrift.TException;
- public void submitImage(String userToken, ImagePublishData imageDescription, List<ByteBuffer> blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void submitImage(java.lang.String userToken, ImagePublishData imageDescription, java.util.List<java.nio.ByteBuffer> blockHashes, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> resultHandler) throws org.apache.thrift.TException;
- public void registerSatellite(String userToken, String displayName, List<String> addresses, String modulus, String exponent, ByteBuffer certsha256, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void registerSatellite(java.lang.String userToken, java.lang.String displayName, java.util.List<java.lang.String> addresses, java.lang.String modulus, java.lang.String exponent, java.nio.ByteBuffer certsha256, org.apache.thrift.async.AsyncMethodCallback<java.lang.Integer> resultHandler) throws org.apache.thrift.TException;
- public void updateSatellite(String serverSessionId, String displayName, List<String> addresses, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void updateSatellite(java.lang.String serverSessionId, java.lang.String displayName, java.util.List<java.lang.String> addresses, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException;
- public void downloadImage(String sessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void downloadImage(java.lang.String sessionId, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> resultHandler) throws org.apache.thrift.TException;
- public void getOrganizations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getOrganizations(org.apache.thrift.async.AsyncMethodCallback<java.util.List<Organization>> resultHandler) throws org.apache.thrift.TException;
- public void getOperatingSystems(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getOperatingSystems(org.apache.thrift.async.AsyncMethodCallback<java.util.List<OperatingSystem>> resultHandler) throws org.apache.thrift.TException;
- public void getVirtualizers(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getVirtualizers(org.apache.thrift.async.AsyncMethodCallback<java.util.List<Virtualizer>> resultHandler) throws org.apache.thrift.TException;
- public void getTags(long startDate, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getTags(long startDate, org.apache.thrift.async.AsyncMethodCallback<java.util.List<MasterTag>> resultHandler) throws org.apache.thrift.TException;
- public void getSoftware(long startDate, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getSoftware(long startDate, org.apache.thrift.async.AsyncMethodCallback<java.util.List<MasterSoftware>> resultHandler) throws org.apache.thrift.TException;
- public void queryUploadStatus(String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void queryUploadStatus(java.lang.String uploadToken, org.apache.thrift.async.AsyncMethodCallback<TransferStatus> 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() {}
+ @Override
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
return new Client(prot);
}
+ @Override
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
return new Client(iprot, oprot);
}
@@ -161,6 +140,7 @@ public class MasterServer {
super(iprot, oprot);
}
+ @Override
public boolean ping() throws org.apache.thrift.TException
{
send_ping();
@@ -183,13 +163,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ping failed: unknown result");
}
- public SessionData authenticate(String login, String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public SessionData authenticate(java.lang.String login, java.lang.String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
{
send_authenticate(login, password);
return recv_authenticate();
}
- public void send_authenticate(String login, String password) throws org.apache.thrift.TException
+ public void send_authenticate(java.lang.String login, java.lang.String password) throws org.apache.thrift.TException
{
authenticate_args args = new authenticate_args();
args.setLogin(login);
@@ -213,13 +194,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticate failed: unknown result");
}
- public ClientSessionData localAccountLogin(String login, String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public ClientSessionData localAccountLogin(java.lang.String login, java.lang.String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
{
send_localAccountLogin(login, password);
return recv_localAccountLogin();
}
- public void send_localAccountLogin(String login, String password) throws org.apache.thrift.TException
+ public void send_localAccountLogin(java.lang.String login, java.lang.String password) throws org.apache.thrift.TException
{
localAccountLogin_args args = new localAccountLogin_args();
args.setLogin(login);
@@ -243,13 +225,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "localAccountLogin failed: unknown result");
}
- public void setUsedSatellite(String sessionId, String satelliteName) throws org.apache.thrift.TException
+ @Override
+ public void setUsedSatellite(java.lang.String sessionId, java.lang.String satelliteName) throws org.apache.thrift.TException
{
send_setUsedSatellite(sessionId, satelliteName);
recv_setUsedSatellite();
}
- public void send_setUsedSatellite(String sessionId, String satelliteName) throws org.apache.thrift.TException
+ public void send_setUsedSatellite(java.lang.String sessionId, java.lang.String satelliteName) throws org.apache.thrift.TException
{
setUsedSatellite_args args = new setUsedSatellite_args();
args.setSessionId(sessionId);
@@ -264,13 +247,14 @@ public class MasterServer {
return;
}
- public List<UserInfo> findUser(String sessionId, String organizationId, String searchTerm) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public java.util.List<UserInfo> findUser(java.lang.String sessionId, java.lang.String organizationId, java.lang.String searchTerm) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
{
send_findUser(sessionId, organizationId, searchTerm);
return recv_findUser();
}
- public void send_findUser(String sessionId, String organizationId, String searchTerm) throws org.apache.thrift.TException
+ public void send_findUser(java.lang.String sessionId, java.lang.String organizationId, java.lang.String searchTerm) throws org.apache.thrift.TException
{
findUser_args args = new findUser_args();
args.setSessionId(sessionId);
@@ -279,7 +263,7 @@ public class MasterServer {
sendBase("findUser", args);
}
- public List<UserInfo> recv_findUser() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ public java.util.List<UserInfo> recv_findUser() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
{
findUser_result result = new findUser_result();
receiveBase(result, "findUser");
@@ -295,13 +279,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "findUser failed: unknown result");
}
- public List<ImageSummaryRead> getPublicImages(String sessionId, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public java.util.List<ImageSummaryRead> getPublicImages(java.lang.String sessionId, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
{
send_getPublicImages(sessionId, page);
return recv_getPublicImages();
}
- public void send_getPublicImages(String sessionId, int page) throws org.apache.thrift.TException
+ public void send_getPublicImages(java.lang.String sessionId, int page) throws org.apache.thrift.TException
{
getPublicImages_args args = new getPublicImages_args();
args.setSessionId(sessionId);
@@ -309,7 +294,7 @@ public class MasterServer {
sendBase("getPublicImages", args);
}
- public List<ImageSummaryRead> recv_getPublicImages() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ public java.util.List<ImageSummaryRead> recv_getPublicImages() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
{
getPublicImages_result result = new getPublicImages_result();
receiveBase(result, "getPublicImages");
@@ -325,13 +310,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPublicImages failed: unknown result");
}
- public ImageDetailsRead getImageDetails(String sessionId, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public ImageDetailsRead getImageDetails(java.lang.String sessionId, java.lang.String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
{
send_getImageDetails(sessionId, imageBaseId);
return recv_getImageDetails();
}
- public void send_getImageDetails(String sessionId, String imageBaseId) throws org.apache.thrift.TException
+ public void send_getImageDetails(java.lang.String sessionId, java.lang.String imageBaseId) throws org.apache.thrift.TException
{
getImageDetails_args args = new getImageDetails_args();
args.setSessionId(sessionId);
@@ -358,13 +344,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageDetails failed: unknown result");
}
- public UserInfo getUser(String userToken, String userId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public UserInfo getUser(java.lang.String userToken, java.lang.String userId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
{
send_getUser(userToken, userId);
return recv_getUser();
}
- public void send_getUser(String userToken, String userId) throws org.apache.thrift.TException
+ public void send_getUser(java.lang.String userToken, java.lang.String userId) throws org.apache.thrift.TException
{
getUser_args args = new getUser_args();
args.setUserToken(userToken);
@@ -391,13 +378,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUser failed: unknown result");
}
- public void invalidateSession(String sessionId) throws TInvalidTokenException, org.apache.thrift.TException
+ @Override
+ public void invalidateSession(java.lang.String sessionId) throws TInvalidTokenException, org.apache.thrift.TException
{
send_invalidateSession(sessionId);
recv_invalidateSession();
}
- public void send_invalidateSession(String sessionId) throws org.apache.thrift.TException
+ public void send_invalidateSession(java.lang.String sessionId) throws org.apache.thrift.TException
{
invalidateSession_args args = new invalidateSession_args();
args.setSessionId(sessionId);
@@ -414,13 +402,44 @@ public class MasterServer {
return;
}
- public UserInfo getUserFromToken(String token) throws TInvalidTokenException, org.apache.thrift.TException
+ @Override
+ public ClientSessionData getSessionFromAccessCode(java.lang.String accessCode) throws TNotFoundException, TAuthorizationException, org.apache.thrift.TException
+ {
+ send_getSessionFromAccessCode(accessCode);
+ return recv_getSessionFromAccessCode();
+ }
+
+ public void send_getSessionFromAccessCode(java.lang.String accessCode) throws org.apache.thrift.TException
+ {
+ getSessionFromAccessCode_args args = new getSessionFromAccessCode_args();
+ args.setAccessCode(accessCode);
+ sendBase("getSessionFromAccessCode", args);
+ }
+
+ public ClientSessionData recv_getSessionFromAccessCode() throws TNotFoundException, TAuthorizationException, org.apache.thrift.TException
+ {
+ getSessionFromAccessCode_result result = new getSessionFromAccessCode_result();
+ receiveBase(result, "getSessionFromAccessCode");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.notFound != null) {
+ throw result.notFound;
+ }
+ if (result.auth != null) {
+ throw result.auth;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSessionFromAccessCode failed: unknown result");
+ }
+
+ @Override
+ public UserInfo getUserFromToken(java.lang.String token) throws TInvalidTokenException, org.apache.thrift.TException
{
send_getUserFromToken(token);
return recv_getUserFromToken();
}
- public void send_getUserFromToken(String token) throws org.apache.thrift.TException
+ public void send_getUserFromToken(java.lang.String token) throws org.apache.thrift.TException
{
getUserFromToken_args args = new getUserFromToken_args();
args.setToken(token);
@@ -440,13 +459,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserFromToken failed: unknown result");
}
- public boolean isServerAuthenticated(String serverSessionId) throws org.apache.thrift.TException
+ @Override
+ public boolean isServerAuthenticated(java.lang.String serverSessionId) throws org.apache.thrift.TException
{
send_isServerAuthenticated(serverSessionId);
return recv_isServerAuthenticated();
}
- public void send_isServerAuthenticated(String serverSessionId) throws org.apache.thrift.TException
+ public void send_isServerAuthenticated(java.lang.String serverSessionId) throws org.apache.thrift.TException
{
isServerAuthenticated_args args = new isServerAuthenticated_args();
args.setServerSessionId(serverSessionId);
@@ -463,7 +483,8 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isServerAuthenticated failed: unknown result");
}
- public ByteBuffer startServerAuthentication(int satelliteId) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public java.nio.ByteBuffer startServerAuthentication(int satelliteId) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
{
send_startServerAuthentication(satelliteId);
return recv_startServerAuthentication();
@@ -476,7 +497,7 @@ public class MasterServer {
sendBase("startServerAuthentication", args);
}
- public ByteBuffer recv_startServerAuthentication() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ public java.nio.ByteBuffer recv_startServerAuthentication() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
{
startServerAuthentication_result result = new startServerAuthentication_result();
receiveBase(result, "startServerAuthentication");
@@ -492,13 +513,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startServerAuthentication failed: unknown result");
}
- public ServerSessionData serverAuthenticate(int satelliteId, ByteBuffer challengeResponse) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public ServerSessionData serverAuthenticate(int satelliteId, java.nio.ByteBuffer challengeResponse) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
{
send_serverAuthenticate(satelliteId, challengeResponse);
return recv_serverAuthenticate();
}
- public void send_serverAuthenticate(int satelliteId, ByteBuffer challengeResponse) throws org.apache.thrift.TException
+ public void send_serverAuthenticate(int satelliteId, java.nio.ByteBuffer challengeResponse) throws org.apache.thrift.TException
{
serverAuthenticate_args args = new serverAuthenticate_args();
args.setSatelliteId(satelliteId);
@@ -522,13 +544,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "serverAuthenticate failed: unknown result");
}
- public ImagePublishData getImageData(String serverSessionId, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException
+ @Override
+ public ImagePublishData getImageData(java.lang.String serverSessionId, java.lang.String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException
{
send_getImageData(serverSessionId, imageVersionId);
return recv_getImageData();
}
- public void send_getImageData(String serverSessionId, String imageVersionId) throws org.apache.thrift.TException
+ public void send_getImageData(java.lang.String serverSessionId, java.lang.String imageVersionId) throws org.apache.thrift.TException
{
getImageData_args args = new getImageData_args();
args.setServerSessionId(serverSessionId);
@@ -555,13 +578,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageData failed: unknown result");
}
- public TransferInformation submitImage(String userToken, ImagePublishData imageDescription, List<ByteBuffer> blockHashes) throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException
+ @Override
+ public TransferInformation submitImage(java.lang.String userToken, ImagePublishData imageDescription, java.util.List<java.nio.ByteBuffer> blockHashes) throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException
{
send_submitImage(userToken, imageDescription, blockHashes);
return recv_submitImage();
}
- public void send_submitImage(String userToken, ImagePublishData imageDescription, List<ByteBuffer> blockHashes) throws org.apache.thrift.TException
+ public void send_submitImage(java.lang.String userToken, ImagePublishData imageDescription, java.util.List<java.nio.ByteBuffer> blockHashes) throws org.apache.thrift.TException
{
submitImage_args args = new submitImage_args();
args.setUserToken(userToken);
@@ -589,13 +613,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "submitImage failed: unknown result");
}
- public int registerSatellite(String userToken, String displayName, List<String> addresses, String modulus, String exponent, ByteBuffer certsha256) throws TInvocationException, org.apache.thrift.TException
+ @Override
+ public int registerSatellite(java.lang.String userToken, java.lang.String displayName, java.util.List<java.lang.String> addresses, java.lang.String modulus, java.lang.String exponent, java.nio.ByteBuffer certsha256) throws TInvocationException, org.apache.thrift.TException
{
send_registerSatellite(userToken, displayName, addresses, modulus, exponent, certsha256);
return recv_registerSatellite();
}
- public void send_registerSatellite(String userToken, String displayName, List<String> addresses, String modulus, String exponent, ByteBuffer certsha256) throws org.apache.thrift.TException
+ public void send_registerSatellite(java.lang.String userToken, java.lang.String displayName, java.util.List<java.lang.String> addresses, java.lang.String modulus, java.lang.String exponent, java.nio.ByteBuffer certsha256) throws org.apache.thrift.TException
{
registerSatellite_args args = new registerSatellite_args();
args.setUserToken(userToken);
@@ -620,13 +645,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "registerSatellite failed: unknown result");
}
- public boolean updateSatellite(String serverSessionId, String displayName, List<String> addresses) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public boolean updateSatellite(java.lang.String serverSessionId, java.lang.String displayName, java.util.List<java.lang.String> addresses) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
{
send_updateSatellite(serverSessionId, displayName, addresses);
return recv_updateSatellite();
}
- public void send_updateSatellite(String serverSessionId, String displayName, List<String> addresses) throws org.apache.thrift.TException
+ public void send_updateSatellite(java.lang.String serverSessionId, java.lang.String displayName, java.util.List<java.lang.String> addresses) throws org.apache.thrift.TException
{
updateSatellite_args args = new updateSatellite_args();
args.setServerSessionId(serverSessionId);
@@ -651,13 +677,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateSatellite failed: unknown result");
}
- public TransferInformation downloadImage(String sessionId, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException
+ @Override
+ public TransferInformation downloadImage(java.lang.String sessionId, java.lang.String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException
{
send_downloadImage(sessionId, imageVersionId);
return recv_downloadImage();
}
- public void send_downloadImage(String sessionId, String imageVersionId) throws org.apache.thrift.TException
+ public void send_downloadImage(java.lang.String sessionId, java.lang.String imageVersionId) throws org.apache.thrift.TException
{
downloadImage_args args = new downloadImage_args();
args.setSessionId(sessionId);
@@ -684,7 +711,8 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "downloadImage failed: unknown result");
}
- public List<Organization> getOrganizations() throws TInvocationException, org.apache.thrift.TException
+ @Override
+ public java.util.List<Organization> getOrganizations() throws TInvocationException, org.apache.thrift.TException
{
send_getOrganizations();
return recv_getOrganizations();
@@ -696,7 +724,7 @@ public class MasterServer {
sendBase("getOrganizations", args);
}
- public List<Organization> recv_getOrganizations() throws TInvocationException, org.apache.thrift.TException
+ public java.util.List<Organization> recv_getOrganizations() throws TInvocationException, org.apache.thrift.TException
{
getOrganizations_result result = new getOrganizations_result();
receiveBase(result, "getOrganizations");
@@ -709,7 +737,8 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrganizations failed: unknown result");
}
- public List<OperatingSystem> getOperatingSystems() throws TInvocationException, org.apache.thrift.TException
+ @Override
+ public java.util.List<OperatingSystem> getOperatingSystems() throws TInvocationException, org.apache.thrift.TException
{
send_getOperatingSystems();
return recv_getOperatingSystems();
@@ -721,7 +750,7 @@ public class MasterServer {
sendBase("getOperatingSystems", args);
}
- public List<OperatingSystem> recv_getOperatingSystems() throws TInvocationException, org.apache.thrift.TException
+ public java.util.List<OperatingSystem> recv_getOperatingSystems() throws TInvocationException, org.apache.thrift.TException
{
getOperatingSystems_result result = new getOperatingSystems_result();
receiveBase(result, "getOperatingSystems");
@@ -734,7 +763,8 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOperatingSystems failed: unknown result");
}
- public List<Virtualizer> getVirtualizers() throws TInvocationException, org.apache.thrift.TException
+ @Override
+ public java.util.List<Virtualizer> getVirtualizers() throws TInvocationException, org.apache.thrift.TException
{
send_getVirtualizers();
return recv_getVirtualizers();
@@ -746,7 +776,7 @@ public class MasterServer {
sendBase("getVirtualizers", args);
}
- public List<Virtualizer> recv_getVirtualizers() throws TInvocationException, org.apache.thrift.TException
+ public java.util.List<Virtualizer> recv_getVirtualizers() throws TInvocationException, org.apache.thrift.TException
{
getVirtualizers_result result = new getVirtualizers_result();
receiveBase(result, "getVirtualizers");
@@ -759,7 +789,8 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVirtualizers failed: unknown result");
}
- public List<MasterTag> getTags(long startDate) throws TInvocationException, org.apache.thrift.TException
+ @Override
+ public java.util.List<MasterTag> getTags(long startDate) throws TInvocationException, org.apache.thrift.TException
{
send_getTags(startDate);
return recv_getTags();
@@ -772,7 +803,7 @@ public class MasterServer {
sendBase("getTags", args);
}
- public List<MasterTag> recv_getTags() throws TInvocationException, org.apache.thrift.TException
+ public java.util.List<MasterTag> recv_getTags() throws TInvocationException, org.apache.thrift.TException
{
getTags_result result = new getTags_result();
receiveBase(result, "getTags");
@@ -785,7 +816,8 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTags failed: unknown result");
}
- public List<MasterSoftware> getSoftware(long startDate) throws TInvocationException, org.apache.thrift.TException
+ @Override
+ public java.util.List<MasterSoftware> getSoftware(long startDate) throws TInvocationException, org.apache.thrift.TException
{
send_getSoftware(startDate);
return recv_getSoftware();
@@ -798,7 +830,7 @@ public class MasterServer {
sendBase("getSoftware", args);
}
- public List<MasterSoftware> recv_getSoftware() throws TInvocationException, org.apache.thrift.TException
+ public java.util.List<MasterSoftware> recv_getSoftware() throws TInvocationException, org.apache.thrift.TException
{
getSoftware_result result = new getSoftware_result();
receiveBase(result, "getSoftware");
@@ -811,13 +843,14 @@ public class MasterServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSoftware failed: unknown result");
}
- public TransferStatus queryUploadStatus(String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException
+ @Override
+ public TransferStatus queryUploadStatus(java.lang.String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException
{
send_queryUploadStatus(uploadToken);
return recv_queryUploadStatus();
}
- public void send_queryUploadStatus(String uploadToken) throws org.apache.thrift.TException
+ public void send_queryUploadStatus(java.lang.String uploadToken) throws org.apache.thrift.TException
{
queryUploadStatus_args args = new queryUploadStatus_args();
args.setUploadToken(uploadToken);
@@ -846,6 +879,7 @@ public class MasterServer {
this.clientManager = clientManager;
this.protocolFactory = protocolFactory;
}
+ @Override
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
return new AsyncClient(protocolFactory, clientManager, transport);
}
@@ -855,18 +889,20 @@ public class MasterServer {
super(protocolFactory, clientManager, transport);
}
- public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void ping(org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
checkReady();
ping_call method_call = new ping_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class ping_call extends org.apache.thrift.async.TAsyncMethodCall {
- public ping_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class ping_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.Boolean> {
+ public ping_call(org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> 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);
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("ping", org.apache.thrift.protocol.TMessageType.CALL, 0));
ping_args args = new ping_args();
@@ -874,9 +910,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
- public boolean getResult() throws org.apache.thrift.TException {
+ @Override
+ public java.lang.Boolean getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -884,22 +921,24 @@ public class MasterServer {
}
}
- public void authenticate(String login, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void authenticate(java.lang.String login, java.lang.String password, org.apache.thrift.async.AsyncMethodCallback<SessionData> resultHandler) throws org.apache.thrift.TException {
checkReady();
authenticate_call method_call = new authenticate_call(login, password, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class authenticate_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String login;
- private String password;
- public authenticate_call(String login, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class authenticate_call extends org.apache.thrift.async.TAsyncMethodCall<SessionData> {
+ private java.lang.String login;
+ private java.lang.String password;
+ public authenticate_call(java.lang.String login, java.lang.String password, org.apache.thrift.async.AsyncMethodCallback<SessionData> 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.login = login;
this.password = password;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticate", org.apache.thrift.protocol.TMessageType.CALL, 0));
authenticate_args args = new authenticate_args();
@@ -909,9 +948,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
+ @Override
public SessionData getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -919,22 +959,24 @@ public class MasterServer {
}
}
- public void localAccountLogin(String login, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void localAccountLogin(java.lang.String login, java.lang.String password, org.apache.thrift.async.AsyncMethodCallback<ClientSessionData> resultHandler) throws org.apache.thrift.TException {
checkReady();
localAccountLogin_call method_call = new localAccountLogin_call(login, password, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class localAccountLogin_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String login;
- private String password;
- public localAccountLogin_call(String login, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class localAccountLogin_call extends org.apache.thrift.async.TAsyncMethodCall<ClientSessionData> {
+ private java.lang.String login;
+ private java.lang.String password;
+ public localAccountLogin_call(java.lang.String login, java.lang.String password, org.apache.thrift.async.AsyncMethodCallback<ClientSessionData> 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.login = login;
this.password = password;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("localAccountLogin", org.apache.thrift.protocol.TMessageType.CALL, 0));
localAccountLogin_args args = new localAccountLogin_args();
@@ -944,9 +986,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
+ @Override
public ClientSessionData getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -954,22 +997,24 @@ public class MasterServer {
}
}
- public void setUsedSatellite(String sessionId, String satelliteName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void setUsedSatellite(java.lang.String sessionId, java.lang.String satelliteName, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
checkReady();
setUsedSatellite_call method_call = new setUsedSatellite_call(sessionId, satelliteName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class setUsedSatellite_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String sessionId;
- private String satelliteName;
- public setUsedSatellite_call(String sessionId, String satelliteName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class setUsedSatellite_call extends org.apache.thrift.async.TAsyncMethodCall<Void> {
+ private java.lang.String sessionId;
+ private java.lang.String satelliteName;
+ public setUsedSatellite_call(java.lang.String sessionId, java.lang.String satelliteName, org.apache.thrift.async.AsyncMethodCallback<Void> 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;
this.satelliteName = satelliteName;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUsedSatellite", org.apache.thrift.protocol.TMessageType.CALL, 0));
setUsedSatellite_args args = new setUsedSatellite_args();
@@ -979,34 +1024,38 @@ public class MasterServer {
prot.writeMessageEnd();
}
- public void getResult() throws org.apache.thrift.TException {
+ @Override
+ public Void getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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_setUsedSatellite();
+ return null;
}
}
- public void findUser(String sessionId, String organizationId, String searchTerm, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void findUser(java.lang.String sessionId, java.lang.String organizationId, java.lang.String searchTerm, org.apache.thrift.async.AsyncMethodCallback<java.util.List<UserInfo>> resultHandler) throws org.apache.thrift.TException {
checkReady();
findUser_call method_call = new findUser_call(sessionId, organizationId, searchTerm, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class findUser_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String sessionId;
- private String organizationId;
- private String searchTerm;
- public findUser_call(String sessionId, String organizationId, String searchTerm, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class findUser_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<UserInfo>> {
+ private java.lang.String sessionId;
+ private java.lang.String organizationId;
+ private java.lang.String searchTerm;
+ public findUser_call(java.lang.String sessionId, java.lang.String organizationId, java.lang.String searchTerm, org.apache.thrift.async.AsyncMethodCallback<java.util.List<UserInfo>> 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;
this.organizationId = organizationId;
this.searchTerm = searchTerm;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("findUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
findUser_args args = new findUser_args();
@@ -1017,9 +1066,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
- public List<UserInfo> getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.util.List<UserInfo> getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1027,22 +1077,24 @@ public class MasterServer {
}
}
- public void getPublicImages(String sessionId, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getPublicImages(java.lang.String sessionId, int page, org.apache.thrift.async.AsyncMethodCallback<java.util.List<ImageSummaryRead>> resultHandler) throws org.apache.thrift.TException {
checkReady();
getPublicImages_call method_call = new getPublicImages_call(sessionId, page, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class getPublicImages_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String sessionId;
+ public static class getPublicImages_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<ImageSummaryRead>> {
+ private java.lang.String sessionId;
private int page;
- public getPublicImages_call(String sessionId, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public getPublicImages_call(java.lang.String sessionId, int page, org.apache.thrift.async.AsyncMethodCallback<java.util.List<ImageSummaryRead>> 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;
this.page = page;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPublicImages", org.apache.thrift.protocol.TMessageType.CALL, 0));
getPublicImages_args args = new getPublicImages_args();
@@ -1052,9 +1104,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
- public List<ImageSummaryRead> getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.util.List<ImageSummaryRead> getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1062,22 +1115,24 @@ public class MasterServer {
}
}
- public void getImageDetails(String sessionId, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getImageDetails(java.lang.String sessionId, java.lang.String imageBaseId, org.apache.thrift.async.AsyncMethodCallback<ImageDetailsRead> resultHandler) throws org.apache.thrift.TException {
checkReady();
getImageDetails_call method_call = new getImageDetails_call(sessionId, imageBaseId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class getImageDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String sessionId;
- private String imageBaseId;
- public getImageDetails_call(String sessionId, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class getImageDetails_call extends org.apache.thrift.async.TAsyncMethodCall<ImageDetailsRead> {
+ private java.lang.String sessionId;
+ private java.lang.String imageBaseId;
+ public getImageDetails_call(java.lang.String sessionId, java.lang.String imageBaseId, org.apache.thrift.async.AsyncMethodCallback<ImageDetailsRead> 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;
this.imageBaseId = imageBaseId;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
getImageDetails_args args = new getImageDetails_args();
@@ -1087,9 +1142,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
+ @Override
public ImageDetailsRead getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1097,22 +1153,24 @@ public class MasterServer {
}
}
- public void getUser(String userToken, String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getUser(java.lang.String userToken, java.lang.String userId, org.apache.thrift.async.AsyncMethodCallback<UserInfo> resultHandler) throws org.apache.thrift.TException {
checkReady();
getUser_call method_call = new getUser_call(userToken, userId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class getUser_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String userToken;
- private String userId;
- public getUser_call(String userToken, String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class getUser_call extends org.apache.thrift.async.TAsyncMethodCall<UserInfo> {
+ private java.lang.String userToken;
+ private java.lang.String userId;
+ public getUser_call(java.lang.String userToken, java.lang.String userId, org.apache.thrift.async.AsyncMethodCallback<UserInfo> 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.userToken = userToken;
this.userId = userId;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
getUser_args args = new getUser_args();
@@ -1122,9 +1180,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
+ @Override
public UserInfo getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1132,20 +1191,22 @@ public class MasterServer {
}
}
- public void invalidateSession(String sessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void invalidateSession(java.lang.String sessionId, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
checkReady();
invalidateSession_call method_call = new invalidateSession_call(sessionId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class invalidateSession_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String sessionId;
- public invalidateSession_call(String sessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class invalidateSession_call extends org.apache.thrift.async.TAsyncMethodCall<Void> {
+ private java.lang.String sessionId;
+ public invalidateSession_call(java.lang.String sessionId, org.apache.thrift.async.AsyncMethodCallback<Void> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("invalidateSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
invalidateSession_args args = new invalidateSession_args();
@@ -1154,30 +1215,69 @@ public class MasterServer {
prot.writeMessageEnd();
}
- public void getResult() throws TInvalidTokenException, org.apache.thrift.TException {
+ @Override
+ public Void getResult() throws TInvalidTokenException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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_invalidateSession();
+ return null;
+ }
+ }
+
+ @Override
+ public void getSessionFromAccessCode(java.lang.String accessCode, org.apache.thrift.async.AsyncMethodCallback<ClientSessionData> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getSessionFromAccessCode_call method_call = new getSessionFromAccessCode_call(accessCode, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getSessionFromAccessCode_call extends org.apache.thrift.async.TAsyncMethodCall<ClientSessionData> {
+ private java.lang.String accessCode;
+ public getSessionFromAccessCode_call(java.lang.String accessCode, org.apache.thrift.async.AsyncMethodCallback<ClientSessionData> 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.accessCode = accessCode;
+ }
+
+ @Override
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSessionFromAccessCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getSessionFromAccessCode_args args = new getSessionFromAccessCode_args();
+ args.setAccessCode(accessCode);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ @Override
+ public ClientSessionData getResult() throws TNotFoundException, TAuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.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_getSessionFromAccessCode();
}
}
- public void getUserFromToken(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getUserFromToken(java.lang.String token, org.apache.thrift.async.AsyncMethodCallback<UserInfo> resultHandler) throws org.apache.thrift.TException {
checkReady();
getUserFromToken_call method_call = new getUserFromToken_call(token, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class getUserFromToken_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String token;
- public getUserFromToken_call(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class getUserFromToken_call extends org.apache.thrift.async.TAsyncMethodCall<UserInfo> {
+ private java.lang.String token;
+ public getUserFromToken_call(java.lang.String token, org.apache.thrift.async.AsyncMethodCallback<UserInfo> 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.token = token;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserFromToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
getUserFromToken_args args = new getUserFromToken_args();
@@ -1186,9 +1286,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
+ @Override
public UserInfo getResult() throws TInvalidTokenException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1196,20 +1297,22 @@ public class MasterServer {
}
}
- public void isServerAuthenticated(String serverSessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void isServerAuthenticated(java.lang.String serverSessionId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
checkReady();
isServerAuthenticated_call method_call = new isServerAuthenticated_call(serverSessionId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class isServerAuthenticated_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String serverSessionId;
- public isServerAuthenticated_call(String serverSessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class isServerAuthenticated_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.Boolean> {
+ private java.lang.String serverSessionId;
+ public isServerAuthenticated_call(java.lang.String serverSessionId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> 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.serverSessionId = serverSessionId;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isServerAuthenticated", org.apache.thrift.protocol.TMessageType.CALL, 0));
isServerAuthenticated_args args = new isServerAuthenticated_args();
@@ -1218,9 +1321,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
- public boolean getResult() throws org.apache.thrift.TException {
+ @Override
+ public java.lang.Boolean getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1228,20 +1332,22 @@ public class MasterServer {
}
}
- public void startServerAuthentication(int satelliteId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void startServerAuthentication(int satelliteId, org.apache.thrift.async.AsyncMethodCallback<java.nio.ByteBuffer> resultHandler) throws org.apache.thrift.TException {
checkReady();
startServerAuthentication_call method_call = new startServerAuthentication_call(satelliteId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class startServerAuthentication_call extends org.apache.thrift.async.TAsyncMethodCall {
+ public static class startServerAuthentication_call extends org.apache.thrift.async.TAsyncMethodCall<java.nio.ByteBuffer> {
private int satelliteId;
- public startServerAuthentication_call(int satelliteId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public startServerAuthentication_call(int satelliteId, org.apache.thrift.async.AsyncMethodCallback<java.nio.ByteBuffer> 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.satelliteId = satelliteId;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startServerAuthentication", org.apache.thrift.protocol.TMessageType.CALL, 0));
startServerAuthentication_args args = new startServerAuthentication_args();
@@ -1250,9 +1356,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
- public ByteBuffer getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.nio.ByteBuffer getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1260,22 +1367,24 @@ public class MasterServer {
}
}
- public void serverAuthenticate(int satelliteId, ByteBuffer challengeResponse, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void serverAuthenticate(int satelliteId, java.nio.ByteBuffer challengeResponse, org.apache.thrift.async.AsyncMethodCallback<ServerSessionData> resultHandler) throws org.apache.thrift.TException {
checkReady();
serverAuthenticate_call method_call = new serverAuthenticate_call(satelliteId, challengeResponse, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class serverAuthenticate_call extends org.apache.thrift.async.TAsyncMethodCall {
+ public static class serverAuthenticate_call extends org.apache.thrift.async.TAsyncMethodCall<ServerSessionData> {
private int satelliteId;
- private ByteBuffer challengeResponse;
- public serverAuthenticate_call(int satelliteId, ByteBuffer challengeResponse, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ private java.nio.ByteBuffer challengeResponse;
+ public serverAuthenticate_call(int satelliteId, java.nio.ByteBuffer challengeResponse, org.apache.thrift.async.AsyncMethodCallback<ServerSessionData> 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.satelliteId = satelliteId;
this.challengeResponse = challengeResponse;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("serverAuthenticate", org.apache.thrift.protocol.TMessageType.CALL, 0));
serverAuthenticate_args args = new serverAuthenticate_args();
@@ -1285,9 +1394,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
+ @Override
public ServerSessionData getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1295,22 +1405,24 @@ public class MasterServer {
}
}
- public void getImageData(String serverSessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getImageData(java.lang.String serverSessionId, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback<ImagePublishData> resultHandler) throws org.apache.thrift.TException {
checkReady();
getImageData_call method_call = new getImageData_call(serverSessionId, imageVersionId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class getImageData_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String serverSessionId;
- private String imageVersionId;
- public getImageData_call(String serverSessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class getImageData_call extends org.apache.thrift.async.TAsyncMethodCall<ImagePublishData> {
+ private java.lang.String serverSessionId;
+ private java.lang.String imageVersionId;
+ public getImageData_call(java.lang.String serverSessionId, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback<ImagePublishData> 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.serverSessionId = serverSessionId;
this.imageVersionId = imageVersionId;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageData", org.apache.thrift.protocol.TMessageType.CALL, 0));
getImageData_args args = new getImageData_args();
@@ -1320,9 +1432,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
+ @Override
public ImagePublishData getResult() throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1330,24 +1443,26 @@ public class MasterServer {
}
}
- public void submitImage(String userToken, ImagePublishData imageDescription, List<ByteBuffer> blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void submitImage(java.lang.String userToken, ImagePublishData imageDescription, java.util.List<java.nio.ByteBuffer> blockHashes, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> resultHandler) throws org.apache.thrift.TException {
checkReady();
submitImage_call method_call = new submitImage_call(userToken, imageDescription, blockHashes, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class submitImage_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String userToken;
+ public static class submitImage_call extends org.apache.thrift.async.TAsyncMethodCall<TransferInformation> {
+ private java.lang.String userToken;
private ImagePublishData imageDescription;
- private List<ByteBuffer> blockHashes;
- public submitImage_call(String userToken, ImagePublishData imageDescription, List<ByteBuffer> blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ private java.util.List<java.nio.ByteBuffer> blockHashes;
+ public submitImage_call(java.lang.String userToken, ImagePublishData imageDescription, java.util.List<java.nio.ByteBuffer> blockHashes, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> 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.userToken = userToken;
this.imageDescription = imageDescription;
this.blockHashes = blockHashes;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("submitImage", org.apache.thrift.protocol.TMessageType.CALL, 0));
submitImage_args args = new submitImage_args();
@@ -1358,9 +1473,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
+ @Override
public TransferInformation getResult() throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1368,21 +1484,22 @@ public class MasterServer {
}
}
- public void registerSatellite(String userToken, String displayName, List<String> addresses, String modulus, String exponent, ByteBuffer certsha256, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void registerSatellite(java.lang.String userToken, java.lang.String displayName, java.util.List<java.lang.String> addresses, java.lang.String modulus, java.lang.String exponent, java.nio.ByteBuffer certsha256, org.apache.thrift.async.AsyncMethodCallback<java.lang.Integer> resultHandler) throws org.apache.thrift.TException {
checkReady();
registerSatellite_call method_call = new registerSatellite_call(userToken, displayName, addresses, modulus, exponent, certsha256, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class registerSatellite_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String userToken;
- private String displayName;
- private List<String> addresses;
- private String modulus;
- private String exponent;
- private ByteBuffer certsha256;
- public registerSatellite_call(String userToken, String displayName, List<String> addresses, String modulus, String exponent, ByteBuffer certsha256, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class registerSatellite_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.Integer> {
+ private java.lang.String userToken;
+ private java.lang.String displayName;
+ private java.util.List<java.lang.String> addresses;
+ private java.lang.String modulus;
+ private java.lang.String exponent;
+ private java.nio.ByteBuffer certsha256;
+ public registerSatellite_call(java.lang.String userToken, java.lang.String displayName, java.util.List<java.lang.String> addresses, java.lang.String modulus, java.lang.String exponent, java.nio.ByteBuffer certsha256, org.apache.thrift.async.AsyncMethodCallback<java.lang.Integer> 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.userToken = userToken;
this.displayName = displayName;
@@ -1392,6 +1509,7 @@ public class MasterServer {
this.certsha256 = certsha256;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("registerSatellite", org.apache.thrift.protocol.TMessageType.CALL, 0));
registerSatellite_args args = new registerSatellite_args();
@@ -1405,9 +1523,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
- public int getResult() throws TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.lang.Integer getResult() throws TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1415,24 +1534,26 @@ public class MasterServer {
}
}
- public void updateSatellite(String serverSessionId, String displayName, List<String> addresses, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void updateSatellite(java.lang.String serverSessionId, java.lang.String displayName, java.util.List<java.lang.String> addresses, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
checkReady();
updateSatellite_call method_call = new updateSatellite_call(serverSessionId, displayName, addresses, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class updateSatellite_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String serverSessionId;
- private String displayName;
- private List<String> addresses;
- public updateSatellite_call(String serverSessionId, String displayName, List<String> addresses, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class updateSatellite_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.Boolean> {
+ private java.lang.String serverSessionId;
+ private java.lang.String displayName;
+ private java.util.List<java.lang.String> addresses;
+ public updateSatellite_call(java.lang.String serverSessionId, java.lang.String displayName, java.util.List<java.lang.String> addresses, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> 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.serverSessionId = serverSessionId;
this.displayName = displayName;
this.addresses = addresses;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateSatellite", org.apache.thrift.protocol.TMessageType.CALL, 0));
updateSatellite_args args = new updateSatellite_args();
@@ -1443,9 +1564,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
- public boolean getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.lang.Boolean getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1453,22 +1575,24 @@ public class MasterServer {
}
}
- public void downloadImage(String sessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void downloadImage(java.lang.String sessionId, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> resultHandler) throws org.apache.thrift.TException {
checkReady();
downloadImage_call method_call = new downloadImage_call(sessionId, imageVersionId, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class downloadImage_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String sessionId;
- private String imageVersionId;
- public downloadImage_call(String sessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class downloadImage_call extends org.apache.thrift.async.TAsyncMethodCall<TransferInformation> {
+ private java.lang.String sessionId;
+ private java.lang.String imageVersionId;
+ public downloadImage_call(java.lang.String sessionId, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> 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;
this.imageVersionId = imageVersionId;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("downloadImage", org.apache.thrift.protocol.TMessageType.CALL, 0));
downloadImage_args args = new downloadImage_args();
@@ -1478,9 +1602,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
+ @Override
public TransferInformation getResult() throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1488,18 +1613,20 @@ public class MasterServer {
}
}
- public void getOrganizations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getOrganizations(org.apache.thrift.async.AsyncMethodCallback<java.util.List<Organization>> resultHandler) throws org.apache.thrift.TException {
checkReady();
getOrganizations_call method_call = new getOrganizations_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class getOrganizations_call extends org.apache.thrift.async.TAsyncMethodCall {
- public getOrganizations_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class getOrganizations_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<Organization>> {
+ public getOrganizations_call(org.apache.thrift.async.AsyncMethodCallback<java.util.List<Organization>> 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);
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrganizations", org.apache.thrift.protocol.TMessageType.CALL, 0));
getOrganizations_args args = new getOrganizations_args();
@@ -1507,9 +1634,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
- public List<Organization> getResult() throws TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.util.List<Organization> getResult() throws TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1517,18 +1645,20 @@ public class MasterServer {
}
}
- public void getOperatingSystems(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getOperatingSystems(org.apache.thrift.async.AsyncMethodCallback<java.util.List<OperatingSystem>> resultHandler) throws org.apache.thrift.TException {
checkReady();
getOperatingSystems_call method_call = new getOperatingSystems_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class getOperatingSystems_call extends org.apache.thrift.async.TAsyncMethodCall {
- public getOperatingSystems_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class getOperatingSystems_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<OperatingSystem>> {
+ public getOperatingSystems_call(org.apache.thrift.async.AsyncMethodCallback<java.util.List<OperatingSystem>> 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);
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOperatingSystems", org.apache.thrift.protocol.TMessageType.CALL, 0));
getOperatingSystems_args args = new getOperatingSystems_args();
@@ -1536,9 +1666,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
- public List<OperatingSystem> getResult() throws TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.util.List<OperatingSystem> getResult() throws TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1546,18 +1677,20 @@ public class MasterServer {
}
}
- public void getVirtualizers(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getVirtualizers(org.apache.thrift.async.AsyncMethodCallback<java.util.List<Virtualizer>> resultHandler) throws org.apache.thrift.TException {
checkReady();
getVirtualizers_call method_call = new getVirtualizers_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class getVirtualizers_call extends org.apache.thrift.async.TAsyncMethodCall {
- public getVirtualizers_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class getVirtualizers_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<Virtualizer>> {
+ public getVirtualizers_call(org.apache.thrift.async.AsyncMethodCallback<java.util.List<Virtualizer>> 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);
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVirtualizers", org.apache.thrift.protocol.TMessageType.CALL, 0));
getVirtualizers_args args = new getVirtualizers_args();
@@ -1565,9 +1698,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
- public List<Virtualizer> getResult() throws TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.util.List<Virtualizer> getResult() throws TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1575,20 +1709,22 @@ public class MasterServer {
}
}
- public void getTags(long startDate, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getTags(long startDate, org.apache.thrift.async.AsyncMethodCallback<java.util.List<MasterTag>> resultHandler) throws org.apache.thrift.TException {
checkReady();
getTags_call method_call = new getTags_call(startDate, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class getTags_call extends org.apache.thrift.async.TAsyncMethodCall {
+ public static class getTags_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<MasterTag>> {
private long startDate;
- public getTags_call(long startDate, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public getTags_call(long startDate, org.apache.thrift.async.AsyncMethodCallback<java.util.List<MasterTag>> 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.startDate = startDate;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTags", org.apache.thrift.protocol.TMessageType.CALL, 0));
getTags_args args = new getTags_args();
@@ -1597,9 +1733,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
- public List<MasterTag> getResult() throws TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.util.List<MasterTag> getResult() throws TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1607,20 +1744,22 @@ public class MasterServer {
}
}
- public void getSoftware(long startDate, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getSoftware(long startDate, org.apache.thrift.async.AsyncMethodCallback<java.util.List<MasterSoftware>> resultHandler) throws org.apache.thrift.TException {
checkReady();
getSoftware_call method_call = new getSoftware_call(startDate, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class getSoftware_call extends org.apache.thrift.async.TAsyncMethodCall {
+ public static class getSoftware_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<MasterSoftware>> {
private long startDate;
- public getSoftware_call(long startDate, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public getSoftware_call(long startDate, org.apache.thrift.async.AsyncMethodCallback<java.util.List<MasterSoftware>> 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.startDate = startDate;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSoftware", org.apache.thrift.protocol.TMessageType.CALL, 0));
getSoftware_args args = new getSoftware_args();
@@ -1629,9 +1768,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
- public List<MasterSoftware> getResult() throws TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.util.List<MasterSoftware> getResult() throws TInvocationException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1639,20 +1779,22 @@ public class MasterServer {
}
}
- public void queryUploadStatus(String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void queryUploadStatus(java.lang.String uploadToken, org.apache.thrift.async.AsyncMethodCallback<TransferStatus> resultHandler) throws org.apache.thrift.TException {
checkReady();
queryUploadStatus_call method_call = new queryUploadStatus_call(uploadToken, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
- public static class queryUploadStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
- private String uploadToken;
- public queryUploadStatus_call(String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ public static class queryUploadStatus_call extends org.apache.thrift.async.TAsyncMethodCall<TransferStatus> {
+ private java.lang.String uploadToken;
+ public queryUploadStatus_call(java.lang.String uploadToken, org.apache.thrift.async.AsyncMethodCallback<TransferStatus> 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.uploadToken = uploadToken;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("queryUploadStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
queryUploadStatus_args args = new queryUploadStatus_args();
@@ -1661,9 +1803,10 @@ public class MasterServer {
prot.writeMessageEnd();
}
+ @Override
public TransferStatus getResult() throws TInvalidTokenException, org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new IllegalStateException("Method call not finished!");
+ throw new java.lang.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);
@@ -1674,16 +1817,16 @@ public class MasterServer {
}
public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
- private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
+ private static final org.slf4j.Logger _LOGGER = org.slf4j.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>>()));
+ super(iface, getProcessMap(new java.util.HashMap<java.lang.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) {
+ protected Processor(I iface, java.util.Map<java.lang.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) {
+ private static <I extends Iface> java.util.Map<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(java.util.Map<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
processMap.put("ping", new ping());
processMap.put("authenticate", new authenticate());
processMap.put("localAccountLogin", new localAccountLogin());
@@ -1693,6 +1836,7 @@ public class MasterServer {
processMap.put("getImageDetails", new getImageDetails());
processMap.put("getUser", new getUser());
processMap.put("invalidateSession", new invalidateSession());
+ processMap.put("getSessionFromAccessCode", new getSessionFromAccessCode());
processMap.put("getUserFromToken", new getUserFromToken());
processMap.put("isServerAuthenticated", new isServerAuthenticated());
processMap.put("startServerAuthentication", new startServerAuthentication());
@@ -1716,14 +1860,22 @@ public class MasterServer {
super("ping");
}
+ @Override
public ping_args getEmptyArgsInstance() {
return new ping_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public ping_result getResult(I iface, ping_args args) throws org.apache.thrift.TException {
ping_result result = new ping_result();
result.success = iface.ping();
@@ -1737,14 +1889,22 @@ public class MasterServer {
super("authenticate");
}
+ @Override
public authenticate_args getEmptyArgsInstance() {
return new authenticate_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public authenticate_result getResult(I iface, authenticate_args args) throws org.apache.thrift.TException {
authenticate_result result = new authenticate_result();
try {
@@ -1763,14 +1923,22 @@ public class MasterServer {
super("localAccountLogin");
}
+ @Override
public localAccountLogin_args getEmptyArgsInstance() {
return new localAccountLogin_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public localAccountLogin_result getResult(I iface, localAccountLogin_args args) throws org.apache.thrift.TException {
localAccountLogin_result result = new localAccountLogin_result();
try {
@@ -1789,14 +1957,22 @@ public class MasterServer {
super("setUsedSatellite");
}
+ @Override
public setUsedSatellite_args getEmptyArgsInstance() {
return new setUsedSatellite_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public setUsedSatellite_result getResult(I iface, setUsedSatellite_args args) throws org.apache.thrift.TException {
setUsedSatellite_result result = new setUsedSatellite_result();
iface.setUsedSatellite(args.sessionId, args.satelliteName);
@@ -1809,14 +1985,22 @@ public class MasterServer {
super("findUser");
}
+ @Override
public findUser_args getEmptyArgsInstance() {
return new findUser_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public findUser_result getResult(I iface, findUser_args args) throws org.apache.thrift.TException {
findUser_result result = new findUser_result();
try {
@@ -1835,14 +2019,22 @@ public class MasterServer {
super("getPublicImages");
}
+ @Override
public getPublicImages_args getEmptyArgsInstance() {
return new getPublicImages_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getPublicImages_result getResult(I iface, getPublicImages_args args) throws org.apache.thrift.TException {
getPublicImages_result result = new getPublicImages_result();
try {
@@ -1861,14 +2053,22 @@ public class MasterServer {
super("getImageDetails");
}
+ @Override
public getImageDetails_args getEmptyArgsInstance() {
return new getImageDetails_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getImageDetails_result getResult(I iface, getImageDetails_args args) throws org.apache.thrift.TException {
getImageDetails_result result = new getImageDetails_result();
try {
@@ -1889,14 +2089,22 @@ public class MasterServer {
super("getUser");
}
+ @Override
public getUser_args getEmptyArgsInstance() {
return new getUser_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getUser_result getResult(I iface, getUser_args args) throws org.apache.thrift.TException {
getUser_result result = new getUser_result();
try {
@@ -1917,14 +2125,22 @@ public class MasterServer {
super("invalidateSession");
}
+ @Override
public invalidateSession_args getEmptyArgsInstance() {
return new invalidateSession_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public invalidateSession_result getResult(I iface, invalidateSession_args args) throws org.apache.thrift.TException {
invalidateSession_result result = new invalidateSession_result();
try {
@@ -1936,19 +2152,61 @@ public class MasterServer {
}
}
+ public static class getSessionFromAccessCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSessionFromAccessCode_args> {
+ public getSessionFromAccessCode() {
+ super("getSessionFromAccessCode");
+ }
+
+ @Override
+ public getSessionFromAccessCode_args getEmptyArgsInstance() {
+ return new getSessionFromAccessCode_args();
+ }
+
+ @Override
+ protected boolean isOneway() {
+ return false;
+ }
+
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
+ public getSessionFromAccessCode_result getResult(I iface, getSessionFromAccessCode_args args) throws org.apache.thrift.TException {
+ getSessionFromAccessCode_result result = new getSessionFromAccessCode_result();
+ try {
+ result.success = iface.getSessionFromAccessCode(args.accessCode);
+ } catch (TNotFoundException notFound) {
+ result.notFound = notFound;
+ } catch (TAuthorizationException auth) {
+ result.auth = auth;
+ }
+ return result;
+ }
+ }
+
public static class getUserFromToken<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserFromToken_args> {
public getUserFromToken() {
super("getUserFromToken");
}
+ @Override
public getUserFromToken_args getEmptyArgsInstance() {
return new getUserFromToken_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getUserFromToken_result getResult(I iface, getUserFromToken_args args) throws org.apache.thrift.TException {
getUserFromToken_result result = new getUserFromToken_result();
try {
@@ -1965,14 +2223,22 @@ public class MasterServer {
super("isServerAuthenticated");
}
+ @Override
public isServerAuthenticated_args getEmptyArgsInstance() {
return new isServerAuthenticated_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public isServerAuthenticated_result getResult(I iface, isServerAuthenticated_args args) throws org.apache.thrift.TException {
isServerAuthenticated_result result = new isServerAuthenticated_result();
result.success = iface.isServerAuthenticated(args.serverSessionId);
@@ -1986,14 +2252,22 @@ public class MasterServer {
super("startServerAuthentication");
}
+ @Override
public startServerAuthentication_args getEmptyArgsInstance() {
return new startServerAuthentication_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public startServerAuthentication_result getResult(I iface, startServerAuthentication_args args) throws org.apache.thrift.TException {
startServerAuthentication_result result = new startServerAuthentication_result();
try {
@@ -2012,14 +2286,22 @@ public class MasterServer {
super("serverAuthenticate");
}
+ @Override
public serverAuthenticate_args getEmptyArgsInstance() {
return new serverAuthenticate_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public serverAuthenticate_result getResult(I iface, serverAuthenticate_args args) throws org.apache.thrift.TException {
serverAuthenticate_result result = new serverAuthenticate_result();
try {
@@ -2038,14 +2320,22 @@ public class MasterServer {
super("getImageData");
}
+ @Override
public getImageData_args getEmptyArgsInstance() {
return new getImageData_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getImageData_result getResult(I iface, getImageData_args args) throws org.apache.thrift.TException {
getImageData_result result = new getImageData_result();
try {
@@ -2066,14 +2356,22 @@ public class MasterServer {
super("submitImage");
}
+ @Override
public submitImage_args getEmptyArgsInstance() {
return new submitImage_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public submitImage_result getResult(I iface, submitImage_args args) throws org.apache.thrift.TException {
submitImage_result result = new submitImage_result();
try {
@@ -2094,14 +2392,22 @@ public class MasterServer {
super("registerSatellite");
}
+ @Override
public registerSatellite_args getEmptyArgsInstance() {
return new registerSatellite_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public registerSatellite_result getResult(I iface, registerSatellite_args args) throws org.apache.thrift.TException {
registerSatellite_result result = new registerSatellite_result();
try {
@@ -2119,14 +2425,22 @@ public class MasterServer {
super("updateSatellite");
}
+ @Override
public updateSatellite_args getEmptyArgsInstance() {
return new updateSatellite_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public updateSatellite_result getResult(I iface, updateSatellite_args args) throws org.apache.thrift.TException {
updateSatellite_result result = new updateSatellite_result();
try {
@@ -2146,14 +2460,22 @@ public class MasterServer {
super("downloadImage");
}
+ @Override
public downloadImage_args getEmptyArgsInstance() {
return new downloadImage_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public downloadImage_result getResult(I iface, downloadImage_args args) throws org.apache.thrift.TException {
downloadImage_result result = new downloadImage_result();
try {
@@ -2174,14 +2496,22 @@ public class MasterServer {
super("getOrganizations");
}
+ @Override
public getOrganizations_args getEmptyArgsInstance() {
return new getOrganizations_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getOrganizations_result getResult(I iface, getOrganizations_args args) throws org.apache.thrift.TException {
getOrganizations_result result = new getOrganizations_result();
try {
@@ -2198,14 +2528,22 @@ public class MasterServer {
super("getOperatingSystems");
}
+ @Override
public getOperatingSystems_args getEmptyArgsInstance() {
return new getOperatingSystems_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getOperatingSystems_result getResult(I iface, getOperatingSystems_args args) throws org.apache.thrift.TException {
getOperatingSystems_result result = new getOperatingSystems_result();
try {
@@ -2222,14 +2560,22 @@ public class MasterServer {
super("getVirtualizers");
}
+ @Override
public getVirtualizers_args getEmptyArgsInstance() {
return new getVirtualizers_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getVirtualizers_result getResult(I iface, getVirtualizers_args args) throws org.apache.thrift.TException {
getVirtualizers_result result = new getVirtualizers_result();
try {
@@ -2246,14 +2592,22 @@ public class MasterServer {
super("getTags");
}
+ @Override
public getTags_args getEmptyArgsInstance() {
return new getTags_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getTags_result getResult(I iface, getTags_args args) throws org.apache.thrift.TException {
getTags_result result = new getTags_result();
try {
@@ -2270,14 +2624,22 @@ public class MasterServer {
super("getSoftware");
}
+ @Override
public getSoftware_args getEmptyArgsInstance() {
return new getSoftware_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getSoftware_result getResult(I iface, getSoftware_args args) throws org.apache.thrift.TException {
getSoftware_result result = new getSoftware_result();
try {
@@ -2294,14 +2656,22 @@ public class MasterServer {
super("queryUploadStatus");
}
+ @Override
public queryUploadStatus_args getEmptyArgsInstance() {
return new queryUploadStatus_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public queryUploadStatus_result getResult(I iface, queryUploadStatus_args args) throws org.apache.thrift.TException {
queryUploadStatus_result result = new queryUploadStatus_result();
try {
@@ -2316,16 +2686,16 @@ public class MasterServer {
}
public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
- private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
+ private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName());
public AsyncProcessor(I iface) {
- super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
+ super(iface, getProcessMap(new java.util.HashMap<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
}
- protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
+ protected AsyncProcessor(I iface, java.util.Map<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
super(iface, getProcessMap(processMap));
}
- private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
+ private static <I extends AsyncIface> java.util.Map<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(java.util.Map<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
processMap.put("ping", new ping());
processMap.put("authenticate", new authenticate());
processMap.put("localAccountLogin", new localAccountLogin());
@@ -2335,6 +2705,7 @@ public class MasterServer {
processMap.put("getImageDetails", new getImageDetails());
processMap.put("getUser", new getUser());
processMap.put("invalidateSession", new invalidateSession());
+ processMap.put("getSessionFromAccessCode", new getSessionFromAccessCode());
processMap.put("getUserFromToken", new getUserFromToken());
processMap.put("isServerAuthenticated", new isServerAuthenticated());
processMap.put("startServerAuthentication", new startServerAuthentication());
@@ -2353,54 +2724,70 @@ public class MasterServer {
return processMap;
}
- public static class ping<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, ping_args, Boolean> {
+ public static class ping<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, ping_args, java.lang.Boolean> {
public ping() {
super("ping");
}
+ @Override
public ping_args getEmptyArgsInstance() {
return new ping_args();
}
- public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Boolean>() {
- public void onComplete(Boolean o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean>() {
+ @Override
+ public void onComplete(java.lang.Boolean o) {
ping_result result = new ping_result();
result.success = o;
result.setSuccessIsSet(true);
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
ping_result result = new ping_result();
- {
+ if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, ping_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+ @Override
+ public void start(I iface, ping_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
iface.ping(resultHandler);
}
}
@@ -2410,59 +2797,72 @@ public class MasterServer {
super("authenticate");
}
+ @Override
public authenticate_args getEmptyArgsInstance() {
return new authenticate_args();
}
- public AsyncMethodCallback<SessionData> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<SessionData> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<SessionData>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<SessionData>() {
+ @Override
public void onComplete(SessionData o) {
authenticate_result result = new authenticate_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
authenticate_result result = new authenticate_result();
if (e instanceof TAuthorizationException) {
- result.failure = (TAuthorizationException) e;
- result.setFailureIsSet(true);
- msg = result;
- }
- else if (e instanceof TInvocationException) {
- result.error = (TInvocationException) e;
- result.setErrorIsSet(true);
- msg = result;
- }
- else
- {
+ result.failure = (TAuthorizationException) e;
+ result.setFailureIsSet(true);
+ msg = result;
+ } else if (e instanceof TInvocationException) {
+ result.error = (TInvocationException) e;
+ result.setErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, authenticate_args args, org.apache.thrift.async.AsyncMethodCallback<SessionData> resultHandler) throws TException {
+ @Override
+ public void start(I iface, authenticate_args args, org.apache.thrift.async.AsyncMethodCallback<SessionData> resultHandler) throws org.apache.thrift.TException {
iface.authenticate(args.login, args.password,resultHandler);
}
}
@@ -2472,59 +2872,72 @@ public class MasterServer {
super("localAccountLogin");
}
+ @Override
public localAccountLogin_args getEmptyArgsInstance() {
return new localAccountLogin_args();
}
- public AsyncMethodCallback<ClientSessionData> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<ClientSessionData> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<ClientSessionData>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<ClientSessionData>() {
+ @Override
public void onComplete(ClientSessionData o) {
localAccountLogin_result result = new localAccountLogin_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
localAccountLogin_result result = new localAccountLogin_result();
if (e instanceof TAuthorizationException) {
- result.failure = (TAuthorizationException) e;
- result.setFailureIsSet(true);
- msg = result;
- }
- else if (e instanceof TInvocationException) {
- result.error = (TInvocationException) e;
- result.setErrorIsSet(true);
- msg = result;
- }
- else
- {
+ result.failure = (TAuthorizationException) e;
+ result.setFailureIsSet(true);
+ msg = result;
+ } else if (e instanceof TInvocationException) {
+ result.error = (TInvocationException) e;
+ result.setErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, localAccountLogin_args args, org.apache.thrift.async.AsyncMethodCallback<ClientSessionData> resultHandler) throws TException {
+ @Override
+ public void start(I iface, localAccountLogin_args args, org.apache.thrift.async.AsyncMethodCallback<ClientSessionData> resultHandler) throws org.apache.thrift.TException {
iface.localAccountLogin(args.login, args.password,resultHandler);
}
}
@@ -2534,171 +2947,213 @@ public class MasterServer {
super("setUsedSatellite");
}
+ @Override
public setUsedSatellite_args getEmptyArgsInstance() {
return new setUsedSatellite_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
public void onComplete(Void o) {
setUsedSatellite_result result = new setUsedSatellite_result();
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
setUsedSatellite_result result = new setUsedSatellite_result();
- {
+ if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, setUsedSatellite_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, setUsedSatellite_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.setUsedSatellite(args.sessionId, args.satelliteName,resultHandler);
}
}
- public static class findUser<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, findUser_args, List<UserInfo>> {
+ public static class findUser<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, findUser_args, java.util.List<UserInfo>> {
public findUser() {
super("findUser");
}
+ @Override
public findUser_args getEmptyArgsInstance() {
return new findUser_args();
}
- public AsyncMethodCallback<List<UserInfo>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<UserInfo>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<UserInfo>>() {
- public void onComplete(List<UserInfo> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<UserInfo>>() {
+ @Override
+ public void onComplete(java.util.List<UserInfo> o) {
findUser_result result = new findUser_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
findUser_result result = new findUser_result();
if (e instanceof TAuthorizationException) {
- result.failure = (TAuthorizationException) e;
- result.setFailureIsSet(true);
- msg = result;
- }
- else if (e instanceof TInvocationException) {
- result.error = (TInvocationException) e;
- result.setErrorIsSet(true);
- msg = result;
- }
- else
- {
+ result.failure = (TAuthorizationException) e;
+ result.setFailureIsSet(true);
+ msg = result;
+ } else if (e instanceof TInvocationException) {
+ result.error = (TInvocationException) e;
+ result.setErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, findUser_args args, org.apache.thrift.async.AsyncMethodCallback<List<UserInfo>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, findUser_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<UserInfo>> resultHandler) throws org.apache.thrift.TException {
iface.findUser(args.sessionId, args.organizationId, args.searchTerm,resultHandler);
}
}
- public static class getPublicImages<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPublicImages_args, List<ImageSummaryRead>> {
+ public static class getPublicImages<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPublicImages_args, java.util.List<ImageSummaryRead>> {
public getPublicImages() {
super("getPublicImages");
}
+ @Override
public getPublicImages_args getEmptyArgsInstance() {
return new getPublicImages_args();
}
- public AsyncMethodCallback<List<ImageSummaryRead>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<ImageSummaryRead>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<ImageSummaryRead>>() {
- public void onComplete(List<ImageSummaryRead> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<ImageSummaryRead>>() {
+ @Override
+ public void onComplete(java.util.List<ImageSummaryRead> o) {
getPublicImages_result result = new getPublicImages_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
getPublicImages_result result = new getPublicImages_result();
if (e instanceof TAuthorizationException) {
- result.failure = (TAuthorizationException) e;
- result.setFailureIsSet(true);
- msg = result;
- }
- else if (e instanceof TInvocationException) {
- result.error = (TInvocationException) e;
- result.setErrorIsSet(true);
- msg = result;
- }
- else
- {
+ result.failure = (TAuthorizationException) e;
+ result.setFailureIsSet(true);
+ msg = result;
+ } else if (e instanceof TInvocationException) {
+ result.error = (TInvocationException) e;
+ result.setErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getPublicImages_args args, org.apache.thrift.async.AsyncMethodCallback<List<ImageSummaryRead>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getPublicImages_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<ImageSummaryRead>> resultHandler) throws org.apache.thrift.TException {
iface.getPublicImages(args.sessionId, args.page,resultHandler);
}
}
@@ -2708,64 +3163,76 @@ public class MasterServer {
super("getImageDetails");
}
+ @Override
public getImageDetails_args getEmptyArgsInstance() {
return new getImageDetails_args();
}
- public AsyncMethodCallback<ImageDetailsRead> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<ImageDetailsRead> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<ImageDetailsRead>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<ImageDetailsRead>() {
+ @Override
public void onComplete(ImageDetailsRead o) {
getImageDetails_result result = new getImageDetails_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
getImageDetails_result result = new getImageDetails_result();
if (e instanceof TAuthorizationException) {
- result.authError = (TAuthorizationException) e;
- result.setAuthErrorIsSet(true);
- msg = result;
- }
- else if (e instanceof TNotFoundException) {
- result.notFound = (TNotFoundException) e;
- result.setNotFoundIsSet(true);
- msg = result;
- }
- else if (e instanceof TInvocationException) {
- result.serverError = (TInvocationException) e;
- result.setServerErrorIsSet(true);
- msg = result;
- }
- else
- {
+ result.authError = (TAuthorizationException) e;
+ result.setAuthErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof TNotFoundException) {
+ result.notFound = (TNotFoundException) e;
+ result.setNotFoundIsSet(true);
+ msg = result;
+ } else if (e instanceof TInvocationException) {
+ result.serverError = (TInvocationException) e;
+ result.setServerErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getImageDetails_args args, org.apache.thrift.async.AsyncMethodCallback<ImageDetailsRead> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getImageDetails_args args, org.apache.thrift.async.AsyncMethodCallback<ImageDetailsRead> resultHandler) throws org.apache.thrift.TException {
iface.getImageDetails(args.sessionId, args.imageBaseId,resultHandler);
}
}
@@ -2775,64 +3242,76 @@ public class MasterServer {
super("getUser");
}
+ @Override
public getUser_args getEmptyArgsInstance() {
return new getUser_args();
}
- public AsyncMethodCallback<UserInfo> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<UserInfo> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<UserInfo>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<UserInfo>() {
+ @Override
public void onComplete(UserInfo o) {
getUser_result result = new getUser_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
getUser_result result = new getUser_result();
if (e instanceof TAuthorizationException) {
- result.authError = (TAuthorizationException) e;
- result.setAuthErrorIsSet(true);
- msg = result;
- }
- else if (e instanceof TNotFoundException) {
- result.notFound = (TNotFoundException) e;
- result.setNotFoundIsSet(true);
- msg = result;
- }
- else if (e instanceof TInvocationException) {
- result.serverError = (TInvocationException) e;
- result.setServerErrorIsSet(true);
- msg = result;
- }
- else
- {
+ result.authError = (TAuthorizationException) e;
+ result.setAuthErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof TNotFoundException) {
+ result.notFound = (TNotFoundException) e;
+ result.setNotFoundIsSet(true);
+ msg = result;
+ } else if (e instanceof TInvocationException) {
+ result.serverError = (TInvocationException) e;
+ result.setServerErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getUser_args args, org.apache.thrift.async.AsyncMethodCallback<UserInfo> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getUser_args args, org.apache.thrift.async.AsyncMethodCallback<UserInfo> resultHandler) throws org.apache.thrift.TException {
iface.getUser(args.userToken, args.userId,resultHandler);
}
}
@@ -2842,224 +3321,356 @@ public class MasterServer {
super("invalidateSession");
}
+ @Override
public invalidateSession_args getEmptyArgsInstance() {
return new invalidateSession_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
public void onComplete(Void o) {
invalidateSession_result result = new invalidateSession_result();
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
invalidateSession_result result = new invalidateSession_result();
if (e instanceof TInvalidTokenException) {
- result.ex = (TInvalidTokenException) e;
- result.setExIsSet(true);
- msg = result;
- }
- else
- {
+ result.ex = (TInvalidTokenException) e;
+ result.setExIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, invalidateSession_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, invalidateSession_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.invalidateSession(args.sessionId,resultHandler);
}
}
+ public static class getSessionFromAccessCode<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getSessionFromAccessCode_args, ClientSessionData> {
+ public getSessionFromAccessCode() {
+ super("getSessionFromAccessCode");
+ }
+
+ @Override
+ public getSessionFromAccessCode_args getEmptyArgsInstance() {
+ return new getSessionFromAccessCode_args();
+ }
+
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<ClientSessionData> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<ClientSessionData>() {
+ @Override
+ public void onComplete(ClientSessionData o) {
+ getSessionFromAccessCode_result result = new getSessionFromAccessCode_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ @Override
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ getSessionFromAccessCode_result result = new getSessionFromAccessCode_result();
+ if (e instanceof TNotFoundException) {
+ result.notFound = (TNotFoundException) e;
+ result.setNotFoundIsSet(true);
+ msg = result;
+ } else if (e instanceof TAuthorizationException) {
+ result.auth = (TAuthorizationException) e;
+ result.setAuthIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ @Override
+ protected boolean isOneway() {
+ return false;
+ }
+
+ @Override
+ public void start(I iface, getSessionFromAccessCode_args args, org.apache.thrift.async.AsyncMethodCallback<ClientSessionData> resultHandler) throws org.apache.thrift.TException {
+ iface.getSessionFromAccessCode(args.accessCode,resultHandler);
+ }
+ }
+
public static class getUserFromToken<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getUserFromToken_args, UserInfo> {
public getUserFromToken() {
super("getUserFromToken");
}
+ @Override
public getUserFromToken_args getEmptyArgsInstance() {
return new getUserFromToken_args();
}
- public AsyncMethodCallback<UserInfo> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<UserInfo> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<UserInfo>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<UserInfo>() {
+ @Override
public void onComplete(UserInfo o) {
getUserFromToken_result result = new getUserFromToken_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
getUserFromToken_result result = new getUserFromToken_result();
if (e instanceof TInvalidTokenException) {
- result.failure = (TInvalidTokenException) e;
- result.setFailureIsSet(true);
- msg = result;
- }
- else
- {
+ result.failure = (TInvalidTokenException) e;
+ result.setFailureIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getUserFromToken_args args, org.apache.thrift.async.AsyncMethodCallback<UserInfo> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getUserFromToken_args args, org.apache.thrift.async.AsyncMethodCallback<UserInfo> resultHandler) throws org.apache.thrift.TException {
iface.getUserFromToken(args.token,resultHandler);
}
}
- public static class isServerAuthenticated<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, isServerAuthenticated_args, Boolean> {
+ public static class isServerAuthenticated<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, isServerAuthenticated_args, java.lang.Boolean> {
public isServerAuthenticated() {
super("isServerAuthenticated");
}
+ @Override
public isServerAuthenticated_args getEmptyArgsInstance() {
return new isServerAuthenticated_args();
}
- public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Boolean>() {
- public void onComplete(Boolean o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean>() {
+ @Override
+ public void onComplete(java.lang.Boolean o) {
isServerAuthenticated_result result = new isServerAuthenticated_result();
result.success = o;
result.setSuccessIsSet(true);
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
isServerAuthenticated_result result = new isServerAuthenticated_result();
- {
+ if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, isServerAuthenticated_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+ @Override
+ public void start(I iface, isServerAuthenticated_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
iface.isServerAuthenticated(args.serverSessionId,resultHandler);
}
}
- public static class startServerAuthentication<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, startServerAuthentication_args, ByteBuffer> {
+ public static class startServerAuthentication<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, startServerAuthentication_args, java.nio.ByteBuffer> {
public startServerAuthentication() {
super("startServerAuthentication");
}
+ @Override
public startServerAuthentication_args getEmptyArgsInstance() {
return new startServerAuthentication_args();
}
- public AsyncMethodCallback<ByteBuffer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.nio.ByteBuffer> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<ByteBuffer>() {
- public void onComplete(ByteBuffer o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.nio.ByteBuffer>() {
+ @Override
+ public void onComplete(java.nio.ByteBuffer o) {
startServerAuthentication_result result = new startServerAuthentication_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
startServerAuthentication_result result = new startServerAuthentication_result();
if (e instanceof TAuthorizationException) {
- result.failure = (TAuthorizationException) e;
- result.setFailureIsSet(true);
- msg = result;
- }
- else if (e instanceof TInvocationException) {
- result.error = (TInvocationException) e;
- result.setErrorIsSet(true);
- msg = result;
- }
- else
- {
+ result.failure = (TAuthorizationException) e;
+ result.setFailureIsSet(true);
+ msg = result;
+ } else if (e instanceof TInvocationException) {
+ result.error = (TInvocationException) e;
+ result.setErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, startServerAuthentication_args args, org.apache.thrift.async.AsyncMethodCallback<ByteBuffer> resultHandler) throws TException {
+ @Override
+ public void start(I iface, startServerAuthentication_args args, org.apache.thrift.async.AsyncMethodCallback<java.nio.ByteBuffer> resultHandler) throws org.apache.thrift.TException {
iface.startServerAuthentication(args.satelliteId,resultHandler);
}
}
@@ -3069,59 +3680,72 @@ public class MasterServer {
super("serverAuthenticate");
}
+ @Override
public serverAuthenticate_args getEmptyArgsInstance() {
return new serverAuthenticate_args();
}
- public AsyncMethodCallback<ServerSessionData> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<ServerSessionData> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<ServerSessionData>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<ServerSessionData>() {
+ @Override
public void onComplete(ServerSessionData o) {
serverAuthenticate_result result = new serverAuthenticate_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
serverAuthenticate_result result = new serverAuthenticate_result();
if (e instanceof TAuthorizationException) {
- result.failure = (TAuthorizationException) e;
- result.setFailureIsSet(true);
- msg = result;
- }
- else if (e instanceof TInvocationException) {
- result.errr = (TInvocationException) e;
- result.setErrrIsSet(true);
- msg = result;
- }
- else
- {
+ result.failure = (TAuthorizationException) e;
+ result.setFailureIsSet(true);
+ msg = result;
+ } else if (e instanceof TInvocationException) {
+ result.errr = (TInvocationException) e;
+ result.setErrrIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, serverAuthenticate_args args, org.apache.thrift.async.AsyncMethodCallback<ServerSessionData> resultHandler) throws TException {
+ @Override
+ public void start(I iface, serverAuthenticate_args args, org.apache.thrift.async.AsyncMethodCallback<ServerSessionData> resultHandler) throws org.apache.thrift.TException {
iface.serverAuthenticate(args.satelliteId, args.challengeResponse,resultHandler);
}
}
@@ -3131,64 +3755,76 @@ public class MasterServer {
super("getImageData");
}
+ @Override
public getImageData_args getEmptyArgsInstance() {
return new getImageData_args();
}
- public AsyncMethodCallback<ImagePublishData> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<ImagePublishData> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<ImagePublishData>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<ImagePublishData>() {
+ @Override
public void onComplete(ImagePublishData o) {
getImageData_result result = new getImageData_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
getImageData_result result = new getImageData_result();
if (e instanceof TAuthorizationException) {
- result.failure = (TAuthorizationException) e;
- result.setFailureIsSet(true);
- msg = result;
- }
- else if (e instanceof TInvocationException) {
- result.failure2 = (TInvocationException) e;
- result.setFailure2IsSet(true);
- msg = result;
- }
- else if (e instanceof TNotFoundException) {
- result.f3 = (TNotFoundException) e;
- result.setF3IsSet(true);
- msg = result;
- }
- else
- {
+ result.failure = (TAuthorizationException) e;
+ result.setFailureIsSet(true);
+ msg = result;
+ } else if (e instanceof TInvocationException) {
+ result.failure2 = (TInvocationException) e;
+ result.setFailure2IsSet(true);
+ msg = result;
+ } else if (e instanceof TNotFoundException) {
+ result.f3 = (TNotFoundException) e;
+ result.setF3IsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getImageData_args args, org.apache.thrift.async.AsyncMethodCallback<ImagePublishData> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getImageData_args args, org.apache.thrift.async.AsyncMethodCallback<ImagePublishData> resultHandler) throws org.apache.thrift.TException {
iface.getImageData(args.serverSessionId, args.imageVersionId,resultHandler);
}
}
@@ -3198,185 +3834,224 @@ public class MasterServer {
super("submitImage");
}
+ @Override
public submitImage_args getEmptyArgsInstance() {
return new submitImage_args();
}
- public AsyncMethodCallback<TransferInformation> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<TransferInformation> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<TransferInformation>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<TransferInformation>() {
+ @Override
public void onComplete(TransferInformation o) {
submitImage_result result = new submitImage_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
submitImage_result result = new submitImage_result();
if (e instanceof TAuthorizationException) {
- result.failure = (TAuthorizationException) e;
- result.setFailureIsSet(true);
- msg = result;
- }
- else if (e instanceof TInvocationException) {
- result.failure2 = (TInvocationException) e;
- result.setFailure2IsSet(true);
- msg = result;
- }
- else if (e instanceof TTransferRejectedException) {
- result.failure3 = (TTransferRejectedException) e;
- result.setFailure3IsSet(true);
- msg = result;
- }
- else
- {
+ result.failure = (TAuthorizationException) e;
+ result.setFailureIsSet(true);
+ msg = result;
+ } else if (e instanceof TInvocationException) {
+ result.failure2 = (TInvocationException) e;
+ result.setFailure2IsSet(true);
+ msg = result;
+ } else if (e instanceof TTransferRejectedException) {
+ result.failure3 = (TTransferRejectedException) e;
+ result.setFailure3IsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, submitImage_args args, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> resultHandler) throws TException {
+ @Override
+ public void start(I iface, submitImage_args args, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> resultHandler) throws org.apache.thrift.TException {
iface.submitImage(args.userToken, args.imageDescription, args.blockHashes,resultHandler);
}
}
- public static class registerSatellite<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, registerSatellite_args, Integer> {
+ public static class registerSatellite<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, registerSatellite_args, java.lang.Integer> {
public registerSatellite() {
super("registerSatellite");
}
+ @Override
public registerSatellite_args getEmptyArgsInstance() {
return new registerSatellite_args();
}
- public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.Integer> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Integer>() {
- public void onComplete(Integer o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.Integer>() {
+ @Override
+ public void onComplete(java.lang.Integer o) {
registerSatellite_result result = new registerSatellite_result();
result.success = o;
result.setSuccessIsSet(true);
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
registerSatellite_result result = new registerSatellite_result();
if (e instanceof TInvocationException) {
- result.error = (TInvocationException) e;
- result.setErrorIsSet(true);
- msg = result;
- }
- else
- {
+ result.error = (TInvocationException) e;
+ result.setErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, registerSatellite_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
+ @Override
+ public void start(I iface, registerSatellite_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.Integer> resultHandler) throws org.apache.thrift.TException {
iface.registerSatellite(args.userToken, args.displayName, args.addresses, args.modulus, args.exponent, args.certsha256,resultHandler);
}
}
- public static class updateSatellite<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, updateSatellite_args, Boolean> {
+ public static class updateSatellite<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, updateSatellite_args, java.lang.Boolean> {
public updateSatellite() {
super("updateSatellite");
}
+ @Override
public updateSatellite_args getEmptyArgsInstance() {
return new updateSatellite_args();
}
- public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Boolean>() {
- public void onComplete(Boolean o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean>() {
+ @Override
+ public void onComplete(java.lang.Boolean o) {
updateSatellite_result result = new updateSatellite_result();
result.success = o;
result.setSuccessIsSet(true);
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
updateSatellite_result result = new updateSatellite_result();
if (e instanceof TAuthorizationException) {
- result.failure = (TAuthorizationException) e;
- result.setFailureIsSet(true);
- msg = result;
- }
- else if (e instanceof TInvocationException) {
- result.error = (TInvocationException) e;
- result.setErrorIsSet(true);
- msg = result;
- }
- else
- {
+ result.failure = (TAuthorizationException) e;
+ result.setFailureIsSet(true);
+ msg = result;
+ } else if (e instanceof TInvocationException) {
+ result.error = (TInvocationException) e;
+ result.setErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, updateSatellite_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException {
+ @Override
+ public void start(I iface, updateSatellite_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
iface.updateSatellite(args.serverSessionId, args.displayName, args.addresses,resultHandler);
}
}
@@ -3386,349 +4061,431 @@ public class MasterServer {
super("downloadImage");
}
+ @Override
public downloadImage_args getEmptyArgsInstance() {
return new downloadImage_args();
}
- public AsyncMethodCallback<TransferInformation> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<TransferInformation> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<TransferInformation>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<TransferInformation>() {
+ @Override
public void onComplete(TransferInformation o) {
downloadImage_result result = new downloadImage_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
downloadImage_result result = new downloadImage_result();
if (e instanceof TAuthorizationException) {
- result.failure = (TAuthorizationException) e;
- result.setFailureIsSet(true);
- msg = result;
- }
- else if (e instanceof TInvocationException) {
- result.failure2 = (TInvocationException) e;
- result.setFailure2IsSet(true);
- msg = result;
- }
- else if (e instanceof TNotFoundException) {
- result.f3 = (TNotFoundException) e;
- result.setF3IsSet(true);
- msg = result;
- }
- else
- {
+ result.failure = (TAuthorizationException) e;
+ result.setFailureIsSet(true);
+ msg = result;
+ } else if (e instanceof TInvocationException) {
+ result.failure2 = (TInvocationException) e;
+ result.setFailure2IsSet(true);
+ msg = result;
+ } else if (e instanceof TNotFoundException) {
+ result.f3 = (TNotFoundException) e;
+ result.setF3IsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, downloadImage_args args, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> resultHandler) throws TException {
+ @Override
+ public void start(I iface, downloadImage_args args, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> resultHandler) throws org.apache.thrift.TException {
iface.downloadImage(args.sessionId, args.imageVersionId,resultHandler);
}
}
- public static class getOrganizations<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getOrganizations_args, List<Organization>> {
+ public static class getOrganizations<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getOrganizations_args, java.util.List<Organization>> {
public getOrganizations() {
super("getOrganizations");
}
+ @Override
public getOrganizations_args getEmptyArgsInstance() {
return new getOrganizations_args();
}
- public AsyncMethodCallback<List<Organization>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<Organization>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<Organization>>() {
- public void onComplete(List<Organization> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<Organization>>() {
+ @Override
+ public void onComplete(java.util.List<Organization> o) {
getOrganizations_result result = new getOrganizations_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
getOrganizations_result result = new getOrganizations_result();
if (e instanceof TInvocationException) {
- result.serverError = (TInvocationException) e;
- result.setServerErrorIsSet(true);
- msg = result;
- }
- else
- {
+ result.serverError = (TInvocationException) e;
+ result.setServerErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getOrganizations_args args, org.apache.thrift.async.AsyncMethodCallback<List<Organization>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getOrganizations_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<Organization>> resultHandler) throws org.apache.thrift.TException {
iface.getOrganizations(resultHandler);
}
}
- public static class getOperatingSystems<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getOperatingSystems_args, List<OperatingSystem>> {
+ public static class getOperatingSystems<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getOperatingSystems_args, java.util.List<OperatingSystem>> {
public getOperatingSystems() {
super("getOperatingSystems");
}
+ @Override
public getOperatingSystems_args getEmptyArgsInstance() {
return new getOperatingSystems_args();
}
- public AsyncMethodCallback<List<OperatingSystem>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<OperatingSystem>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<OperatingSystem>>() {
- public void onComplete(List<OperatingSystem> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<OperatingSystem>>() {
+ @Override
+ public void onComplete(java.util.List<OperatingSystem> o) {
getOperatingSystems_result result = new getOperatingSystems_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
getOperatingSystems_result result = new getOperatingSystems_result();
if (e instanceof TInvocationException) {
- result.serverError = (TInvocationException) e;
- result.setServerErrorIsSet(true);
- msg = result;
- }
- else
- {
+ result.serverError = (TInvocationException) e;
+ result.setServerErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getOperatingSystems_args args, org.apache.thrift.async.AsyncMethodCallback<List<OperatingSystem>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getOperatingSystems_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<OperatingSystem>> resultHandler) throws org.apache.thrift.TException {
iface.getOperatingSystems(resultHandler);
}
}
- public static class getVirtualizers<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getVirtualizers_args, List<Virtualizer>> {
+ public static class getVirtualizers<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getVirtualizers_args, java.util.List<Virtualizer>> {
public getVirtualizers() {
super("getVirtualizers");
}
+ @Override
public getVirtualizers_args getEmptyArgsInstance() {
return new getVirtualizers_args();
}
- public AsyncMethodCallback<List<Virtualizer>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<Virtualizer>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<Virtualizer>>() {
- public void onComplete(List<Virtualizer> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<Virtualizer>>() {
+ @Override
+ public void onComplete(java.util.List<Virtualizer> o) {
getVirtualizers_result result = new getVirtualizers_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
getVirtualizers_result result = new getVirtualizers_result();
if (e instanceof TInvocationException) {
- result.serverError = (TInvocationException) e;
- result.setServerErrorIsSet(true);
- msg = result;
- }
- else
- {
+ result.serverError = (TInvocationException) e;
+ result.setServerErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getVirtualizers_args args, org.apache.thrift.async.AsyncMethodCallback<List<Virtualizer>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getVirtualizers_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<Virtualizer>> resultHandler) throws org.apache.thrift.TException {
iface.getVirtualizers(resultHandler);
}
}
- public static class getTags<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getTags_args, List<MasterTag>> {
+ public static class getTags<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getTags_args, java.util.List<MasterTag>> {
public getTags() {
super("getTags");
}
+ @Override
public getTags_args getEmptyArgsInstance() {
return new getTags_args();
}
- public AsyncMethodCallback<List<MasterTag>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<MasterTag>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<MasterTag>>() {
- public void onComplete(List<MasterTag> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<MasterTag>>() {
+ @Override
+ public void onComplete(java.util.List<MasterTag> o) {
getTags_result result = new getTags_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
getTags_result result = new getTags_result();
if (e instanceof TInvocationException) {
- result.serverError = (TInvocationException) e;
- result.setServerErrorIsSet(true);
- msg = result;
- }
- else
- {
+ result.serverError = (TInvocationException) e;
+ result.setServerErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getTags_args args, org.apache.thrift.async.AsyncMethodCallback<List<MasterTag>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getTags_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<MasterTag>> resultHandler) throws org.apache.thrift.TException {
iface.getTags(args.startDate,resultHandler);
}
}
- public static class getSoftware<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getSoftware_args, List<MasterSoftware>> {
+ public static class getSoftware<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getSoftware_args, java.util.List<MasterSoftware>> {
public getSoftware() {
super("getSoftware");
}
+ @Override
public getSoftware_args getEmptyArgsInstance() {
return new getSoftware_args();
}
- public AsyncMethodCallback<List<MasterSoftware>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<MasterSoftware>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<MasterSoftware>>() {
- public void onComplete(List<MasterSoftware> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<MasterSoftware>>() {
+ @Override
+ public void onComplete(java.util.List<MasterSoftware> o) {
getSoftware_result result = new getSoftware_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
getSoftware_result result = new getSoftware_result();
if (e instanceof TInvocationException) {
- result.serverError = (TInvocationException) e;
- result.setServerErrorIsSet(true);
- msg = result;
- }
- else
- {
+ result.serverError = (TInvocationException) e;
+ result.setServerErrorIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getSoftware_args args, org.apache.thrift.async.AsyncMethodCallback<List<MasterSoftware>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getSoftware_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<MasterSoftware>> resultHandler) throws org.apache.thrift.TException {
iface.getSoftware(args.startDate,resultHandler);
}
}
@@ -3738,79 +4495,91 @@ public class MasterServer {
super("queryUploadStatus");
}
+ @Override
public queryUploadStatus_args getEmptyArgsInstance() {
return new queryUploadStatus_args();
}
- public AsyncMethodCallback<TransferStatus> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<TransferStatus> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<TransferStatus>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<TransferStatus>() {
+ @Override
public void onComplete(TransferStatus o) {
queryUploadStatus_result result = new queryUploadStatus_result();
result.success = o;
try {
- fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- return;
- } catch (Exception e) {
- LOGGER.error("Exception writing to internal frame buffer", e);
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
}
- fb.close();
}
- public void onError(Exception e) {
+ @Override
+ public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TBase msg;
+ org.apache.thrift.TSerializable msg;
queryUploadStatus_result result = new queryUploadStatus_result();
if (e instanceof TInvalidTokenException) {
- result.ex1 = (TInvalidTokenException) e;
- result.setEx1IsSet(true);
- msg = result;
- }
- else
- {
+ result.ex1 = (TInvalidTokenException) e;
+ result.setEx1IsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
- return;
- } catch (Exception ex) {
- LOGGER.error("Exception writing to internal frame buffer", ex);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
}
- fb.close();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, queryUploadStatus_args args, org.apache.thrift.async.AsyncMethodCallback<TransferStatus> resultHandler) throws TException {
+ @Override
+ public void start(I iface, queryUploadStatus_args args, org.apache.thrift.async.AsyncMethodCallback<TransferStatus> resultHandler) throws org.apache.thrift.TException {
iface.queryUploadStatus(args.uploadToken,resultHandler);
}
}
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class ping_args implements org.apache.thrift.TBase<ping_args, ping_args._Fields>, java.io.Serializable, Cloneable, Comparable<ping_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ping_args");
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new ping_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new ping_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ping_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ping_argsTupleSchemeFactory();
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -3818,6 +4587,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
default:
@@ -3831,37 +4601,40 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ping_args.class, metaDataMap);
}
@@ -3874,6 +4647,7 @@ public class MasterServer {
public ping_args(ping_args other) {
}
+ @Override
public ping_args deepCopy() {
return new ping_args(this);
}
@@ -3882,32 +4656,34 @@ public class MasterServer {
public void clear() {
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof ping_args)
return this.equals((ping_args)that);
return false;
@@ -3916,15 +4692,17 @@ public class MasterServer {
public boolean equals(ping_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
return true;
}
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -3938,21 +4716,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("ping_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("ping_args(");
boolean first = true;
sb.append(")");
@@ -3972,7 +4754,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -3980,14 +4762,16 @@ public class MasterServer {
}
}
- private static class ping_argsStandardSchemeFactory implements SchemeFactory {
+ private static class ping_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public ping_argsStandardScheme getScheme() {
return new ping_argsStandardScheme();
}
}
- private static class ping_argsStandardScheme extends StandardScheme<ping_args> {
+ private static class ping_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<ping_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, ping_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -4009,6 +4793,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, ping_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -4019,37 +4804,39 @@ public class MasterServer {
}
- private static class ping_argsTupleSchemeFactory implements SchemeFactory {
+ private static class ping_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public ping_argsTupleScheme getScheme() {
return new ping_argsTupleScheme();
}
}
- private static class ping_argsTupleScheme extends TupleScheme<ping_args> {
+ private static class ping_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<ping_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, ping_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ping_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class ping_result implements org.apache.thrift.TBase<ping_result, ping_result._Fields>, java.io.Serializable, Cloneable, Comparable<ping_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ping_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);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new ping_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new ping_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ping_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ping_resultTupleSchemeFactory();
public boolean success; // required
@@ -4057,10 +4844,10 @@ public class MasterServer {
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -4068,6 +4855,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -4083,30 +4871,33 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -4114,12 +4905,12 @@ public class MasterServer {
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ping_result.class, metaDataMap);
}
@@ -4142,6 +4933,7 @@ public class MasterServer {
this.success = other.success;
}
+ @Override
public ping_result deepCopy() {
return new ping_result(this);
}
@@ -4163,57 +4955,59 @@ public class MasterServer {
}
public void unsetSuccess() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
- return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
- setSuccess((Boolean)value);
+ setSuccess((java.lang.Boolean)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return isSuccess();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof ping_result)
return this.equals((ping_result)that);
return false;
@@ -4222,6 +5016,8 @@ public class MasterServer {
public boolean equals(ping_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true;
boolean that_present_success = true;
@@ -4237,14 +5033,11 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true;
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((success) ? 131071 : 524287);
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -4255,7 +5048,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -4268,21 +5061,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("ping_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("ping_result(");
boolean first = true;
sb.append("success:");
@@ -4305,7 +5101,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
@@ -4315,14 +5111,16 @@ public class MasterServer {
}
}
- private static class ping_resultStandardSchemeFactory implements SchemeFactory {
+ private static class ping_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public ping_resultStandardScheme getScheme() {
return new ping_resultStandardScheme();
}
}
- private static class ping_resultStandardScheme extends StandardScheme<ping_result> {
+ private static class ping_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<ping_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, ping_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -4352,6 +5150,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, ping_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -4367,18 +5166,19 @@ public class MasterServer {
}
- private static class ping_resultTupleSchemeFactory implements SchemeFactory {
+ private static class ping_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public ping_resultTupleScheme getScheme() {
return new ping_resultTupleScheme();
}
}
- private static class ping_resultTupleScheme extends TupleScheme<ping_result> {
+ private static class ping_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<ping_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, ping_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -4390,8 +5190,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ping_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
@@ -4399,32 +5199,33 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class authenticate_args implements org.apache.thrift.TBase<authenticate_args, authenticate_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticate_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticate_args");
private static final org.apache.thrift.protocol.TField LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("login", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new authenticate_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new authenticate_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new authenticate_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new authenticate_argsTupleSchemeFactory();
- public String login; // required
- public String password; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String login; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String password; // 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 {
LOGIN((short)1, "login"),
PASSWORD((short)2, "password");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -4432,6 +5233,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // LOGIN
@@ -4449,43 +5251,46 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.LOGIN, new org.apache.thrift.meta_data.FieldMetaData("login", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticate_args.class, metaDataMap);
}
@@ -4493,8 +5298,8 @@ public class MasterServer {
}
public authenticate_args(
- String login,
- String password)
+ java.lang.String login,
+ java.lang.String password)
{
this();
this.login = login;
@@ -4513,6 +5318,7 @@ public class MasterServer {
}
}
+ @Override
public authenticate_args deepCopy() {
return new authenticate_args(this);
}
@@ -4523,11 +5329,12 @@ public class MasterServer {
this.password = null;
}
- public String getLogin() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getLogin() {
return this.login;
}
- public authenticate_args setLogin(String login) {
+ public authenticate_args setLogin(@org.apache.thrift.annotation.Nullable java.lang.String login) {
this.login = login;
return this;
}
@@ -4547,11 +5354,12 @@ public class MasterServer {
}
}
- public String getPassword() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getPassword() {
return this.password;
}
- public authenticate_args setPassword(String password) {
+ public authenticate_args setPassword(@org.apache.thrift.annotation.Nullable java.lang.String password) {
this.password = password;
return this;
}
@@ -4571,13 +5379,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case LOGIN:
if (value == null) {
unsetLogin();
} else {
- setLogin((String)value);
+ setLogin((java.lang.String)value);
}
break;
@@ -4585,14 +5394,16 @@ public class MasterServer {
if (value == null) {
unsetPassword();
} else {
- setPassword((String)value);
+ setPassword((java.lang.String)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case LOGIN:
return getLogin();
@@ -4601,13 +5412,14 @@ public class MasterServer {
return getPassword();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -4616,13 +5428,11 @@ public class MasterServer {
case PASSWORD:
return isSetPassword();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof authenticate_args)
return this.equals((authenticate_args)that);
return false;
@@ -4631,6 +5441,8 @@ public class MasterServer {
public boolean equals(authenticate_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_login = true && this.isSetLogin();
boolean that_present_login = true && that.isSetLogin();
@@ -4655,19 +5467,17 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_login = true && (isSetLogin());
- list.add(present_login);
- if (present_login)
- list.add(login);
+ hashCode = hashCode * 8191 + ((isSetLogin()) ? 131071 : 524287);
+ if (isSetLogin())
+ hashCode = hashCode * 8191 + login.hashCode();
- boolean present_password = true && (isSetPassword());
- list.add(present_password);
- if (present_password)
- list.add(password);
+ hashCode = hashCode * 8191 + ((isSetPassword()) ? 131071 : 524287);
+ if (isSetPassword())
+ hashCode = hashCode * 8191 + password.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -4678,7 +5488,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetLogin()).compareTo(other.isSetLogin());
+ lastComparison = java.lang.Boolean.compare(isSetLogin(), other.isSetLogin());
if (lastComparison != 0) {
return lastComparison;
}
@@ -4688,7 +5498,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword());
+ lastComparison = java.lang.Boolean.compare(isSetPassword(), other.isSetPassword());
if (lastComparison != 0) {
return lastComparison;
}
@@ -4701,21 +5511,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("authenticate_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("authenticate_args(");
boolean first = true;
sb.append("login:");
@@ -4750,7 +5564,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -4758,14 +5572,16 @@ public class MasterServer {
}
}
- private static class authenticate_argsStandardSchemeFactory implements SchemeFactory {
+ private static class authenticate_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public authenticate_argsStandardScheme getScheme() {
return new authenticate_argsStandardScheme();
}
}
- private static class authenticate_argsStandardScheme extends StandardScheme<authenticate_args> {
+ private static class authenticate_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<authenticate_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, authenticate_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -4803,6 +5619,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, authenticate_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -4823,18 +5640,19 @@ public class MasterServer {
}
- private static class authenticate_argsTupleSchemeFactory implements SchemeFactory {
+ private static class authenticate_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public authenticate_argsTupleScheme getScheme() {
return new authenticate_argsTupleScheme();
}
}
- private static class authenticate_argsTupleScheme extends TupleScheme<authenticate_args> {
+ private static class authenticate_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<authenticate_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, authenticate_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetLogin()) {
optionals.set(0);
}
@@ -4852,8 +5670,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, authenticate_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.login = iprot.readString();
struct.setLoginIsSet(true);
@@ -4865,8 +5683,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class authenticate_result implements org.apache.thrift.TBase<authenticate_result, authenticate_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticate_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticate_result");
@@ -4874,15 +5696,12 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new authenticate_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new authenticate_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new authenticate_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new authenticate_resultTupleSchemeFactory();
- public SessionData success; // required
- public TAuthorizationException failure; // required
- public TInvocationException error; // required
+ public @org.apache.thrift.annotation.Nullable SessionData success; // required
+ public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException error; // 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 {
@@ -4890,10 +5709,10 @@ public class MasterServer {
FAILURE((short)1, "failure"),
ERROR((short)2, "error");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -4901,6 +5720,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -4920,45 +5740,48 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, SessionData.class)));
tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class)));
tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticate_result.class, metaDataMap);
}
@@ -4991,6 +5814,7 @@ public class MasterServer {
}
}
+ @Override
public authenticate_result deepCopy() {
return new authenticate_result(this);
}
@@ -5002,11 +5826,12 @@ public class MasterServer {
this.error = null;
}
+ @org.apache.thrift.annotation.Nullable
public SessionData getSuccess() {
return this.success;
}
- public authenticate_result setSuccess(SessionData success) {
+ public authenticate_result setSuccess(@org.apache.thrift.annotation.Nullable SessionData success) {
this.success = success;
return this;
}
@@ -5026,11 +5851,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TAuthorizationException getFailure() {
return this.failure;
}
- public authenticate_result setFailure(TAuthorizationException failure) {
+ public authenticate_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) {
this.failure = failure;
return this;
}
@@ -5050,11 +5876,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getError() {
return this.error;
}
- public authenticate_result setError(TInvocationException error) {
+ public authenticate_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) {
this.error = error;
return this;
}
@@ -5074,7 +5901,8 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -5103,7 +5931,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -5115,13 +5945,14 @@ public class MasterServer {
return getError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -5132,13 +5963,11 @@ public class MasterServer {
case ERROR:
return isSetError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof authenticate_result)
return this.equals((authenticate_result)that);
return false;
@@ -5147,6 +5976,8 @@ public class MasterServer {
public boolean equals(authenticate_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -5180,24 +6011,21 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_failure = true && (isSetFailure());
- list.add(present_failure);
- if (present_failure)
- list.add(failure);
+ hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287);
+ if (isSetFailure())
+ hashCode = hashCode * 8191 + failure.hashCode();
- boolean present_error = true && (isSetError());
- list.add(present_error);
- if (present_error)
- list.add(error);
+ hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287);
+ if (isSetError())
+ hashCode = hashCode * 8191 + error.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -5208,7 +6036,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -5218,7 +6046,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure());
+ lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure());
if (lastComparison != 0) {
return lastComparison;
}
@@ -5228,7 +6056,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError());
+ lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -5241,21 +6069,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("authenticate_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("authenticate_result(");
boolean first = true;
sb.append("success:");
@@ -5301,7 +6132,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -5309,14 +6140,16 @@ public class MasterServer {
}
}
- private static class authenticate_resultStandardSchemeFactory implements SchemeFactory {
+ private static class authenticate_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public authenticate_resultStandardScheme getScheme() {
return new authenticate_resultStandardScheme();
}
}
- private static class authenticate_resultStandardScheme extends StandardScheme<authenticate_result> {
+ private static class authenticate_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<authenticate_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, authenticate_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -5365,6 +6198,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, authenticate_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -5390,18 +6224,19 @@ public class MasterServer {
}
- private static class authenticate_resultTupleSchemeFactory implements SchemeFactory {
+ private static class authenticate_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public authenticate_resultTupleScheme getScheme() {
return new authenticate_resultTupleScheme();
}
}
- private static class authenticate_resultTupleScheme extends TupleScheme<authenticate_result> {
+ private static class authenticate_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<authenticate_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, authenticate_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -5425,8 +6260,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, authenticate_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(3);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.success = new SessionData();
struct.success.read(iprot);
@@ -5445,32 +6280,33 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class localAccountLogin_args implements org.apache.thrift.TBase<localAccountLogin_args, localAccountLogin_args._Fields>, java.io.Serializable, Cloneable, Comparable<localAccountLogin_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("localAccountLogin_args");
private static final org.apache.thrift.protocol.TField LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("login", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new localAccountLogin_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new localAccountLogin_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new localAccountLogin_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new localAccountLogin_argsTupleSchemeFactory();
- public String login; // required
- public String password; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String login; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String password; // 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 {
LOGIN((short)1, "login"),
PASSWORD((short)2, "password");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -5478,6 +6314,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // LOGIN
@@ -5495,43 +6332,46 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.LOGIN, new org.apache.thrift.meta_data.FieldMetaData("login", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(localAccountLogin_args.class, metaDataMap);
}
@@ -5539,8 +6379,8 @@ public class MasterServer {
}
public localAccountLogin_args(
- String login,
- String password)
+ java.lang.String login,
+ java.lang.String password)
{
this();
this.login = login;
@@ -5559,6 +6399,7 @@ public class MasterServer {
}
}
+ @Override
public localAccountLogin_args deepCopy() {
return new localAccountLogin_args(this);
}
@@ -5569,11 +6410,12 @@ public class MasterServer {
this.password = null;
}
- public String getLogin() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getLogin() {
return this.login;
}
- public localAccountLogin_args setLogin(String login) {
+ public localAccountLogin_args setLogin(@org.apache.thrift.annotation.Nullable java.lang.String login) {
this.login = login;
return this;
}
@@ -5593,11 +6435,12 @@ public class MasterServer {
}
}
- public String getPassword() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getPassword() {
return this.password;
}
- public localAccountLogin_args setPassword(String password) {
+ public localAccountLogin_args setPassword(@org.apache.thrift.annotation.Nullable java.lang.String password) {
this.password = password;
return this;
}
@@ -5617,13 +6460,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case LOGIN:
if (value == null) {
unsetLogin();
} else {
- setLogin((String)value);
+ setLogin((java.lang.String)value);
}
break;
@@ -5631,14 +6475,16 @@ public class MasterServer {
if (value == null) {
unsetPassword();
} else {
- setPassword((String)value);
+ setPassword((java.lang.String)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case LOGIN:
return getLogin();
@@ -5647,13 +6493,14 @@ public class MasterServer {
return getPassword();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -5662,13 +6509,11 @@ public class MasterServer {
case PASSWORD:
return isSetPassword();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof localAccountLogin_args)
return this.equals((localAccountLogin_args)that);
return false;
@@ -5677,6 +6522,8 @@ public class MasterServer {
public boolean equals(localAccountLogin_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_login = true && this.isSetLogin();
boolean that_present_login = true && that.isSetLogin();
@@ -5701,19 +6548,17 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_login = true && (isSetLogin());
- list.add(present_login);
- if (present_login)
- list.add(login);
+ hashCode = hashCode * 8191 + ((isSetLogin()) ? 131071 : 524287);
+ if (isSetLogin())
+ hashCode = hashCode * 8191 + login.hashCode();
- boolean present_password = true && (isSetPassword());
- list.add(present_password);
- if (present_password)
- list.add(password);
+ hashCode = hashCode * 8191 + ((isSetPassword()) ? 131071 : 524287);
+ if (isSetPassword())
+ hashCode = hashCode * 8191 + password.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -5724,7 +6569,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetLogin()).compareTo(other.isSetLogin());
+ lastComparison = java.lang.Boolean.compare(isSetLogin(), other.isSetLogin());
if (lastComparison != 0) {
return lastComparison;
}
@@ -5734,7 +6579,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword());
+ lastComparison = java.lang.Boolean.compare(isSetPassword(), other.isSetPassword());
if (lastComparison != 0) {
return lastComparison;
}
@@ -5747,21 +6592,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("localAccountLogin_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("localAccountLogin_args(");
boolean first = true;
sb.append("login:");
@@ -5796,7 +6645,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -5804,14 +6653,16 @@ public class MasterServer {
}
}
- private static class localAccountLogin_argsStandardSchemeFactory implements SchemeFactory {
+ private static class localAccountLogin_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public localAccountLogin_argsStandardScheme getScheme() {
return new localAccountLogin_argsStandardScheme();
}
}
- private static class localAccountLogin_argsStandardScheme extends StandardScheme<localAccountLogin_args> {
+ private static class localAccountLogin_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<localAccountLogin_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, localAccountLogin_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -5849,6 +6700,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, localAccountLogin_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -5869,18 +6721,19 @@ public class MasterServer {
}
- private static class localAccountLogin_argsTupleSchemeFactory implements SchemeFactory {
+ private static class localAccountLogin_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public localAccountLogin_argsTupleScheme getScheme() {
return new localAccountLogin_argsTupleScheme();
}
}
- private static class localAccountLogin_argsTupleScheme extends TupleScheme<localAccountLogin_args> {
+ private static class localAccountLogin_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<localAccountLogin_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, localAccountLogin_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetLogin()) {
optionals.set(0);
}
@@ -5898,8 +6751,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, localAccountLogin_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.login = iprot.readString();
struct.setLoginIsSet(true);
@@ -5911,8 +6764,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class localAccountLogin_result implements org.apache.thrift.TBase<localAccountLogin_result, localAccountLogin_result._Fields>, java.io.Serializable, Cloneable, Comparable<localAccountLogin_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("localAccountLogin_result");
@@ -5920,15 +6777,12 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new localAccountLogin_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new localAccountLogin_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new localAccountLogin_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new localAccountLogin_resultTupleSchemeFactory();
- public ClientSessionData success; // required
- public TAuthorizationException failure; // required
- public TInvocationException error; // required
+ public @org.apache.thrift.annotation.Nullable ClientSessionData success; // required
+ public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException error; // 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 {
@@ -5936,10 +6790,10 @@ public class MasterServer {
FAILURE((short)1, "failure"),
ERROR((short)2, "error");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -5947,6 +6801,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -5966,45 +6821,48 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, ClientSessionData.class)));
tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class)));
tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(localAccountLogin_result.class, metaDataMap);
}
@@ -6037,6 +6895,7 @@ public class MasterServer {
}
}
+ @Override
public localAccountLogin_result deepCopy() {
return new localAccountLogin_result(this);
}
@@ -6048,11 +6907,12 @@ public class MasterServer {
this.error = null;
}
+ @org.apache.thrift.annotation.Nullable
public ClientSessionData getSuccess() {
return this.success;
}
- public localAccountLogin_result setSuccess(ClientSessionData success) {
+ public localAccountLogin_result setSuccess(@org.apache.thrift.annotation.Nullable ClientSessionData success) {
this.success = success;
return this;
}
@@ -6072,11 +6932,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TAuthorizationException getFailure() {
return this.failure;
}
- public localAccountLogin_result setFailure(TAuthorizationException failure) {
+ public localAccountLogin_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) {
this.failure = failure;
return this;
}
@@ -6096,11 +6957,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getError() {
return this.error;
}
- public localAccountLogin_result setError(TInvocationException error) {
+ public localAccountLogin_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) {
this.error = error;
return this;
}
@@ -6120,7 +6982,8 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -6149,7 +7012,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -6161,13 +7026,14 @@ public class MasterServer {
return getError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -6178,13 +7044,11 @@ public class MasterServer {
case ERROR:
return isSetError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof localAccountLogin_result)
return this.equals((localAccountLogin_result)that);
return false;
@@ -6193,6 +7057,8 @@ public class MasterServer {
public boolean equals(localAccountLogin_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -6226,24 +7092,21 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_failure = true && (isSetFailure());
- list.add(present_failure);
- if (present_failure)
- list.add(failure);
+ hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287);
+ if (isSetFailure())
+ hashCode = hashCode * 8191 + failure.hashCode();
- boolean present_error = true && (isSetError());
- list.add(present_error);
- if (present_error)
- list.add(error);
+ hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287);
+ if (isSetError())
+ hashCode = hashCode * 8191 + error.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -6254,7 +7117,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -6264,7 +7127,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure());
+ lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure());
if (lastComparison != 0) {
return lastComparison;
}
@@ -6274,7 +7137,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError());
+ lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -6287,21 +7150,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("localAccountLogin_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("localAccountLogin_result(");
boolean first = true;
sb.append("success:");
@@ -6347,7 +7213,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -6355,14 +7221,16 @@ public class MasterServer {
}
}
- private static class localAccountLogin_resultStandardSchemeFactory implements SchemeFactory {
+ private static class localAccountLogin_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public localAccountLogin_resultStandardScheme getScheme() {
return new localAccountLogin_resultStandardScheme();
}
}
- private static class localAccountLogin_resultStandardScheme extends StandardScheme<localAccountLogin_result> {
+ private static class localAccountLogin_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<localAccountLogin_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, localAccountLogin_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -6411,6 +7279,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, localAccountLogin_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -6436,18 +7305,19 @@ public class MasterServer {
}
- private static class localAccountLogin_resultTupleSchemeFactory implements SchemeFactory {
+ private static class localAccountLogin_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public localAccountLogin_resultTupleScheme getScheme() {
return new localAccountLogin_resultTupleScheme();
}
}
- private static class localAccountLogin_resultTupleScheme extends TupleScheme<localAccountLogin_result> {
+ private static class localAccountLogin_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<localAccountLogin_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, localAccountLogin_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -6471,8 +7341,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, localAccountLogin_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(3);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.success = new ClientSessionData();
struct.success.read(iprot);
@@ -6491,32 +7361,33 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class setUsedSatellite_args implements org.apache.thrift.TBase<setUsedSatellite_args, setUsedSatellite_args._Fields>, java.io.Serializable, Cloneable, Comparable<setUsedSatellite_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUsedSatellite_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);
private static final org.apache.thrift.protocol.TField SATELLITE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("satelliteName", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new setUsedSatellite_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new setUsedSatellite_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setUsedSatellite_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setUsedSatellite_argsTupleSchemeFactory();
- public String sessionId; // required
- public String satelliteName; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String satelliteName; // 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"),
SATELLITE_NAME((short)2, "satelliteName");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -6524,6 +7395,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SESSION_ID
@@ -6541,43 +7413,46 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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 , "Token")));
tmpMap.put(_Fields.SATELLITE_NAME, new org.apache.thrift.meta_data.FieldMetaData("satelliteName", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUsedSatellite_args.class, metaDataMap);
}
@@ -6585,8 +7460,8 @@ public class MasterServer {
}
public setUsedSatellite_args(
- String sessionId,
- String satelliteName)
+ java.lang.String sessionId,
+ java.lang.String satelliteName)
{
this();
this.sessionId = sessionId;
@@ -6605,6 +7480,7 @@ public class MasterServer {
}
}
+ @Override
public setUsedSatellite_args deepCopy() {
return new setUsedSatellite_args(this);
}
@@ -6615,11 +7491,12 @@ public class MasterServer {
this.satelliteName = null;
}
- public String getSessionId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getSessionId() {
return this.sessionId;
}
- public setUsedSatellite_args setSessionId(String sessionId) {
+ public setUsedSatellite_args setSessionId(@org.apache.thrift.annotation.Nullable java.lang.String sessionId) {
this.sessionId = sessionId;
return this;
}
@@ -6639,11 +7516,12 @@ public class MasterServer {
}
}
- public String getSatelliteName() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getSatelliteName() {
return this.satelliteName;
}
- public setUsedSatellite_args setSatelliteName(String satelliteName) {
+ public setUsedSatellite_args setSatelliteName(@org.apache.thrift.annotation.Nullable java.lang.String satelliteName) {
this.satelliteName = satelliteName;
return this;
}
@@ -6663,13 +7541,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SESSION_ID:
if (value == null) {
unsetSessionId();
} else {
- setSessionId((String)value);
+ setSessionId((java.lang.String)value);
}
break;
@@ -6677,14 +7556,16 @@ public class MasterServer {
if (value == null) {
unsetSatelliteName();
} else {
- setSatelliteName((String)value);
+ setSatelliteName((java.lang.String)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SESSION_ID:
return getSessionId();
@@ -6693,13 +7574,14 @@ public class MasterServer {
return getSatelliteName();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -6708,13 +7590,11 @@ public class MasterServer {
case SATELLITE_NAME:
return isSetSatelliteName();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof setUsedSatellite_args)
return this.equals((setUsedSatellite_args)that);
return false;
@@ -6723,6 +7603,8 @@ public class MasterServer {
public boolean equals(setUsedSatellite_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_sessionId = true && this.isSetSessionId();
boolean that_present_sessionId = true && that.isSetSessionId();
@@ -6747,19 +7629,17 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_sessionId = true && (isSetSessionId());
- list.add(present_sessionId);
- if (present_sessionId)
- list.add(sessionId);
+ hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287);
+ if (isSetSessionId())
+ hashCode = hashCode * 8191 + sessionId.hashCode();
- boolean present_satelliteName = true && (isSetSatelliteName());
- list.add(present_satelliteName);
- if (present_satelliteName)
- list.add(satelliteName);
+ hashCode = hashCode * 8191 + ((isSetSatelliteName()) ? 131071 : 524287);
+ if (isSetSatelliteName())
+ hashCode = hashCode * 8191 + satelliteName.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -6770,7 +7650,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId());
+ lastComparison = java.lang.Boolean.compare(isSetSessionId(), other.isSetSessionId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -6780,7 +7660,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetSatelliteName()).compareTo(other.isSetSatelliteName());
+ lastComparison = java.lang.Boolean.compare(isSetSatelliteName(), other.isSetSatelliteName());
if (lastComparison != 0) {
return lastComparison;
}
@@ -6793,21 +7673,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("setUsedSatellite_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("setUsedSatellite_args(");
boolean first = true;
sb.append("sessionId:");
@@ -6842,7 +7726,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -6850,14 +7734,16 @@ public class MasterServer {
}
}
- private static class setUsedSatellite_argsStandardSchemeFactory implements SchemeFactory {
+ private static class setUsedSatellite_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setUsedSatellite_argsStandardScheme getScheme() {
return new setUsedSatellite_argsStandardScheme();
}
}
- private static class setUsedSatellite_argsStandardScheme extends StandardScheme<setUsedSatellite_args> {
+ private static class setUsedSatellite_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<setUsedSatellite_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, setUsedSatellite_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -6895,6 +7781,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, setUsedSatellite_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -6915,18 +7802,19 @@ public class MasterServer {
}
- private static class setUsedSatellite_argsTupleSchemeFactory implements SchemeFactory {
+ private static class setUsedSatellite_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setUsedSatellite_argsTupleScheme getScheme() {
return new setUsedSatellite_argsTupleScheme();
}
}
- private static class setUsedSatellite_argsTupleScheme extends TupleScheme<setUsedSatellite_args> {
+ private static class setUsedSatellite_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<setUsedSatellite_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, setUsedSatellite_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSessionId()) {
optionals.set(0);
}
@@ -6944,8 +7832,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, setUsedSatellite_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.sessionId = iprot.readString();
struct.setSessionIdIsSet(true);
@@ -6957,27 +7845,28 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class setUsedSatellite_result implements org.apache.thrift.TBase<setUsedSatellite_result, setUsedSatellite_result._Fields>, java.io.Serializable, Cloneable, Comparable<setUsedSatellite_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUsedSatellite_result");
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new setUsedSatellite_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new setUsedSatellite_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setUsedSatellite_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setUsedSatellite_resultTupleSchemeFactory();
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -6985,6 +7874,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
default:
@@ -6998,37 +7888,40 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUsedSatellite_result.class, metaDataMap);
}
@@ -7041,6 +7934,7 @@ public class MasterServer {
public setUsedSatellite_result(setUsedSatellite_result other) {
}
+ @Override
public setUsedSatellite_result deepCopy() {
return new setUsedSatellite_result(this);
}
@@ -7049,32 +7943,34 @@ public class MasterServer {
public void clear() {
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof setUsedSatellite_result)
return this.equals((setUsedSatellite_result)that);
return false;
@@ -7083,15 +7979,17 @@ public class MasterServer {
public boolean equals(setUsedSatellite_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
return true;
}
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -7105,21 +8003,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("setUsedSatellite_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("setUsedSatellite_result(");
boolean first = true;
sb.append(")");
@@ -7139,7 +8040,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -7147,14 +8048,16 @@ public class MasterServer {
}
}
- private static class setUsedSatellite_resultStandardSchemeFactory implements SchemeFactory {
+ private static class setUsedSatellite_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setUsedSatellite_resultStandardScheme getScheme() {
return new setUsedSatellite_resultStandardScheme();
}
}
- private static class setUsedSatellite_resultStandardScheme extends StandardScheme<setUsedSatellite_result> {
+ private static class setUsedSatellite_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<setUsedSatellite_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, setUsedSatellite_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -7176,6 +8079,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, setUsedSatellite_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -7186,27 +8090,32 @@ public class MasterServer {
}
- private static class setUsedSatellite_resultTupleSchemeFactory implements SchemeFactory {
+ private static class setUsedSatellite_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setUsedSatellite_resultTupleScheme getScheme() {
return new setUsedSatellite_resultTupleScheme();
}
}
- private static class setUsedSatellite_resultTupleScheme extends TupleScheme<setUsedSatellite_result> {
+ private static class setUsedSatellite_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<setUsedSatellite_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, setUsedSatellite_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, setUsedSatellite_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class findUser_args implements org.apache.thrift.TBase<findUser_args, findUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<findUser_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("findUser_args");
@@ -7214,15 +8123,12 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField ORGANIZATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("organizationId", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField SEARCH_TERM_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerm", org.apache.thrift.protocol.TType.STRING, (short)3);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new findUser_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new findUser_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new findUser_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new findUser_argsTupleSchemeFactory();
- public String sessionId; // required
- public String organizationId; // required
- public String searchTerm; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String organizationId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String searchTerm; // 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 {
@@ -7230,10 +8136,10 @@ public class MasterServer {
ORGANIZATION_ID((short)2, "organizationId"),
SEARCH_TERM((short)3, "searchTerm");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -7241,6 +8147,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SESSION_ID
@@ -7260,45 +8167,48 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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 , "Token")));
tmpMap.put(_Fields.ORGANIZATION_ID, new org.apache.thrift.meta_data.FieldMetaData("organizationId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findUser_args.class, metaDataMap);
}
@@ -7306,9 +8216,9 @@ public class MasterServer {
}
public findUser_args(
- String sessionId,
- String organizationId,
- String searchTerm)
+ java.lang.String sessionId,
+ java.lang.String organizationId,
+ java.lang.String searchTerm)
{
this();
this.sessionId = sessionId;
@@ -7331,6 +8241,7 @@ public class MasterServer {
}
}
+ @Override
public findUser_args deepCopy() {
return new findUser_args(this);
}
@@ -7342,11 +8253,12 @@ public class MasterServer {
this.searchTerm = null;
}
- public String getSessionId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getSessionId() {
return this.sessionId;
}
- public findUser_args setSessionId(String sessionId) {
+ public findUser_args setSessionId(@org.apache.thrift.annotation.Nullable java.lang.String sessionId) {
this.sessionId = sessionId;
return this;
}
@@ -7366,11 +8278,12 @@ public class MasterServer {
}
}
- public String getOrganizationId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getOrganizationId() {
return this.organizationId;
}
- public findUser_args setOrganizationId(String organizationId) {
+ public findUser_args setOrganizationId(@org.apache.thrift.annotation.Nullable java.lang.String organizationId) {
this.organizationId = organizationId;
return this;
}
@@ -7390,11 +8303,12 @@ public class MasterServer {
}
}
- public String getSearchTerm() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getSearchTerm() {
return this.searchTerm;
}
- public findUser_args setSearchTerm(String searchTerm) {
+ public findUser_args setSearchTerm(@org.apache.thrift.annotation.Nullable java.lang.String searchTerm) {
this.searchTerm = searchTerm;
return this;
}
@@ -7414,13 +8328,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SESSION_ID:
if (value == null) {
unsetSessionId();
} else {
- setSessionId((String)value);
+ setSessionId((java.lang.String)value);
}
break;
@@ -7428,7 +8343,7 @@ public class MasterServer {
if (value == null) {
unsetOrganizationId();
} else {
- setOrganizationId((String)value);
+ setOrganizationId((java.lang.String)value);
}
break;
@@ -7436,14 +8351,16 @@ public class MasterServer {
if (value == null) {
unsetSearchTerm();
} else {
- setSearchTerm((String)value);
+ setSearchTerm((java.lang.String)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SESSION_ID:
return getSessionId();
@@ -7455,13 +8372,14 @@ public class MasterServer {
return getSearchTerm();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -7472,13 +8390,11 @@ public class MasterServer {
case SEARCH_TERM:
return isSetSearchTerm();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof findUser_args)
return this.equals((findUser_args)that);
return false;
@@ -7487,6 +8403,8 @@ public class MasterServer {
public boolean equals(findUser_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_sessionId = true && this.isSetSessionId();
boolean that_present_sessionId = true && that.isSetSessionId();
@@ -7520,24 +8438,21 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_sessionId = true && (isSetSessionId());
- list.add(present_sessionId);
- if (present_sessionId)
- list.add(sessionId);
+ hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287);
+ if (isSetSessionId())
+ hashCode = hashCode * 8191 + sessionId.hashCode();
- boolean present_organizationId = true && (isSetOrganizationId());
- list.add(present_organizationId);
- if (present_organizationId)
- list.add(organizationId);
+ hashCode = hashCode * 8191 + ((isSetOrganizationId()) ? 131071 : 524287);
+ if (isSetOrganizationId())
+ hashCode = hashCode * 8191 + organizationId.hashCode();
- boolean present_searchTerm = true && (isSetSearchTerm());
- list.add(present_searchTerm);
- if (present_searchTerm)
- list.add(searchTerm);
+ hashCode = hashCode * 8191 + ((isSetSearchTerm()) ? 131071 : 524287);
+ if (isSetSearchTerm())
+ hashCode = hashCode * 8191 + searchTerm.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -7548,7 +8463,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId());
+ lastComparison = java.lang.Boolean.compare(isSetSessionId(), other.isSetSessionId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -7558,7 +8473,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetOrganizationId()).compareTo(other.isSetOrganizationId());
+ lastComparison = java.lang.Boolean.compare(isSetOrganizationId(), other.isSetOrganizationId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -7568,7 +8483,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(other.isSetSearchTerm());
+ lastComparison = java.lang.Boolean.compare(isSetSearchTerm(), other.isSetSearchTerm());
if (lastComparison != 0) {
return lastComparison;
}
@@ -7581,21 +8496,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("findUser_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("findUser_args(");
boolean first = true;
sb.append("sessionId:");
@@ -7638,7 +8557,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -7646,14 +8565,16 @@ public class MasterServer {
}
}
- private static class findUser_argsStandardSchemeFactory implements SchemeFactory {
+ private static class findUser_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public findUser_argsStandardScheme getScheme() {
return new findUser_argsStandardScheme();
}
}
- private static class findUser_argsStandardScheme extends StandardScheme<findUser_args> {
+ private static class findUser_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<findUser_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, findUser_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -7699,6 +8620,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, findUser_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -7724,18 +8646,19 @@ public class MasterServer {
}
- private static class findUser_argsTupleSchemeFactory implements SchemeFactory {
+ private static class findUser_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public findUser_argsTupleScheme getScheme() {
return new findUser_argsTupleScheme();
}
}
- private static class findUser_argsTupleScheme extends TupleScheme<findUser_args> {
+ private static class findUser_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<findUser_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, findUser_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSessionId()) {
optionals.set(0);
}
@@ -7759,8 +8682,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, findUser_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(3);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.sessionId = iprot.readString();
struct.setSessionIdIsSet(true);
@@ -7776,8 +8699,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class findUser_result implements org.apache.thrift.TBase<findUser_result, findUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<findUser_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("findUser_result");
@@ -7785,15 +8712,12 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new findUser_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new findUser_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new findUser_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new findUser_resultTupleSchemeFactory();
- public List<UserInfo> success; // required
- public TAuthorizationException failure; // required
- public TInvocationException error; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<UserInfo> success; // required
+ public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException error; // 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 {
@@ -7801,10 +8725,10 @@ public class MasterServer {
FAILURE((short)1, "failure"),
ERROR((short)2, "error");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -7812,6 +8736,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -7831,46 +8756,49 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, UserInfo.class))));
tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class)));
tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findUser_result.class, metaDataMap);
}
@@ -7878,7 +8806,7 @@ public class MasterServer {
}
public findUser_result(
- List<UserInfo> success,
+ java.util.List<UserInfo> success,
TAuthorizationException failure,
TInvocationException error)
{
@@ -7893,7 +8821,7 @@ public class MasterServer {
*/
public findUser_result(findUser_result other) {
if (other.isSetSuccess()) {
- List<UserInfo> __this__success = new ArrayList<UserInfo>(other.success.size());
+ java.util.List<UserInfo> __this__success = new java.util.ArrayList<UserInfo>(other.success.size());
for (UserInfo other_element : other.success) {
__this__success.add(new UserInfo(other_element));
}
@@ -7907,6 +8835,7 @@ public class MasterServer {
}
}
+ @Override
public findUser_result deepCopy() {
return new findUser_result(this);
}
@@ -7922,22 +8851,24 @@ public class MasterServer {
return (this.success == null) ? 0 : this.success.size();
}
+ @org.apache.thrift.annotation.Nullable
public java.util.Iterator<UserInfo> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(UserInfo elem) {
if (this.success == null) {
- this.success = new ArrayList<UserInfo>();
+ this.success = new java.util.ArrayList<UserInfo>();
}
this.success.add(elem);
}
- public List<UserInfo> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<UserInfo> getSuccess() {
return this.success;
}
- public findUser_result setSuccess(List<UserInfo> success) {
+ public findUser_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<UserInfo> success) {
this.success = success;
return this;
}
@@ -7957,11 +8888,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TAuthorizationException getFailure() {
return this.failure;
}
- public findUser_result setFailure(TAuthorizationException failure) {
+ public findUser_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) {
this.failure = failure;
return this;
}
@@ -7981,11 +8913,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getError() {
return this.error;
}
- public findUser_result setError(TInvocationException error) {
+ public findUser_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) {
this.error = error;
return this;
}
@@ -8005,13 +8938,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
- setSuccess((List<UserInfo>)value);
+ setSuccess((java.util.List<UserInfo>)value);
}
break;
@@ -8034,7 +8968,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -8046,13 +8982,14 @@ public class MasterServer {
return getError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -8063,13 +9000,11 @@ public class MasterServer {
case ERROR:
return isSetError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof findUser_result)
return this.equals((findUser_result)that);
return false;
@@ -8078,6 +9013,8 @@ public class MasterServer {
public boolean equals(findUser_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -8111,24 +9048,21 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_failure = true && (isSetFailure());
- list.add(present_failure);
- if (present_failure)
- list.add(failure);
+ hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287);
+ if (isSetFailure())
+ hashCode = hashCode * 8191 + failure.hashCode();
- boolean present_error = true && (isSetError());
- list.add(present_error);
- if (present_error)
- list.add(error);
+ hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287);
+ if (isSetError())
+ hashCode = hashCode * 8191 + error.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -8139,7 +9073,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -8149,7 +9083,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure());
+ lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure());
if (lastComparison != 0) {
return lastComparison;
}
@@ -8159,7 +9093,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError());
+ lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -8172,21 +9106,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("findUser_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("findUser_result(");
boolean first = true;
sb.append("success:");
@@ -8229,7 +9166,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -8237,14 +9174,16 @@ public class MasterServer {
}
}
- private static class findUser_resultStandardSchemeFactory implements SchemeFactory {
+ private static class findUser_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public findUser_resultStandardScheme getScheme() {
return new findUser_resultStandardScheme();
}
}
- private static class findUser_resultStandardScheme extends StandardScheme<findUser_result> {
+ private static class findUser_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<findUser_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, findUser_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -8258,14 +9197,14 @@ public class MasterServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list306 = iprot.readListBegin();
- struct.success = new ArrayList<UserInfo>(_list306.size);
- UserInfo _elem307;
- for (int _i308 = 0; _i308 < _list306.size; ++_i308)
+ org.apache.thrift.protocol.TList _list418 = iprot.readListBegin();
+ struct.success = new java.util.ArrayList<UserInfo>(_list418.size);
+ @org.apache.thrift.annotation.Nullable UserInfo _elem419;
+ for (int _i420 = 0; _i420 < _list418.size; ++_i420)
{
- _elem307 = new UserInfo();
- _elem307.read(iprot);
- struct.success.add(_elem307);
+ _elem419 = new UserInfo();
+ _elem419.read(iprot);
+ struct.success.add(_elem419);
}
iprot.readListEnd();
}
@@ -8303,6 +9242,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, findUser_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -8311,9 +9251,9 @@ public class MasterServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (UserInfo _iter309 : struct.success)
+ for (UserInfo _iter421 : struct.success)
{
- _iter309.write(oprot);
+ _iter421.write(oprot);
}
oprot.writeListEnd();
}
@@ -8335,18 +9275,19 @@ public class MasterServer {
}
- private static class findUser_resultTupleSchemeFactory implements SchemeFactory {
+ private static class findUser_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public findUser_resultTupleScheme getScheme() {
return new findUser_resultTupleScheme();
}
}
- private static class findUser_resultTupleScheme extends TupleScheme<findUser_result> {
+ private static class findUser_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<findUser_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, findUser_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -8360,9 +9301,9 @@ public class MasterServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (UserInfo _iter310 : struct.success)
+ for (UserInfo _iter422 : struct.success)
{
- _iter310.write(oprot);
+ _iter422.write(oprot);
}
}
}
@@ -8376,18 +9317,18 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, findUser_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(3);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<UserInfo>(_list311.size);
- UserInfo _elem312;
- for (int _i313 = 0; _i313 < _list311.size; ++_i313)
+ org.apache.thrift.protocol.TList _list423 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
+ struct.success = new java.util.ArrayList<UserInfo>(_list423.size);
+ @org.apache.thrift.annotation.Nullable UserInfo _elem424;
+ for (int _i425 = 0; _i425 < _list423.size; ++_i425)
{
- _elem312 = new UserInfo();
- _elem312.read(iprot);
- struct.success.add(_elem312);
+ _elem424 = new UserInfo();
+ _elem424.read(iprot);
+ struct.success.add(_elem424);
}
}
struct.setSuccessIsSet(true);
@@ -8405,21 +9346,22 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getPublicImages_args implements org.apache.thrift.TBase<getPublicImages_args, getPublicImages_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPublicImages_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPublicImages_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);
private static final org.apache.thrift.protocol.TField PAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("page", org.apache.thrift.protocol.TType.I32, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getPublicImages_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getPublicImages_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getPublicImages_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getPublicImages_argsTupleSchemeFactory();
- public String sessionId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // required
public int page; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
@@ -8427,10 +9369,10 @@ public class MasterServer {
SESSION_ID((short)1, "sessionId"),
PAGE((short)2, "page");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -8438,6 +9380,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SESSION_ID
@@ -8455,30 +9398,33 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -8486,14 +9432,14 @@ public class MasterServer {
// isset id assignments
private static final int __PAGE_ISSET_ID = 0;
private byte __isset_bitfield = 0;
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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 , "Token")));
tmpMap.put(_Fields.PAGE, new org.apache.thrift.meta_data.FieldMetaData("page", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPublicImages_args.class, metaDataMap);
}
@@ -8501,7 +9447,7 @@ public class MasterServer {
}
public getPublicImages_args(
- String sessionId,
+ java.lang.String sessionId,
int page)
{
this();
@@ -8521,6 +9467,7 @@ public class MasterServer {
this.page = other.page;
}
+ @Override
public getPublicImages_args deepCopy() {
return new getPublicImages_args(this);
}
@@ -8532,11 +9479,12 @@ public class MasterServer {
this.page = 0;
}
- public String getSessionId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getSessionId() {
return this.sessionId;
}
- public getPublicImages_args setSessionId(String sessionId) {
+ public getPublicImages_args setSessionId(@org.apache.thrift.annotation.Nullable java.lang.String sessionId) {
this.sessionId = sessionId;
return this;
}
@@ -8567,25 +9515,26 @@ public class MasterServer {
}
public void unsetPage() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID);
}
/** Returns true if field page is set (has been assigned a value) and false otherwise */
public boolean isSetPage() {
- return EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID);
}
public void setPageIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value);
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SESSION_ID:
if (value == null) {
unsetSessionId();
} else {
- setSessionId((String)value);
+ setSessionId((java.lang.String)value);
}
break;
@@ -8593,14 +9542,16 @@ public class MasterServer {
if (value == null) {
unsetPage();
} else {
- setPage((Integer)value);
+ setPage((java.lang.Integer)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SESSION_ID:
return getSessionId();
@@ -8609,13 +9560,14 @@ public class MasterServer {
return getPage();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -8624,13 +9576,11 @@ public class MasterServer {
case PAGE:
return isSetPage();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getPublicImages_args)
return this.equals((getPublicImages_args)that);
return false;
@@ -8639,6 +9589,8 @@ public class MasterServer {
public boolean equals(getPublicImages_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_sessionId = true && this.isSetSessionId();
boolean that_present_sessionId = true && that.isSetSessionId();
@@ -8663,19 +9615,15 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_sessionId = true && (isSetSessionId());
- list.add(present_sessionId);
- if (present_sessionId)
- list.add(sessionId);
+ hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287);
+ if (isSetSessionId())
+ hashCode = hashCode * 8191 + sessionId.hashCode();
- boolean present_page = true;
- list.add(present_page);
- if (present_page)
- list.add(page);
+ hashCode = hashCode * 8191 + page;
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -8686,7 +9634,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId());
+ lastComparison = java.lang.Boolean.compare(isSetSessionId(), other.isSetSessionId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -8696,7 +9644,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage());
+ lastComparison = java.lang.Boolean.compare(isSetPage(), other.isSetPage());
if (lastComparison != 0) {
return lastComparison;
}
@@ -8709,21 +9657,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getPublicImages_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getPublicImages_args(");
boolean first = true;
sb.append("sessionId:");
@@ -8754,7 +9706,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
@@ -8764,14 +9716,16 @@ public class MasterServer {
}
}
- private static class getPublicImages_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getPublicImages_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getPublicImages_argsStandardScheme getScheme() {
return new getPublicImages_argsStandardScheme();
}
}
- private static class getPublicImages_argsStandardScheme extends StandardScheme<getPublicImages_args> {
+ private static class getPublicImages_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getPublicImages_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getPublicImages_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -8809,6 +9763,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getPublicImages_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -8827,18 +9782,19 @@ public class MasterServer {
}
- private static class getPublicImages_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getPublicImages_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getPublicImages_argsTupleScheme getScheme() {
return new getPublicImages_argsTupleScheme();
}
}
- private static class getPublicImages_argsTupleScheme extends TupleScheme<getPublicImages_args> {
+ private static class getPublicImages_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getPublicImages_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getPublicImages_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSessionId()) {
optionals.set(0);
}
@@ -8856,8 +9812,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getPublicImages_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.sessionId = iprot.readString();
struct.setSessionIdIsSet(true);
@@ -8869,8 +9825,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getPublicImages_result implements org.apache.thrift.TBase<getPublicImages_result, getPublicImages_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPublicImages_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPublicImages_result");
@@ -8878,15 +9838,12 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getPublicImages_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getPublicImages_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getPublicImages_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getPublicImages_resultTupleSchemeFactory();
- public List<ImageSummaryRead> success; // required
- public TAuthorizationException failure; // required
- public TInvocationException error; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<ImageSummaryRead> success; // required
+ public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException error; // 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 {
@@ -8894,10 +9851,10 @@ public class MasterServer {
FAILURE((short)1, "failure"),
ERROR((short)2, "error");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -8905,6 +9862,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -8924,46 +9882,49 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, ImageSummaryRead.class))));
tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class)));
tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPublicImages_result.class, metaDataMap);
}
@@ -8971,7 +9932,7 @@ public class MasterServer {
}
public getPublicImages_result(
- List<ImageSummaryRead> success,
+ java.util.List<ImageSummaryRead> success,
TAuthorizationException failure,
TInvocationException error)
{
@@ -8986,7 +9947,7 @@ public class MasterServer {
*/
public getPublicImages_result(getPublicImages_result other) {
if (other.isSetSuccess()) {
- List<ImageSummaryRead> __this__success = new ArrayList<ImageSummaryRead>(other.success.size());
+ java.util.List<ImageSummaryRead> __this__success = new java.util.ArrayList<ImageSummaryRead>(other.success.size());
for (ImageSummaryRead other_element : other.success) {
__this__success.add(new ImageSummaryRead(other_element));
}
@@ -9000,6 +9961,7 @@ public class MasterServer {
}
}
+ @Override
public getPublicImages_result deepCopy() {
return new getPublicImages_result(this);
}
@@ -9015,22 +9977,24 @@ public class MasterServer {
return (this.success == null) ? 0 : this.success.size();
}
+ @org.apache.thrift.annotation.Nullable
public java.util.Iterator<ImageSummaryRead> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(ImageSummaryRead elem) {
if (this.success == null) {
- this.success = new ArrayList<ImageSummaryRead>();
+ this.success = new java.util.ArrayList<ImageSummaryRead>();
}
this.success.add(elem);
}
- public List<ImageSummaryRead> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<ImageSummaryRead> getSuccess() {
return this.success;
}
- public getPublicImages_result setSuccess(List<ImageSummaryRead> success) {
+ public getPublicImages_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<ImageSummaryRead> success) {
this.success = success;
return this;
}
@@ -9050,11 +10014,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TAuthorizationException getFailure() {
return this.failure;
}
- public getPublicImages_result setFailure(TAuthorizationException failure) {
+ public getPublicImages_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) {
this.failure = failure;
return this;
}
@@ -9074,11 +10039,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getError() {
return this.error;
}
- public getPublicImages_result setError(TInvocationException error) {
+ public getPublicImages_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) {
this.error = error;
return this;
}
@@ -9098,13 +10064,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
- setSuccess((List<ImageSummaryRead>)value);
+ setSuccess((java.util.List<ImageSummaryRead>)value);
}
break;
@@ -9127,7 +10094,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -9139,13 +10108,14 @@ public class MasterServer {
return getError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -9156,13 +10126,11 @@ public class MasterServer {
case ERROR:
return isSetError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getPublicImages_result)
return this.equals((getPublicImages_result)that);
return false;
@@ -9171,6 +10139,8 @@ public class MasterServer {
public boolean equals(getPublicImages_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -9204,24 +10174,21 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_failure = true && (isSetFailure());
- list.add(present_failure);
- if (present_failure)
- list.add(failure);
+ hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287);
+ if (isSetFailure())
+ hashCode = hashCode * 8191 + failure.hashCode();
- boolean present_error = true && (isSetError());
- list.add(present_error);
- if (present_error)
- list.add(error);
+ hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287);
+ if (isSetError())
+ hashCode = hashCode * 8191 + error.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -9232,7 +10199,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -9242,7 +10209,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure());
+ lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure());
if (lastComparison != 0) {
return lastComparison;
}
@@ -9252,7 +10219,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError());
+ lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -9265,21 +10232,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getPublicImages_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getPublicImages_result(");
boolean first = true;
sb.append("success:");
@@ -9322,7 +10292,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -9330,14 +10300,16 @@ public class MasterServer {
}
}
- private static class getPublicImages_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getPublicImages_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getPublicImages_resultStandardScheme getScheme() {
return new getPublicImages_resultStandardScheme();
}
}
- private static class getPublicImages_resultStandardScheme extends StandardScheme<getPublicImages_result> {
+ private static class getPublicImages_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getPublicImages_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getPublicImages_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -9351,14 +10323,14 @@ public class MasterServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list314 = iprot.readListBegin();
- struct.success = new ArrayList<ImageSummaryRead>(_list314.size);
- ImageSummaryRead _elem315;
- for (int _i316 = 0; _i316 < _list314.size; ++_i316)
+ org.apache.thrift.protocol.TList _list426 = iprot.readListBegin();
+ struct.success = new java.util.ArrayList<ImageSummaryRead>(_list426.size);
+ @org.apache.thrift.annotation.Nullable ImageSummaryRead _elem427;
+ for (int _i428 = 0; _i428 < _list426.size; ++_i428)
{
- _elem315 = new ImageSummaryRead();
- _elem315.read(iprot);
- struct.success.add(_elem315);
+ _elem427 = new ImageSummaryRead();
+ _elem427.read(iprot);
+ struct.success.add(_elem427);
}
iprot.readListEnd();
}
@@ -9396,6 +10368,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getPublicImages_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -9404,9 +10377,9 @@ public class MasterServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (ImageSummaryRead _iter317 : struct.success)
+ for (ImageSummaryRead _iter429 : struct.success)
{
- _iter317.write(oprot);
+ _iter429.write(oprot);
}
oprot.writeListEnd();
}
@@ -9428,18 +10401,19 @@ public class MasterServer {
}
- private static class getPublicImages_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getPublicImages_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getPublicImages_resultTupleScheme getScheme() {
return new getPublicImages_resultTupleScheme();
}
}
- private static class getPublicImages_resultTupleScheme extends TupleScheme<getPublicImages_result> {
+ private static class getPublicImages_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getPublicImages_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getPublicImages_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -9453,9 +10427,9 @@ public class MasterServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (ImageSummaryRead _iter318 : struct.success)
+ for (ImageSummaryRead _iter430 : struct.success)
{
- _iter318.write(oprot);
+ _iter430.write(oprot);
}
}
}
@@ -9469,18 +10443,18 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getPublicImages_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(3);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<ImageSummaryRead>(_list319.size);
- ImageSummaryRead _elem320;
- for (int _i321 = 0; _i321 < _list319.size; ++_i321)
+ org.apache.thrift.protocol.TList _list431 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
+ struct.success = new java.util.ArrayList<ImageSummaryRead>(_list431.size);
+ @org.apache.thrift.annotation.Nullable ImageSummaryRead _elem432;
+ for (int _i433 = 0; _i433 < _list431.size; ++_i433)
{
- _elem320 = new ImageSummaryRead();
- _elem320.read(iprot);
- struct.success.add(_elem320);
+ _elem432 = new ImageSummaryRead();
+ _elem432.read(iprot);
+ struct.success.add(_elem432);
}
}
struct.setSuccessIsSet(true);
@@ -9498,32 +10472,33 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getImageDetails_args implements org.apache.thrift.TBase<getImageDetails_args, getImageDetails_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImageDetails_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageDetails_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);
private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getImageDetails_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getImageDetails_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImageDetails_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImageDetails_argsTupleSchemeFactory();
- public String sessionId; // required
- public String imageBaseId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String imageBaseId; // 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"),
IMAGE_BASE_ID((short)2, "imageBaseId");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -9531,6 +10506,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SESSION_ID
@@ -9548,43 +10524,46 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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 , "Token")));
tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID")));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_args.class, metaDataMap);
}
@@ -9592,8 +10571,8 @@ public class MasterServer {
}
public getImageDetails_args(
- String sessionId,
- String imageBaseId)
+ java.lang.String sessionId,
+ java.lang.String imageBaseId)
{
this();
this.sessionId = sessionId;
@@ -9612,6 +10591,7 @@ public class MasterServer {
}
}
+ @Override
public getImageDetails_args deepCopy() {
return new getImageDetails_args(this);
}
@@ -9622,11 +10602,12 @@ public class MasterServer {
this.imageBaseId = null;
}
- public String getSessionId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getSessionId() {
return this.sessionId;
}
- public getImageDetails_args setSessionId(String sessionId) {
+ public getImageDetails_args setSessionId(@org.apache.thrift.annotation.Nullable java.lang.String sessionId) {
this.sessionId = sessionId;
return this;
}
@@ -9646,11 +10627,12 @@ public class MasterServer {
}
}
- public String getImageBaseId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getImageBaseId() {
return this.imageBaseId;
}
- public getImageDetails_args setImageBaseId(String imageBaseId) {
+ public getImageDetails_args setImageBaseId(@org.apache.thrift.annotation.Nullable java.lang.String imageBaseId) {
this.imageBaseId = imageBaseId;
return this;
}
@@ -9670,13 +10652,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SESSION_ID:
if (value == null) {
unsetSessionId();
} else {
- setSessionId((String)value);
+ setSessionId((java.lang.String)value);
}
break;
@@ -9684,14 +10667,16 @@ public class MasterServer {
if (value == null) {
unsetImageBaseId();
} else {
- setImageBaseId((String)value);
+ setImageBaseId((java.lang.String)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SESSION_ID:
return getSessionId();
@@ -9700,13 +10685,14 @@ public class MasterServer {
return getImageBaseId();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -9715,13 +10701,11 @@ public class MasterServer {
case IMAGE_BASE_ID:
return isSetImageBaseId();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getImageDetails_args)
return this.equals((getImageDetails_args)that);
return false;
@@ -9730,6 +10714,8 @@ public class MasterServer {
public boolean equals(getImageDetails_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_sessionId = true && this.isSetSessionId();
boolean that_present_sessionId = true && that.isSetSessionId();
@@ -9754,19 +10740,17 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_sessionId = true && (isSetSessionId());
- list.add(present_sessionId);
- if (present_sessionId)
- list.add(sessionId);
+ hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287);
+ if (isSetSessionId())
+ hashCode = hashCode * 8191 + sessionId.hashCode();
- boolean present_imageBaseId = true && (isSetImageBaseId());
- list.add(present_imageBaseId);
- if (present_imageBaseId)
- list.add(imageBaseId);
+ hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287);
+ if (isSetImageBaseId())
+ hashCode = hashCode * 8191 + imageBaseId.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -9777,7 +10761,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId());
+ lastComparison = java.lang.Boolean.compare(isSetSessionId(), other.isSetSessionId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -9787,7 +10771,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId());
+ lastComparison = java.lang.Boolean.compare(isSetImageBaseId(), other.isSetImageBaseId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -9800,21 +10784,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getImageDetails_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getImageDetails_args(");
boolean first = true;
sb.append("sessionId:");
@@ -9849,7 +10837,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -9857,14 +10845,16 @@ public class MasterServer {
}
}
- private static class getImageDetails_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getImageDetails_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageDetails_argsStandardScheme getScheme() {
return new getImageDetails_argsStandardScheme();
}
}
- private static class getImageDetails_argsStandardScheme extends StandardScheme<getImageDetails_args> {
+ private static class getImageDetails_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getImageDetails_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -9902,6 +10892,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getImageDetails_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -9922,18 +10913,19 @@ public class MasterServer {
}
- private static class getImageDetails_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getImageDetails_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageDetails_argsTupleScheme getScheme() {
return new getImageDetails_argsTupleScheme();
}
}
- private static class getImageDetails_argsTupleScheme extends TupleScheme<getImageDetails_args> {
+ private static class getImageDetails_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getImageDetails_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getImageDetails_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSessionId()) {
optionals.set(0);
}
@@ -9951,8 +10943,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getImageDetails_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.sessionId = iprot.readString();
struct.setSessionIdIsSet(true);
@@ -9964,8 +10956,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getImageDetails_result implements org.apache.thrift.TBase<getImageDetails_result, getImageDetails_result._Fields>, java.io.Serializable, Cloneable, Comparable<getImageDetails_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageDetails_result");
@@ -9974,16 +10970,13 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getImageDetails_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getImageDetails_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImageDetails_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImageDetails_resultTupleSchemeFactory();
- public ImageDetailsRead success; // required
- public TAuthorizationException authError; // required
- public TNotFoundException notFound; // required
- public TInvocationException serverError; // required
+ public @org.apache.thrift.annotation.Nullable ImageDetailsRead success; // required
+ public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required
+ public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException serverError; // 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 {
@@ -9992,10 +10985,10 @@ public class MasterServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -10003,6 +10996,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -10024,47 +11018,50 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, ImageDetailsRead.class)));
tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class)));
tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class)));
tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_result.class, metaDataMap);
}
@@ -10102,6 +11099,7 @@ public class MasterServer {
}
}
+ @Override
public getImageDetails_result deepCopy() {
return new getImageDetails_result(this);
}
@@ -10114,11 +11112,12 @@ public class MasterServer {
this.serverError = null;
}
+ @org.apache.thrift.annotation.Nullable
public ImageDetailsRead getSuccess() {
return this.success;
}
- public getImageDetails_result setSuccess(ImageDetailsRead success) {
+ public getImageDetails_result setSuccess(@org.apache.thrift.annotation.Nullable ImageDetailsRead success) {
this.success = success;
return this;
}
@@ -10138,11 +11137,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TAuthorizationException getAuthError() {
return this.authError;
}
- public getImageDetails_result setAuthError(TAuthorizationException authError) {
+ public getImageDetails_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) {
this.authError = authError;
return this;
}
@@ -10162,11 +11162,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TNotFoundException getNotFound() {
return this.notFound;
}
- public getImageDetails_result setNotFound(TNotFoundException notFound) {
+ public getImageDetails_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) {
this.notFound = notFound;
return this;
}
@@ -10186,11 +11187,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getServerError() {
return this.serverError;
}
- public getImageDetails_result setServerError(TInvocationException serverError) {
+ public getImageDetails_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) {
this.serverError = serverError;
return this;
}
@@ -10210,7 +11212,8 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -10247,7 +11250,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -10262,13 +11267,14 @@ public class MasterServer {
return getServerError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -10281,13 +11287,11 @@ public class MasterServer {
case SERVER_ERROR:
return isSetServerError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getImageDetails_result)
return this.equals((getImageDetails_result)that);
return false;
@@ -10296,6 +11300,8 @@ public class MasterServer {
public boolean equals(getImageDetails_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -10338,29 +11344,25 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_authError = true && (isSetAuthError());
- list.add(present_authError);
- if (present_authError)
- list.add(authError);
+ hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287);
+ if (isSetAuthError())
+ hashCode = hashCode * 8191 + authError.hashCode();
- boolean present_notFound = true && (isSetNotFound());
- list.add(present_notFound);
- if (present_notFound)
- list.add(notFound);
+ hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287);
+ if (isSetNotFound())
+ hashCode = hashCode * 8191 + notFound.hashCode();
- boolean present_serverError = true && (isSetServerError());
- list.add(present_serverError);
- if (present_serverError)
- list.add(serverError);
+ hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287);
+ if (isSetServerError())
+ hashCode = hashCode * 8191 + serverError.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -10371,7 +11373,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -10381,7 +11383,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError());
+ lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -10391,7 +11393,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound());
+ lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound());
if (lastComparison != 0) {
return lastComparison;
}
@@ -10401,7 +11403,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError());
+ lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -10414,21 +11416,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getImageDetails_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getImageDetails_result(");
boolean first = true;
sb.append("success:");
@@ -10482,7 +11487,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -10490,14 +11495,16 @@ public class MasterServer {
}
}
- private static class getImageDetails_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getImageDetails_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageDetails_resultStandardScheme getScheme() {
return new getImageDetails_resultStandardScheme();
}
}
- private static class getImageDetails_resultStandardScheme extends StandardScheme<getImageDetails_result> {
+ private static class getImageDetails_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getImageDetails_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -10555,6 +11562,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getImageDetails_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -10585,18 +11593,19 @@ public class MasterServer {
}
- private static class getImageDetails_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getImageDetails_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageDetails_resultTupleScheme getScheme() {
return new getImageDetails_resultTupleScheme();
}
}
- private static class getImageDetails_resultTupleScheme extends TupleScheme<getImageDetails_result> {
+ private static class getImageDetails_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getImageDetails_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getImageDetails_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -10626,8 +11635,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getImageDetails_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(4);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.success = new ImageDetailsRead();
struct.success.read(iprot);
@@ -10651,32 +11660,33 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getUser_args implements org.apache.thrift.TBase<getUser_args, getUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUser_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUser_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getUser_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getUser_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getUser_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getUser_argsTupleSchemeFactory();
- public String userToken; // required
- public String userId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String userId; // 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 {
USER_TOKEN((short)1, "userToken"),
USER_ID((short)2, "userId");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -10684,6 +11694,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // USER_TOKEN
@@ -10701,43 +11712,46 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token")));
tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID")));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUser_args.class, metaDataMap);
}
@@ -10745,8 +11759,8 @@ public class MasterServer {
}
public getUser_args(
- String userToken,
- String userId)
+ java.lang.String userToken,
+ java.lang.String userId)
{
this();
this.userToken = userToken;
@@ -10765,6 +11779,7 @@ public class MasterServer {
}
}
+ @Override
public getUser_args deepCopy() {
return new getUser_args(this);
}
@@ -10775,11 +11790,12 @@ public class MasterServer {
this.userId = null;
}
- public String getUserToken() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getUserToken() {
return this.userToken;
}
- public getUser_args setUserToken(String userToken) {
+ public getUser_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) {
this.userToken = userToken;
return this;
}
@@ -10799,11 +11815,12 @@ public class MasterServer {
}
}
- public String getUserId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getUserId() {
return this.userId;
}
- public getUser_args setUserId(String userId) {
+ public getUser_args setUserId(@org.apache.thrift.annotation.Nullable java.lang.String userId) {
this.userId = userId;
return this;
}
@@ -10823,13 +11840,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case USER_TOKEN:
if (value == null) {
unsetUserToken();
} else {
- setUserToken((String)value);
+ setUserToken((java.lang.String)value);
}
break;
@@ -10837,14 +11855,16 @@ public class MasterServer {
if (value == null) {
unsetUserId();
} else {
- setUserId((String)value);
+ setUserId((java.lang.String)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -10853,13 +11873,14 @@ public class MasterServer {
return getUserId();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -10868,13 +11889,11 @@ public class MasterServer {
case USER_ID:
return isSetUserId();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getUser_args)
return this.equals((getUser_args)that);
return false;
@@ -10883,6 +11902,8 @@ public class MasterServer {
public boolean equals(getUser_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_userToken = true && this.isSetUserToken();
boolean that_present_userToken = true && that.isSetUserToken();
@@ -10907,19 +11928,17 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_userToken = true && (isSetUserToken());
- list.add(present_userToken);
- if (present_userToken)
- list.add(userToken);
+ hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287);
+ if (isSetUserToken())
+ hashCode = hashCode * 8191 + userToken.hashCode();
- boolean present_userId = true && (isSetUserId());
- list.add(present_userId);
- if (present_userId)
- list.add(userId);
+ hashCode = hashCode * 8191 + ((isSetUserId()) ? 131071 : 524287);
+ if (isSetUserId())
+ hashCode = hashCode * 8191 + userId.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -10930,7 +11949,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken());
+ lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken());
if (lastComparison != 0) {
return lastComparison;
}
@@ -10940,7 +11959,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetUserId()).compareTo(other.isSetUserId());
+ lastComparison = java.lang.Boolean.compare(isSetUserId(), other.isSetUserId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -10953,21 +11972,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getUser_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getUser_args(");
boolean first = true;
sb.append("userToken:");
@@ -11002,7 +12025,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -11010,14 +12033,16 @@ public class MasterServer {
}
}
- private static class getUser_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getUser_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUser_argsStandardScheme getScheme() {
return new getUser_argsStandardScheme();
}
}
- private static class getUser_argsStandardScheme extends StandardScheme<getUser_args> {
+ private static class getUser_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getUser_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getUser_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -11055,6 +12080,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getUser_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -11075,18 +12101,19 @@ public class MasterServer {
}
- private static class getUser_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getUser_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUser_argsTupleScheme getScheme() {
return new getUser_argsTupleScheme();
}
}
- private static class getUser_argsTupleScheme extends TupleScheme<getUser_args> {
+ private static class getUser_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getUser_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getUser_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetUserToken()) {
optionals.set(0);
}
@@ -11104,8 +12131,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getUser_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.userToken = iprot.readString();
struct.setUserTokenIsSet(true);
@@ -11117,8 +12144,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getUser_result implements org.apache.thrift.TBase<getUser_result, getUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUser_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUser_result");
@@ -11127,16 +12158,13 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getUser_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getUser_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getUser_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getUser_resultTupleSchemeFactory();
- public UserInfo success; // required
- public TAuthorizationException authError; // required
- public TNotFoundException notFound; // required
- public TInvocationException serverError; // required
+ public @org.apache.thrift.annotation.Nullable UserInfo success; // required
+ public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required
+ public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException serverError; // 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 {
@@ -11145,10 +12173,10 @@ public class MasterServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -11156,6 +12184,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -11177,47 +12206,50 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, UserInfo.class)));
tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class)));
tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class)));
tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUser_result.class, metaDataMap);
}
@@ -11255,6 +12287,7 @@ public class MasterServer {
}
}
+ @Override
public getUser_result deepCopy() {
return new getUser_result(this);
}
@@ -11267,11 +12300,12 @@ public class MasterServer {
this.serverError = null;
}
+ @org.apache.thrift.annotation.Nullable
public UserInfo getSuccess() {
return this.success;
}
- public getUser_result setSuccess(UserInfo success) {
+ public getUser_result setSuccess(@org.apache.thrift.annotation.Nullable UserInfo success) {
this.success = success;
return this;
}
@@ -11291,11 +12325,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TAuthorizationException getAuthError() {
return this.authError;
}
- public getUser_result setAuthError(TAuthorizationException authError) {
+ public getUser_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) {
this.authError = authError;
return this;
}
@@ -11315,11 +12350,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TNotFoundException getNotFound() {
return this.notFound;
}
- public getUser_result setNotFound(TNotFoundException notFound) {
+ public getUser_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) {
this.notFound = notFound;
return this;
}
@@ -11339,11 +12375,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getServerError() {
return this.serverError;
}
- public getUser_result setServerError(TInvocationException serverError) {
+ public getUser_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) {
this.serverError = serverError;
return this;
}
@@ -11363,7 +12400,8 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -11400,7 +12438,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -11415,13 +12455,14 @@ public class MasterServer {
return getServerError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -11434,13 +12475,11 @@ public class MasterServer {
case SERVER_ERROR:
return isSetServerError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getUser_result)
return this.equals((getUser_result)that);
return false;
@@ -11449,6 +12488,8 @@ public class MasterServer {
public boolean equals(getUser_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -11491,29 +12532,25 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_authError = true && (isSetAuthError());
- list.add(present_authError);
- if (present_authError)
- list.add(authError);
+ hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287);
+ if (isSetAuthError())
+ hashCode = hashCode * 8191 + authError.hashCode();
- boolean present_notFound = true && (isSetNotFound());
- list.add(present_notFound);
- if (present_notFound)
- list.add(notFound);
+ hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287);
+ if (isSetNotFound())
+ hashCode = hashCode * 8191 + notFound.hashCode();
- boolean present_serverError = true && (isSetServerError());
- list.add(present_serverError);
- if (present_serverError)
- list.add(serverError);
+ hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287);
+ if (isSetServerError())
+ hashCode = hashCode * 8191 + serverError.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -11524,7 +12561,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -11534,7 +12571,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError());
+ lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -11544,7 +12581,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound());
+ lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound());
if (lastComparison != 0) {
return lastComparison;
}
@@ -11554,7 +12591,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError());
+ lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -11567,21 +12604,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getUser_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getUser_result(");
boolean first = true;
sb.append("success:");
@@ -11635,7 +12675,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -11643,14 +12683,16 @@ public class MasterServer {
}
}
- private static class getUser_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getUser_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUser_resultStandardScheme getScheme() {
return new getUser_resultStandardScheme();
}
}
- private static class getUser_resultStandardScheme extends StandardScheme<getUser_result> {
+ private static class getUser_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getUser_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getUser_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -11708,6 +12750,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getUser_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -11738,18 +12781,19 @@ public class MasterServer {
}
- private static class getUser_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getUser_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUser_resultTupleScheme getScheme() {
return new getUser_resultTupleScheme();
}
}
- private static class getUser_resultTupleScheme extends TupleScheme<getUser_result> {
+ private static class getUser_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getUser_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getUser_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -11779,8 +12823,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getUser_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(4);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.success = new UserInfo();
struct.success.read(iprot);
@@ -11804,29 +12848,30 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class invalidateSession_args implements org.apache.thrift.TBase<invalidateSession_args, invalidateSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<invalidateSession_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("invalidateSession_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);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new invalidateSession_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new invalidateSession_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new invalidateSession_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new invalidateSession_argsTupleSchemeFactory();
- public String sessionId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.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>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -11834,6 +12879,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SESSION_ID
@@ -11849,41 +12895,44 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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 , "Token")));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_args.class, metaDataMap);
}
@@ -11891,7 +12940,7 @@ public class MasterServer {
}
public invalidateSession_args(
- String sessionId)
+ java.lang.String sessionId)
{
this();
this.sessionId = sessionId;
@@ -11906,6 +12955,7 @@ public class MasterServer {
}
}
+ @Override
public invalidateSession_args deepCopy() {
return new invalidateSession_args(this);
}
@@ -11915,11 +12965,12 @@ public class MasterServer {
this.sessionId = null;
}
- public String getSessionId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getSessionId() {
return this.sessionId;
}
- public invalidateSession_args setSessionId(String sessionId) {
+ public invalidateSession_args setSessionId(@org.apache.thrift.annotation.Nullable java.lang.String sessionId) {
this.sessionId = sessionId;
return this;
}
@@ -11939,45 +12990,47 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SESSION_ID:
if (value == null) {
unsetSessionId();
} else {
- setSessionId((String)value);
+ setSessionId((java.lang.String)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SESSION_ID:
return getSessionId();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
case SESSION_ID:
return isSetSessionId();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof invalidateSession_args)
return this.equals((invalidateSession_args)that);
return false;
@@ -11986,6 +13039,8 @@ public class MasterServer {
public boolean equals(invalidateSession_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_sessionId = true && this.isSetSessionId();
boolean that_present_sessionId = true && that.isSetSessionId();
@@ -12001,14 +13056,13 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_sessionId = true && (isSetSessionId());
- list.add(present_sessionId);
- if (present_sessionId)
- list.add(sessionId);
+ hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287);
+ if (isSetSessionId())
+ hashCode = hashCode * 8191 + sessionId.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -12019,7 +13073,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId());
+ lastComparison = java.lang.Boolean.compare(isSetSessionId(), other.isSetSessionId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -12032,21 +13086,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("invalidateSession_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("invalidateSession_args(");
boolean first = true;
sb.append("sessionId:");
@@ -12073,7 +13131,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -12081,14 +13139,16 @@ public class MasterServer {
}
}
- private static class invalidateSession_argsStandardSchemeFactory implements SchemeFactory {
+ private static class invalidateSession_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public invalidateSession_argsStandardScheme getScheme() {
return new invalidateSession_argsStandardScheme();
}
}
- private static class invalidateSession_argsStandardScheme extends StandardScheme<invalidateSession_args> {
+ private static class invalidateSession_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<invalidateSession_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -12118,6 +13178,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, invalidateSession_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -12133,18 +13194,19 @@ public class MasterServer {
}
- private static class invalidateSession_argsTupleSchemeFactory implements SchemeFactory {
+ private static class invalidateSession_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public invalidateSession_argsTupleScheme getScheme() {
return new invalidateSession_argsTupleScheme();
}
}
- private static class invalidateSession_argsTupleScheme extends TupleScheme<invalidateSession_args> {
+ private static class invalidateSession_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<invalidateSession_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, invalidateSession_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSessionId()) {
optionals.set(0);
}
@@ -12156,8 +13218,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, invalidateSession_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.sessionId = iprot.readString();
struct.setSessionIdIsSet(true);
@@ -12165,29 +13227,30 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class invalidateSession_result implements org.apache.thrift.TBase<invalidateSession_result, invalidateSession_result._Fields>, java.io.Serializable, Cloneable, Comparable<invalidateSession_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("invalidateSession_result");
private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new invalidateSession_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new invalidateSession_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new invalidateSession_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new invalidateSession_resultTupleSchemeFactory();
- public TInvalidTokenException ex; // required
+ public @org.apache.thrift.annotation.Nullable TInvalidTokenException ex; // 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 {
EX((short)1, "ex");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -12195,6 +13258,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
@@ -12210,41 +13274,44 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidTokenException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_result.class, metaDataMap);
}
@@ -12267,6 +13334,7 @@ public class MasterServer {
}
}
+ @Override
public invalidateSession_result deepCopy() {
return new invalidateSession_result(this);
}
@@ -12276,11 +13344,12 @@ public class MasterServer {
this.ex = null;
}
+ @org.apache.thrift.annotation.Nullable
public TInvalidTokenException getEx() {
return this.ex;
}
- public invalidateSession_result setEx(TInvalidTokenException ex) {
+ public invalidateSession_result setEx(@org.apache.thrift.annotation.Nullable TInvalidTokenException ex) {
this.ex = ex;
return this;
}
@@ -12300,7 +13369,8 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case EX:
if (value == null) {
@@ -12313,32 +13383,33 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case EX:
return getEx();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
case EX:
return isSetEx();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof invalidateSession_result)
return this.equals((invalidateSession_result)that);
return false;
@@ -12347,6 +13418,8 @@ public class MasterServer {
public boolean equals(invalidateSession_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_ex = true && this.isSetEx();
boolean that_present_ex = true && that.isSetEx();
@@ -12362,14 +13435,13 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_ex = true && (isSetEx());
- list.add(present_ex);
- if (present_ex)
- list.add(ex);
+ hashCode = hashCode * 8191 + ((isSetEx()) ? 131071 : 524287);
+ if (isSetEx())
+ hashCode = hashCode * 8191 + ex.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -12380,7 +13452,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
+ lastComparison = java.lang.Boolean.compare(isSetEx(), other.isSetEx());
if (lastComparison != 0) {
return lastComparison;
}
@@ -12393,21 +13465,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("invalidateSession_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("invalidateSession_result(");
boolean first = true;
sb.append("ex:");
@@ -12434,7 +13509,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -12442,14 +13517,16 @@ public class MasterServer {
}
}
- private static class invalidateSession_resultStandardSchemeFactory implements SchemeFactory {
+ private static class invalidateSession_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public invalidateSession_resultStandardScheme getScheme() {
return new invalidateSession_resultStandardScheme();
}
}
- private static class invalidateSession_resultStandardScheme extends StandardScheme<invalidateSession_result> {
+ private static class invalidateSession_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<invalidateSession_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -12480,6 +13557,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, invalidateSession_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -12495,18 +13573,19 @@ public class MasterServer {
}
- private static class invalidateSession_resultTupleSchemeFactory implements SchemeFactory {
+ private static class invalidateSession_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public invalidateSession_resultTupleScheme getScheme() {
return new invalidateSession_resultTupleScheme();
}
}
- private static class invalidateSession_resultTupleScheme extends TupleScheme<invalidateSession_result> {
+ private static class invalidateSession_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<invalidateSession_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, invalidateSession_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetEx()) {
optionals.set(0);
}
@@ -12518,8 +13597,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, invalidateSession_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.ex = new TInvalidTokenException();
struct.ex.read(iprot);
@@ -12528,29 +13607,1006 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
+ }
+
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
+ public static class getSessionFromAccessCode_args implements org.apache.thrift.TBase<getSessionFromAccessCode_args, getSessionFromAccessCode_args._Fields>, java.io.Serializable, Cloneable, Comparable<getSessionFromAccessCode_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSessionFromAccessCode_args");
+
+ private static final org.apache.thrift.protocol.TField ACCESS_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("accessCode", org.apache.thrift.protocol.TType.STRING, (short)1);
+
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getSessionFromAccessCode_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getSessionFromAccessCode_argsTupleSchemeFactory();
+
+ public @org.apache.thrift.annotation.Nullable java.lang.String accessCode; // 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 {
+ ACCESS_CODE((short)1, "accessCode");
+
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
+
+ static {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // ACCESS_CODE
+ return ACCESS_CODE;
+ 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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final java.lang.String _fieldName;
+
+ _Fields(short thriftId, java.lang.String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ @Override
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ @Override
+ public java.lang.String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.ACCESS_CODE, new org.apache.thrift.meta_data.FieldMetaData("accessCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSessionFromAccessCode_args.class, metaDataMap);
+ }
+
+ public getSessionFromAccessCode_args() {
+ }
+
+ public getSessionFromAccessCode_args(
+ java.lang.String accessCode)
+ {
+ this();
+ this.accessCode = accessCode;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getSessionFromAccessCode_args(getSessionFromAccessCode_args other) {
+ if (other.isSetAccessCode()) {
+ this.accessCode = other.accessCode;
+ }
+ }
+
+ @Override
+ public getSessionFromAccessCode_args deepCopy() {
+ return new getSessionFromAccessCode_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.accessCode = null;
+ }
+
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getAccessCode() {
+ return this.accessCode;
+ }
+
+ public getSessionFromAccessCode_args setAccessCode(@org.apache.thrift.annotation.Nullable java.lang.String accessCode) {
+ this.accessCode = accessCode;
+ return this;
+ }
+
+ public void unsetAccessCode() {
+ this.accessCode = null;
+ }
+
+ /** Returns true if field accessCode is set (has been assigned a value) and false otherwise */
+ public boolean isSetAccessCode() {
+ return this.accessCode != null;
+ }
+
+ public void setAccessCodeIsSet(boolean value) {
+ if (!value) {
+ this.accessCode = null;
+ }
+ }
+
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
+ switch (field) {
+ case ACCESS_CODE:
+ if (value == null) {
+ unsetAccessCode();
+ } else {
+ setAccessCode((java.lang.String)value);
+ }
+ break;
+
+ }
+ }
+
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
+ switch (field) {
+ case ACCESS_CODE:
+ return getAccessCode();
+
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new java.lang.IllegalArgumentException();
+ }
+
+ switch (field) {
+ case ACCESS_CODE:
+ return isSetAccessCode();
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(java.lang.Object that) {
+ if (that instanceof getSessionFromAccessCode_args)
+ return this.equals((getSessionFromAccessCode_args)that);
+ return false;
+ }
+
+ public boolean equals(getSessionFromAccessCode_args that) {
+ if (that == null)
+ return false;
+ if (this == that)
+ return true;
+
+ boolean this_present_accessCode = true && this.isSetAccessCode();
+ boolean that_present_accessCode = true && that.isSetAccessCode();
+ if (this_present_accessCode || that_present_accessCode) {
+ if (!(this_present_accessCode && that_present_accessCode))
+ return false;
+ if (!this.accessCode.equals(that.accessCode))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ int hashCode = 1;
+
+ hashCode = hashCode * 8191 + ((isSetAccessCode()) ? 131071 : 524287);
+ if (isSetAccessCode())
+ hashCode = hashCode * 8191 + accessCode.hashCode();
+
+ return hashCode;
+ }
+
+ @Override
+ public int compareTo(getSessionFromAccessCode_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = java.lang.Boolean.compare(isSetAccessCode(), other.isSetAccessCode());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAccessCode()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.accessCode, other.accessCode);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ scheme(iprot).read(iprot, this);
+ }
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ scheme(oprot).write(oprot, this);
+ }
+
+ @Override
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getSessionFromAccessCode_args(");
+ boolean first = true;
+
+ sb.append("accessCode:");
+ if (this.accessCode == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.accessCode);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class getSessionFromAccessCode_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
+ public getSessionFromAccessCode_argsStandardScheme getScheme() {
+ return new getSessionFromAccessCode_argsStandardScheme();
+ }
+ }
+
+ private static class getSessionFromAccessCode_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getSessionFromAccessCode_args> {
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getSessionFromAccessCode_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // ACCESS_CODE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.accessCode = iprot.readString();
+ struct.setAccessCodeIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol oprot, getSessionFromAccessCode_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.accessCode != null) {
+ oprot.writeFieldBegin(ACCESS_CODE_FIELD_DESC);
+ oprot.writeString(struct.accessCode);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getSessionFromAccessCode_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
+ public getSessionFromAccessCode_argsTupleScheme getScheme() {
+ return new getSessionFromAccessCode_argsTupleScheme();
+ }
+ }
+
+ private static class getSessionFromAccessCode_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getSessionFromAccessCode_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getSessionFromAccessCode_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
+ if (struct.isSetAccessCode()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetAccessCode()) {
+ oprot.writeString(struct.accessCode);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getSessionFromAccessCode_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.accessCode = iprot.readString();
+ struct.setAccessCodeIsSet(true);
+ }
+ }
+ }
+
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
+ public static class getSessionFromAccessCode_result implements org.apache.thrift.TBase<getSessionFromAccessCode_result, getSessionFromAccessCode_result._Fields>, java.io.Serializable, Cloneable, Comparable<getSessionFromAccessCode_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSessionFromAccessCode_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 NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+ private static final org.apache.thrift.protocol.TField AUTH_FIELD_DESC = new org.apache.thrift.protocol.TField("auth", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getSessionFromAccessCode_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getSessionFromAccessCode_resultTupleSchemeFactory();
+
+ public @org.apache.thrift.annotation.Nullable ClientSessionData success; // required
+ public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required
+ public @org.apache.thrift.annotation.Nullable TAuthorizationException auth; // 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"),
+ NOT_FOUND((short)1, "notFound"),
+ AUTH((short)2, "auth");
+
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
+
+ static {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
+ case 1: // NOT_FOUND
+ return NOT_FOUND;
+ case 2: // AUTH
+ return AUTH;
+ 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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final java.lang.String _fieldName;
+
+ _Fields(short thriftId, java.lang.String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ @Override
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ @Override
+ public java.lang.String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, ClientSessionData.class)));
+ tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class)));
+ tmpMap.put(_Fields.AUTH, new org.apache.thrift.meta_data.FieldMetaData("auth", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSessionFromAccessCode_result.class, metaDataMap);
+ }
+
+ public getSessionFromAccessCode_result() {
+ }
+
+ public getSessionFromAccessCode_result(
+ ClientSessionData success,
+ TNotFoundException notFound,
+ TAuthorizationException auth)
+ {
+ this();
+ this.success = success;
+ this.notFound = notFound;
+ this.auth = auth;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getSessionFromAccessCode_result(getSessionFromAccessCode_result other) {
+ if (other.isSetSuccess()) {
+ this.success = new ClientSessionData(other.success);
+ }
+ if (other.isSetNotFound()) {
+ this.notFound = new TNotFoundException(other.notFound);
+ }
+ if (other.isSetAuth()) {
+ this.auth = new TAuthorizationException(other.auth);
+ }
+ }
+
+ @Override
+ public getSessionFromAccessCode_result deepCopy() {
+ return new getSessionFromAccessCode_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ this.notFound = null;
+ this.auth = null;
+ }
+
+ @org.apache.thrift.annotation.Nullable
+ public ClientSessionData getSuccess() {
+ return this.success;
+ }
+
+ public getSessionFromAccessCode_result setSuccess(@org.apache.thrift.annotation.Nullable ClientSessionData 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;
+ }
+ }
+
+ @org.apache.thrift.annotation.Nullable
+ public TNotFoundException getNotFound() {
+ return this.notFound;
+ }
+
+ public getSessionFromAccessCode_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) {
+ this.notFound = notFound;
+ return this;
+ }
+
+ public void unsetNotFound() {
+ this.notFound = null;
+ }
+
+ /** Returns true if field notFound is set (has been assigned a value) and false otherwise */
+ public boolean isSetNotFound() {
+ return this.notFound != null;
+ }
+
+ public void setNotFoundIsSet(boolean value) {
+ if (!value) {
+ this.notFound = null;
+ }
+ }
+
+ @org.apache.thrift.annotation.Nullable
+ public TAuthorizationException getAuth() {
+ return this.auth;
+ }
+
+ public getSessionFromAccessCode_result setAuth(@org.apache.thrift.annotation.Nullable TAuthorizationException auth) {
+ this.auth = auth;
+ return this;
+ }
+
+ public void unsetAuth() {
+ this.auth = null;
+ }
+
+ /** Returns true if field auth is set (has been assigned a value) and false otherwise */
+ public boolean isSetAuth() {
+ return this.auth != null;
+ }
+
+ public void setAuthIsSet(boolean value) {
+ if (!value) {
+ this.auth = null;
+ }
+ }
+
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((ClientSessionData)value);
+ }
+ break;
+
+ case NOT_FOUND:
+ if (value == null) {
+ unsetNotFound();
+ } else {
+ setNotFound((TNotFoundException)value);
+ }
+ break;
+
+ case AUTH:
+ if (value == null) {
+ unsetAuth();
+ } else {
+ setAuth((TAuthorizationException)value);
+ }
+ break;
+
+ }
+ }
+
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return getSuccess();
+
+ case NOT_FOUND:
+ return getNotFound();
+
+ case AUTH:
+ return getAuth();
+
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new java.lang.IllegalArgumentException();
+ }
+
+ switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
+ case NOT_FOUND:
+ return isSetNotFound();
+ case AUTH:
+ return isSetAuth();
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(java.lang.Object that) {
+ if (that instanceof getSessionFromAccessCode_result)
+ return this.equals((getSessionFromAccessCode_result)that);
+ return false;
+ }
+
+ public boolean equals(getSessionFromAccessCode_result that) {
+ if (that == null)
+ return false;
+ if (this == that)
+ return true;
+
+ 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_notFound = true && this.isSetNotFound();
+ boolean that_present_notFound = true && that.isSetNotFound();
+ if (this_present_notFound || that_present_notFound) {
+ if (!(this_present_notFound && that_present_notFound))
+ return false;
+ if (!this.notFound.equals(that.notFound))
+ return false;
+ }
+
+ boolean this_present_auth = true && this.isSetAuth();
+ boolean that_present_auth = true && that.isSetAuth();
+ if (this_present_auth || that_present_auth) {
+ if (!(this_present_auth && that_present_auth))
+ return false;
+ if (!this.auth.equals(that.auth))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ int hashCode = 1;
+
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287);
+ if (isSetNotFound())
+ hashCode = hashCode * 8191 + notFound.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetAuth()) ? 131071 : 524287);
+ if (isSetAuth())
+ hashCode = hashCode * 8191 + auth.hashCode();
+
+ return hashCode;
+ }
+
+ @Override
+ public int compareTo(getSessionFromAccessCode_result other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetSuccess()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetNotFound()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = java.lang.Boolean.compare(isSetAuth(), other.isSetAuth());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAuth()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.auth, other.auth);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ scheme(iprot).read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ scheme(oprot).write(oprot, this);
+ }
+
+ @Override
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getSessionFromAccessCode_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("notFound:");
+ if (this.notFound == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.notFound);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("auth:");
+ if (this.auth == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.auth);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ if (success != null) {
+ success.validate();
+ }
+ }
+
+ 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, java.lang.ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class getSessionFromAccessCode_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
+ public getSessionFromAccessCode_resultStandardScheme getScheme() {
+ return new getSessionFromAccessCode_resultStandardScheme();
+ }
+ }
+
+ private static class getSessionFromAccessCode_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getSessionFromAccessCode_result> {
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getSessionFromAccessCode_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 0: // SUCCESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.success = new ClientSessionData();
+ struct.success.read(iprot);
+ struct.setSuccessIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 1: // NOT_FOUND
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.notFound = new TNotFoundException();
+ struct.notFound.read(iprot);
+ struct.setNotFoundIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // AUTH
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.auth = new TAuthorizationException();
+ struct.auth.read(iprot);
+ struct.setAuthIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol oprot, getSessionFromAccessCode_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.success != null) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ struct.success.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.notFound != null) {
+ oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC);
+ struct.notFound.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.auth != null) {
+ oprot.writeFieldBegin(AUTH_FIELD_DESC);
+ struct.auth.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getSessionFromAccessCode_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
+ public getSessionFromAccessCode_resultTupleScheme getScheme() {
+ return new getSessionFromAccessCode_resultTupleScheme();
+ }
+ }
+
+ private static class getSessionFromAccessCode_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getSessionFromAccessCode_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getSessionFromAccessCode_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
+ if (struct.isSetSuccess()) {
+ optionals.set(0);
+ }
+ if (struct.isSetNotFound()) {
+ optionals.set(1);
+ }
+ if (struct.isSetAuth()) {
+ optionals.set(2);
+ }
+ oprot.writeBitSet(optionals, 3);
+ if (struct.isSetSuccess()) {
+ struct.success.write(oprot);
+ }
+ if (struct.isSetNotFound()) {
+ struct.notFound.write(oprot);
+ }
+ if (struct.isSetAuth()) {
+ struct.auth.write(oprot);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getSessionFromAccessCode_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(3);
+ if (incoming.get(0)) {
+ struct.success = new ClientSessionData();
+ struct.success.read(iprot);
+ struct.setSuccessIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.notFound = new TNotFoundException();
+ struct.notFound.read(iprot);
+ struct.setNotFoundIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.auth = new TAuthorizationException();
+ struct.auth.read(iprot);
+ struct.setAuthIsSet(true);
+ }
+ }
+ }
+
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
+ }
+
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getUserFromToken_args implements org.apache.thrift.TBase<getUserFromToken_args, getUserFromToken_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUserFromToken_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserFromToken_args");
private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getUserFromToken_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getUserFromToken_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getUserFromToken_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getUserFromToken_argsTupleSchemeFactory();
- public String token; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String token; // 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 {
TOKEN((short)1, "token");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -12558,6 +14614,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // TOKEN
@@ -12573,41 +14630,44 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token")));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserFromToken_args.class, metaDataMap);
}
@@ -12615,7 +14675,7 @@ public class MasterServer {
}
public getUserFromToken_args(
- String token)
+ java.lang.String token)
{
this();
this.token = token;
@@ -12630,6 +14690,7 @@ public class MasterServer {
}
}
+ @Override
public getUserFromToken_args deepCopy() {
return new getUserFromToken_args(this);
}
@@ -12639,11 +14700,12 @@ public class MasterServer {
this.token = null;
}
- public String getToken() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getToken() {
return this.token;
}
- public getUserFromToken_args setToken(String token) {
+ public getUserFromToken_args setToken(@org.apache.thrift.annotation.Nullable java.lang.String token) {
this.token = token;
return this;
}
@@ -12663,45 +14725,47 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case TOKEN:
if (value == null) {
unsetToken();
} else {
- setToken((String)value);
+ setToken((java.lang.String)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case TOKEN:
return getToken();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
case TOKEN:
return isSetToken();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getUserFromToken_args)
return this.equals((getUserFromToken_args)that);
return false;
@@ -12710,6 +14774,8 @@ public class MasterServer {
public boolean equals(getUserFromToken_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_token = true && this.isSetToken();
boolean that_present_token = true && that.isSetToken();
@@ -12725,14 +14791,13 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_token = true && (isSetToken());
- list.add(present_token);
- if (present_token)
- list.add(token);
+ hashCode = hashCode * 8191 + ((isSetToken()) ? 131071 : 524287);
+ if (isSetToken())
+ hashCode = hashCode * 8191 + token.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -12743,7 +14808,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken());
+ lastComparison = java.lang.Boolean.compare(isSetToken(), other.isSetToken());
if (lastComparison != 0) {
return lastComparison;
}
@@ -12756,21 +14821,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getUserFromToken_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getUserFromToken_args(");
boolean first = true;
sb.append("token:");
@@ -12797,7 +14866,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -12805,14 +14874,16 @@ public class MasterServer {
}
}
- private static class getUserFromToken_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getUserFromToken_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUserFromToken_argsStandardScheme getScheme() {
return new getUserFromToken_argsStandardScheme();
}
}
- private static class getUserFromToken_argsStandardScheme extends StandardScheme<getUserFromToken_args> {
+ private static class getUserFromToken_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getUserFromToken_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getUserFromToken_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -12842,6 +14913,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getUserFromToken_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -12857,18 +14929,19 @@ public class MasterServer {
}
- private static class getUserFromToken_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getUserFromToken_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUserFromToken_argsTupleScheme getScheme() {
return new getUserFromToken_argsTupleScheme();
}
}
- private static class getUserFromToken_argsTupleScheme extends TupleScheme<getUserFromToken_args> {
+ private static class getUserFromToken_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getUserFromToken_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetToken()) {
optionals.set(0);
}
@@ -12880,8 +14953,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.token = iprot.readString();
struct.setTokenIsSet(true);
@@ -12889,32 +14962,33 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getUserFromToken_result implements org.apache.thrift.TBase<getUserFromToken_result, getUserFromToken_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUserFromToken_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserFromToken_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 FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getUserFromToken_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getUserFromToken_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getUserFromToken_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getUserFromToken_resultTupleSchemeFactory();
- public UserInfo success; // required
- public TInvalidTokenException failure; // required
+ public @org.apache.thrift.annotation.Nullable UserInfo success; // required
+ public @org.apache.thrift.annotation.Nullable TInvalidTokenException failure; // 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"),
FAILURE((short)1, "failure");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -12922,6 +14996,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -12939,43 +15014,46 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, UserInfo.class)));
tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidTokenException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserFromToken_result.class, metaDataMap);
}
@@ -13003,6 +15081,7 @@ public class MasterServer {
}
}
+ @Override
public getUserFromToken_result deepCopy() {
return new getUserFromToken_result(this);
}
@@ -13013,11 +15092,12 @@ public class MasterServer {
this.failure = null;
}
+ @org.apache.thrift.annotation.Nullable
public UserInfo getSuccess() {
return this.success;
}
- public getUserFromToken_result setSuccess(UserInfo success) {
+ public getUserFromToken_result setSuccess(@org.apache.thrift.annotation.Nullable UserInfo success) {
this.success = success;
return this;
}
@@ -13037,11 +15117,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvalidTokenException getFailure() {
return this.failure;
}
- public getUserFromToken_result setFailure(TInvalidTokenException failure) {
+ public getUserFromToken_result setFailure(@org.apache.thrift.annotation.Nullable TInvalidTokenException failure) {
this.failure = failure;
return this;
}
@@ -13061,7 +15142,8 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -13082,7 +15164,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -13091,13 +15175,14 @@ public class MasterServer {
return getFailure();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -13106,13 +15191,11 @@ public class MasterServer {
case FAILURE:
return isSetFailure();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getUserFromToken_result)
return this.equals((getUserFromToken_result)that);
return false;
@@ -13121,6 +15204,8 @@ public class MasterServer {
public boolean equals(getUserFromToken_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -13145,19 +15230,17 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_failure = true && (isSetFailure());
- list.add(present_failure);
- if (present_failure)
- list.add(failure);
+ hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287);
+ if (isSetFailure())
+ hashCode = hashCode * 8191 + failure.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -13168,7 +15251,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -13178,7 +15261,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure());
+ lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure());
if (lastComparison != 0) {
return lastComparison;
}
@@ -13191,21 +15274,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getUserFromToken_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getUserFromToken_result(");
boolean first = true;
sb.append("success:");
@@ -13243,7 +15329,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -13251,14 +15337,16 @@ public class MasterServer {
}
}
- private static class getUserFromToken_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getUserFromToken_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUserFromToken_resultStandardScheme getScheme() {
return new getUserFromToken_resultStandardScheme();
}
}
- private static class getUserFromToken_resultStandardScheme extends StandardScheme<getUserFromToken_result> {
+ private static class getUserFromToken_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getUserFromToken_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getUserFromToken_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -13298,6 +15386,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getUserFromToken_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -13318,18 +15407,19 @@ public class MasterServer {
}
- private static class getUserFromToken_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getUserFromToken_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUserFromToken_resultTupleScheme getScheme() {
return new getUserFromToken_resultTupleScheme();
}
}
- private static class getUserFromToken_resultTupleScheme extends TupleScheme<getUserFromToken_result> {
+ private static class getUserFromToken_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getUserFromToken_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -13347,8 +15437,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = new UserInfo();
struct.success.read(iprot);
@@ -13362,29 +15452,30 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class isServerAuthenticated_args implements org.apache.thrift.TBase<isServerAuthenticated_args, isServerAuthenticated_args._Fields>, java.io.Serializable, Cloneable, Comparable<isServerAuthenticated_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isServerAuthenticated_args");
private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new isServerAuthenticated_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new isServerAuthenticated_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isServerAuthenticated_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isServerAuthenticated_argsTupleSchemeFactory();
- public String serverSessionId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String serverSessionId; // 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 {
SERVER_SESSION_ID((short)1, "serverSessionId");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -13392,6 +15483,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SERVER_SESSION_ID
@@ -13407,41 +15499,44 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SERVER_SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("serverSessionId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token")));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isServerAuthenticated_args.class, metaDataMap);
}
@@ -13449,7 +15544,7 @@ public class MasterServer {
}
public isServerAuthenticated_args(
- String serverSessionId)
+ java.lang.String serverSessionId)
{
this();
this.serverSessionId = serverSessionId;
@@ -13464,6 +15559,7 @@ public class MasterServer {
}
}
+ @Override
public isServerAuthenticated_args deepCopy() {
return new isServerAuthenticated_args(this);
}
@@ -13473,11 +15569,12 @@ public class MasterServer {
this.serverSessionId = null;
}
- public String getServerSessionId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getServerSessionId() {
return this.serverSessionId;
}
- public isServerAuthenticated_args setServerSessionId(String serverSessionId) {
+ public isServerAuthenticated_args setServerSessionId(@org.apache.thrift.annotation.Nullable java.lang.String serverSessionId) {
this.serverSessionId = serverSessionId;
return this;
}
@@ -13497,45 +15594,47 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SERVER_SESSION_ID:
if (value == null) {
unsetServerSessionId();
} else {
- setServerSessionId((String)value);
+ setServerSessionId((java.lang.String)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SERVER_SESSION_ID:
return getServerSessionId();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
case SERVER_SESSION_ID:
return isSetServerSessionId();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof isServerAuthenticated_args)
return this.equals((isServerAuthenticated_args)that);
return false;
@@ -13544,6 +15643,8 @@ public class MasterServer {
public boolean equals(isServerAuthenticated_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_serverSessionId = true && this.isSetServerSessionId();
boolean that_present_serverSessionId = true && that.isSetServerSessionId();
@@ -13559,14 +15660,13 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_serverSessionId = true && (isSetServerSessionId());
- list.add(present_serverSessionId);
- if (present_serverSessionId)
- list.add(serverSessionId);
+ hashCode = hashCode * 8191 + ((isSetServerSessionId()) ? 131071 : 524287);
+ if (isSetServerSessionId())
+ hashCode = hashCode * 8191 + serverSessionId.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -13577,7 +15677,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(other.isSetServerSessionId());
+ lastComparison = java.lang.Boolean.compare(isSetServerSessionId(), other.isSetServerSessionId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -13590,21 +15690,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("isServerAuthenticated_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("isServerAuthenticated_args(");
boolean first = true;
sb.append("serverSessionId:");
@@ -13631,7 +15735,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -13639,14 +15743,16 @@ public class MasterServer {
}
}
- private static class isServerAuthenticated_argsStandardSchemeFactory implements SchemeFactory {
+ private static class isServerAuthenticated_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public isServerAuthenticated_argsStandardScheme getScheme() {
return new isServerAuthenticated_argsStandardScheme();
}
}
- private static class isServerAuthenticated_argsStandardScheme extends StandardScheme<isServerAuthenticated_args> {
+ private static class isServerAuthenticated_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<isServerAuthenticated_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, isServerAuthenticated_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -13676,6 +15782,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, isServerAuthenticated_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -13691,18 +15798,19 @@ public class MasterServer {
}
- private static class isServerAuthenticated_argsTupleSchemeFactory implements SchemeFactory {
+ private static class isServerAuthenticated_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public isServerAuthenticated_argsTupleScheme getScheme() {
return new isServerAuthenticated_argsTupleScheme();
}
}
- private static class isServerAuthenticated_argsTupleScheme extends TupleScheme<isServerAuthenticated_args> {
+ private static class isServerAuthenticated_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<isServerAuthenticated_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetServerSessionId()) {
optionals.set(0);
}
@@ -13714,8 +15822,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.serverSessionId = iprot.readString();
struct.setServerSessionIdIsSet(true);
@@ -13723,18 +15831,19 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class isServerAuthenticated_result implements org.apache.thrift.TBase<isServerAuthenticated_result, isServerAuthenticated_result._Fields>, java.io.Serializable, Cloneable, Comparable<isServerAuthenticated_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isServerAuthenticated_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);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new isServerAuthenticated_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new isServerAuthenticated_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isServerAuthenticated_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isServerAuthenticated_resultTupleSchemeFactory();
public boolean success; // required
@@ -13742,10 +15851,10 @@ public class MasterServer {
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -13753,6 +15862,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -13768,30 +15878,33 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -13799,12 +15912,12 @@ public class MasterServer {
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isServerAuthenticated_result.class, metaDataMap);
}
@@ -13827,6 +15940,7 @@ public class MasterServer {
this.success = other.success;
}
+ @Override
public isServerAuthenticated_result deepCopy() {
return new isServerAuthenticated_result(this);
}
@@ -13848,57 +15962,59 @@ public class MasterServer {
}
public void unsetSuccess() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
- return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
- setSuccess((Boolean)value);
+ setSuccess((java.lang.Boolean)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return isSuccess();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof isServerAuthenticated_result)
return this.equals((isServerAuthenticated_result)that);
return false;
@@ -13907,6 +16023,8 @@ public class MasterServer {
public boolean equals(isServerAuthenticated_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true;
boolean that_present_success = true;
@@ -13922,14 +16040,11 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true;
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((success) ? 131071 : 524287);
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -13940,7 +16055,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -13953,21 +16068,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("isServerAuthenticated_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("isServerAuthenticated_result(");
boolean first = true;
sb.append("success:");
@@ -13990,7 +16108,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
@@ -14000,14 +16118,16 @@ public class MasterServer {
}
}
- private static class isServerAuthenticated_resultStandardSchemeFactory implements SchemeFactory {
+ private static class isServerAuthenticated_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public isServerAuthenticated_resultStandardScheme getScheme() {
return new isServerAuthenticated_resultStandardScheme();
}
}
- private static class isServerAuthenticated_resultStandardScheme extends StandardScheme<isServerAuthenticated_result> {
+ private static class isServerAuthenticated_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<isServerAuthenticated_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, isServerAuthenticated_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -14037,6 +16157,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, isServerAuthenticated_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -14052,18 +16173,19 @@ public class MasterServer {
}
- private static class isServerAuthenticated_resultTupleSchemeFactory implements SchemeFactory {
+ private static class isServerAuthenticated_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public isServerAuthenticated_resultTupleScheme getScheme() {
return new isServerAuthenticated_resultTupleScheme();
}
}
- private static class isServerAuthenticated_resultTupleScheme extends TupleScheme<isServerAuthenticated_result> {
+ private static class isServerAuthenticated_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<isServerAuthenticated_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -14075,8 +16197,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
@@ -14084,18 +16206,19 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class startServerAuthentication_args implements org.apache.thrift.TBase<startServerAuthentication_args, startServerAuthentication_args._Fields>, java.io.Serializable, Cloneable, Comparable<startServerAuthentication_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startServerAuthentication_args");
private static final org.apache.thrift.protocol.TField SATELLITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("satelliteId", org.apache.thrift.protocol.TType.I32, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new startServerAuthentication_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new startServerAuthentication_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new startServerAuthentication_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new startServerAuthentication_argsTupleSchemeFactory();
public int satelliteId; // required
@@ -14103,10 +16226,10 @@ public class MasterServer {
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SATELLITE_ID((short)1, "satelliteId");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -14114,6 +16237,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SATELLITE_ID
@@ -14129,30 +16253,33 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -14160,12 +16287,12 @@ public class MasterServer {
// isset id assignments
private static final int __SATELLITEID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SATELLITE_ID, new org.apache.thrift.meta_data.FieldMetaData("satelliteId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startServerAuthentication_args.class, metaDataMap);
}
@@ -14188,6 +16315,7 @@ public class MasterServer {
this.satelliteId = other.satelliteId;
}
+ @Override
public startServerAuthentication_args deepCopy() {
return new startServerAuthentication_args(this);
}
@@ -14209,57 +16337,59 @@ public class MasterServer {
}
public void unsetSatelliteId() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SATELLITEID_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SATELLITEID_ISSET_ID);
}
/** Returns true if field satelliteId is set (has been assigned a value) and false otherwise */
public boolean isSetSatelliteId() {
- return EncodingUtils.testBit(__isset_bitfield, __SATELLITEID_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SATELLITEID_ISSET_ID);
}
public void setSatelliteIdIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SATELLITEID_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SATELLITEID_ISSET_ID, value);
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SATELLITE_ID:
if (value == null) {
unsetSatelliteId();
} else {
- setSatelliteId((Integer)value);
+ setSatelliteId((java.lang.Integer)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SATELLITE_ID:
return getSatelliteId();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
case SATELLITE_ID:
return isSetSatelliteId();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof startServerAuthentication_args)
return this.equals((startServerAuthentication_args)that);
return false;
@@ -14268,6 +16398,8 @@ public class MasterServer {
public boolean equals(startServerAuthentication_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_satelliteId = true;
boolean that_present_satelliteId = true;
@@ -14283,14 +16415,11 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_satelliteId = true;
- list.add(present_satelliteId);
- if (present_satelliteId)
- list.add(satelliteId);
+ hashCode = hashCode * 8191 + satelliteId;
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -14301,7 +16430,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSatelliteId()).compareTo(other.isSetSatelliteId());
+ lastComparison = java.lang.Boolean.compare(isSetSatelliteId(), other.isSetSatelliteId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -14314,21 +16443,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("startServerAuthentication_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("startServerAuthentication_args(");
boolean first = true;
sb.append("satelliteId:");
@@ -14351,7 +16484,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
@@ -14361,14 +16494,16 @@ public class MasterServer {
}
}
- private static class startServerAuthentication_argsStandardSchemeFactory implements SchemeFactory {
+ private static class startServerAuthentication_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public startServerAuthentication_argsStandardScheme getScheme() {
return new startServerAuthentication_argsStandardScheme();
}
}
- private static class startServerAuthentication_argsStandardScheme extends StandardScheme<startServerAuthentication_args> {
+ private static class startServerAuthentication_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<startServerAuthentication_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, startServerAuthentication_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -14398,6 +16533,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, startServerAuthentication_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -14411,18 +16547,19 @@ public class MasterServer {
}
- private static class startServerAuthentication_argsTupleSchemeFactory implements SchemeFactory {
+ private static class startServerAuthentication_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public startServerAuthentication_argsTupleScheme getScheme() {
return new startServerAuthentication_argsTupleScheme();
}
}
- private static class startServerAuthentication_argsTupleScheme extends TupleScheme<startServerAuthentication_args> {
+ private static class startServerAuthentication_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<startServerAuthentication_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSatelliteId()) {
optionals.set(0);
}
@@ -14434,8 +16571,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.satelliteId = iprot.readI32();
struct.setSatelliteIdIsSet(true);
@@ -14443,8 +16580,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class startServerAuthentication_result implements org.apache.thrift.TBase<startServerAuthentication_result, startServerAuthentication_result._Fields>, java.io.Serializable, Cloneable, Comparable<startServerAuthentication_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startServerAuthentication_result");
@@ -14452,15 +16593,12 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new startServerAuthentication_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new startServerAuthentication_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new startServerAuthentication_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new startServerAuthentication_resultTupleSchemeFactory();
- public ByteBuffer success; // required
- public TAuthorizationException failure; // required
- public TInvocationException error; // required
+ public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer success; // required
+ public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException error; // 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 {
@@ -14468,10 +16606,10 @@ public class MasterServer {
FAILURE((short)1, "failure"),
ERROR((short)2, "error");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -14479,6 +16617,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -14498,45 +16637,48 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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 , true)));
tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class)));
tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startServerAuthentication_result.class, metaDataMap);
}
@@ -14544,7 +16686,7 @@ public class MasterServer {
}
public startServerAuthentication_result(
- ByteBuffer success,
+ java.nio.ByteBuffer success,
TAuthorizationException failure,
TInvocationException error)
{
@@ -14569,6 +16711,7 @@ public class MasterServer {
}
}
+ @Override
public startServerAuthentication_result deepCopy() {
return new startServerAuthentication_result(this);
}
@@ -14585,16 +16728,16 @@ public class MasterServer {
return success == null ? null : success.array();
}
- public ByteBuffer bufferForSuccess() {
+ public java.nio.ByteBuffer bufferForSuccess() {
return org.apache.thrift.TBaseHelper.copyBinary(success);
}
public startServerAuthentication_result setSuccess(byte[] success) {
- this.success = success == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(success, success.length));
+ this.success = success == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(success.clone());
return this;
}
- public startServerAuthentication_result setSuccess(ByteBuffer success) {
+ public startServerAuthentication_result setSuccess(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer success) {
this.success = org.apache.thrift.TBaseHelper.copyBinary(success);
return this;
}
@@ -14614,11 +16757,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TAuthorizationException getFailure() {
return this.failure;
}
- public startServerAuthentication_result setFailure(TAuthorizationException failure) {
+ public startServerAuthentication_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) {
this.failure = failure;
return this;
}
@@ -14638,11 +16782,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getError() {
return this.error;
}
- public startServerAuthentication_result setError(TInvocationException error) {
+ public startServerAuthentication_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) {
this.error = error;
return this;
}
@@ -14662,13 +16807,18 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
- setSuccess((ByteBuffer)value);
+ if (value instanceof byte[]) {
+ setSuccess((byte[])value);
+ } else {
+ setSuccess((java.nio.ByteBuffer)value);
+ }
}
break;
@@ -14691,7 +16841,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -14703,13 +16855,14 @@ public class MasterServer {
return getError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -14720,13 +16873,11 @@ public class MasterServer {
case ERROR:
return isSetError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof startServerAuthentication_result)
return this.equals((startServerAuthentication_result)that);
return false;
@@ -14735,6 +16886,8 @@ public class MasterServer {
public boolean equals(startServerAuthentication_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -14768,24 +16921,21 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_failure = true && (isSetFailure());
- list.add(present_failure);
- if (present_failure)
- list.add(failure);
+ hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287);
+ if (isSetFailure())
+ hashCode = hashCode * 8191 + failure.hashCode();
- boolean present_error = true && (isSetError());
- list.add(present_error);
- if (present_error)
- list.add(error);
+ hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287);
+ if (isSetError())
+ hashCode = hashCode * 8191 + error.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -14796,7 +16946,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -14806,7 +16956,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure());
+ lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure());
if (lastComparison != 0) {
return lastComparison;
}
@@ -14816,7 +16966,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError());
+ lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -14829,21 +16979,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("startServerAuthentication_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("startServerAuthentication_result(");
boolean first = true;
sb.append("success:");
@@ -14886,7 +17039,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -14894,14 +17047,16 @@ public class MasterServer {
}
}
- private static class startServerAuthentication_resultStandardSchemeFactory implements SchemeFactory {
+ private static class startServerAuthentication_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public startServerAuthentication_resultStandardScheme getScheme() {
return new startServerAuthentication_resultStandardScheme();
}
}
- private static class startServerAuthentication_resultStandardScheme extends StandardScheme<startServerAuthentication_result> {
+ private static class startServerAuthentication_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<startServerAuthentication_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, startServerAuthentication_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -14949,6 +17104,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, startServerAuthentication_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -14974,18 +17130,19 @@ public class MasterServer {
}
- private static class startServerAuthentication_resultTupleSchemeFactory implements SchemeFactory {
+ private static class startServerAuthentication_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public startServerAuthentication_resultTupleScheme getScheme() {
return new startServerAuthentication_resultTupleScheme();
}
}
- private static class startServerAuthentication_resultTupleScheme extends TupleScheme<startServerAuthentication_result> {
+ private static class startServerAuthentication_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<startServerAuthentication_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -15009,8 +17166,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(3);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.success = iprot.readBinary();
struct.setSuccessIsSet(true);
@@ -15028,32 +17185,33 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class serverAuthenticate_args implements org.apache.thrift.TBase<serverAuthenticate_args, serverAuthenticate_args._Fields>, java.io.Serializable, Cloneable, Comparable<serverAuthenticate_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("serverAuthenticate_args");
private static final org.apache.thrift.protocol.TField SATELLITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("satelliteId", org.apache.thrift.protocol.TType.I32, (short)1);
private static final org.apache.thrift.protocol.TField CHALLENGE_RESPONSE_FIELD_DESC = new org.apache.thrift.protocol.TField("challengeResponse", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new serverAuthenticate_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new serverAuthenticate_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new serverAuthenticate_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new serverAuthenticate_argsTupleSchemeFactory();
public int satelliteId; // required
- public ByteBuffer challengeResponse; // required
+ public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer challengeResponse; // 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 {
SATELLITE_ID((short)1, "satelliteId"),
CHALLENGE_RESPONSE((short)2, "challengeResponse");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -15061,6 +17219,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SATELLITE_ID
@@ -15078,30 +17237,33 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -15109,14 +17271,14 @@ public class MasterServer {
// isset id assignments
private static final int __SATELLITEID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SATELLITE_ID, new org.apache.thrift.meta_data.FieldMetaData("satelliteId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.CHALLENGE_RESPONSE, new org.apache.thrift.meta_data.FieldMetaData("challengeResponse", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(serverAuthenticate_args.class, metaDataMap);
}
@@ -15125,7 +17287,7 @@ public class MasterServer {
public serverAuthenticate_args(
int satelliteId,
- ByteBuffer challengeResponse)
+ java.nio.ByteBuffer challengeResponse)
{
this();
this.satelliteId = satelliteId;
@@ -15144,6 +17306,7 @@ public class MasterServer {
}
}
+ @Override
public serverAuthenticate_args deepCopy() {
return new serverAuthenticate_args(this);
}
@@ -15166,16 +17329,16 @@ public class MasterServer {
}
public void unsetSatelliteId() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SATELLITEID_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SATELLITEID_ISSET_ID);
}
/** Returns true if field satelliteId is set (has been assigned a value) and false otherwise */
public boolean isSetSatelliteId() {
- return EncodingUtils.testBit(__isset_bitfield, __SATELLITEID_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SATELLITEID_ISSET_ID);
}
public void setSatelliteIdIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SATELLITEID_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SATELLITEID_ISSET_ID, value);
}
public byte[] getChallengeResponse() {
@@ -15183,16 +17346,16 @@ public class MasterServer {
return challengeResponse == null ? null : challengeResponse.array();
}
- public ByteBuffer bufferForChallengeResponse() {
+ public java.nio.ByteBuffer bufferForChallengeResponse() {
return org.apache.thrift.TBaseHelper.copyBinary(challengeResponse);
}
public serverAuthenticate_args setChallengeResponse(byte[] challengeResponse) {
- this.challengeResponse = challengeResponse == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(challengeResponse, challengeResponse.length));
+ this.challengeResponse = challengeResponse == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(challengeResponse.clone());
return this;
}
- public serverAuthenticate_args setChallengeResponse(ByteBuffer challengeResponse) {
+ public serverAuthenticate_args setChallengeResponse(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer challengeResponse) {
this.challengeResponse = org.apache.thrift.TBaseHelper.copyBinary(challengeResponse);
return this;
}
@@ -15212,13 +17375,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SATELLITE_ID:
if (value == null) {
unsetSatelliteId();
} else {
- setSatelliteId((Integer)value);
+ setSatelliteId((java.lang.Integer)value);
}
break;
@@ -15226,14 +17390,20 @@ public class MasterServer {
if (value == null) {
unsetChallengeResponse();
} else {
- setChallengeResponse((ByteBuffer)value);
+ if (value instanceof byte[]) {
+ setChallengeResponse((byte[])value);
+ } else {
+ setChallengeResponse((java.nio.ByteBuffer)value);
+ }
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SATELLITE_ID:
return getSatelliteId();
@@ -15242,13 +17412,14 @@ public class MasterServer {
return getChallengeResponse();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -15257,13 +17428,11 @@ public class MasterServer {
case CHALLENGE_RESPONSE:
return isSetChallengeResponse();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof serverAuthenticate_args)
return this.equals((serverAuthenticate_args)that);
return false;
@@ -15272,6 +17441,8 @@ public class MasterServer {
public boolean equals(serverAuthenticate_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_satelliteId = true;
boolean that_present_satelliteId = true;
@@ -15296,19 +17467,15 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_satelliteId = true;
- list.add(present_satelliteId);
- if (present_satelliteId)
- list.add(satelliteId);
+ hashCode = hashCode * 8191 + satelliteId;
- boolean present_challengeResponse = true && (isSetChallengeResponse());
- list.add(present_challengeResponse);
- if (present_challengeResponse)
- list.add(challengeResponse);
+ hashCode = hashCode * 8191 + ((isSetChallengeResponse()) ? 131071 : 524287);
+ if (isSetChallengeResponse())
+ hashCode = hashCode * 8191 + challengeResponse.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -15319,7 +17486,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSatelliteId()).compareTo(other.isSetSatelliteId());
+ lastComparison = java.lang.Boolean.compare(isSetSatelliteId(), other.isSetSatelliteId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -15329,7 +17496,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetChallengeResponse()).compareTo(other.isSetChallengeResponse());
+ lastComparison = java.lang.Boolean.compare(isSetChallengeResponse(), other.isSetChallengeResponse());
if (lastComparison != 0) {
return lastComparison;
}
@@ -15342,21 +17509,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("serverAuthenticate_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("serverAuthenticate_args(");
boolean first = true;
sb.append("satelliteId:");
@@ -15387,7 +17558,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
@@ -15397,14 +17568,16 @@ public class MasterServer {
}
}
- private static class serverAuthenticate_argsStandardSchemeFactory implements SchemeFactory {
+ private static class serverAuthenticate_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public serverAuthenticate_argsStandardScheme getScheme() {
return new serverAuthenticate_argsStandardScheme();
}
}
- private static class serverAuthenticate_argsStandardScheme extends StandardScheme<serverAuthenticate_args> {
+ private static class serverAuthenticate_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<serverAuthenticate_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, serverAuthenticate_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -15442,6 +17615,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, serverAuthenticate_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -15460,18 +17634,19 @@ public class MasterServer {
}
- private static class serverAuthenticate_argsTupleSchemeFactory implements SchemeFactory {
+ private static class serverAuthenticate_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public serverAuthenticate_argsTupleScheme getScheme() {
return new serverAuthenticate_argsTupleScheme();
}
}
- private static class serverAuthenticate_argsTupleScheme extends TupleScheme<serverAuthenticate_args> {
+ private static class serverAuthenticate_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<serverAuthenticate_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSatelliteId()) {
optionals.set(0);
}
@@ -15489,8 +17664,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.satelliteId = iprot.readI32();
struct.setSatelliteIdIsSet(true);
@@ -15502,8 +17677,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class serverAuthenticate_result implements org.apache.thrift.TBase<serverAuthenticate_result, serverAuthenticate_result._Fields>, java.io.Serializable, Cloneable, Comparable<serverAuthenticate_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("serverAuthenticate_result");
@@ -15511,15 +17690,12 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField ERRR_FIELD_DESC = new org.apache.thrift.protocol.TField("errr", org.apache.thrift.protocol.TType.STRUCT, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new serverAuthenticate_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new serverAuthenticate_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new serverAuthenticate_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new serverAuthenticate_resultTupleSchemeFactory();
- public ServerSessionData success; // required
- public TAuthorizationException failure; // required
- public TInvocationException errr; // required
+ public @org.apache.thrift.annotation.Nullable ServerSessionData success; // required
+ public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException errr; // 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 {
@@ -15527,10 +17703,10 @@ public class MasterServer {
FAILURE((short)1, "failure"),
ERRR((short)2, "errr");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -15538,6 +17714,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -15557,45 +17734,48 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, ServerSessionData.class)));
tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class)));
tmpMap.put(_Fields.ERRR, new org.apache.thrift.meta_data.FieldMetaData("errr", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(serverAuthenticate_result.class, metaDataMap);
}
@@ -15628,6 +17808,7 @@ public class MasterServer {
}
}
+ @Override
public serverAuthenticate_result deepCopy() {
return new serverAuthenticate_result(this);
}
@@ -15639,11 +17820,12 @@ public class MasterServer {
this.errr = null;
}
+ @org.apache.thrift.annotation.Nullable
public ServerSessionData getSuccess() {
return this.success;
}
- public serverAuthenticate_result setSuccess(ServerSessionData success) {
+ public serverAuthenticate_result setSuccess(@org.apache.thrift.annotation.Nullable ServerSessionData success) {
this.success = success;
return this;
}
@@ -15663,11 +17845,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TAuthorizationException getFailure() {
return this.failure;
}
- public serverAuthenticate_result setFailure(TAuthorizationException failure) {
+ public serverAuthenticate_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) {
this.failure = failure;
return this;
}
@@ -15687,11 +17870,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getErrr() {
return this.errr;
}
- public serverAuthenticate_result setErrr(TInvocationException errr) {
+ public serverAuthenticate_result setErrr(@org.apache.thrift.annotation.Nullable TInvocationException errr) {
this.errr = errr;
return this;
}
@@ -15711,7 +17895,8 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -15740,7 +17925,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -15752,13 +17939,14 @@ public class MasterServer {
return getErrr();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -15769,13 +17957,11 @@ public class MasterServer {
case ERRR:
return isSetErrr();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof serverAuthenticate_result)
return this.equals((serverAuthenticate_result)that);
return false;
@@ -15784,6 +17970,8 @@ public class MasterServer {
public boolean equals(serverAuthenticate_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -15817,24 +18005,21 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_failure = true && (isSetFailure());
- list.add(present_failure);
- if (present_failure)
- list.add(failure);
+ hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287);
+ if (isSetFailure())
+ hashCode = hashCode * 8191 + failure.hashCode();
- boolean present_errr = true && (isSetErrr());
- list.add(present_errr);
- if (present_errr)
- list.add(errr);
+ hashCode = hashCode * 8191 + ((isSetErrr()) ? 131071 : 524287);
+ if (isSetErrr())
+ hashCode = hashCode * 8191 + errr.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -15845,7 +18030,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -15855,7 +18040,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure());
+ lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure());
if (lastComparison != 0) {
return lastComparison;
}
@@ -15865,7 +18050,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetErrr()).compareTo(other.isSetErrr());
+ lastComparison = java.lang.Boolean.compare(isSetErrr(), other.isSetErrr());
if (lastComparison != 0) {
return lastComparison;
}
@@ -15878,21 +18063,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("serverAuthenticate_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("serverAuthenticate_result(");
boolean first = true;
sb.append("success:");
@@ -15938,7 +18126,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -15946,14 +18134,16 @@ public class MasterServer {
}
}
- private static class serverAuthenticate_resultStandardSchemeFactory implements SchemeFactory {
+ private static class serverAuthenticate_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public serverAuthenticate_resultStandardScheme getScheme() {
return new serverAuthenticate_resultStandardScheme();
}
}
- private static class serverAuthenticate_resultStandardScheme extends StandardScheme<serverAuthenticate_result> {
+ private static class serverAuthenticate_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<serverAuthenticate_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, serverAuthenticate_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -16002,6 +18192,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, serverAuthenticate_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -16027,18 +18218,19 @@ public class MasterServer {
}
- private static class serverAuthenticate_resultTupleSchemeFactory implements SchemeFactory {
+ private static class serverAuthenticate_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public serverAuthenticate_resultTupleScheme getScheme() {
return new serverAuthenticate_resultTupleScheme();
}
}
- private static class serverAuthenticate_resultTupleScheme extends TupleScheme<serverAuthenticate_result> {
+ private static class serverAuthenticate_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<serverAuthenticate_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -16062,8 +18254,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(3);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.success = new ServerSessionData();
struct.success.read(iprot);
@@ -16082,32 +18274,33 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getImageData_args implements org.apache.thrift.TBase<getImageData_args, getImageData_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImageData_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageData_args");
private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getImageData_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getImageData_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImageData_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImageData_argsTupleSchemeFactory();
- public String serverSessionId; // required
- public String imageVersionId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String serverSessionId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String imageVersionId; // 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 {
SERVER_SESSION_ID((short)1, "serverSessionId"),
IMAGE_VERSION_ID((short)2, "imageVersionId");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -16115,6 +18308,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SERVER_SESSION_ID
@@ -16132,43 +18326,46 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SERVER_SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("serverSessionId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token")));
tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID")));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageData_args.class, metaDataMap);
}
@@ -16176,8 +18373,8 @@ public class MasterServer {
}
public getImageData_args(
- String serverSessionId,
- String imageVersionId)
+ java.lang.String serverSessionId,
+ java.lang.String imageVersionId)
{
this();
this.serverSessionId = serverSessionId;
@@ -16196,6 +18393,7 @@ public class MasterServer {
}
}
+ @Override
public getImageData_args deepCopy() {
return new getImageData_args(this);
}
@@ -16206,11 +18404,12 @@ public class MasterServer {
this.imageVersionId = null;
}
- public String getServerSessionId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getServerSessionId() {
return this.serverSessionId;
}
- public getImageData_args setServerSessionId(String serverSessionId) {
+ public getImageData_args setServerSessionId(@org.apache.thrift.annotation.Nullable java.lang.String serverSessionId) {
this.serverSessionId = serverSessionId;
return this;
}
@@ -16230,11 +18429,12 @@ public class MasterServer {
}
}
- public String getImageVersionId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getImageVersionId() {
return this.imageVersionId;
}
- public getImageData_args setImageVersionId(String imageVersionId) {
+ public getImageData_args setImageVersionId(@org.apache.thrift.annotation.Nullable java.lang.String imageVersionId) {
this.imageVersionId = imageVersionId;
return this;
}
@@ -16254,13 +18454,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SERVER_SESSION_ID:
if (value == null) {
unsetServerSessionId();
} else {
- setServerSessionId((String)value);
+ setServerSessionId((java.lang.String)value);
}
break;
@@ -16268,14 +18469,16 @@ public class MasterServer {
if (value == null) {
unsetImageVersionId();
} else {
- setImageVersionId((String)value);
+ setImageVersionId((java.lang.String)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SERVER_SESSION_ID:
return getServerSessionId();
@@ -16284,13 +18487,14 @@ public class MasterServer {
return getImageVersionId();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -16299,13 +18503,11 @@ public class MasterServer {
case IMAGE_VERSION_ID:
return isSetImageVersionId();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getImageData_args)
return this.equals((getImageData_args)that);
return false;
@@ -16314,6 +18516,8 @@ public class MasterServer {
public boolean equals(getImageData_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_serverSessionId = true && this.isSetServerSessionId();
boolean that_present_serverSessionId = true && that.isSetServerSessionId();
@@ -16338,19 +18542,17 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_serverSessionId = true && (isSetServerSessionId());
- list.add(present_serverSessionId);
- if (present_serverSessionId)
- list.add(serverSessionId);
+ hashCode = hashCode * 8191 + ((isSetServerSessionId()) ? 131071 : 524287);
+ if (isSetServerSessionId())
+ hashCode = hashCode * 8191 + serverSessionId.hashCode();
- boolean present_imageVersionId = true && (isSetImageVersionId());
- list.add(present_imageVersionId);
- if (present_imageVersionId)
- list.add(imageVersionId);
+ hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287);
+ if (isSetImageVersionId())
+ hashCode = hashCode * 8191 + imageVersionId.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -16361,7 +18563,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(other.isSetServerSessionId());
+ lastComparison = java.lang.Boolean.compare(isSetServerSessionId(), other.isSetServerSessionId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -16371,7 +18573,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId());
+ lastComparison = java.lang.Boolean.compare(isSetImageVersionId(), other.isSetImageVersionId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -16384,21 +18586,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getImageData_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getImageData_args(");
boolean first = true;
sb.append("serverSessionId:");
@@ -16433,7 +18639,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -16441,14 +18647,16 @@ public class MasterServer {
}
}
- private static class getImageData_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getImageData_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageData_argsStandardScheme getScheme() {
return new getImageData_argsStandardScheme();
}
}
- private static class getImageData_argsStandardScheme extends StandardScheme<getImageData_args> {
+ private static class getImageData_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getImageData_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getImageData_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -16486,6 +18694,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getImageData_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -16506,18 +18715,19 @@ public class MasterServer {
}
- private static class getImageData_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getImageData_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageData_argsTupleScheme getScheme() {
return new getImageData_argsTupleScheme();
}
}
- private static class getImageData_argsTupleScheme extends TupleScheme<getImageData_args> {
+ private static class getImageData_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getImageData_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getImageData_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetServerSessionId()) {
optionals.set(0);
}
@@ -16535,8 +18745,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getImageData_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.serverSessionId = iprot.readString();
struct.setServerSessionIdIsSet(true);
@@ -16548,8 +18758,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getImageData_result implements org.apache.thrift.TBase<getImageData_result, getImageData_result._Fields>, java.io.Serializable, Cloneable, Comparable<getImageData_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageData_result");
@@ -16558,16 +18772,13 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField FAILURE2_FIELD_DESC = new org.apache.thrift.protocol.TField("failure2", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField F3_FIELD_DESC = new org.apache.thrift.protocol.TField("f3", org.apache.thrift.protocol.TType.STRUCT, (short)3);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getImageData_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getImageData_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImageData_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImageData_resultTupleSchemeFactory();
- public ImagePublishData success; // required
- public TAuthorizationException failure; // required
- public TInvocationException failure2; // required
- public TNotFoundException f3; // required
+ public @org.apache.thrift.annotation.Nullable ImagePublishData success; // required
+ public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException failure2; // required
+ public @org.apache.thrift.annotation.Nullable TNotFoundException f3; // 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 {
@@ -16576,10 +18787,10 @@ public class MasterServer {
FAILURE2((short)2, "failure2"),
F3((short)3, "f3");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -16587,6 +18798,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -16608,47 +18820,50 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, ImagePublishData.class)));
tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class)));
tmpMap.put(_Fields.FAILURE2, new org.apache.thrift.meta_data.FieldMetaData("failure2", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
tmpMap.put(_Fields.F3, new org.apache.thrift.meta_data.FieldMetaData("f3", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageData_result.class, metaDataMap);
}
@@ -16686,6 +18901,7 @@ public class MasterServer {
}
}
+ @Override
public getImageData_result deepCopy() {
return new getImageData_result(this);
}
@@ -16698,11 +18914,12 @@ public class MasterServer {
this.f3 = null;
}
+ @org.apache.thrift.annotation.Nullable
public ImagePublishData getSuccess() {
return this.success;
}
- public getImageData_result setSuccess(ImagePublishData success) {
+ public getImageData_result setSuccess(@org.apache.thrift.annotation.Nullable ImagePublishData success) {
this.success = success;
return this;
}
@@ -16722,11 +18939,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TAuthorizationException getFailure() {
return this.failure;
}
- public getImageData_result setFailure(TAuthorizationException failure) {
+ public getImageData_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) {
this.failure = failure;
return this;
}
@@ -16746,11 +18964,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getFailure2() {
return this.failure2;
}
- public getImageData_result setFailure2(TInvocationException failure2) {
+ public getImageData_result setFailure2(@org.apache.thrift.annotation.Nullable TInvocationException failure2) {
this.failure2 = failure2;
return this;
}
@@ -16770,11 +18989,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TNotFoundException getF3() {
return this.f3;
}
- public getImageData_result setF3(TNotFoundException f3) {
+ public getImageData_result setF3(@org.apache.thrift.annotation.Nullable TNotFoundException f3) {
this.f3 = f3;
return this;
}
@@ -16794,7 +19014,8 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -16831,7 +19052,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -16846,13 +19069,14 @@ public class MasterServer {
return getF3();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -16865,13 +19089,11 @@ public class MasterServer {
case F3:
return isSetF3();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getImageData_result)
return this.equals((getImageData_result)that);
return false;
@@ -16880,6 +19102,8 @@ public class MasterServer {
public boolean equals(getImageData_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -16922,29 +19146,25 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_failure = true && (isSetFailure());
- list.add(present_failure);
- if (present_failure)
- list.add(failure);
+ hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287);
+ if (isSetFailure())
+ hashCode = hashCode * 8191 + failure.hashCode();
- boolean present_failure2 = true && (isSetFailure2());
- list.add(present_failure2);
- if (present_failure2)
- list.add(failure2);
+ hashCode = hashCode * 8191 + ((isSetFailure2()) ? 131071 : 524287);
+ if (isSetFailure2())
+ hashCode = hashCode * 8191 + failure2.hashCode();
- boolean present_f3 = true && (isSetF3());
- list.add(present_f3);
- if (present_f3)
- list.add(f3);
+ hashCode = hashCode * 8191 + ((isSetF3()) ? 131071 : 524287);
+ if (isSetF3())
+ hashCode = hashCode * 8191 + f3.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -16955,7 +19175,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -16965,7 +19185,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure());
+ lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure());
if (lastComparison != 0) {
return lastComparison;
}
@@ -16975,7 +19195,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure2()).compareTo(other.isSetFailure2());
+ lastComparison = java.lang.Boolean.compare(isSetFailure2(), other.isSetFailure2());
if (lastComparison != 0) {
return lastComparison;
}
@@ -16985,7 +19205,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetF3()).compareTo(other.isSetF3());
+ lastComparison = java.lang.Boolean.compare(isSetF3(), other.isSetF3());
if (lastComparison != 0) {
return lastComparison;
}
@@ -16998,21 +19218,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getImageData_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getImageData_result(");
boolean first = true;
sb.append("success:");
@@ -17066,7 +19289,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -17074,14 +19297,16 @@ public class MasterServer {
}
}
- private static class getImageData_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getImageData_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageData_resultStandardScheme getScheme() {
return new getImageData_resultStandardScheme();
}
}
- private static class getImageData_resultStandardScheme extends StandardScheme<getImageData_result> {
+ private static class getImageData_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getImageData_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getImageData_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -17139,6 +19364,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getImageData_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -17169,18 +19395,19 @@ public class MasterServer {
}
- private static class getImageData_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getImageData_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageData_resultTupleScheme getScheme() {
return new getImageData_resultTupleScheme();
}
}
- private static class getImageData_resultTupleScheme extends TupleScheme<getImageData_result> {
+ private static class getImageData_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getImageData_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getImageData_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -17210,8 +19437,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getImageData_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(4);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.success = new ImagePublishData();
struct.success.read(iprot);
@@ -17235,8 +19462,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class submitImage_args implements org.apache.thrift.TBase<submitImage_args, submitImage_args._Fields>, java.io.Serializable, Cloneable, Comparable<submitImage_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("submitImage_args");
@@ -17244,15 +19475,12 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField IMAGE_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("imageDescription", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField BLOCK_HASHES_FIELD_DESC = new org.apache.thrift.protocol.TField("blockHashes", org.apache.thrift.protocol.TType.LIST, (short)3);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new submitImage_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new submitImage_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new submitImage_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new submitImage_argsTupleSchemeFactory();
- public String userToken; // required
- public ImagePublishData imageDescription; // required
- public List<ByteBuffer> blockHashes; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required
+ public @org.apache.thrift.annotation.Nullable ImagePublishData imageDescription; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<java.nio.ByteBuffer> blockHashes; // 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 {
@@ -17260,10 +19488,10 @@ public class MasterServer {
IMAGE_DESCRIPTION((short)2, "imageDescription"),
BLOCK_HASHES((short)3, "blockHashes");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -17271,6 +19499,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // USER_TOKEN
@@ -17290,38 +19519,41 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token")));
tmpMap.put(_Fields.IMAGE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("imageDescription", org.apache.thrift.TFieldRequirementType.DEFAULT,
@@ -17329,7 +19561,7 @@ public class MasterServer {
tmpMap.put(_Fields.BLOCK_HASHES, new org.apache.thrift.meta_data.FieldMetaData("blockHashes", 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.STRING , true))));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submitImage_args.class, metaDataMap);
}
@@ -17337,9 +19569,9 @@ public class MasterServer {
}
public submitImage_args(
- String userToken,
+ java.lang.String userToken,
ImagePublishData imageDescription,
- List<ByteBuffer> blockHashes)
+ java.util.List<java.nio.ByteBuffer> blockHashes)
{
this();
this.userToken = userToken;
@@ -17358,11 +19590,12 @@ public class MasterServer {
this.imageDescription = new ImagePublishData(other.imageDescription);
}
if (other.isSetBlockHashes()) {
- List<ByteBuffer> __this__blockHashes = new ArrayList<ByteBuffer>(other.blockHashes);
+ java.util.List<java.nio.ByteBuffer> __this__blockHashes = new java.util.ArrayList<java.nio.ByteBuffer>(other.blockHashes);
this.blockHashes = __this__blockHashes;
}
}
+ @Override
public submitImage_args deepCopy() {
return new submitImage_args(this);
}
@@ -17374,11 +19607,12 @@ public class MasterServer {
this.blockHashes = null;
}
- public String getUserToken() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getUserToken() {
return this.userToken;
}
- public submitImage_args setUserToken(String userToken) {
+ public submitImage_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) {
this.userToken = userToken;
return this;
}
@@ -17398,11 +19632,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public ImagePublishData getImageDescription() {
return this.imageDescription;
}
- public submitImage_args setImageDescription(ImagePublishData imageDescription) {
+ public submitImage_args setImageDescription(@org.apache.thrift.annotation.Nullable ImagePublishData imageDescription) {
this.imageDescription = imageDescription;
return this;
}
@@ -17426,22 +19661,24 @@ public class MasterServer {
return (this.blockHashes == null) ? 0 : this.blockHashes.size();
}
- public java.util.Iterator<ByteBuffer> getBlockHashesIterator() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.Iterator<java.nio.ByteBuffer> getBlockHashesIterator() {
return (this.blockHashes == null) ? null : this.blockHashes.iterator();
}
- public void addToBlockHashes(ByteBuffer elem) {
+ public void addToBlockHashes(java.nio.ByteBuffer elem) {
if (this.blockHashes == null) {
- this.blockHashes = new ArrayList<ByteBuffer>();
+ this.blockHashes = new java.util.ArrayList<java.nio.ByteBuffer>();
}
this.blockHashes.add(elem);
}
- public List<ByteBuffer> getBlockHashes() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<java.nio.ByteBuffer> getBlockHashes() {
return this.blockHashes;
}
- public submitImage_args setBlockHashes(List<ByteBuffer> blockHashes) {
+ public submitImage_args setBlockHashes(@org.apache.thrift.annotation.Nullable java.util.List<java.nio.ByteBuffer> blockHashes) {
this.blockHashes = blockHashes;
return this;
}
@@ -17461,13 +19698,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case USER_TOKEN:
if (value == null) {
unsetUserToken();
} else {
- setUserToken((String)value);
+ setUserToken((java.lang.String)value);
}
break;
@@ -17483,14 +19721,16 @@ public class MasterServer {
if (value == null) {
unsetBlockHashes();
} else {
- setBlockHashes((List<ByteBuffer>)value);
+ setBlockHashes((java.util.List<java.nio.ByteBuffer>)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -17502,13 +19742,14 @@ public class MasterServer {
return getBlockHashes();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -17519,13 +19760,11 @@ public class MasterServer {
case BLOCK_HASHES:
return isSetBlockHashes();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof submitImage_args)
return this.equals((submitImage_args)that);
return false;
@@ -17534,6 +19773,8 @@ public class MasterServer {
public boolean equals(submitImage_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_userToken = true && this.isSetUserToken();
boolean that_present_userToken = true && that.isSetUserToken();
@@ -17567,24 +19808,21 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_userToken = true && (isSetUserToken());
- list.add(present_userToken);
- if (present_userToken)
- list.add(userToken);
+ hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287);
+ if (isSetUserToken())
+ hashCode = hashCode * 8191 + userToken.hashCode();
- boolean present_imageDescription = true && (isSetImageDescription());
- list.add(present_imageDescription);
- if (present_imageDescription)
- list.add(imageDescription);
+ hashCode = hashCode * 8191 + ((isSetImageDescription()) ? 131071 : 524287);
+ if (isSetImageDescription())
+ hashCode = hashCode * 8191 + imageDescription.hashCode();
- boolean present_blockHashes = true && (isSetBlockHashes());
- list.add(present_blockHashes);
- if (present_blockHashes)
- list.add(blockHashes);
+ hashCode = hashCode * 8191 + ((isSetBlockHashes()) ? 131071 : 524287);
+ if (isSetBlockHashes())
+ hashCode = hashCode * 8191 + blockHashes.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -17595,7 +19833,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken());
+ lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken());
if (lastComparison != 0) {
return lastComparison;
}
@@ -17605,7 +19843,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetImageDescription()).compareTo(other.isSetImageDescription());
+ lastComparison = java.lang.Boolean.compare(isSetImageDescription(), other.isSetImageDescription());
if (lastComparison != 0) {
return lastComparison;
}
@@ -17615,7 +19853,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetBlockHashes()).compareTo(other.isSetBlockHashes());
+ lastComparison = java.lang.Boolean.compare(isSetBlockHashes(), other.isSetBlockHashes());
if (lastComparison != 0) {
return lastComparison;
}
@@ -17628,21 +19866,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("submitImage_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("submitImage_args(");
boolean first = true;
sb.append("userToken:");
@@ -17688,7 +19930,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -17696,14 +19938,16 @@ public class MasterServer {
}
}
- private static class submitImage_argsStandardSchemeFactory implements SchemeFactory {
+ private static class submitImage_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public submitImage_argsStandardScheme getScheme() {
return new submitImage_argsStandardScheme();
}
}
- private static class submitImage_argsStandardScheme extends StandardScheme<submitImage_args> {
+ private static class submitImage_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<submitImage_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, submitImage_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -17734,13 +19978,13 @@ public class MasterServer {
case 3: // BLOCK_HASHES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list322 = iprot.readListBegin();
- struct.blockHashes = new ArrayList<ByteBuffer>(_list322.size);
- ByteBuffer _elem323;
- for (int _i324 = 0; _i324 < _list322.size; ++_i324)
+ org.apache.thrift.protocol.TList _list434 = iprot.readListBegin();
+ struct.blockHashes = new java.util.ArrayList<java.nio.ByteBuffer>(_list434.size);
+ @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem435;
+ for (int _i436 = 0; _i436 < _list434.size; ++_i436)
{
- _elem323 = iprot.readBinary();
- struct.blockHashes.add(_elem323);
+ _elem435 = iprot.readBinary();
+ struct.blockHashes.add(_elem435);
}
iprot.readListEnd();
}
@@ -17760,6 +20004,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, submitImage_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -17778,9 +20023,9 @@ public class MasterServer {
oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size()));
- for (ByteBuffer _iter325 : struct.blockHashes)
+ for (java.nio.ByteBuffer _iter437 : struct.blockHashes)
{
- oprot.writeBinary(_iter325);
+ oprot.writeBinary(_iter437);
}
oprot.writeListEnd();
}
@@ -17792,18 +20037,19 @@ public class MasterServer {
}
- private static class submitImage_argsTupleSchemeFactory implements SchemeFactory {
+ private static class submitImage_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public submitImage_argsTupleScheme getScheme() {
return new submitImage_argsTupleScheme();
}
}
- private static class submitImage_argsTupleScheme extends TupleScheme<submitImage_args> {
+ private static class submitImage_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<submitImage_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, submitImage_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetUserToken()) {
optionals.set(0);
}
@@ -17823,9 +20069,9 @@ public class MasterServer {
if (struct.isSetBlockHashes()) {
{
oprot.writeI32(struct.blockHashes.size());
- for (ByteBuffer _iter326 : struct.blockHashes)
+ for (java.nio.ByteBuffer _iter438 : struct.blockHashes)
{
- oprot.writeBinary(_iter326);
+ oprot.writeBinary(_iter438);
}
}
}
@@ -17833,8 +20079,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, submitImage_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(3);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.userToken = iprot.readString();
struct.setUserTokenIsSet(true);
@@ -17846,13 +20092,13 @@ public class MasterServer {
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.blockHashes = new ArrayList<ByteBuffer>(_list327.size);
- ByteBuffer _elem328;
- for (int _i329 = 0; _i329 < _list327.size; ++_i329)
+ org.apache.thrift.protocol.TList _list439 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
+ struct.blockHashes = new java.util.ArrayList<java.nio.ByteBuffer>(_list439.size);
+ @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem440;
+ for (int _i441 = 0; _i441 < _list439.size; ++_i441)
{
- _elem328 = iprot.readBinary();
- struct.blockHashes.add(_elem328);
+ _elem440 = iprot.readBinary();
+ struct.blockHashes.add(_elem440);
}
}
struct.setBlockHashesIsSet(true);
@@ -17860,8 +20106,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class submitImage_result implements org.apache.thrift.TBase<submitImage_result, submitImage_result._Fields>, java.io.Serializable, Cloneable, Comparable<submitImage_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("submitImage_result");
@@ -17870,16 +20120,13 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField FAILURE2_FIELD_DESC = new org.apache.thrift.protocol.TField("failure2", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField FAILURE3_FIELD_DESC = new org.apache.thrift.protocol.TField("failure3", org.apache.thrift.protocol.TType.STRUCT, (short)3);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new submitImage_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new submitImage_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new submitImage_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new submitImage_resultTupleSchemeFactory();
- public TransferInformation success; // required
- public TAuthorizationException failure; // required
- public TInvocationException failure2; // required
- public TTransferRejectedException failure3; // required
+ public @org.apache.thrift.annotation.Nullable TransferInformation success; // required
+ public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException failure2; // required
+ public @org.apache.thrift.annotation.Nullable TTransferRejectedException failure3; // 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 {
@@ -17888,10 +20135,10 @@ public class MasterServer {
FAILURE2((short)2, "failure2"),
FAILURE3((short)3, "failure3");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -17899,6 +20146,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -17920,47 +20168,50 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TransferInformation.class)));
tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class)));
tmpMap.put(_Fields.FAILURE2, new org.apache.thrift.meta_data.FieldMetaData("failure2", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
tmpMap.put(_Fields.FAILURE3, new org.apache.thrift.meta_data.FieldMetaData("failure3", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTransferRejectedException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submitImage_result.class, metaDataMap);
}
@@ -17998,6 +20249,7 @@ public class MasterServer {
}
}
+ @Override
public submitImage_result deepCopy() {
return new submitImage_result(this);
}
@@ -18010,11 +20262,12 @@ public class MasterServer {
this.failure3 = null;
}
+ @org.apache.thrift.annotation.Nullable
public TransferInformation getSuccess() {
return this.success;
}
- public submitImage_result setSuccess(TransferInformation success) {
+ public submitImage_result setSuccess(@org.apache.thrift.annotation.Nullable TransferInformation success) {
this.success = success;
return this;
}
@@ -18034,11 +20287,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TAuthorizationException getFailure() {
return this.failure;
}
- public submitImage_result setFailure(TAuthorizationException failure) {
+ public submitImage_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) {
this.failure = failure;
return this;
}
@@ -18058,11 +20312,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getFailure2() {
return this.failure2;
}
- public submitImage_result setFailure2(TInvocationException failure2) {
+ public submitImage_result setFailure2(@org.apache.thrift.annotation.Nullable TInvocationException failure2) {
this.failure2 = failure2;
return this;
}
@@ -18082,11 +20337,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TTransferRejectedException getFailure3() {
return this.failure3;
}
- public submitImage_result setFailure3(TTransferRejectedException failure3) {
+ public submitImage_result setFailure3(@org.apache.thrift.annotation.Nullable TTransferRejectedException failure3) {
this.failure3 = failure3;
return this;
}
@@ -18106,7 +20362,8 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -18143,7 +20400,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -18158,13 +20417,14 @@ public class MasterServer {
return getFailure3();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -18177,13 +20437,11 @@ public class MasterServer {
case FAILURE3:
return isSetFailure3();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof submitImage_result)
return this.equals((submitImage_result)that);
return false;
@@ -18192,6 +20450,8 @@ public class MasterServer {
public boolean equals(submitImage_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -18234,29 +20494,25 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_failure = true && (isSetFailure());
- list.add(present_failure);
- if (present_failure)
- list.add(failure);
+ hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287);
+ if (isSetFailure())
+ hashCode = hashCode * 8191 + failure.hashCode();
- boolean present_failure2 = true && (isSetFailure2());
- list.add(present_failure2);
- if (present_failure2)
- list.add(failure2);
+ hashCode = hashCode * 8191 + ((isSetFailure2()) ? 131071 : 524287);
+ if (isSetFailure2())
+ hashCode = hashCode * 8191 + failure2.hashCode();
- boolean present_failure3 = true && (isSetFailure3());
- list.add(present_failure3);
- if (present_failure3)
- list.add(failure3);
+ hashCode = hashCode * 8191 + ((isSetFailure3()) ? 131071 : 524287);
+ if (isSetFailure3())
+ hashCode = hashCode * 8191 + failure3.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -18267,7 +20523,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -18277,7 +20533,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure());
+ lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure());
if (lastComparison != 0) {
return lastComparison;
}
@@ -18287,7 +20543,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure2()).compareTo(other.isSetFailure2());
+ lastComparison = java.lang.Boolean.compare(isSetFailure2(), other.isSetFailure2());
if (lastComparison != 0) {
return lastComparison;
}
@@ -18297,7 +20553,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure3()).compareTo(other.isSetFailure3());
+ lastComparison = java.lang.Boolean.compare(isSetFailure3(), other.isSetFailure3());
if (lastComparison != 0) {
return lastComparison;
}
@@ -18310,21 +20566,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("submitImage_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("submitImage_result(");
boolean first = true;
sb.append("success:");
@@ -18378,7 +20637,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -18386,14 +20645,16 @@ public class MasterServer {
}
}
- private static class submitImage_resultStandardSchemeFactory implements SchemeFactory {
+ private static class submitImage_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public submitImage_resultStandardScheme getScheme() {
return new submitImage_resultStandardScheme();
}
}
- private static class submitImage_resultStandardScheme extends StandardScheme<submitImage_result> {
+ private static class submitImage_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<submitImage_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, submitImage_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -18451,6 +20712,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, submitImage_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -18481,18 +20743,19 @@ public class MasterServer {
}
- private static class submitImage_resultTupleSchemeFactory implements SchemeFactory {
+ private static class submitImage_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public submitImage_resultTupleScheme getScheme() {
return new submitImage_resultTupleScheme();
}
}
- private static class submitImage_resultTupleScheme extends TupleScheme<submitImage_result> {
+ private static class submitImage_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<submitImage_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, submitImage_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -18522,8 +20785,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, submitImage_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(4);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.success = new TransferInformation();
struct.success.read(iprot);
@@ -18547,8 +20810,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class registerSatellite_args implements org.apache.thrift.TBase<registerSatellite_args, registerSatellite_args._Fields>, java.io.Serializable, Cloneable, Comparable<registerSatellite_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("registerSatellite_args");
@@ -18559,18 +20826,15 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField EXPONENT_FIELD_DESC = new org.apache.thrift.protocol.TField("exponent", org.apache.thrift.protocol.TType.STRING, (short)4);
private static final org.apache.thrift.protocol.TField CERTSHA256_FIELD_DESC = new org.apache.thrift.protocol.TField("certsha256", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new registerSatellite_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new registerSatellite_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new registerSatellite_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new registerSatellite_argsTupleSchemeFactory();
- public String userToken; // required
- public String displayName; // required
- public List<String> addresses; // required
- public String modulus; // required
- public String exponent; // required
- public ByteBuffer certsha256; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String displayName; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> addresses; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String modulus; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String exponent; // required
+ public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer certsha256; // 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 {
@@ -18581,10 +20845,10 @@ public class MasterServer {
EXPONENT((short)4, "exponent"),
CERTSHA256((short)1, "certsha256");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -18592,6 +20856,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 6: // USER_TOKEN
@@ -18617,38 +20882,41 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token")));
tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT,
@@ -18662,7 +20930,7 @@ public class MasterServer {
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.CERTSHA256, new org.apache.thrift.meta_data.FieldMetaData("certsha256", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(registerSatellite_args.class, metaDataMap);
}
@@ -18670,12 +20938,12 @@ public class MasterServer {
}
public registerSatellite_args(
- String userToken,
- String displayName,
- List<String> addresses,
- String modulus,
- String exponent,
- ByteBuffer certsha256)
+ java.lang.String userToken,
+ java.lang.String displayName,
+ java.util.List<java.lang.String> addresses,
+ java.lang.String modulus,
+ java.lang.String exponent,
+ java.nio.ByteBuffer certsha256)
{
this();
this.userToken = userToken;
@@ -18697,7 +20965,7 @@ public class MasterServer {
this.displayName = other.displayName;
}
if (other.isSetAddresses()) {
- List<String> __this__addresses = new ArrayList<String>(other.addresses);
+ java.util.List<java.lang.String> __this__addresses = new java.util.ArrayList<java.lang.String>(other.addresses);
this.addresses = __this__addresses;
}
if (other.isSetModulus()) {
@@ -18711,6 +20979,7 @@ public class MasterServer {
}
}
+ @Override
public registerSatellite_args deepCopy() {
return new registerSatellite_args(this);
}
@@ -18725,11 +20994,12 @@ public class MasterServer {
this.certsha256 = null;
}
- public String getUserToken() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getUserToken() {
return this.userToken;
}
- public registerSatellite_args setUserToken(String userToken) {
+ public registerSatellite_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) {
this.userToken = userToken;
return this;
}
@@ -18749,11 +21019,12 @@ public class MasterServer {
}
}
- public String getDisplayName() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getDisplayName() {
return this.displayName;
}
- public registerSatellite_args setDisplayName(String displayName) {
+ public registerSatellite_args setDisplayName(@org.apache.thrift.annotation.Nullable java.lang.String displayName) {
this.displayName = displayName;
return this;
}
@@ -18777,22 +21048,24 @@ public class MasterServer {
return (this.addresses == null) ? 0 : this.addresses.size();
}
- public java.util.Iterator<String> getAddressesIterator() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.Iterator<java.lang.String> getAddressesIterator() {
return (this.addresses == null) ? null : this.addresses.iterator();
}
- public void addToAddresses(String elem) {
+ public void addToAddresses(java.lang.String elem) {
if (this.addresses == null) {
- this.addresses = new ArrayList<String>();
+ this.addresses = new java.util.ArrayList<java.lang.String>();
}
this.addresses.add(elem);
}
- public List<String> getAddresses() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<java.lang.String> getAddresses() {
return this.addresses;
}
- public registerSatellite_args setAddresses(List<String> addresses) {
+ public registerSatellite_args setAddresses(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> addresses) {
this.addresses = addresses;
return this;
}
@@ -18812,11 +21085,12 @@ public class MasterServer {
}
}
- public String getModulus() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getModulus() {
return this.modulus;
}
- public registerSatellite_args setModulus(String modulus) {
+ public registerSatellite_args setModulus(@org.apache.thrift.annotation.Nullable java.lang.String modulus) {
this.modulus = modulus;
return this;
}
@@ -18836,11 +21110,12 @@ public class MasterServer {
}
}
- public String getExponent() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getExponent() {
return this.exponent;
}
- public registerSatellite_args setExponent(String exponent) {
+ public registerSatellite_args setExponent(@org.apache.thrift.annotation.Nullable java.lang.String exponent) {
this.exponent = exponent;
return this;
}
@@ -18865,16 +21140,16 @@ public class MasterServer {
return certsha256 == null ? null : certsha256.array();
}
- public ByteBuffer bufferForCertsha256() {
+ public java.nio.ByteBuffer bufferForCertsha256() {
return org.apache.thrift.TBaseHelper.copyBinary(certsha256);
}
public registerSatellite_args setCertsha256(byte[] certsha256) {
- this.certsha256 = certsha256 == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(certsha256, certsha256.length));
+ this.certsha256 = certsha256 == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(certsha256.clone());
return this;
}
- public registerSatellite_args setCertsha256(ByteBuffer certsha256) {
+ public registerSatellite_args setCertsha256(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer certsha256) {
this.certsha256 = org.apache.thrift.TBaseHelper.copyBinary(certsha256);
return this;
}
@@ -18894,13 +21169,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case USER_TOKEN:
if (value == null) {
unsetUserToken();
} else {
- setUserToken((String)value);
+ setUserToken((java.lang.String)value);
}
break;
@@ -18908,7 +21184,7 @@ public class MasterServer {
if (value == null) {
unsetDisplayName();
} else {
- setDisplayName((String)value);
+ setDisplayName((java.lang.String)value);
}
break;
@@ -18916,7 +21192,7 @@ public class MasterServer {
if (value == null) {
unsetAddresses();
} else {
- setAddresses((List<String>)value);
+ setAddresses((java.util.List<java.lang.String>)value);
}
break;
@@ -18924,7 +21200,7 @@ public class MasterServer {
if (value == null) {
unsetModulus();
} else {
- setModulus((String)value);
+ setModulus((java.lang.String)value);
}
break;
@@ -18932,7 +21208,7 @@ public class MasterServer {
if (value == null) {
unsetExponent();
} else {
- setExponent((String)value);
+ setExponent((java.lang.String)value);
}
break;
@@ -18940,14 +21216,20 @@ public class MasterServer {
if (value == null) {
unsetCertsha256();
} else {
- setCertsha256((ByteBuffer)value);
+ if (value instanceof byte[]) {
+ setCertsha256((byte[])value);
+ } else {
+ setCertsha256((java.nio.ByteBuffer)value);
+ }
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -18968,13 +21250,14 @@ public class MasterServer {
return getCertsha256();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -18991,13 +21274,11 @@ public class MasterServer {
case CERTSHA256:
return isSetCertsha256();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof registerSatellite_args)
return this.equals((registerSatellite_args)that);
return false;
@@ -19006,6 +21287,8 @@ public class MasterServer {
public boolean equals(registerSatellite_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_userToken = true && this.isSetUserToken();
boolean that_present_userToken = true && that.isSetUserToken();
@@ -19066,39 +21349,33 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_userToken = true && (isSetUserToken());
- list.add(present_userToken);
- if (present_userToken)
- list.add(userToken);
+ hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287);
+ if (isSetUserToken())
+ hashCode = hashCode * 8191 + userToken.hashCode();
- boolean present_displayName = true && (isSetDisplayName());
- list.add(present_displayName);
- if (present_displayName)
- list.add(displayName);
+ hashCode = hashCode * 8191 + ((isSetDisplayName()) ? 131071 : 524287);
+ if (isSetDisplayName())
+ hashCode = hashCode * 8191 + displayName.hashCode();
- boolean present_addresses = true && (isSetAddresses());
- list.add(present_addresses);
- if (present_addresses)
- list.add(addresses);
+ hashCode = hashCode * 8191 + ((isSetAddresses()) ? 131071 : 524287);
+ if (isSetAddresses())
+ hashCode = hashCode * 8191 + addresses.hashCode();
- boolean present_modulus = true && (isSetModulus());
- list.add(present_modulus);
- if (present_modulus)
- list.add(modulus);
+ hashCode = hashCode * 8191 + ((isSetModulus()) ? 131071 : 524287);
+ if (isSetModulus())
+ hashCode = hashCode * 8191 + modulus.hashCode();
- boolean present_exponent = true && (isSetExponent());
- list.add(present_exponent);
- if (present_exponent)
- list.add(exponent);
+ hashCode = hashCode * 8191 + ((isSetExponent()) ? 131071 : 524287);
+ if (isSetExponent())
+ hashCode = hashCode * 8191 + exponent.hashCode();
- boolean present_certsha256 = true && (isSetCertsha256());
- list.add(present_certsha256);
- if (present_certsha256)
- list.add(certsha256);
+ hashCode = hashCode * 8191 + ((isSetCertsha256()) ? 131071 : 524287);
+ if (isSetCertsha256())
+ hashCode = hashCode * 8191 + certsha256.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -19109,7 +21386,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken());
+ lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken());
if (lastComparison != 0) {
return lastComparison;
}
@@ -19119,7 +21396,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(other.isSetDisplayName());
+ lastComparison = java.lang.Boolean.compare(isSetDisplayName(), other.isSetDisplayName());
if (lastComparison != 0) {
return lastComparison;
}
@@ -19129,7 +21406,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetAddresses()).compareTo(other.isSetAddresses());
+ lastComparison = java.lang.Boolean.compare(isSetAddresses(), other.isSetAddresses());
if (lastComparison != 0) {
return lastComparison;
}
@@ -19139,7 +21416,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetModulus()).compareTo(other.isSetModulus());
+ lastComparison = java.lang.Boolean.compare(isSetModulus(), other.isSetModulus());
if (lastComparison != 0) {
return lastComparison;
}
@@ -19149,7 +21426,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetExponent()).compareTo(other.isSetExponent());
+ lastComparison = java.lang.Boolean.compare(isSetExponent(), other.isSetExponent());
if (lastComparison != 0) {
return lastComparison;
}
@@ -19159,7 +21436,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetCertsha256()).compareTo(other.isSetCertsha256());
+ lastComparison = java.lang.Boolean.compare(isSetCertsha256(), other.isSetCertsha256());
if (lastComparison != 0) {
return lastComparison;
}
@@ -19172,21 +21449,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("registerSatellite_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("registerSatellite_args(");
boolean first = true;
sb.append("userToken:");
@@ -19253,7 +21534,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -19261,14 +21542,16 @@ public class MasterServer {
}
}
- private static class registerSatellite_argsStandardSchemeFactory implements SchemeFactory {
+ private static class registerSatellite_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public registerSatellite_argsStandardScheme getScheme() {
return new registerSatellite_argsStandardScheme();
}
}
- private static class registerSatellite_argsStandardScheme extends StandardScheme<registerSatellite_args> {
+ private static class registerSatellite_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<registerSatellite_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, registerSatellite_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -19298,13 +21581,13 @@ public class MasterServer {
case 2: // ADDRESSES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list330 = iprot.readListBegin();
- struct.addresses = new ArrayList<String>(_list330.size);
- String _elem331;
- for (int _i332 = 0; _i332 < _list330.size; ++_i332)
+ org.apache.thrift.protocol.TList _list442 = iprot.readListBegin();
+ struct.addresses = new java.util.ArrayList<java.lang.String>(_list442.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _elem443;
+ for (int _i444 = 0; _i444 < _list442.size; ++_i444)
{
- _elem331 = iprot.readString();
- struct.addresses.add(_elem331);
+ _elem443 = iprot.readString();
+ struct.addresses.add(_elem443);
}
iprot.readListEnd();
}
@@ -19348,6 +21631,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, registerSatellite_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -19361,9 +21645,9 @@ public class MasterServer {
oprot.writeFieldBegin(ADDRESSES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.addresses.size()));
- for (String _iter333 : struct.addresses)
+ for (java.lang.String _iter445 : struct.addresses)
{
- oprot.writeString(_iter333);
+ oprot.writeString(_iter445);
}
oprot.writeListEnd();
}
@@ -19395,18 +21679,19 @@ public class MasterServer {
}
- private static class registerSatellite_argsTupleSchemeFactory implements SchemeFactory {
+ private static class registerSatellite_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public registerSatellite_argsTupleScheme getScheme() {
return new registerSatellite_argsTupleScheme();
}
}
- private static class registerSatellite_argsTupleScheme extends TupleScheme<registerSatellite_args> {
+ private static class registerSatellite_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<registerSatellite_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, registerSatellite_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetUserToken()) {
optionals.set(0);
}
@@ -19435,9 +21720,9 @@ public class MasterServer {
if (struct.isSetAddresses()) {
{
oprot.writeI32(struct.addresses.size());
- for (String _iter334 : struct.addresses)
+ for (java.lang.String _iter446 : struct.addresses)
{
- oprot.writeString(_iter334);
+ oprot.writeString(_iter446);
}
}
}
@@ -19454,8 +21739,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, registerSatellite_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(6);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(6);
if (incoming.get(0)) {
struct.userToken = iprot.readString();
struct.setUserTokenIsSet(true);
@@ -19466,13 +21751,13 @@ public class MasterServer {
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.addresses = new ArrayList<String>(_list335.size);
- String _elem336;
- for (int _i337 = 0; _i337 < _list335.size; ++_i337)
+ org.apache.thrift.protocol.TList _list447 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
+ struct.addresses = new java.util.ArrayList<java.lang.String>(_list447.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _elem448;
+ for (int _i449 = 0; _i449 < _list447.size; ++_i449)
{
- _elem336 = iprot.readString();
- struct.addresses.add(_elem336);
+ _elem448 = iprot.readString();
+ struct.addresses.add(_elem448);
}
}
struct.setAddressesIsSet(true);
@@ -19492,32 +21777,33 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class registerSatellite_result implements org.apache.thrift.TBase<registerSatellite_result, registerSatellite_result._Fields>, java.io.Serializable, Cloneable, Comparable<registerSatellite_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("registerSatellite_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
private static final org.apache.thrift.protocol.TField ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new registerSatellite_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new registerSatellite_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new registerSatellite_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new registerSatellite_resultTupleSchemeFactory();
public int success; // required
- public TInvocationException error; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException error; // 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"),
ERROR((short)1, "error");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -19525,6 +21811,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -19542,30 +21829,33 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -19573,14 +21863,14 @@ public class MasterServer {
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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.I32)));
tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(registerSatellite_result.class, metaDataMap);
}
@@ -19608,6 +21898,7 @@ public class MasterServer {
}
}
+ @Override
public registerSatellite_result deepCopy() {
return new registerSatellite_result(this);
}
@@ -19630,23 +21921,24 @@ public class MasterServer {
}
public void unsetSuccess() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
- return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getError() {
return this.error;
}
- public registerSatellite_result setError(TInvocationException error) {
+ public registerSatellite_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) {
this.error = error;
return this;
}
@@ -19666,13 +21958,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
- setSuccess((Integer)value);
+ setSuccess((java.lang.Integer)value);
}
break;
@@ -19687,7 +21980,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -19696,13 +21991,14 @@ public class MasterServer {
return getError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -19711,13 +22007,11 @@ public class MasterServer {
case ERROR:
return isSetError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof registerSatellite_result)
return this.equals((registerSatellite_result)that);
return false;
@@ -19726,6 +22020,8 @@ public class MasterServer {
public boolean equals(registerSatellite_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true;
boolean that_present_success = true;
@@ -19750,19 +22046,15 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true;
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + success;
- boolean present_error = true && (isSetError());
- list.add(present_error);
- if (present_error)
- list.add(error);
+ hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287);
+ if (isSetError())
+ hashCode = hashCode * 8191 + error.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -19773,7 +22065,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -19783,7 +22075,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError());
+ lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -19796,21 +22088,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("registerSatellite_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("registerSatellite_result(");
boolean first = true;
sb.append("success:");
@@ -19841,7 +22136,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
@@ -19851,14 +22146,16 @@ public class MasterServer {
}
}
- private static class registerSatellite_resultStandardSchemeFactory implements SchemeFactory {
+ private static class registerSatellite_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public registerSatellite_resultStandardScheme getScheme() {
return new registerSatellite_resultStandardScheme();
}
}
- private static class registerSatellite_resultStandardScheme extends StandardScheme<registerSatellite_result> {
+ private static class registerSatellite_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<registerSatellite_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, registerSatellite_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -19897,6 +22194,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, registerSatellite_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -19917,18 +22215,19 @@ public class MasterServer {
}
- private static class registerSatellite_resultTupleSchemeFactory implements SchemeFactory {
+ private static class registerSatellite_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public registerSatellite_resultTupleScheme getScheme() {
return new registerSatellite_resultTupleScheme();
}
}
- private static class registerSatellite_resultTupleScheme extends TupleScheme<registerSatellite_result> {
+ private static class registerSatellite_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<registerSatellite_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, registerSatellite_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -19946,8 +22245,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, registerSatellite_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = iprot.readI32();
struct.setSuccessIsSet(true);
@@ -19960,8 +22259,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class updateSatellite_args implements org.apache.thrift.TBase<updateSatellite_args, updateSatellite_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateSatellite_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSatellite_args");
@@ -19969,15 +22272,12 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField DISPLAY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("displayName", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField ADDRESSES_FIELD_DESC = new org.apache.thrift.protocol.TField("addresses", org.apache.thrift.protocol.TType.LIST, (short)3);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new updateSatellite_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new updateSatellite_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateSatellite_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateSatellite_argsTupleSchemeFactory();
- public String serverSessionId; // required
- public String displayName; // required
- public List<String> addresses; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String serverSessionId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String displayName; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> addresses; // 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 {
@@ -19985,10 +22285,10 @@ public class MasterServer {
DISPLAY_NAME((short)2, "displayName"),
ADDRESSES((short)3, "addresses");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -19996,6 +22296,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // SERVER_SESSION_ID
@@ -20015,38 +22316,41 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SERVER_SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("serverSessionId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token")));
tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT,
@@ -20054,7 +22358,7 @@ public class MasterServer {
tmpMap.put(_Fields.ADDRESSES, new org.apache.thrift.meta_data.FieldMetaData("addresses", 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.STRING))));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSatellite_args.class, metaDataMap);
}
@@ -20062,9 +22366,9 @@ public class MasterServer {
}
public updateSatellite_args(
- String serverSessionId,
- String displayName,
- List<String> addresses)
+ java.lang.String serverSessionId,
+ java.lang.String displayName,
+ java.util.List<java.lang.String> addresses)
{
this();
this.serverSessionId = serverSessionId;
@@ -20083,11 +22387,12 @@ public class MasterServer {
this.displayName = other.displayName;
}
if (other.isSetAddresses()) {
- List<String> __this__addresses = new ArrayList<String>(other.addresses);
+ java.util.List<java.lang.String> __this__addresses = new java.util.ArrayList<java.lang.String>(other.addresses);
this.addresses = __this__addresses;
}
}
+ @Override
public updateSatellite_args deepCopy() {
return new updateSatellite_args(this);
}
@@ -20099,11 +22404,12 @@ public class MasterServer {
this.addresses = null;
}
- public String getServerSessionId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getServerSessionId() {
return this.serverSessionId;
}
- public updateSatellite_args setServerSessionId(String serverSessionId) {
+ public updateSatellite_args setServerSessionId(@org.apache.thrift.annotation.Nullable java.lang.String serverSessionId) {
this.serverSessionId = serverSessionId;
return this;
}
@@ -20123,11 +22429,12 @@ public class MasterServer {
}
}
- public String getDisplayName() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getDisplayName() {
return this.displayName;
}
- public updateSatellite_args setDisplayName(String displayName) {
+ public updateSatellite_args setDisplayName(@org.apache.thrift.annotation.Nullable java.lang.String displayName) {
this.displayName = displayName;
return this;
}
@@ -20151,22 +22458,24 @@ public class MasterServer {
return (this.addresses == null) ? 0 : this.addresses.size();
}
- public java.util.Iterator<String> getAddressesIterator() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.Iterator<java.lang.String> getAddressesIterator() {
return (this.addresses == null) ? null : this.addresses.iterator();
}
- public void addToAddresses(String elem) {
+ public void addToAddresses(java.lang.String elem) {
if (this.addresses == null) {
- this.addresses = new ArrayList<String>();
+ this.addresses = new java.util.ArrayList<java.lang.String>();
}
this.addresses.add(elem);
}
- public List<String> getAddresses() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<java.lang.String> getAddresses() {
return this.addresses;
}
- public updateSatellite_args setAddresses(List<String> addresses) {
+ public updateSatellite_args setAddresses(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> addresses) {
this.addresses = addresses;
return this;
}
@@ -20186,13 +22495,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SERVER_SESSION_ID:
if (value == null) {
unsetServerSessionId();
} else {
- setServerSessionId((String)value);
+ setServerSessionId((java.lang.String)value);
}
break;
@@ -20200,7 +22510,7 @@ public class MasterServer {
if (value == null) {
unsetDisplayName();
} else {
- setDisplayName((String)value);
+ setDisplayName((java.lang.String)value);
}
break;
@@ -20208,14 +22518,16 @@ public class MasterServer {
if (value == null) {
unsetAddresses();
} else {
- setAddresses((List<String>)value);
+ setAddresses((java.util.List<java.lang.String>)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SERVER_SESSION_ID:
return getServerSessionId();
@@ -20227,13 +22539,14 @@ public class MasterServer {
return getAddresses();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -20244,13 +22557,11 @@ public class MasterServer {
case ADDRESSES:
return isSetAddresses();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof updateSatellite_args)
return this.equals((updateSatellite_args)that);
return false;
@@ -20259,6 +22570,8 @@ public class MasterServer {
public boolean equals(updateSatellite_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_serverSessionId = true && this.isSetServerSessionId();
boolean that_present_serverSessionId = true && that.isSetServerSessionId();
@@ -20292,24 +22605,21 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_serverSessionId = true && (isSetServerSessionId());
- list.add(present_serverSessionId);
- if (present_serverSessionId)
- list.add(serverSessionId);
+ hashCode = hashCode * 8191 + ((isSetServerSessionId()) ? 131071 : 524287);
+ if (isSetServerSessionId())
+ hashCode = hashCode * 8191 + serverSessionId.hashCode();
- boolean present_displayName = true && (isSetDisplayName());
- list.add(present_displayName);
- if (present_displayName)
- list.add(displayName);
+ hashCode = hashCode * 8191 + ((isSetDisplayName()) ? 131071 : 524287);
+ if (isSetDisplayName())
+ hashCode = hashCode * 8191 + displayName.hashCode();
- boolean present_addresses = true && (isSetAddresses());
- list.add(present_addresses);
- if (present_addresses)
- list.add(addresses);
+ hashCode = hashCode * 8191 + ((isSetAddresses()) ? 131071 : 524287);
+ if (isSetAddresses())
+ hashCode = hashCode * 8191 + addresses.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -20320,7 +22630,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(other.isSetServerSessionId());
+ lastComparison = java.lang.Boolean.compare(isSetServerSessionId(), other.isSetServerSessionId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -20330,7 +22640,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(other.isSetDisplayName());
+ lastComparison = java.lang.Boolean.compare(isSetDisplayName(), other.isSetDisplayName());
if (lastComparison != 0) {
return lastComparison;
}
@@ -20340,7 +22650,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetAddresses()).compareTo(other.isSetAddresses());
+ lastComparison = java.lang.Boolean.compare(isSetAddresses(), other.isSetAddresses());
if (lastComparison != 0) {
return lastComparison;
}
@@ -20353,21 +22663,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("updateSatellite_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("updateSatellite_args(");
boolean first = true;
sb.append("serverSessionId:");
@@ -20410,7 +22724,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -20418,14 +22732,16 @@ public class MasterServer {
}
}
- private static class updateSatellite_argsStandardSchemeFactory implements SchemeFactory {
+ private static class updateSatellite_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateSatellite_argsStandardScheme getScheme() {
return new updateSatellite_argsStandardScheme();
}
}
- private static class updateSatellite_argsStandardScheme extends StandardScheme<updateSatellite_args> {
+ private static class updateSatellite_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<updateSatellite_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, updateSatellite_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -20455,13 +22771,13 @@ public class MasterServer {
case 3: // ADDRESSES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list338 = iprot.readListBegin();
- struct.addresses = new ArrayList<String>(_list338.size);
- String _elem339;
- for (int _i340 = 0; _i340 < _list338.size; ++_i340)
+ org.apache.thrift.protocol.TList _list450 = iprot.readListBegin();
+ struct.addresses = new java.util.ArrayList<java.lang.String>(_list450.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _elem451;
+ for (int _i452 = 0; _i452 < _list450.size; ++_i452)
{
- _elem339 = iprot.readString();
- struct.addresses.add(_elem339);
+ _elem451 = iprot.readString();
+ struct.addresses.add(_elem451);
}
iprot.readListEnd();
}
@@ -20481,6 +22797,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, updateSatellite_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -20499,9 +22816,9 @@ public class MasterServer {
oprot.writeFieldBegin(ADDRESSES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.addresses.size()));
- for (String _iter341 : struct.addresses)
+ for (java.lang.String _iter453 : struct.addresses)
{
- oprot.writeString(_iter341);
+ oprot.writeString(_iter453);
}
oprot.writeListEnd();
}
@@ -20513,18 +22830,19 @@ public class MasterServer {
}
- private static class updateSatellite_argsTupleSchemeFactory implements SchemeFactory {
+ private static class updateSatellite_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateSatellite_argsTupleScheme getScheme() {
return new updateSatellite_argsTupleScheme();
}
}
- private static class updateSatellite_argsTupleScheme extends TupleScheme<updateSatellite_args> {
+ private static class updateSatellite_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<updateSatellite_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, updateSatellite_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetServerSessionId()) {
optionals.set(0);
}
@@ -20544,9 +22862,9 @@ public class MasterServer {
if (struct.isSetAddresses()) {
{
oprot.writeI32(struct.addresses.size());
- for (String _iter342 : struct.addresses)
+ for (java.lang.String _iter454 : struct.addresses)
{
- oprot.writeString(_iter342);
+ oprot.writeString(_iter454);
}
}
}
@@ -20554,8 +22872,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, updateSatellite_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(3);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.serverSessionId = iprot.readString();
struct.setServerSessionIdIsSet(true);
@@ -20566,13 +22884,13 @@ public class MasterServer {
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TList _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.addresses = new ArrayList<String>(_list343.size);
- String _elem344;
- for (int _i345 = 0; _i345 < _list343.size; ++_i345)
+ org.apache.thrift.protocol.TList _list455 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
+ struct.addresses = new java.util.ArrayList<java.lang.String>(_list455.size);
+ @org.apache.thrift.annotation.Nullable java.lang.String _elem456;
+ for (int _i457 = 0; _i457 < _list455.size; ++_i457)
{
- _elem344 = iprot.readString();
- struct.addresses.add(_elem344);
+ _elem456 = iprot.readString();
+ struct.addresses.add(_elem456);
}
}
struct.setAddressesIsSet(true);
@@ -20580,8 +22898,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class updateSatellite_result implements org.apache.thrift.TBase<updateSatellite_result, updateSatellite_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateSatellite_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSatellite_result");
@@ -20589,15 +22911,12 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new updateSatellite_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new updateSatellite_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateSatellite_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateSatellite_resultTupleSchemeFactory();
public boolean success; // required
- public TAuthorizationException failure; // required
- public TInvocationException error; // required
+ public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException error; // 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 {
@@ -20605,10 +22924,10 @@ public class MasterServer {
FAILURE((short)1, "failure"),
ERROR((short)2, "error");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -20616,6 +22935,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -20635,30 +22955,33 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -20666,16 +22989,16 @@ public class MasterServer {
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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)));
tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class)));
tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSatellite_result.class, metaDataMap);
}
@@ -20708,6 +23031,7 @@ public class MasterServer {
}
}
+ @Override
public updateSatellite_result deepCopy() {
return new updateSatellite_result(this);
}
@@ -20731,23 +23055,24 @@ public class MasterServer {
}
public void unsetSuccess() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
- return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
+ @org.apache.thrift.annotation.Nullable
public TAuthorizationException getFailure() {
return this.failure;
}
- public updateSatellite_result setFailure(TAuthorizationException failure) {
+ public updateSatellite_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) {
this.failure = failure;
return this;
}
@@ -20767,11 +23092,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getError() {
return this.error;
}
- public updateSatellite_result setError(TInvocationException error) {
+ public updateSatellite_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) {
this.error = error;
return this;
}
@@ -20791,13 +23117,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
- setSuccess((Boolean)value);
+ setSuccess((java.lang.Boolean)value);
}
break;
@@ -20820,7 +23147,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return isSuccess();
@@ -20832,13 +23161,14 @@ public class MasterServer {
return getError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -20849,13 +23179,11 @@ public class MasterServer {
case ERROR:
return isSetError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof updateSatellite_result)
return this.equals((updateSatellite_result)that);
return false;
@@ -20864,6 +23192,8 @@ public class MasterServer {
public boolean equals(updateSatellite_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true;
boolean that_present_success = true;
@@ -20897,24 +23227,19 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true;
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((success) ? 131071 : 524287);
- boolean present_failure = true && (isSetFailure());
- list.add(present_failure);
- if (present_failure)
- list.add(failure);
+ hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287);
+ if (isSetFailure())
+ hashCode = hashCode * 8191 + failure.hashCode();
- boolean present_error = true && (isSetError());
- list.add(present_error);
- if (present_error)
- list.add(error);
+ hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287);
+ if (isSetError())
+ hashCode = hashCode * 8191 + error.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -20925,7 +23250,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -20935,7 +23260,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure());
+ lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure());
if (lastComparison != 0) {
return lastComparison;
}
@@ -20945,7 +23270,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError());
+ lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -20958,21 +23283,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("updateSatellite_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("updateSatellite_result(");
boolean first = true;
sb.append("success:");
@@ -21011,7 +23339,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
@@ -21021,14 +23349,16 @@ public class MasterServer {
}
}
- private static class updateSatellite_resultStandardSchemeFactory implements SchemeFactory {
+ private static class updateSatellite_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateSatellite_resultStandardScheme getScheme() {
return new updateSatellite_resultStandardScheme();
}
}
- private static class updateSatellite_resultStandardScheme extends StandardScheme<updateSatellite_result> {
+ private static class updateSatellite_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<updateSatellite_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, updateSatellite_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -21076,6 +23406,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, updateSatellite_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -21101,18 +23432,19 @@ public class MasterServer {
}
- private static class updateSatellite_resultTupleSchemeFactory implements SchemeFactory {
+ private static class updateSatellite_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateSatellite_resultTupleScheme getScheme() {
return new updateSatellite_resultTupleScheme();
}
}
- private static class updateSatellite_resultTupleScheme extends TupleScheme<updateSatellite_result> {
+ private static class updateSatellite_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<updateSatellite_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, updateSatellite_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -21136,8 +23468,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, updateSatellite_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(3);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
@@ -21155,32 +23487,33 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class downloadImage_args implements org.apache.thrift.TBase<downloadImage_args, downloadImage_args._Fields>, java.io.Serializable, Cloneable, Comparable<downloadImage_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("downloadImage_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)2);
private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new downloadImage_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new downloadImage_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new downloadImage_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new downloadImage_argsTupleSchemeFactory();
- public String sessionId; // required
- public String imageVersionId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String imageVersionId; // 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)2, "sessionId"),
IMAGE_VERSION_ID((short)1, "imageVersionId");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -21188,6 +23521,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 2: // SESSION_ID
@@ -21205,43 +23539,46 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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 , "Token")));
tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID")));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(downloadImage_args.class, metaDataMap);
}
@@ -21249,8 +23586,8 @@ public class MasterServer {
}
public downloadImage_args(
- String sessionId,
- String imageVersionId)
+ java.lang.String sessionId,
+ java.lang.String imageVersionId)
{
this();
this.sessionId = sessionId;
@@ -21269,6 +23606,7 @@ public class MasterServer {
}
}
+ @Override
public downloadImage_args deepCopy() {
return new downloadImage_args(this);
}
@@ -21279,11 +23617,12 @@ public class MasterServer {
this.imageVersionId = null;
}
- public String getSessionId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getSessionId() {
return this.sessionId;
}
- public downloadImage_args setSessionId(String sessionId) {
+ public downloadImage_args setSessionId(@org.apache.thrift.annotation.Nullable java.lang.String sessionId) {
this.sessionId = sessionId;
return this;
}
@@ -21303,11 +23642,12 @@ public class MasterServer {
}
}
- public String getImageVersionId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getImageVersionId() {
return this.imageVersionId;
}
- public downloadImage_args setImageVersionId(String imageVersionId) {
+ public downloadImage_args setImageVersionId(@org.apache.thrift.annotation.Nullable java.lang.String imageVersionId) {
this.imageVersionId = imageVersionId;
return this;
}
@@ -21327,13 +23667,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SESSION_ID:
if (value == null) {
unsetSessionId();
} else {
- setSessionId((String)value);
+ setSessionId((java.lang.String)value);
}
break;
@@ -21341,14 +23682,16 @@ public class MasterServer {
if (value == null) {
unsetImageVersionId();
} else {
- setImageVersionId((String)value);
+ setImageVersionId((java.lang.String)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SESSION_ID:
return getSessionId();
@@ -21357,13 +23700,14 @@ public class MasterServer {
return getImageVersionId();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -21372,13 +23716,11 @@ public class MasterServer {
case IMAGE_VERSION_ID:
return isSetImageVersionId();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof downloadImage_args)
return this.equals((downloadImage_args)that);
return false;
@@ -21387,6 +23729,8 @@ public class MasterServer {
public boolean equals(downloadImage_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_sessionId = true && this.isSetSessionId();
boolean that_present_sessionId = true && that.isSetSessionId();
@@ -21411,19 +23755,17 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_sessionId = true && (isSetSessionId());
- list.add(present_sessionId);
- if (present_sessionId)
- list.add(sessionId);
+ hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287);
+ if (isSetSessionId())
+ hashCode = hashCode * 8191 + sessionId.hashCode();
- boolean present_imageVersionId = true && (isSetImageVersionId());
- list.add(present_imageVersionId);
- if (present_imageVersionId)
- list.add(imageVersionId);
+ hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287);
+ if (isSetImageVersionId())
+ hashCode = hashCode * 8191 + imageVersionId.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -21434,7 +23776,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId());
+ lastComparison = java.lang.Boolean.compare(isSetSessionId(), other.isSetSessionId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -21444,7 +23786,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId());
+ lastComparison = java.lang.Boolean.compare(isSetImageVersionId(), other.isSetImageVersionId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -21457,21 +23799,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("downloadImage_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("downloadImage_args(");
boolean first = true;
sb.append("sessionId:");
@@ -21506,7 +23852,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -21514,14 +23860,16 @@ public class MasterServer {
}
}
- private static class downloadImage_argsStandardSchemeFactory implements SchemeFactory {
+ private static class downloadImage_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public downloadImage_argsStandardScheme getScheme() {
return new downloadImage_argsStandardScheme();
}
}
- private static class downloadImage_argsStandardScheme extends StandardScheme<downloadImage_args> {
+ private static class downloadImage_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<downloadImage_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, downloadImage_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -21559,6 +23907,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, downloadImage_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -21579,18 +23928,19 @@ public class MasterServer {
}
- private static class downloadImage_argsTupleSchemeFactory implements SchemeFactory {
+ private static class downloadImage_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public downloadImage_argsTupleScheme getScheme() {
return new downloadImage_argsTupleScheme();
}
}
- private static class downloadImage_argsTupleScheme extends TupleScheme<downloadImage_args> {
+ private static class downloadImage_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<downloadImage_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, downloadImage_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSessionId()) {
optionals.set(0);
}
@@ -21608,8 +23958,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, downloadImage_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.sessionId = iprot.readString();
struct.setSessionIdIsSet(true);
@@ -21621,8 +23971,12 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class downloadImage_result implements org.apache.thrift.TBase<downloadImage_result, downloadImage_result._Fields>, java.io.Serializable, Cloneable, Comparable<downloadImage_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("downloadImage_result");
@@ -21631,16 +23985,13 @@ public class MasterServer {
private static final org.apache.thrift.protocol.TField FAILURE2_FIELD_DESC = new org.apache.thrift.protocol.TField("failure2", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField F3_FIELD_DESC = new org.apache.thrift.protocol.TField("f3", org.apache.thrift.protocol.TType.STRUCT, (short)3);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new downloadImage_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new downloadImage_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new downloadImage_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new downloadImage_resultTupleSchemeFactory();
- public TransferInformation success; // required
- public TAuthorizationException failure; // required
- public TInvocationException failure2; // required
- public TNotFoundException f3; // required
+ public @org.apache.thrift.annotation.Nullable TransferInformation success; // required
+ public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException failure2; // required
+ public @org.apache.thrift.annotation.Nullable TNotFoundException f3; // 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 {
@@ -21649,10 +24000,10 @@ public class MasterServer {
FAILURE2((short)2, "failure2"),
F3((short)3, "f3");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -21660,6 +24011,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -21681,47 +24033,50 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TransferInformation.class)));
tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class)));
tmpMap.put(_Fields.FAILURE2, new org.apache.thrift.meta_data.FieldMetaData("failure2", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
tmpMap.put(_Fields.F3, new org.apache.thrift.meta_data.FieldMetaData("f3", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(downloadImage_result.class, metaDataMap);
}
@@ -21759,6 +24114,7 @@ public class MasterServer {
}
}
+ @Override
public downloadImage_result deepCopy() {
return new downloadImage_result(this);
}
@@ -21771,11 +24127,12 @@ public class MasterServer {
this.f3 = null;
}
+ @org.apache.thrift.annotation.Nullable
public TransferInformation getSuccess() {
return this.success;
}
- public downloadImage_result setSuccess(TransferInformation success) {
+ public downloadImage_result setSuccess(@org.apache.thrift.annotation.Nullable TransferInformation success) {
this.success = success;
return this;
}
@@ -21795,11 +24152,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TAuthorizationException getFailure() {
return this.failure;
}
- public downloadImage_result setFailure(TAuthorizationException failure) {
+ public downloadImage_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) {
this.failure = failure;
return this;
}
@@ -21819,11 +24177,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getFailure2() {
return this.failure2;
}
- public downloadImage_result setFailure2(TInvocationException failure2) {
+ public downloadImage_result setFailure2(@org.apache.thrift.annotation.Nullable TInvocationException failure2) {
this.failure2 = failure2;
return this;
}
@@ -21843,11 +24202,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TNotFoundException getF3() {
return this.f3;
}
- public downloadImage_result setF3(TNotFoundException f3) {
+ public downloadImage_result setF3(@org.apache.thrift.annotation.Nullable TNotFoundException f3) {
this.f3 = f3;
return this;
}
@@ -21867,7 +24227,8 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -21904,7 +24265,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -21919,13 +24282,14 @@ public class MasterServer {
return getF3();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -21938,13 +24302,11 @@ public class MasterServer {
case F3:
return isSetF3();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof downloadImage_result)
return this.equals((downloadImage_result)that);
return false;
@@ -21953,6 +24315,8 @@ public class MasterServer {
public boolean equals(downloadImage_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -21995,29 +24359,25 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_failure = true && (isSetFailure());
- list.add(present_failure);
- if (present_failure)
- list.add(failure);
+ hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287);
+ if (isSetFailure())
+ hashCode = hashCode * 8191 + failure.hashCode();
- boolean present_failure2 = true && (isSetFailure2());
- list.add(present_failure2);
- if (present_failure2)
- list.add(failure2);
+ hashCode = hashCode * 8191 + ((isSetFailure2()) ? 131071 : 524287);
+ if (isSetFailure2())
+ hashCode = hashCode * 8191 + failure2.hashCode();
- boolean present_f3 = true && (isSetF3());
- list.add(present_f3);
- if (present_f3)
- list.add(f3);
+ hashCode = hashCode * 8191 + ((isSetF3()) ? 131071 : 524287);
+ if (isSetF3())
+ hashCode = hashCode * 8191 + f3.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -22028,7 +24388,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -22038,7 +24398,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure());
+ lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure());
if (lastComparison != 0) {
return lastComparison;
}
@@ -22048,7 +24408,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFailure2()).compareTo(other.isSetFailure2());
+ lastComparison = java.lang.Boolean.compare(isSetFailure2(), other.isSetFailure2());
if (lastComparison != 0) {
return lastComparison;
}
@@ -22058,7 +24418,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetF3()).compareTo(other.isSetF3());
+ lastComparison = java.lang.Boolean.compare(isSetF3(), other.isSetF3());
if (lastComparison != 0) {
return lastComparison;
}
@@ -22071,21 +24431,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("downloadImage_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("downloadImage_result(");
boolean first = true;
sb.append("success:");
@@ -22139,7 +24502,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -22147,14 +24510,16 @@ public class MasterServer {
}
}
- private static class downloadImage_resultStandardSchemeFactory implements SchemeFactory {
+ private static class downloadImage_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public downloadImage_resultStandardScheme getScheme() {
return new downloadImage_resultStandardScheme();
}
}
- private static class downloadImage_resultStandardScheme extends StandardScheme<downloadImage_result> {
+ private static class downloadImage_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<downloadImage_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, downloadImage_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -22212,6 +24577,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, downloadImage_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -22242,18 +24608,19 @@ public class MasterServer {
}
- private static class downloadImage_resultTupleSchemeFactory implements SchemeFactory {
+ private static class downloadImage_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public downloadImage_resultTupleScheme getScheme() {
return new downloadImage_resultTupleScheme();
}
}
- private static class downloadImage_resultTupleScheme extends TupleScheme<downloadImage_result> {
+ private static class downloadImage_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<downloadImage_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, downloadImage_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -22283,8 +24650,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, downloadImage_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(4);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.success = new TransferInformation();
struct.success.read(iprot);
@@ -22308,27 +24675,28 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getOrganizations_args implements org.apache.thrift.TBase<getOrganizations_args, getOrganizations_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrganizations_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrganizations_args");
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getOrganizations_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getOrganizations_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getOrganizations_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getOrganizations_argsTupleSchemeFactory();
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -22336,6 +24704,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
default:
@@ -22349,37 +24718,40 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrganizations_args.class, metaDataMap);
}
@@ -22392,6 +24764,7 @@ public class MasterServer {
public getOrganizations_args(getOrganizations_args other) {
}
+ @Override
public getOrganizations_args deepCopy() {
return new getOrganizations_args(this);
}
@@ -22400,32 +24773,34 @@ public class MasterServer {
public void clear() {
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getOrganizations_args)
return this.equals((getOrganizations_args)that);
return false;
@@ -22434,15 +24809,17 @@ public class MasterServer {
public boolean equals(getOrganizations_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
return true;
}
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -22456,21 +24833,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getOrganizations_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getOrganizations_args(");
boolean first = true;
sb.append(")");
@@ -22490,7 +24871,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -22498,14 +24879,16 @@ public class MasterServer {
}
}
- private static class getOrganizations_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getOrganizations_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getOrganizations_argsStandardScheme getScheme() {
return new getOrganizations_argsStandardScheme();
}
}
- private static class getOrganizations_argsStandardScheme extends StandardScheme<getOrganizations_args> {
+ private static class getOrganizations_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getOrganizations_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getOrganizations_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -22527,6 +24910,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getOrganizations_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -22537,51 +24921,53 @@ public class MasterServer {
}
- private static class getOrganizations_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getOrganizations_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getOrganizations_argsTupleScheme getScheme() {
return new getOrganizations_argsTupleScheme();
}
}
- private static class getOrganizations_argsTupleScheme extends TupleScheme<getOrganizations_args> {
+ private static class getOrganizations_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getOrganizations_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getOrganizations_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getOrganizations_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getOrganizations_result implements org.apache.thrift.TBase<getOrganizations_result, getOrganizations_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOrganizations_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrganizations_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 SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getOrganizations_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getOrganizations_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getOrganizations_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getOrganizations_resultTupleSchemeFactory();
- public List<Organization> success; // required
- public TInvocationException serverError; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<Organization> success; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException serverError; // 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"),
SERVER_ERROR((short)1, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -22589,6 +24975,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -22606,44 +24993,47 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, Organization.class))));
tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrganizations_result.class, metaDataMap);
}
@@ -22651,7 +25041,7 @@ public class MasterServer {
}
public getOrganizations_result(
- List<Organization> success,
+ java.util.List<Organization> success,
TInvocationException serverError)
{
this();
@@ -22664,7 +25054,7 @@ public class MasterServer {
*/
public getOrganizations_result(getOrganizations_result other) {
if (other.isSetSuccess()) {
- List<Organization> __this__success = new ArrayList<Organization>(other.success.size());
+ java.util.List<Organization> __this__success = new java.util.ArrayList<Organization>(other.success.size());
for (Organization other_element : other.success) {
__this__success.add(new Organization(other_element));
}
@@ -22675,6 +25065,7 @@ public class MasterServer {
}
}
+ @Override
public getOrganizations_result deepCopy() {
return new getOrganizations_result(this);
}
@@ -22689,22 +25080,24 @@ public class MasterServer {
return (this.success == null) ? 0 : this.success.size();
}
+ @org.apache.thrift.annotation.Nullable
public java.util.Iterator<Organization> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(Organization elem) {
if (this.success == null) {
- this.success = new ArrayList<Organization>();
+ this.success = new java.util.ArrayList<Organization>();
}
this.success.add(elem);
}
- public List<Organization> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<Organization> getSuccess() {
return this.success;
}
- public getOrganizations_result setSuccess(List<Organization> success) {
+ public getOrganizations_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<Organization> success) {
this.success = success;
return this;
}
@@ -22724,11 +25117,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getServerError() {
return this.serverError;
}
- public getOrganizations_result setServerError(TInvocationException serverError) {
+ public getOrganizations_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) {
this.serverError = serverError;
return this;
}
@@ -22748,13 +25142,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
- setSuccess((List<Organization>)value);
+ setSuccess((java.util.List<Organization>)value);
}
break;
@@ -22769,7 +25164,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -22778,13 +25175,14 @@ public class MasterServer {
return getServerError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -22793,13 +25191,11 @@ public class MasterServer {
case SERVER_ERROR:
return isSetServerError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getOrganizations_result)
return this.equals((getOrganizations_result)that);
return false;
@@ -22808,6 +25204,8 @@ public class MasterServer {
public boolean equals(getOrganizations_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -22832,19 +25230,17 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_serverError = true && (isSetServerError());
- list.add(present_serverError);
- if (present_serverError)
- list.add(serverError);
+ hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287);
+ if (isSetServerError())
+ hashCode = hashCode * 8191 + serverError.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -22855,7 +25251,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -22865,7 +25261,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError());
+ lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -22878,21 +25274,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getOrganizations_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getOrganizations_result(");
boolean first = true;
sb.append("success:");
@@ -22927,7 +25326,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -22935,14 +25334,16 @@ public class MasterServer {
}
}
- private static class getOrganizations_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getOrganizations_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getOrganizations_resultStandardScheme getScheme() {
return new getOrganizations_resultStandardScheme();
}
}
- private static class getOrganizations_resultStandardScheme extends StandardScheme<getOrganizations_result> {
+ private static class getOrganizations_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getOrganizations_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getOrganizations_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -22956,14 +25357,14 @@ public class MasterServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list346 = iprot.readListBegin();
- struct.success = new ArrayList<Organization>(_list346.size);
- Organization _elem347;
- for (int _i348 = 0; _i348 < _list346.size; ++_i348)
+ org.apache.thrift.protocol.TList _list458 = iprot.readListBegin();
+ struct.success = new java.util.ArrayList<Organization>(_list458.size);
+ @org.apache.thrift.annotation.Nullable Organization _elem459;
+ for (int _i460 = 0; _i460 < _list458.size; ++_i460)
{
- _elem347 = new Organization();
- _elem347.read(iprot);
- struct.success.add(_elem347);
+ _elem459 = new Organization();
+ _elem459.read(iprot);
+ struct.success.add(_elem459);
}
iprot.readListEnd();
}
@@ -22992,6 +25393,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getOrganizations_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -23000,9 +25402,9 @@ public class MasterServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Organization _iter349 : struct.success)
+ for (Organization _iter461 : struct.success)
{
- _iter349.write(oprot);
+ _iter461.write(oprot);
}
oprot.writeListEnd();
}
@@ -23019,18 +25421,19 @@ public class MasterServer {
}
- private static class getOrganizations_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getOrganizations_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getOrganizations_resultTupleScheme getScheme() {
return new getOrganizations_resultTupleScheme();
}
}
- private static class getOrganizations_resultTupleScheme extends TupleScheme<getOrganizations_result> {
+ private static class getOrganizations_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getOrganizations_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getOrganizations_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -23041,9 +25444,9 @@ public class MasterServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Organization _iter350 : struct.success)
+ for (Organization _iter462 : struct.success)
{
- _iter350.write(oprot);
+ _iter462.write(oprot);
}
}
}
@@ -23054,18 +25457,18 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getOrganizations_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<Organization>(_list351.size);
- Organization _elem352;
- for (int _i353 = 0; _i353 < _list351.size; ++_i353)
+ org.apache.thrift.protocol.TList _list463 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
+ struct.success = new java.util.ArrayList<Organization>(_list463.size);
+ @org.apache.thrift.annotation.Nullable Organization _elem464;
+ for (int _i465 = 0; _i465 < _list463.size; ++_i465)
{
- _elem352 = new Organization();
- _elem352.read(iprot);
- struct.success.add(_elem352);
+ _elem464 = new Organization();
+ _elem464.read(iprot);
+ struct.success.add(_elem464);
}
}
struct.setSuccessIsSet(true);
@@ -23078,27 +25481,28 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getOperatingSystems_args implements org.apache.thrift.TBase<getOperatingSystems_args, getOperatingSystems_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOperatingSystems_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOperatingSystems_args");
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getOperatingSystems_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getOperatingSystems_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getOperatingSystems_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getOperatingSystems_argsTupleSchemeFactory();
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -23106,6 +25510,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
default:
@@ -23119,37 +25524,40 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_args.class, metaDataMap);
}
@@ -23162,6 +25570,7 @@ public class MasterServer {
public getOperatingSystems_args(getOperatingSystems_args other) {
}
+ @Override
public getOperatingSystems_args deepCopy() {
return new getOperatingSystems_args(this);
}
@@ -23170,32 +25579,34 @@ public class MasterServer {
public void clear() {
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getOperatingSystems_args)
return this.equals((getOperatingSystems_args)that);
return false;
@@ -23204,15 +25615,17 @@ public class MasterServer {
public boolean equals(getOperatingSystems_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
return true;
}
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -23226,21 +25639,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getOperatingSystems_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getOperatingSystems_args(");
boolean first = true;
sb.append(")");
@@ -23260,7 +25677,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -23268,14 +25685,16 @@ public class MasterServer {
}
}
- private static class getOperatingSystems_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getOperatingSystems_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getOperatingSystems_argsStandardScheme getScheme() {
return new getOperatingSystems_argsStandardScheme();
}
}
- private static class getOperatingSystems_argsStandardScheme extends StandardScheme<getOperatingSystems_args> {
+ private static class getOperatingSystems_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getOperatingSystems_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -23297,6 +25716,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getOperatingSystems_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -23307,51 +25727,53 @@ public class MasterServer {
}
- private static class getOperatingSystems_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getOperatingSystems_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getOperatingSystems_argsTupleScheme getScheme() {
return new getOperatingSystems_argsTupleScheme();
}
}
- private static class getOperatingSystems_argsTupleScheme extends TupleScheme<getOperatingSystems_args> {
+ private static class getOperatingSystems_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getOperatingSystems_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getOperatingSystems_result implements org.apache.thrift.TBase<getOperatingSystems_result, getOperatingSystems_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOperatingSystems_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOperatingSystems_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 SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getOperatingSystems_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getOperatingSystems_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getOperatingSystems_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getOperatingSystems_resultTupleSchemeFactory();
- public List<OperatingSystem> success; // required
- public TInvocationException serverError; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<OperatingSystem> success; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException serverError; // 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"),
SERVER_ERROR((short)1, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -23359,6 +25781,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -23376,44 +25799,47 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, OperatingSystem.class))));
tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_result.class, metaDataMap);
}
@@ -23421,7 +25847,7 @@ public class MasterServer {
}
public getOperatingSystems_result(
- List<OperatingSystem> success,
+ java.util.List<OperatingSystem> success,
TInvocationException serverError)
{
this();
@@ -23434,7 +25860,7 @@ public class MasterServer {
*/
public getOperatingSystems_result(getOperatingSystems_result other) {
if (other.isSetSuccess()) {
- List<OperatingSystem> __this__success = new ArrayList<OperatingSystem>(other.success.size());
+ java.util.List<OperatingSystem> __this__success = new java.util.ArrayList<OperatingSystem>(other.success.size());
for (OperatingSystem other_element : other.success) {
__this__success.add(new OperatingSystem(other_element));
}
@@ -23445,6 +25871,7 @@ public class MasterServer {
}
}
+ @Override
public getOperatingSystems_result deepCopy() {
return new getOperatingSystems_result(this);
}
@@ -23459,22 +25886,24 @@ public class MasterServer {
return (this.success == null) ? 0 : this.success.size();
}
+ @org.apache.thrift.annotation.Nullable
public java.util.Iterator<OperatingSystem> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(OperatingSystem elem) {
if (this.success == null) {
- this.success = new ArrayList<OperatingSystem>();
+ this.success = new java.util.ArrayList<OperatingSystem>();
}
this.success.add(elem);
}
- public List<OperatingSystem> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<OperatingSystem> getSuccess() {
return this.success;
}
- public getOperatingSystems_result setSuccess(List<OperatingSystem> success) {
+ public getOperatingSystems_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<OperatingSystem> success) {
this.success = success;
return this;
}
@@ -23494,11 +25923,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getServerError() {
return this.serverError;
}
- public getOperatingSystems_result setServerError(TInvocationException serverError) {
+ public getOperatingSystems_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) {
this.serverError = serverError;
return this;
}
@@ -23518,13 +25948,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
- setSuccess((List<OperatingSystem>)value);
+ setSuccess((java.util.List<OperatingSystem>)value);
}
break;
@@ -23539,7 +25970,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -23548,13 +25981,14 @@ public class MasterServer {
return getServerError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -23563,13 +25997,11 @@ public class MasterServer {
case SERVER_ERROR:
return isSetServerError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getOperatingSystems_result)
return this.equals((getOperatingSystems_result)that);
return false;
@@ -23578,6 +26010,8 @@ public class MasterServer {
public boolean equals(getOperatingSystems_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -23602,19 +26036,17 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_serverError = true && (isSetServerError());
- list.add(present_serverError);
- if (present_serverError)
- list.add(serverError);
+ hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287);
+ if (isSetServerError())
+ hashCode = hashCode * 8191 + serverError.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -23625,7 +26057,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -23635,7 +26067,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError());
+ lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -23648,21 +26080,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getOperatingSystems_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getOperatingSystems_result(");
boolean first = true;
sb.append("success:");
@@ -23697,7 +26132,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -23705,14 +26140,16 @@ public class MasterServer {
}
}
- private static class getOperatingSystems_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getOperatingSystems_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getOperatingSystems_resultStandardScheme getScheme() {
return new getOperatingSystems_resultStandardScheme();
}
}
- private static class getOperatingSystems_resultStandardScheme extends StandardScheme<getOperatingSystems_result> {
+ private static class getOperatingSystems_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getOperatingSystems_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -23726,14 +26163,14 @@ public class MasterServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list354 = iprot.readListBegin();
- struct.success = new ArrayList<OperatingSystem>(_list354.size);
- OperatingSystem _elem355;
- for (int _i356 = 0; _i356 < _list354.size; ++_i356)
+ org.apache.thrift.protocol.TList _list466 = iprot.readListBegin();
+ struct.success = new java.util.ArrayList<OperatingSystem>(_list466.size);
+ @org.apache.thrift.annotation.Nullable OperatingSystem _elem467;
+ for (int _i468 = 0; _i468 < _list466.size; ++_i468)
{
- _elem355 = new OperatingSystem();
- _elem355.read(iprot);
- struct.success.add(_elem355);
+ _elem467 = new OperatingSystem();
+ _elem467.read(iprot);
+ struct.success.add(_elem467);
}
iprot.readListEnd();
}
@@ -23762,6 +26199,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getOperatingSystems_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -23770,9 +26208,9 @@ public class MasterServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (OperatingSystem _iter357 : struct.success)
+ for (OperatingSystem _iter469 : struct.success)
{
- _iter357.write(oprot);
+ _iter469.write(oprot);
}
oprot.writeListEnd();
}
@@ -23789,18 +26227,19 @@ public class MasterServer {
}
- private static class getOperatingSystems_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getOperatingSystems_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getOperatingSystems_resultTupleScheme getScheme() {
return new getOperatingSystems_resultTupleScheme();
}
}
- private static class getOperatingSystems_resultTupleScheme extends TupleScheme<getOperatingSystems_result> {
+ private static class getOperatingSystems_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getOperatingSystems_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -23811,9 +26250,9 @@ public class MasterServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (OperatingSystem _iter358 : struct.success)
+ for (OperatingSystem _iter470 : struct.success)
{
- _iter358.write(oprot);
+ _iter470.write(oprot);
}
}
}
@@ -23824,18 +26263,18 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<OperatingSystem>(_list359.size);
- OperatingSystem _elem360;
- for (int _i361 = 0; _i361 < _list359.size; ++_i361)
+ org.apache.thrift.protocol.TList _list471 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
+ struct.success = new java.util.ArrayList<OperatingSystem>(_list471.size);
+ @org.apache.thrift.annotation.Nullable OperatingSystem _elem472;
+ for (int _i473 = 0; _i473 < _list471.size; ++_i473)
{
- _elem360 = new OperatingSystem();
- _elem360.read(iprot);
- struct.success.add(_elem360);
+ _elem472 = new OperatingSystem();
+ _elem472.read(iprot);
+ struct.success.add(_elem472);
}
}
struct.setSuccessIsSet(true);
@@ -23848,27 +26287,28 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getVirtualizers_args implements org.apache.thrift.TBase<getVirtualizers_args, getVirtualizers_args._Fields>, java.io.Serializable, Cloneable, Comparable<getVirtualizers_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVirtualizers_args");
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getVirtualizers_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getVirtualizers_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getVirtualizers_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getVirtualizers_argsTupleSchemeFactory();
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
;
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -23876,6 +26316,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
default:
@@ -23889,37 +26330,40 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_args.class, metaDataMap);
}
@@ -23932,6 +26376,7 @@ public class MasterServer {
public getVirtualizers_args(getVirtualizers_args other) {
}
+ @Override
public getVirtualizers_args deepCopy() {
return new getVirtualizers_args(this);
}
@@ -23940,32 +26385,34 @@ public class MasterServer {
public void clear() {
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getVirtualizers_args)
return this.equals((getVirtualizers_args)that);
return false;
@@ -23974,15 +26421,17 @@ public class MasterServer {
public boolean equals(getVirtualizers_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
return true;
}
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -23996,21 +26445,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getVirtualizers_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getVirtualizers_args(");
boolean first = true;
sb.append(")");
@@ -24030,7 +26483,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -24038,14 +26491,16 @@ public class MasterServer {
}
}
- private static class getVirtualizers_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getVirtualizers_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getVirtualizers_argsStandardScheme getScheme() {
return new getVirtualizers_argsStandardScheme();
}
}
- private static class getVirtualizers_argsStandardScheme extends StandardScheme<getVirtualizers_args> {
+ private static class getVirtualizers_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getVirtualizers_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -24067,6 +26522,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getVirtualizers_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -24077,51 +26533,53 @@ public class MasterServer {
}
- private static class getVirtualizers_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getVirtualizers_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getVirtualizers_argsTupleScheme getScheme() {
return new getVirtualizers_argsTupleScheme();
}
}
- private static class getVirtualizers_argsTupleScheme extends TupleScheme<getVirtualizers_args> {
+ private static class getVirtualizers_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getVirtualizers_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getVirtualizers_result implements org.apache.thrift.TBase<getVirtualizers_result, getVirtualizers_result._Fields>, java.io.Serializable, Cloneable, Comparable<getVirtualizers_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVirtualizers_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 SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getVirtualizers_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getVirtualizers_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getVirtualizers_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getVirtualizers_resultTupleSchemeFactory();
- public List<Virtualizer> success; // required
- public TInvocationException serverError; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<Virtualizer> success; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException serverError; // 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"),
SERVER_ERROR((short)1, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -24129,6 +26587,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -24146,44 +26605,47 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, Virtualizer.class))));
tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_result.class, metaDataMap);
}
@@ -24191,7 +26653,7 @@ public class MasterServer {
}
public getVirtualizers_result(
- List<Virtualizer> success,
+ java.util.List<Virtualizer> success,
TInvocationException serverError)
{
this();
@@ -24204,7 +26666,7 @@ public class MasterServer {
*/
public getVirtualizers_result(getVirtualizers_result other) {
if (other.isSetSuccess()) {
- List<Virtualizer> __this__success = new ArrayList<Virtualizer>(other.success.size());
+ java.util.List<Virtualizer> __this__success = new java.util.ArrayList<Virtualizer>(other.success.size());
for (Virtualizer other_element : other.success) {
__this__success.add(new Virtualizer(other_element));
}
@@ -24215,6 +26677,7 @@ public class MasterServer {
}
}
+ @Override
public getVirtualizers_result deepCopy() {
return new getVirtualizers_result(this);
}
@@ -24229,22 +26692,24 @@ public class MasterServer {
return (this.success == null) ? 0 : this.success.size();
}
+ @org.apache.thrift.annotation.Nullable
public java.util.Iterator<Virtualizer> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(Virtualizer elem) {
if (this.success == null) {
- this.success = new ArrayList<Virtualizer>();
+ this.success = new java.util.ArrayList<Virtualizer>();
}
this.success.add(elem);
}
- public List<Virtualizer> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<Virtualizer> getSuccess() {
return this.success;
}
- public getVirtualizers_result setSuccess(List<Virtualizer> success) {
+ public getVirtualizers_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<Virtualizer> success) {
this.success = success;
return this;
}
@@ -24264,11 +26729,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getServerError() {
return this.serverError;
}
- public getVirtualizers_result setServerError(TInvocationException serverError) {
+ public getVirtualizers_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) {
this.serverError = serverError;
return this;
}
@@ -24288,13 +26754,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
- setSuccess((List<Virtualizer>)value);
+ setSuccess((java.util.List<Virtualizer>)value);
}
break;
@@ -24309,7 +26776,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -24318,13 +26787,14 @@ public class MasterServer {
return getServerError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -24333,13 +26803,11 @@ public class MasterServer {
case SERVER_ERROR:
return isSetServerError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getVirtualizers_result)
return this.equals((getVirtualizers_result)that);
return false;
@@ -24348,6 +26816,8 @@ public class MasterServer {
public boolean equals(getVirtualizers_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -24372,19 +26842,17 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_serverError = true && (isSetServerError());
- list.add(present_serverError);
- if (present_serverError)
- list.add(serverError);
+ hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287);
+ if (isSetServerError())
+ hashCode = hashCode * 8191 + serverError.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -24395,7 +26863,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -24405,7 +26873,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError());
+ lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -24418,21 +26886,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getVirtualizers_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getVirtualizers_result(");
boolean first = true;
sb.append("success:");
@@ -24467,7 +26938,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -24475,14 +26946,16 @@ public class MasterServer {
}
}
- private static class getVirtualizers_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getVirtualizers_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getVirtualizers_resultStandardScheme getScheme() {
return new getVirtualizers_resultStandardScheme();
}
}
- private static class getVirtualizers_resultStandardScheme extends StandardScheme<getVirtualizers_result> {
+ private static class getVirtualizers_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getVirtualizers_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -24496,14 +26969,14 @@ public class MasterServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list362 = iprot.readListBegin();
- struct.success = new ArrayList<Virtualizer>(_list362.size);
- Virtualizer _elem363;
- for (int _i364 = 0; _i364 < _list362.size; ++_i364)
+ org.apache.thrift.protocol.TList _list474 = iprot.readListBegin();
+ struct.success = new java.util.ArrayList<Virtualizer>(_list474.size);
+ @org.apache.thrift.annotation.Nullable Virtualizer _elem475;
+ for (int _i476 = 0; _i476 < _list474.size; ++_i476)
{
- _elem363 = new Virtualizer();
- _elem363.read(iprot);
- struct.success.add(_elem363);
+ _elem475 = new Virtualizer();
+ _elem475.read(iprot);
+ struct.success.add(_elem475);
}
iprot.readListEnd();
}
@@ -24532,6 +27005,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getVirtualizers_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -24540,9 +27014,9 @@ public class MasterServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Virtualizer _iter365 : struct.success)
+ for (Virtualizer _iter477 : struct.success)
{
- _iter365.write(oprot);
+ _iter477.write(oprot);
}
oprot.writeListEnd();
}
@@ -24559,18 +27033,19 @@ public class MasterServer {
}
- private static class getVirtualizers_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getVirtualizers_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getVirtualizers_resultTupleScheme getScheme() {
return new getVirtualizers_resultTupleScheme();
}
}
- private static class getVirtualizers_resultTupleScheme extends TupleScheme<getVirtualizers_result> {
+ private static class getVirtualizers_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getVirtualizers_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -24581,9 +27056,9 @@ public class MasterServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Virtualizer _iter366 : struct.success)
+ for (Virtualizer _iter478 : struct.success)
{
- _iter366.write(oprot);
+ _iter478.write(oprot);
}
}
}
@@ -24594,18 +27069,18 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<Virtualizer>(_list367.size);
- Virtualizer _elem368;
- for (int _i369 = 0; _i369 < _list367.size; ++_i369)
+ org.apache.thrift.protocol.TList _list479 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
+ struct.success = new java.util.ArrayList<Virtualizer>(_list479.size);
+ @org.apache.thrift.annotation.Nullable Virtualizer _elem480;
+ for (int _i481 = 0; _i481 < _list479.size; ++_i481)
{
- _elem368 = new Virtualizer();
- _elem368.read(iprot);
- struct.success.add(_elem368);
+ _elem480 = new Virtualizer();
+ _elem480.read(iprot);
+ struct.success.add(_elem480);
}
}
struct.setSuccessIsSet(true);
@@ -24618,18 +27093,19 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getTags_args implements org.apache.thrift.TBase<getTags_args, getTags_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTags_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTags_args");
private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getTags_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getTags_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTags_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTags_argsTupleSchemeFactory();
public long startDate; // required
@@ -24637,10 +27113,10 @@ public class MasterServer {
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
START_DATE((short)1, "startDate");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -24648,6 +27124,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // START_DATE
@@ -24663,30 +27140,33 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -24694,12 +27174,12 @@ public class MasterServer {
// isset id assignments
private static final int __STARTDATE_ISSET_ID = 0;
private byte __isset_bitfield = 0;
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp")));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTags_args.class, metaDataMap);
}
@@ -24722,6 +27202,7 @@ public class MasterServer {
this.startDate = other.startDate;
}
+ @Override
public getTags_args deepCopy() {
return new getTags_args(this);
}
@@ -24743,57 +27224,59 @@ public class MasterServer {
}
public void unsetStartDate() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STARTDATE_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __STARTDATE_ISSET_ID);
}
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
public boolean isSetStartDate() {
- return EncodingUtils.testBit(__isset_bitfield, __STARTDATE_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STARTDATE_ISSET_ID);
}
public void setStartDateIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STARTDATE_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __STARTDATE_ISSET_ID, value);
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case START_DATE:
if (value == null) {
unsetStartDate();
} else {
- setStartDate((Long)value);
+ setStartDate((java.lang.Long)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case START_DATE:
return getStartDate();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
case START_DATE:
return isSetStartDate();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getTags_args)
return this.equals((getTags_args)that);
return false;
@@ -24802,6 +27285,8 @@ public class MasterServer {
public boolean equals(getTags_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_startDate = true;
boolean that_present_startDate = true;
@@ -24817,14 +27302,11 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_startDate = true;
- list.add(present_startDate);
- if (present_startDate)
- list.add(startDate);
+ hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startDate);
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -24835,7 +27317,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(other.isSetStartDate());
+ lastComparison = java.lang.Boolean.compare(isSetStartDate(), other.isSetStartDate());
if (lastComparison != 0) {
return lastComparison;
}
@@ -24848,21 +27330,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getTags_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getTags_args(");
boolean first = true;
sb.append("startDate:");
@@ -24885,7 +27371,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
@@ -24895,14 +27381,16 @@ public class MasterServer {
}
}
- private static class getTags_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getTags_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getTags_argsStandardScheme getScheme() {
return new getTags_argsStandardScheme();
}
}
- private static class getTags_argsStandardScheme extends StandardScheme<getTags_args> {
+ private static class getTags_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getTags_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getTags_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -24932,6 +27420,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getTags_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -24945,18 +27434,19 @@ public class MasterServer {
}
- private static class getTags_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getTags_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getTags_argsTupleScheme getScheme() {
return new getTags_argsTupleScheme();
}
}
- private static class getTags_argsTupleScheme extends TupleScheme<getTags_args> {
+ private static class getTags_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getTags_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getTags_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetStartDate()) {
optionals.set(0);
}
@@ -24968,8 +27458,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getTags_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.startDate = iprot.readI64();
struct.setStartDateIsSet(true);
@@ -24977,32 +27467,33 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getTags_result implements org.apache.thrift.TBase<getTags_result, getTags_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTags_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTags_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 SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getTags_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getTags_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTags_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTags_resultTupleSchemeFactory();
- public List<MasterTag> success; // required
- public TInvocationException serverError; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<MasterTag> success; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException serverError; // 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"),
SERVER_ERROR((short)1, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -25010,6 +27501,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -25027,44 +27519,47 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, MasterTag.class))));
tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTags_result.class, metaDataMap);
}
@@ -25072,7 +27567,7 @@ public class MasterServer {
}
public getTags_result(
- List<MasterTag> success,
+ java.util.List<MasterTag> success,
TInvocationException serverError)
{
this();
@@ -25085,7 +27580,7 @@ public class MasterServer {
*/
public getTags_result(getTags_result other) {
if (other.isSetSuccess()) {
- List<MasterTag> __this__success = new ArrayList<MasterTag>(other.success.size());
+ java.util.List<MasterTag> __this__success = new java.util.ArrayList<MasterTag>(other.success.size());
for (MasterTag other_element : other.success) {
__this__success.add(new MasterTag(other_element));
}
@@ -25096,6 +27591,7 @@ public class MasterServer {
}
}
+ @Override
public getTags_result deepCopy() {
return new getTags_result(this);
}
@@ -25110,22 +27606,24 @@ public class MasterServer {
return (this.success == null) ? 0 : this.success.size();
}
+ @org.apache.thrift.annotation.Nullable
public java.util.Iterator<MasterTag> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(MasterTag elem) {
if (this.success == null) {
- this.success = new ArrayList<MasterTag>();
+ this.success = new java.util.ArrayList<MasterTag>();
}
this.success.add(elem);
}
- public List<MasterTag> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<MasterTag> getSuccess() {
return this.success;
}
- public getTags_result setSuccess(List<MasterTag> success) {
+ public getTags_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<MasterTag> success) {
this.success = success;
return this;
}
@@ -25145,11 +27643,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getServerError() {
return this.serverError;
}
- public getTags_result setServerError(TInvocationException serverError) {
+ public getTags_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) {
this.serverError = serverError;
return this;
}
@@ -25169,13 +27668,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
- setSuccess((List<MasterTag>)value);
+ setSuccess((java.util.List<MasterTag>)value);
}
break;
@@ -25190,7 +27690,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -25199,13 +27701,14 @@ public class MasterServer {
return getServerError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -25214,13 +27717,11 @@ public class MasterServer {
case SERVER_ERROR:
return isSetServerError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getTags_result)
return this.equals((getTags_result)that);
return false;
@@ -25229,6 +27730,8 @@ public class MasterServer {
public boolean equals(getTags_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -25253,19 +27756,17 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_serverError = true && (isSetServerError());
- list.add(present_serverError);
- if (present_serverError)
- list.add(serverError);
+ hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287);
+ if (isSetServerError())
+ hashCode = hashCode * 8191 + serverError.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -25276,7 +27777,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -25286,7 +27787,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError());
+ lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -25299,21 +27800,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getTags_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getTags_result(");
boolean first = true;
sb.append("success:");
@@ -25348,7 +27852,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -25356,14 +27860,16 @@ public class MasterServer {
}
}
- private static class getTags_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getTags_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getTags_resultStandardScheme getScheme() {
return new getTags_resultStandardScheme();
}
}
- private static class getTags_resultStandardScheme extends StandardScheme<getTags_result> {
+ private static class getTags_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getTags_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getTags_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -25377,14 +27883,14 @@ public class MasterServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list370 = iprot.readListBegin();
- struct.success = new ArrayList<MasterTag>(_list370.size);
- MasterTag _elem371;
- for (int _i372 = 0; _i372 < _list370.size; ++_i372)
+ org.apache.thrift.protocol.TList _list482 = iprot.readListBegin();
+ struct.success = new java.util.ArrayList<MasterTag>(_list482.size);
+ @org.apache.thrift.annotation.Nullable MasterTag _elem483;
+ for (int _i484 = 0; _i484 < _list482.size; ++_i484)
{
- _elem371 = new MasterTag();
- _elem371.read(iprot);
- struct.success.add(_elem371);
+ _elem483 = new MasterTag();
+ _elem483.read(iprot);
+ struct.success.add(_elem483);
}
iprot.readListEnd();
}
@@ -25413,6 +27919,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getTags_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -25421,9 +27928,9 @@ public class MasterServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (MasterTag _iter373 : struct.success)
+ for (MasterTag _iter485 : struct.success)
{
- _iter373.write(oprot);
+ _iter485.write(oprot);
}
oprot.writeListEnd();
}
@@ -25440,18 +27947,19 @@ public class MasterServer {
}
- private static class getTags_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getTags_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getTags_resultTupleScheme getScheme() {
return new getTags_resultTupleScheme();
}
}
- private static class getTags_resultTupleScheme extends TupleScheme<getTags_result> {
+ private static class getTags_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getTags_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getTags_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -25462,9 +27970,9 @@ public class MasterServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (MasterTag _iter374 : struct.success)
+ for (MasterTag _iter486 : struct.success)
{
- _iter374.write(oprot);
+ _iter486.write(oprot);
}
}
}
@@ -25475,18 +27983,18 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getTags_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<MasterTag>(_list375.size);
- MasterTag _elem376;
- for (int _i377 = 0; _i377 < _list375.size; ++_i377)
+ org.apache.thrift.protocol.TList _list487 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
+ struct.success = new java.util.ArrayList<MasterTag>(_list487.size);
+ @org.apache.thrift.annotation.Nullable MasterTag _elem488;
+ for (int _i489 = 0; _i489 < _list487.size; ++_i489)
{
- _elem376 = new MasterTag();
- _elem376.read(iprot);
- struct.success.add(_elem376);
+ _elem488 = new MasterTag();
+ _elem488.read(iprot);
+ struct.success.add(_elem488);
}
}
struct.setSuccessIsSet(true);
@@ -25499,18 +28007,19 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getSoftware_args implements org.apache.thrift.TBase<getSoftware_args, getSoftware_args._Fields>, java.io.Serializable, Cloneable, Comparable<getSoftware_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSoftware_args");
private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getSoftware_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getSoftware_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getSoftware_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getSoftware_argsTupleSchemeFactory();
public long startDate; // required
@@ -25518,10 +28027,10 @@ public class MasterServer {
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
START_DATE((short)1, "startDate");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -25529,6 +28038,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // START_DATE
@@ -25544,30 +28054,33 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -25575,12 +28088,12 @@ public class MasterServer {
// isset id assignments
private static final int __STARTDATE_ISSET_ID = 0;
private byte __isset_bitfield = 0;
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp")));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSoftware_args.class, metaDataMap);
}
@@ -25603,6 +28116,7 @@ public class MasterServer {
this.startDate = other.startDate;
}
+ @Override
public getSoftware_args deepCopy() {
return new getSoftware_args(this);
}
@@ -25624,57 +28138,59 @@ public class MasterServer {
}
public void unsetStartDate() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STARTDATE_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __STARTDATE_ISSET_ID);
}
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
public boolean isSetStartDate() {
- return EncodingUtils.testBit(__isset_bitfield, __STARTDATE_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STARTDATE_ISSET_ID);
}
public void setStartDateIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STARTDATE_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __STARTDATE_ISSET_ID, value);
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case START_DATE:
if (value == null) {
unsetStartDate();
} else {
- setStartDate((Long)value);
+ setStartDate((java.lang.Long)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case START_DATE:
return getStartDate();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
case START_DATE:
return isSetStartDate();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getSoftware_args)
return this.equals((getSoftware_args)that);
return false;
@@ -25683,6 +28199,8 @@ public class MasterServer {
public boolean equals(getSoftware_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_startDate = true;
boolean that_present_startDate = true;
@@ -25698,14 +28216,11 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_startDate = true;
- list.add(present_startDate);
- if (present_startDate)
- list.add(startDate);
+ hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startDate);
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -25716,7 +28231,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(other.isSetStartDate());
+ lastComparison = java.lang.Boolean.compare(isSetStartDate(), other.isSetStartDate());
if (lastComparison != 0) {
return lastComparison;
}
@@ -25729,21 +28244,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getSoftware_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getSoftware_args(");
boolean first = true;
sb.append("startDate:");
@@ -25766,7 +28285,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
@@ -25776,14 +28295,16 @@ public class MasterServer {
}
}
- private static class getSoftware_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getSoftware_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getSoftware_argsStandardScheme getScheme() {
return new getSoftware_argsStandardScheme();
}
}
- private static class getSoftware_argsStandardScheme extends StandardScheme<getSoftware_args> {
+ private static class getSoftware_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getSoftware_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getSoftware_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -25813,6 +28334,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getSoftware_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -25826,18 +28348,19 @@ public class MasterServer {
}
- private static class getSoftware_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getSoftware_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getSoftware_argsTupleScheme getScheme() {
return new getSoftware_argsTupleScheme();
}
}
- private static class getSoftware_argsTupleScheme extends TupleScheme<getSoftware_args> {
+ private static class getSoftware_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getSoftware_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getSoftware_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetStartDate()) {
optionals.set(0);
}
@@ -25849,8 +28372,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getSoftware_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.startDate = iprot.readI64();
struct.setStartDateIsSet(true);
@@ -25858,32 +28381,33 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getSoftware_result implements org.apache.thrift.TBase<getSoftware_result, getSoftware_result._Fields>, java.io.Serializable, Cloneable, Comparable<getSoftware_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSoftware_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 SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new getSoftware_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new getSoftware_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getSoftware_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getSoftware_resultTupleSchemeFactory();
- public List<MasterSoftware> success; // required
- public TInvocationException serverError; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<MasterSoftware> success; // required
+ public @org.apache.thrift.annotation.Nullable TInvocationException serverError; // 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"),
SERVER_ERROR((short)1, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -25891,6 +28415,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -25908,44 +28433,47 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, MasterSoftware.class))));
tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSoftware_result.class, metaDataMap);
}
@@ -25953,7 +28481,7 @@ public class MasterServer {
}
public getSoftware_result(
- List<MasterSoftware> success,
+ java.util.List<MasterSoftware> success,
TInvocationException serverError)
{
this();
@@ -25966,7 +28494,7 @@ public class MasterServer {
*/
public getSoftware_result(getSoftware_result other) {
if (other.isSetSuccess()) {
- List<MasterSoftware> __this__success = new ArrayList<MasterSoftware>(other.success.size());
+ java.util.List<MasterSoftware> __this__success = new java.util.ArrayList<MasterSoftware>(other.success.size());
for (MasterSoftware other_element : other.success) {
__this__success.add(new MasterSoftware(other_element));
}
@@ -25977,6 +28505,7 @@ public class MasterServer {
}
}
+ @Override
public getSoftware_result deepCopy() {
return new getSoftware_result(this);
}
@@ -25991,22 +28520,24 @@ public class MasterServer {
return (this.success == null) ? 0 : this.success.size();
}
+ @org.apache.thrift.annotation.Nullable
public java.util.Iterator<MasterSoftware> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(MasterSoftware elem) {
if (this.success == null) {
- this.success = new ArrayList<MasterSoftware>();
+ this.success = new java.util.ArrayList<MasterSoftware>();
}
this.success.add(elem);
}
- public List<MasterSoftware> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<MasterSoftware> getSuccess() {
return this.success;
}
- public getSoftware_result setSuccess(List<MasterSoftware> success) {
+ public getSoftware_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<MasterSoftware> success) {
this.success = success;
return this;
}
@@ -26026,11 +28557,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvocationException getServerError() {
return this.serverError;
}
- public getSoftware_result setServerError(TInvocationException serverError) {
+ public getSoftware_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) {
this.serverError = serverError;
return this;
}
@@ -26050,13 +28582,14 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
- setSuccess((List<MasterSoftware>)value);
+ setSuccess((java.util.List<MasterSoftware>)value);
}
break;
@@ -26071,7 +28604,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -26080,13 +28615,14 @@ public class MasterServer {
return getServerError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -26095,13 +28631,11 @@ public class MasterServer {
case SERVER_ERROR:
return isSetServerError();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof getSoftware_result)
return this.equals((getSoftware_result)that);
return false;
@@ -26110,6 +28644,8 @@ public class MasterServer {
public boolean equals(getSoftware_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -26134,19 +28670,17 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_serverError = true && (isSetServerError());
- list.add(present_serverError);
- if (present_serverError)
- list.add(serverError);
+ hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287);
+ if (isSetServerError())
+ hashCode = hashCode * 8191 + serverError.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -26157,7 +28691,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -26167,7 +28701,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError());
+ lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError());
if (lastComparison != 0) {
return lastComparison;
}
@@ -26180,21 +28714,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("getSoftware_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getSoftware_result(");
boolean first = true;
sb.append("success:");
@@ -26229,7 +28766,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -26237,14 +28774,16 @@ public class MasterServer {
}
}
- private static class getSoftware_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getSoftware_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getSoftware_resultStandardScheme getScheme() {
return new getSoftware_resultStandardScheme();
}
}
- private static class getSoftware_resultStandardScheme extends StandardScheme<getSoftware_result> {
+ private static class getSoftware_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getSoftware_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getSoftware_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -26258,14 +28797,14 @@ public class MasterServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list378 = iprot.readListBegin();
- struct.success = new ArrayList<MasterSoftware>(_list378.size);
- MasterSoftware _elem379;
- for (int _i380 = 0; _i380 < _list378.size; ++_i380)
+ org.apache.thrift.protocol.TList _list490 = iprot.readListBegin();
+ struct.success = new java.util.ArrayList<MasterSoftware>(_list490.size);
+ @org.apache.thrift.annotation.Nullable MasterSoftware _elem491;
+ for (int _i492 = 0; _i492 < _list490.size; ++_i492)
{
- _elem379 = new MasterSoftware();
- _elem379.read(iprot);
- struct.success.add(_elem379);
+ _elem491 = new MasterSoftware();
+ _elem491.read(iprot);
+ struct.success.add(_elem491);
}
iprot.readListEnd();
}
@@ -26294,6 +28833,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getSoftware_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -26302,9 +28842,9 @@ public class MasterServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (MasterSoftware _iter381 : struct.success)
+ for (MasterSoftware _iter493 : struct.success)
{
- _iter381.write(oprot);
+ _iter493.write(oprot);
}
oprot.writeListEnd();
}
@@ -26321,18 +28861,19 @@ public class MasterServer {
}
- private static class getSoftware_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getSoftware_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getSoftware_resultTupleScheme getScheme() {
return new getSoftware_resultTupleScheme();
}
}
- private static class getSoftware_resultTupleScheme extends TupleScheme<getSoftware_result> {
+ private static class getSoftware_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getSoftware_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, getSoftware_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -26343,9 +28884,9 @@ public class MasterServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (MasterSoftware _iter382 : struct.success)
+ for (MasterSoftware _iter494 : struct.success)
{
- _iter382.write(oprot);
+ _iter494.write(oprot);
}
}
}
@@ -26356,18 +28897,18 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, getSoftware_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<MasterSoftware>(_list383.size);
- MasterSoftware _elem384;
- for (int _i385 = 0; _i385 < _list383.size; ++_i385)
+ org.apache.thrift.protocol.TList _list495 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
+ struct.success = new java.util.ArrayList<MasterSoftware>(_list495.size);
+ @org.apache.thrift.annotation.Nullable MasterSoftware _elem496;
+ for (int _i497 = 0; _i497 < _list495.size; ++_i497)
{
- _elem384 = new MasterSoftware();
- _elem384.read(iprot);
- struct.success.add(_elem384);
+ _elem496 = new MasterSoftware();
+ _elem496.read(iprot);
+ struct.success.add(_elem496);
}
}
struct.setSuccessIsSet(true);
@@ -26380,29 +28921,30 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class queryUploadStatus_args implements org.apache.thrift.TBase<queryUploadStatus_args, queryUploadStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<queryUploadStatus_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("queryUploadStatus_args");
private static final org.apache.thrift.protocol.TField UPLOAD_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("uploadToken", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new queryUploadStatus_argsStandardSchemeFactory());
- schemes.put(TupleScheme.class, new queryUploadStatus_argsTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new queryUploadStatus_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new queryUploadStatus_argsTupleSchemeFactory();
- public String uploadToken; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String uploadToken; // 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 {
UPLOAD_TOKEN((short)1, "uploadToken");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -26410,6 +28952,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // UPLOAD_TOKEN
@@ -26425,41 +28968,44 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.UPLOAD_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("uploadToken", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token")));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryUploadStatus_args.class, metaDataMap);
}
@@ -26467,7 +29013,7 @@ public class MasterServer {
}
public queryUploadStatus_args(
- String uploadToken)
+ java.lang.String uploadToken)
{
this();
this.uploadToken = uploadToken;
@@ -26482,6 +29028,7 @@ public class MasterServer {
}
}
+ @Override
public queryUploadStatus_args deepCopy() {
return new queryUploadStatus_args(this);
}
@@ -26491,11 +29038,12 @@ public class MasterServer {
this.uploadToken = null;
}
- public String getUploadToken() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getUploadToken() {
return this.uploadToken;
}
- public queryUploadStatus_args setUploadToken(String uploadToken) {
+ public queryUploadStatus_args setUploadToken(@org.apache.thrift.annotation.Nullable java.lang.String uploadToken) {
this.uploadToken = uploadToken;
return this;
}
@@ -26515,45 +29063,47 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case UPLOAD_TOKEN:
if (value == null) {
unsetUploadToken();
} else {
- setUploadToken((String)value);
+ setUploadToken((java.lang.String)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case UPLOAD_TOKEN:
return getUploadToken();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
case UPLOAD_TOKEN:
return isSetUploadToken();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof queryUploadStatus_args)
return this.equals((queryUploadStatus_args)that);
return false;
@@ -26562,6 +29112,8 @@ public class MasterServer {
public boolean equals(queryUploadStatus_args that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_uploadToken = true && this.isSetUploadToken();
boolean that_present_uploadToken = true && that.isSetUploadToken();
@@ -26577,14 +29129,13 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_uploadToken = true && (isSetUploadToken());
- list.add(present_uploadToken);
- if (present_uploadToken)
- list.add(uploadToken);
+ hashCode = hashCode * 8191 + ((isSetUploadToken()) ? 131071 : 524287);
+ if (isSetUploadToken())
+ hashCode = hashCode * 8191 + uploadToken.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -26595,7 +29146,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetUploadToken()).compareTo(other.isSetUploadToken());
+ lastComparison = java.lang.Boolean.compare(isSetUploadToken(), other.isSetUploadToken());
if (lastComparison != 0) {
return lastComparison;
}
@@ -26608,21 +29159,25 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("queryUploadStatus_args(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("queryUploadStatus_args(");
boolean first = true;
sb.append("uploadToken:");
@@ -26649,7 +29204,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -26657,14 +29212,16 @@ public class MasterServer {
}
}
- private static class queryUploadStatus_argsStandardSchemeFactory implements SchemeFactory {
+ private static class queryUploadStatus_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public queryUploadStatus_argsStandardScheme getScheme() {
return new queryUploadStatus_argsStandardScheme();
}
}
- private static class queryUploadStatus_argsStandardScheme extends StandardScheme<queryUploadStatus_args> {
+ private static class queryUploadStatus_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<queryUploadStatus_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, queryUploadStatus_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -26694,6 +29251,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, queryUploadStatus_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -26709,18 +29267,19 @@ public class MasterServer {
}
- private static class queryUploadStatus_argsTupleSchemeFactory implements SchemeFactory {
+ private static class queryUploadStatus_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public queryUploadStatus_argsTupleScheme getScheme() {
return new queryUploadStatus_argsTupleScheme();
}
}
- private static class queryUploadStatus_argsTupleScheme extends TupleScheme<queryUploadStatus_args> {
+ private static class queryUploadStatus_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<queryUploadStatus_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_args struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetUploadToken()) {
optionals.set(0);
}
@@ -26732,8 +29291,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_args struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(1);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.uploadToken = iprot.readString();
struct.setUploadTokenIsSet(true);
@@ -26741,32 +29300,33 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class queryUploadStatus_result implements org.apache.thrift.TBase<queryUploadStatus_result, queryUploadStatus_result._Fields>, java.io.Serializable, Cloneable, Comparable<queryUploadStatus_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("queryUploadStatus_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 EX1_FIELD_DESC = new org.apache.thrift.protocol.TField("ex1", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new queryUploadStatus_resultStandardSchemeFactory());
- schemes.put(TupleScheme.class, new queryUploadStatus_resultTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new queryUploadStatus_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new queryUploadStatus_resultTupleSchemeFactory();
- public TransferStatus success; // required
- public TInvalidTokenException ex1; // required
+ public @org.apache.thrift.annotation.Nullable TransferStatus success; // required
+ public @org.apache.thrift.annotation.Nullable TInvalidTokenException ex1; // 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"),
EX1((short)1, "ex1");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -26774,6 +29334,7 @@ public class MasterServer {
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
+ @org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
@@ -26791,43 +29352,46 @@ public class MasterServer {
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.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) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.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);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.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, TransferStatus.class)));
tmpMap.put(_Fields.EX1, new org.apache.thrift.meta_data.FieldMetaData("ex1", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidTokenException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryUploadStatus_result.class, metaDataMap);
}
@@ -26855,6 +29419,7 @@ public class MasterServer {
}
}
+ @Override
public queryUploadStatus_result deepCopy() {
return new queryUploadStatus_result(this);
}
@@ -26865,11 +29430,12 @@ public class MasterServer {
this.ex1 = null;
}
+ @org.apache.thrift.annotation.Nullable
public TransferStatus getSuccess() {
return this.success;
}
- public queryUploadStatus_result setSuccess(TransferStatus success) {
+ public queryUploadStatus_result setSuccess(@org.apache.thrift.annotation.Nullable TransferStatus success) {
this.success = success;
return this;
}
@@ -26889,11 +29455,12 @@ public class MasterServer {
}
}
+ @org.apache.thrift.annotation.Nullable
public TInvalidTokenException getEx1() {
return this.ex1;
}
- public queryUploadStatus_result setEx1(TInvalidTokenException ex1) {
+ public queryUploadStatus_result setEx1(@org.apache.thrift.annotation.Nullable TInvalidTokenException ex1) {
this.ex1 = ex1;
return this;
}
@@ -26913,7 +29480,8 @@ public class MasterServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -26934,7 +29502,9 @@ public class MasterServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -26943,13 +29513,14 @@ public class MasterServer {
return getEx1();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -26958,13 +29529,11 @@ public class MasterServer {
case EX1:
return isSetEx1();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof queryUploadStatus_result)
return this.equals((queryUploadStatus_result)that);
return false;
@@ -26973,6 +29542,8 @@ public class MasterServer {
public boolean equals(queryUploadStatus_result that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
@@ -26997,19 +29568,17 @@ public class MasterServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- boolean present_success = true && (isSetSuccess());
- list.add(present_success);
- if (present_success)
- list.add(success);
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
- boolean present_ex1 = true && (isSetEx1());
- list.add(present_ex1);
- if (present_ex1)
- list.add(ex1);
+ hashCode = hashCode * 8191 + ((isSetEx1()) ? 131071 : 524287);
+ if (isSetEx1())
+ hashCode = hashCode * 8191 + ex1.hashCode();
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -27020,7 +29589,7 @@ public class MasterServer {
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
@@ -27030,7 +29599,7 @@ public class MasterServer {
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetEx1()).compareTo(other.isSetEx1());
+ lastComparison = java.lang.Boolean.compare(isSetEx1(), other.isSetEx1());
if (lastComparison != 0) {
return lastComparison;
}
@@ -27043,21 +29612,24 @@ public class MasterServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("queryUploadStatus_result(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("queryUploadStatus_result(");
boolean first = true;
sb.append("success:");
@@ -27095,7 +29667,7 @@ public class MasterServer {
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
@@ -27103,14 +29675,16 @@ public class MasterServer {
}
}
- private static class queryUploadStatus_resultStandardSchemeFactory implements SchemeFactory {
+ private static class queryUploadStatus_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public queryUploadStatus_resultStandardScheme getScheme() {
return new queryUploadStatus_resultStandardScheme();
}
}
- private static class queryUploadStatus_resultStandardScheme extends StandardScheme<queryUploadStatus_result> {
+ private static class queryUploadStatus_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<queryUploadStatus_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, queryUploadStatus_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -27150,6 +29724,7 @@ public class MasterServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, queryUploadStatus_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -27170,18 +29745,19 @@ public class MasterServer {
}
- private static class queryUploadStatus_resultTupleSchemeFactory implements SchemeFactory {
+ private static class queryUploadStatus_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public queryUploadStatus_resultTupleScheme getScheme() {
return new queryUploadStatus_resultTupleScheme();
}
}
- private static class queryUploadStatus_resultTupleScheme extends TupleScheme<queryUploadStatus_result> {
+ private static class queryUploadStatus_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<queryUploadStatus_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_result struct) throws org.apache.thrift.TException {
- TTupleProtocol oprot = (TTupleProtocol) prot;
- BitSet optionals = new BitSet();
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
@@ -27199,8 +29775,8 @@ public class MasterServer {
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_result struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(2);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = new TransferStatus();
struct.success.read(iprot);
@@ -27214,6 +29790,9 @@ public class MasterServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
}