From 139780575f671bd9528af1d0d9dd6f5cb561b30b Mon Sep 17 00:00:00 2001 From: sashadidukh Date: Sat, 31 Oct 2015 16:54:25 +0200 Subject: [PATCH] KAA-521: Added possibility to get endpoint profile data based on endpoint key and endpoint group id. --- .../kaaproject/kaa/client/KaaClientTest.java | 2 +- .../admin/controller/KaaAdminController.java | 92 + .../admin/services/KaaAdminServiceImpl.java | 106 +- .../shared/services/KaaAdminService.java | 12 + .../kaa/server/common/admin/AdminClient.java | 36 +- .../kaa/server/common/dao/DaoConstants.java | 1 + .../server/common/dao/EndpointService.java | 28 + .../common/dao/impl/EndpointProfileDao.java | 28 + .../dao/service/EndpointServiceImpl.java | 34 +- .../kaa/server/common/dao/AbstractTest.java | 29 + .../dao/service/EndpointServiceImplTest.java | 45 + .../dto/AbstractEndpointProfilesDto.java | 77 + .../kaa/common/dto/EndpointGroupDto.java | 8 + .../common/dto/EndpointProfileBodyDto.java | 79 + .../common/dto/EndpointProfilesBodyDto.java | 74 + .../common/dto/EndpointProfilesPageDto.java | 74 + .../kaa/common/dto/PageLinkDto.java | 131 + .../cassandra/dao/AbstractCassandraDao.java | 1 - .../dao/EndpointProfileCassandraDao.java | 259 +- .../dao/filter/CassandraEPByAppIdDao.java | 39 + .../CassandraEPByEndpointGroupIdDao.java | 69 + .../model/CassandraEPByEndpointGroupId.java | 103 + .../dao/model/CassandraModelConstants.java | 15 +- .../src/main/resources/cassandra.cql | 6 + .../cassandra/dao/AbstractCassandraTest.java | 35 +- .../dao/EndpointProfileCassandraDaoTest.java | 125 + .../mongo/dao/EndpointProfileMongoDao.java | 88 +- .../nosql/mongo/dao/AbstractMongoTest.java | 16 +- .../dao/EndpointProfileMongoDaoTest.java | 66 + .../gen/bootstrap/BootstrapThriftService.java | 38 +- .../gen/bootstrap/ThriftOperationsServer.java | 18 +- .../thrift/gen/cli/CliThriftException.java | 18 +- .../thrift/gen/cli/CliThriftService.java | 74 +- .../common/thrift/gen/cli/CommandResult.java | 22 +- .../common/thrift/gen/cli/CommandStatus.java | 2 +- .../common/thrift/gen/cli/MemoryUsage.java | 22 +- .../gen/control/ControlThriftException.java | 22 +- .../gen/control/ControlThriftService.java | 9462 ++++++++++++----- .../common/thrift/gen/control/FileData.java | 27 +- .../common/thrift/gen/control/RecordFile.java | 2 +- .../server/common/thrift/gen/control/Sdk.java | 27 +- .../thrift/gen/control/SdkPlatform.java | 2 +- .../thrift/gen/operations/EndpointEvent.java | 47 +- .../gen/operations/EndpointRouteUpdate.java | 47 +- .../gen/operations/EndpointStateUpdate.java | 47 +- .../common/thrift/gen/operations/Event.java | 26 +- .../operations/EventClassFamilyVersion.java | 18 +- .../gen/operations/EventMessageType.java | 2 +- .../thrift/gen/operations/EventRoute.java | 46 +- .../gen/operations/EventRouteUpdateType.java | 2 +- .../common/thrift/gen/operations/Message.java | 42 +- .../thrift/gen/operations/Notification.java | 83 +- .../thrift/gen/operations/Operation.java | 2 +- .../operations/OperationsThriftService.java | 94 +- .../gen/operations/RedirectionRule.java | 30 +- .../thrift/gen/operations/RouteAddress.java | 30 +- .../thrift/gen/operations/RouteInfo.java | 58 +- .../operations/UserConfigurationUpdate.java | 39 +- .../thrift/gen/operations/UserRouteInfo.java | 30 +- .../common/thrift/gen/shared/DataStruct.java | 27 +- .../thrift/src/main/thrift/control.thrift | 9 + .../thrift/ControlThriftServiceImpl.java | 50 + 62 files changed, 8869 insertions(+), 3274 deletions(-) create mode 100644 server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/AbstractEndpointProfilesDto.java create mode 100644 server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointProfileBodyDto.java create mode 100644 server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointProfilesBodyDto.java create mode 100644 server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointProfilesPageDto.java create mode 100644 server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/PageLinkDto.java create mode 100644 server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/filter/CassandraEPByEndpointGroupIdDao.java create mode 100644 server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/model/CassandraEPByEndpointGroupId.java diff --git a/client/client-multi/client-java-core/src/test/java/org/kaaproject/kaa/client/KaaClientTest.java b/client/client-multi/client-java-core/src/test/java/org/kaaproject/kaa/client/KaaClientTest.java index c93ad6c639..70e4ec0886 100644 --- a/client/client-multi/client-java-core/src/test/java/org/kaaproject/kaa/client/KaaClientTest.java +++ b/client/client-multi/client-java-core/src/test/java/org/kaaproject/kaa/client/KaaClientTest.java @@ -45,9 +45,9 @@ import org.kaaproject.kaa.client.persistence.KaaClientPropertiesState; import org.kaaproject.kaa.client.persistence.KaaClientState; import org.kaaproject.kaa.client.persistence.PersistentStorage; -import org.kaaproject.kaa.client.profile.ProfileContainer; import org.kaaproject.kaa.client.profile.ProfileRuntimeException; import org.kaaproject.kaa.client.schema.SchemaRuntimeException; +import org.kaaproject.kaa.client.profile.ProfileContainer; import org.kaaproject.kaa.client.transport.TransportException; import org.kaaproject.kaa.client.util.CommonsBase64; import org.kaaproject.kaa.common.endpoint.gen.ProtocolMetaData; diff --git a/server/admin/src/main/java/org/kaaproject/kaa/server/admin/controller/KaaAdminController.java b/server/admin/src/main/java/org/kaaproject/kaa/server/admin/controller/KaaAdminController.java index 75fa639f7e..0caec006cf 100644 --- a/server/admin/src/main/java/org/kaaproject/kaa/server/admin/controller/KaaAdminController.java +++ b/server/admin/src/main/java/org/kaaproject/kaa/server/admin/controller/KaaAdminController.java @@ -18,8 +18,10 @@ import java.io.IOException; import java.util.List; + import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; + import org.apache.commons.lang3.StringUtils; import org.kaaproject.kaa.common.dto.ApplicationDto; import org.kaaproject.kaa.common.dto.ConfigurationDto; @@ -27,10 +29,15 @@ import org.kaaproject.kaa.common.dto.ConfigurationSchemaDto; import org.kaaproject.kaa.common.dto.EndpointGroupDto; import org.kaaproject.kaa.common.dto.EndpointNotificationDto; +import org.kaaproject.kaa.common.dto.EndpointProfileBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfileDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesPageDto; import org.kaaproject.kaa.common.dto.EndpointUserConfigurationDto; import org.kaaproject.kaa.common.dto.KaaAuthorityDto; import org.kaaproject.kaa.common.dto.NotificationDto; import org.kaaproject.kaa.common.dto.NotificationSchemaDto; +import org.kaaproject.kaa.common.dto.PageLinkDto; import org.kaaproject.kaa.common.dto.ProfileFilterDto; import org.kaaproject.kaa.common.dto.ProfileFilterRecordDto; import org.kaaproject.kaa.common.dto.ProfileSchemaDto; @@ -81,6 +88,8 @@ import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.web.multipart.MultipartFile; +import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; + /** * The Class KaaAdminController. */ @@ -94,6 +103,18 @@ public class KaaAdminController { /** The Constant BUFFER. */ private static final int BUFFER = 1024 * 100; + /** The Constant DEFAULT_LIMIT. */ + private static final String DEFAULT_LIMIT = "20"; + + /** The Constant DEFAULT_OFFSET. */ + private static final String DEFAULT_OFFSET = "0"; + + /** The Constant HTTPS_PORT. */ + public static final int HTTPS_PORT = 443; + + /** The Constant HTTP_PORT. */ + public static final int HTTP_PORT = 80; + /** The kaa admin service. */ @Autowired KaaAdminService kaaAdminService; @@ -149,6 +170,77 @@ public void handleKaaAdminServiceException(KaaAdminServiceException ex, HttpServ } } + /** + * Gets the endpoint profile by endpoint group id. + */ + @RequestMapping(value = "endpointProfileByGroupId", method = RequestMethod.GET, produces = APPLICATION_JSON_VALUE) + @ResponseBody + public EndpointProfilesPageDto getEndpointProfileByEndpointGroupId( + @RequestParam(value = "endpointGroupId") String endpointGroupId, + @RequestParam(value = "limit", defaultValue = DEFAULT_LIMIT) String limit, + @RequestParam(value = "offset", defaultValue = DEFAULT_OFFSET) String offset, + HttpServletRequest request) throws KaaAdminServiceException { + EndpointProfilesPageDto endpointProfilesPageDto = kaaAdminService.getEndpointProfileByEndpointGroupId(endpointGroupId, limit, offset); + if (endpointProfilesPageDto.hasEndpointProfiles()) { + PageLinkDto pageLinkDto = createNext(endpointProfilesPageDto.getPageLinkDto(), request); + endpointProfilesPageDto.setNext(pageLinkDto.getNext()); + } + return endpointProfilesPageDto; + } + + /** + * Gets the endpoint profile body by endpoint group id. + */ + @RequestMapping(value = "endpointProfileBodyByGroupId", method = RequestMethod.GET, produces = APPLICATION_JSON_VALUE) + @ResponseBody + public EndpointProfilesBodyDto getEndpointProfileBodyByEndpointGroupId( + @RequestParam(value = "endpointGroupId") String endpointGroupId, + @RequestParam(value = "limit", defaultValue = DEFAULT_LIMIT) String limit, + @RequestParam(value = "offset", defaultValue = DEFAULT_OFFSET) String offset, + HttpServletRequest request) throws KaaAdminServiceException { + EndpointProfilesBodyDto endpointProfilesBodyDto = kaaAdminService.getEndpointProfileBodyByEndpointGroupId(endpointGroupId, limit, offset); + if (endpointProfilesBodyDto.hasEndpointBodies()) { + PageLinkDto pageLinkDto = createNext(endpointProfilesBodyDto.getPageLinkDto(), request); + endpointProfilesBodyDto.setNext(pageLinkDto.getNext()); + } + return endpointProfilesBodyDto; + } + + private PageLinkDto createNext(PageLinkDto pageLink, HttpServletRequest request) { + if (pageLink != null && pageLink.getNext() == null) { + StringBuilder nextUrl = new StringBuilder(); + nextUrl.append(request.getScheme()).append("://").append(request.getServerName()); + int port = request.getServerPort(); + if (HTTP_PORT != port && HTTPS_PORT != port) { + nextUrl.append(":").append(port); + } + String next = nextUrl.append("/kaaAdmin/rest/api/endpointProfileByGroupId?").append(pageLink.getNextUrlPart()).toString(); + pageLink.setNext(next); + logger.debug("Generated next url {}", next); + } + return pageLink; + } + + /** + * Gets the endpoint profile by endpoint key. + * + */ + @RequestMapping(value="endpointProfile/{endpointProfileKey}", method=RequestMethod.GET) + @ResponseBody + public EndpointProfileDto getEndpointProfileByKeyHash(@PathVariable String endpointProfileKey) throws KaaAdminServiceException { + return kaaAdminService.getEndpointProfileByKeyHash(endpointProfileKey); + } + + /** + * Gets the endpoint profile body by endpoint key. + * + */ + @RequestMapping(value="endpointProfileBody/{endpointProfileKey}", method=RequestMethod.GET) + @ResponseBody + public EndpointProfileBodyDto getEndpointProfileBodyByKeyHash(@PathVariable String endpointProfileKey) throws KaaAdminServiceException { + return kaaAdminService.getEndpointProfileBodyByKeyHash(endpointProfileKey); + } + /** * Check auth of kaa admin. * diff --git a/server/admin/src/main/java/org/kaaproject/kaa/server/admin/services/KaaAdminServiceImpl.java b/server/admin/src/main/java/org/kaaproject/kaa/server/admin/services/KaaAdminServiceImpl.java index 7392178fc9..ad5439e7be 100644 --- a/server/admin/src/main/java/org/kaaproject/kaa/server/admin/services/KaaAdminServiceImpl.java +++ b/server/admin/src/main/java/org/kaaproject/kaa/server/admin/services/KaaAdminServiceImpl.java @@ -23,10 +23,19 @@ import static org.kaaproject.kaa.server.common.thrift.util.ThriftDtoConverter.toGenericDataStruct; import static org.kaaproject.kaa.server.common.thrift.util.ThriftDtoConverter.toGenericDto; import static org.kaaproject.kaa.server.common.thrift.util.ThriftDtoConverter.toGenericDtoList; + import java.io.IOException; import java.security.InvalidParameterException; -import java.util.*; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + import net.iharder.Base64; + import org.apache.avro.Schema; import org.apache.avro.SchemaParseException; import org.apache.avro.generic.GenericRecord; @@ -41,11 +50,16 @@ import org.kaaproject.kaa.common.dto.ConfigurationSchemaDto; import org.kaaproject.kaa.common.dto.EndpointGroupDto; import org.kaaproject.kaa.common.dto.EndpointNotificationDto; +import org.kaaproject.kaa.common.dto.EndpointProfileBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfileDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesPageDto; import org.kaaproject.kaa.common.dto.EndpointUserConfigurationDto; import org.kaaproject.kaa.common.dto.KaaAuthorityDto; import org.kaaproject.kaa.common.dto.NotificationDto; import org.kaaproject.kaa.common.dto.NotificationSchemaDto; import org.kaaproject.kaa.common.dto.NotificationTypeDto; +import org.kaaproject.kaa.common.dto.PageLinkDto; import org.kaaproject.kaa.common.dto.ProfileFilterDto; import org.kaaproject.kaa.common.dto.ProfileSchemaDto; import org.kaaproject.kaa.common.dto.SchemaDto; @@ -109,6 +123,7 @@ import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.stereotype.Service; + import com.google.common.base.Charsets; @Service("kaaAdminService") @@ -119,6 +134,11 @@ public class KaaAdminServiceImpl implements KaaAdminService, InitializingBean { */ private static final Logger LOG = LoggerFactory.getLogger(KaaAdminServiceImpl.class); + /** + * The Constant MAX_LIMIT. + */ + private static final int MAX_LIMIT = 500; + @Autowired private ControlThriftClientProvider clientProvider; @@ -151,8 +171,7 @@ public void setPasswordEncoder(PasswordEncoder passwordEncoder) { this.passwordEncoder = passwordEncoder; } - private Map> pluginsInfo = - new HashMap<>(); + private Map> pluginsInfo = new HashMap<>(); { for (PluginType type : PluginType.values()) { @@ -160,6 +179,87 @@ public void setPasswordEncoder(PasswordEncoder passwordEncoder) { } } + @Override + public EndpointProfilesPageDto getEndpointProfileByEndpointGroupId(String endpointGroupId, String limit, String offset) throws KaaAdminServiceException { + checkAuthority(KaaAuthorityDto.TENANT_DEVELOPER, KaaAuthorityDto.TENANT_USER); + try { + if (Integer.valueOf(limit) > MAX_LIMIT) { + throw new IllegalArgumentException("Incorrect limit parameter. You must enter value not more than " + MAX_LIMIT); + } + EndpointGroupDto endpointGroupDto = getEndpointGroup(endpointGroupId); + PageLinkDto pageLinkDto = new PageLinkDto(endpointGroupId, limit, offset); + if (endpointGroupDto.isGroupAll()) { + pageLinkDto.setApplicationId(endpointGroupDto.getApplicationId()); + } + EndpointProfilesPageDto endpointProfilesPage = toGenericDto(clientProvider.getClient().getEndpointProfileByEndpointGroupId(toGenericDataStruct(pageLinkDto))); + if (endpointProfilesPage.getEndpointProfiles() == null || !endpointProfilesPage.hasEndpointProfiles()) { + throw new KaaAdminServiceException( + "Requested item was not found!", + ServiceErrorCode.ITEM_NOT_FOUND); + } + return endpointProfilesPage; + } catch (Exception e) { + throw Utils.handleException(e); + } + } + + @Override + public EndpointProfilesBodyDto getEndpointProfileBodyByEndpointGroupId(String endpointGroupId, String limit, String offset) throws KaaAdminServiceException { + checkAuthority(KaaAuthorityDto.TENANT_DEVELOPER, KaaAuthorityDto.TENANT_USER); + try { + if (Integer.valueOf(limit) > MAX_LIMIT) { + throw new IllegalArgumentException("Incorrect limit parameter. You must enter value not more than " + MAX_LIMIT); + } + EndpointGroupDto endpointGroupDto = getEndpointGroup(endpointGroupId); + PageLinkDto pageLinkDto = new PageLinkDto(endpointGroupId, limit, offset); + if (endpointGroupDto.isGroupAll()) { + pageLinkDto.setApplicationId(endpointGroupDto.getApplicationId()); + } + EndpointProfilesBodyDto endpointProfilesBodyDto = toGenericDto(clientProvider.getClient().getEndpointProfileBodyByEndpointGroupId(toGenericDataStruct(pageLinkDto))); + if (!endpointProfilesBodyDto.hasEndpointBodies()) { + throw new KaaAdminServiceException( + "Requested item was not found!", + ServiceErrorCode.ITEM_NOT_FOUND); + } + return endpointProfilesBodyDto; + } catch (Exception e) { + throw Utils.handleException(e); + } + } + + @Override + public EndpointProfileDto getEndpointProfileByKeyHash(String endpointProfileKeyHash) throws KaaAdminServiceException { + checkAuthority(KaaAuthorityDto.TENANT_DEVELOPER, KaaAuthorityDto.TENANT_USER); + try { + EndpointProfileDto profileDto = toDto(clientProvider.getClient().getEndpointProfileByKeyHash(endpointProfileKeyHash)); + if (profileDto == null) { + throw new KaaAdminServiceException( + "Requested item was not found!", + ServiceErrorCode.ITEM_NOT_FOUND); + } + checkApplicationId(profileDto.getApplicationId()); + return profileDto; + } catch (Exception e) { + throw Utils.handleException(e); + } + } + + @Override + public EndpointProfileBodyDto getEndpointProfileBodyByKeyHash(String endpointProfileKeyHash) throws KaaAdminServiceException { + checkAuthority(KaaAuthorityDto.TENANT_DEVELOPER, KaaAuthorityDto.TENANT_USER); + try { + EndpointProfileBodyDto profileBodyDto = toGenericDto(clientProvider.getClient().getEndpointProfileBodyByKeyHash(endpointProfileKeyHash)); + if (profileBodyDto == null) { + throw new KaaAdminServiceException( + "Requested item was not found!", + ServiceErrorCode.ITEM_NOT_FOUND); + } + return profileBodyDto; + } catch (Exception e) { + throw Utils.handleException(e); + } + } + @Override public void afterPropertiesSet() throws Exception { ClassPathScanningCandidateComponentProvider scanner = diff --git a/server/admin/src/main/java/org/kaaproject/kaa/server/admin/shared/services/KaaAdminService.java b/server/admin/src/main/java/org/kaaproject/kaa/server/admin/shared/services/KaaAdminService.java index daf86de0e7..974c096ac4 100644 --- a/server/admin/src/main/java/org/kaaproject/kaa/server/admin/shared/services/KaaAdminService.java +++ b/server/admin/src/main/java/org/kaaproject/kaa/server/admin/shared/services/KaaAdminService.java @@ -24,6 +24,10 @@ import org.kaaproject.kaa.common.dto.ConfigurationSchemaDto; import org.kaaproject.kaa.common.dto.EndpointGroupDto; import org.kaaproject.kaa.common.dto.EndpointNotificationDto; +import org.kaaproject.kaa.common.dto.EndpointProfileBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfileDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesPageDto; import org.kaaproject.kaa.common.dto.EndpointUserConfigurationDto; import org.kaaproject.kaa.common.dto.NotificationDto; import org.kaaproject.kaa.common.dto.NotificationSchemaDto; @@ -58,6 +62,14 @@ @RemoteServiceRelativePath("springGwtServices/kaaAdminService") public interface KaaAdminService extends RemoteService { + public EndpointProfilesPageDto getEndpointProfileByEndpointGroupId(String endpointGroupId, String limit, String offset) throws KaaAdminServiceException; + + public EndpointProfileDto getEndpointProfileByKeyHash(String endpointProfileKeyHash) throws KaaAdminServiceException; + + public EndpointProfilesBodyDto getEndpointProfileBodyByEndpointGroupId(String endpointGroupId, String limit, String offset) throws KaaAdminServiceException; + + public EndpointProfileBodyDto getEndpointProfileBodyByKeyHash(String endpointProfileKeyHash) throws KaaAdminServiceException; + public List getTenants() throws KaaAdminServiceException; public TenantUserDto getTenant(String userId) throws KaaAdminServiceException; diff --git a/server/common/admin-rest-client/src/main/java/org/kaaproject/kaa/server/common/admin/AdminClient.java b/server/common/admin-rest-client/src/main/java/org/kaaproject/kaa/server/common/admin/AdminClient.java index 5c6959a49c..eec2d1188f 100644 --- a/server/common/admin-rest-client/src/main/java/org/kaaproject/kaa/server/common/admin/AdminClient.java +++ b/server/common/admin-rest-client/src/main/java/org/kaaproject/kaa/server/common/admin/AdminClient.java @@ -80,6 +80,38 @@ public AdminClient(String host, int port) { url = "http://"+host+":"+port + "/kaaAdmin/rest/api/"; } + public EndpointProfilesPageDto getEndpointProfileByEndpointGroupId(PageLinkDto pageLink) throws Exception { + MultiValueMap params = new LinkedMultiValueMap(); + params.add("endpointGroupId", pageLink.getEndpointGroupId()); + params.add("limit", pageLink.getLimit()); + params.add("offset", pageLink.getOffset()); + ParameterizedTypeReference typeRef = new ParameterizedTypeReference() {}; + ResponseEntity entity = restTemplate.exchange(url + "endpointProfileByGroupId/" + params, HttpMethod.GET, null, typeRef); + return entity.getBody(); + } + + public EndpointProfilesBodyDto getEndpointProfileBodyByEndpointGroupId(PageLinkDto pageLink) throws Exception { + MultiValueMap params = new LinkedMultiValueMap(); + params.add("endpointGroupId", pageLink.getEndpointGroupId()); + params.add("limit", pageLink.getLimit()); + params.add("offset", pageLink.getOffset()); + ParameterizedTypeReference typeRef = new ParameterizedTypeReference() {}; + ResponseEntity entity = restTemplate.exchange(url + "endpointProfileBodyByGroupId/" + params, HttpMethod.GET, null, typeRef); + return entity.getBody(); + } + + public EndpointProfileDto getEndpointProfileByKeyHash(String endpointProfileKeyHash) throws Exception { + ParameterizedTypeReference typeRef = new ParameterizedTypeReference() {}; + ResponseEntity entity = restTemplate.exchange(url + "endpointProfile/" + endpointProfileKeyHash, HttpMethod.GET, null, typeRef); + return entity.getBody(); + } + + public EndpointProfileBodyDto getEndpointProfileBodyByKeyHash(String endpointProfileKeyHash) throws Exception { + ParameterizedTypeReference typeRef = new ParameterizedTypeReference() {}; + ResponseEntity entity = restTemplate.exchange(url + "endpointProfileBody/" + endpointProfileKeyHash, HttpMethod.GET, null, typeRef); + return entity.getBody(); + } + public AuthResultDto checkAuth() throws Exception { return restTemplate.getForObject(url + "auth/checkAuth", AuthResultDto.class); } @@ -321,7 +353,7 @@ public LogAppenderDto editLogAppenderDto(LogAppenderDto logAppenderDto) throws E public UserVerifierDto editUserVerifierDto(UserVerifierDto userVerifierDto) throws Exception { return restTemplate.postForObject(url + "userVerifier", userVerifierDto, UserVerifierDto.class); } - + public void downloadSdk(SdkPropertiesDto key, String destination) throws Exception { FileResponseExtractor extractor = new FileResponseExtractor( new File(destination)); final List mediaTypes = Arrays.asList(MediaType.APPLICATION_JSON, @@ -354,7 +386,7 @@ public void doWithRequest(ClientHttpRequest httpRequest) restTemplate.execute(url + "sdk", HttpMethod.POST, request, extractor); logger.info("Downloaded sdk to file '{}'", extractor.getDestFile()); } - + public FileData downloadSdk(SdkPropertiesDto key) throws Exception { FileDataResponseExtractor extractor = new FileDataResponseExtractor(); final List mediaTypes = Arrays.asList(MediaType.APPLICATION_JSON, diff --git a/server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/DaoConstants.java b/server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/DaoConstants.java index 4bede0bb3c..d672d1da55 100644 --- a/server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/DaoConstants.java +++ b/server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/DaoConstants.java @@ -326,6 +326,7 @@ public class DaoConstants { public static final String SDK_TOKEN_TOKEN = "token"; public static final String SDK_TOKEN_RAW_DATA = "raw_data"; + public static final String LAST_PAGE_MESSAGE = "It is the last page"; private DaoConstants() { throw new UnsupportedOperationException("Not supported"); diff --git a/server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/EndpointService.java b/server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/EndpointService.java index 923b239812..023bfac17b 100644 --- a/server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/EndpointService.java +++ b/server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/EndpointService.java @@ -22,8 +22,12 @@ import org.kaaproject.kaa.common.dto.ChangeNotificationDto; import org.kaaproject.kaa.common.dto.EndpointConfigurationDto; import org.kaaproject.kaa.common.dto.EndpointGroupDto; +import org.kaaproject.kaa.common.dto.EndpointProfileBodyDto; import org.kaaproject.kaa.common.dto.EndpointProfileDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesPageDto; import org.kaaproject.kaa.common.dto.EndpointUserDto; +import org.kaaproject.kaa.common.dto.PageLinkDto; import org.kaaproject.kaa.common.dto.UpdateNotificationDto; /** @@ -31,6 +35,22 @@ */ public interface EndpointService { + /** + * Find endpoint profile by endpoint group id. + * + * @param pageLink the page link dto + * @return the endpoint profiles page dto + */ + EndpointProfilesPageDto findEndpointProfileByEndpointGroupId(PageLinkDto pageLink); + + /** + * Find endpoint profile body by endpoint group id. + * + * @param pageLink the page link dto + * @return the endpoint profiles page dto + */ + EndpointProfilesBodyDto findEndpointProfileBodyByEndpointGroupId(PageLinkDto pageLink); + /** * Find endpoint groups by application id. * @@ -113,6 +133,14 @@ public interface EndpointService { */ EndpointProfileDto findEndpointProfileByKeyHash(byte[] endpointProfileKeyHash); + /** + * Find endpoint profile by key hash. + * + * @param endpointProfileKeyHash the endpoint profile key hash + * @return the endpoint profile body dto + */ + EndpointProfileBodyDto findEndpointProfileBodyByKeyHash(byte[] endpointProfileKeyHash); + /** * Remove endpoint profile by key hash. * diff --git a/server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/impl/EndpointProfileDao.java b/server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/impl/EndpointProfileDao.java index 4c77065306..cd45ce957a 100644 --- a/server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/impl/EndpointProfileDao.java +++ b/server/common/dao/src/main/java/org/kaaproject/kaa/server/common/dao/impl/EndpointProfileDao.java @@ -19,7 +19,11 @@ import java.nio.ByteBuffer; import java.util.List; +import org.kaaproject.kaa.common.dto.EndpointProfileBodyDto; import org.kaaproject.kaa.common.dto.EndpointProfileDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesPageDto; +import org.kaaproject.kaa.common.dto.PageLinkDto; import org.kaaproject.kaa.server.common.dao.model.EndpointProfile; /** @@ -39,6 +43,30 @@ public interface EndpointProfileDao extends Dao verifierDao; @Autowired private HistoryService historyService; - + private EndpointProfileDao endpointProfileDao; private EndpointConfigurationDao endpointConfigurationDao; private EndpointUserDao endpointUserDao; @@ -165,7 +169,7 @@ public UpdateNotificationDto removeTopicFromEndpointGroup(Stri UpdateNotificationDto dto = null; EndpointGroup endpointGroup = endpointGroupDao.removeTopicFromEndpointGroup(id, topicId); if (endpointGroup != null) { - dto = new UpdateNotificationDto(); + dto = new UpdateNotificationDto<>(); HistoryDto history = addHistory(endpointGroup.toDto(), ChangeType.REMOVE_TOPIC, topicId); if (history != null) { dto.setAppId(history.getApplicationId()); @@ -188,7 +192,7 @@ public UpdateNotificationDto addTopicToEndpointGroup(String id UpdateNotificationDto dto = null; EndpointGroup endpointGroup = endpointGroupDao.addTopicToEndpointGroup(id, topicId); if (endpointGroup != null) { - dto = new UpdateNotificationDto(); + dto = new UpdateNotificationDto<>(); HistoryDto history = addHistory(endpointGroup.toDto(), ChangeType.ADD_TOPIC, topicId); if (history != null) { dto.setAppId(history.getApplicationId()); @@ -204,11 +208,26 @@ public UpdateNotificationDto addTopicToEndpointGroup(String id return dto; } + @Override + @Transactional + public EndpointProfilesPageDto findEndpointProfileByEndpointGroupId(PageLinkDto pageLink) { + validateSqlId(pageLink.getLimit(), "Can't find endpoint group by id. Incorrect limit parameter " + pageLink.getLimit()); + validateString(pageLink.getOffset(), "Can't find endpoint group by id. Incorrect offset parameter " + pageLink.getOffset()); + return endpointProfileDao.findByEndpointGroupId(pageLink); + } + + @Override + @Transactional + public EndpointProfilesBodyDto findEndpointProfileBodyByEndpointGroupId(PageLinkDto pageLink) { + validateSqlId(pageLink.getLimit(), "Can't find endpoint group by id. Incorrect limit parameter " + pageLink.getLimit()); + validateString(pageLink.getOffset(), "Can't find endpoint group by id. Incorrect offset parameter " + pageLink.getOffset()); + return endpointProfileDao.findBodyByEndpointGroupId(pageLink); + } + @Override public EndpointConfigurationDto findEndpointConfigurationByHash(byte[] hash) { validateHash(hash, "Can't find endpoint configuration by hash. Invalid configuration hash " + hash); return getDto(endpointConfigurationDao.findByHash(hash)); - } @Override @@ -223,6 +242,13 @@ public EndpointProfileDto findEndpointProfileByKeyHash(byte[] endpointProfileKey return getDto(endpointProfileDao.findByKeyHash(endpointProfileKeyHash)); } + @Override + public EndpointProfileBodyDto findEndpointProfileBodyByKeyHash(byte[] endpointProfileKeyHash) { + validateHash(endpointProfileKeyHash, "Can't find endpoint profile by key hash. Invalid key hash " + + endpointProfileKeyHash); + return endpointProfileDao.findBodyByKeyHash(endpointProfileKeyHash); + } + @Override public void removeEndpointProfileByKeyHash(byte[] endpointProfileKeyHash) { validateHash(endpointProfileKeyHash, "Can't remove endpoint profile by key hash. Invalid key hash " diff --git a/server/common/dao/src/test/java/org/kaaproject/kaa/server/common/dao/AbstractTest.java b/server/common/dao/src/test/java/org/kaaproject/kaa/server/common/dao/AbstractTest.java index 962e7ae6dd..7c0633030a 100644 --- a/server/common/dao/src/test/java/org/kaaproject/kaa/server/common/dao/AbstractTest.java +++ b/server/common/dao/src/test/java/org/kaaproject/kaa/server/common/dao/AbstractTest.java @@ -52,7 +52,9 @@ import org.kaaproject.kaa.common.dto.ConfigurationDto; import org.kaaproject.kaa.common.dto.ConfigurationSchemaDto; import org.kaaproject.kaa.common.dto.EndpointGroupDto; +import org.kaaproject.kaa.common.dto.EndpointGroupStateDto; import org.kaaproject.kaa.common.dto.EndpointNotificationDto; +import org.kaaproject.kaa.common.dto.EndpointProfileDto; import org.kaaproject.kaa.common.dto.EndpointUserConfigurationDto; import org.kaaproject.kaa.common.dto.EndpointUserDto; import org.kaaproject.kaa.common.dto.KaaAuthorityDto; @@ -646,4 +648,31 @@ protected EndpointUserConfigurationDto generateEndpointUserConfiguration(Endpoin return userConfigurationService.saveUserConfiguration(configurationDto); } + + protected EndpointProfileDto generateEndpointProfile(String appId, List topicIds) { + EndpointProfileDto profileDto = new EndpointProfileDto(); + profileDto.setApplicationId(appId); + profileDto.setSubscriptions(topicIds); + profileDto.setEndpointKeyHash("TEST_KEY_HASH".getBytes()); + profileDto.setProfile("{\"title\": \"TEST\"}"); + return endpointService.saveEndpointProfile(profileDto); + } + + protected EndpointProfileDto generateEndpointProfileWithGroupId(String endpointGroupId, boolean nfGroupStateOnly) { + EndpointProfileDto profileDto = new EndpointProfileDto(); + profileDto.setEndpointKeyHash(generateString("TEST_KEY_HASH").getBytes()); + String appId = generateApplication().getId(); + profileDto.setApplicationId(appId); + List groupState = new ArrayList<>(); + groupState.add(new EndpointGroupStateDto(endpointGroupId, null, null)); + profileDto.setCfGroupStates(groupState); + profileDto.setProfile("{\"title\": \"TEST\"}"); + if (nfGroupStateOnly) { + profileDto.setNfGroupStates(groupState); + profileDto.setCfGroupStates(null); + } else { + profileDto.setCfGroupStates(groupState); + } + return endpointService.saveEndpointProfile(profileDto); + } } diff --git a/server/common/dao/src/test/java/org/kaaproject/kaa/server/common/dao/service/EndpointServiceImplTest.java b/server/common/dao/src/test/java/org/kaaproject/kaa/server/common/dao/service/EndpointServiceImplTest.java index c54051892b..660b5d32ba 100644 --- a/server/common/dao/src/test/java/org/kaaproject/kaa/server/common/dao/service/EndpointServiceImplTest.java +++ b/server/common/dao/src/test/java/org/kaaproject/kaa/server/common/dao/service/EndpointServiceImplTest.java @@ -24,7 +24,12 @@ import org.junit.Test; import org.kaaproject.kaa.common.dto.ApplicationDto; import org.kaaproject.kaa.common.dto.EndpointGroupDto; +import org.kaaproject.kaa.common.dto.EndpointProfileBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfileDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesPageDto; import org.kaaproject.kaa.common.dto.EndpointUserDto; +import org.kaaproject.kaa.common.dto.PageLinkDto; import org.kaaproject.kaa.common.dto.TenantDto; import org.kaaproject.kaa.server.common.dao.exception.IncorrectParameterException; import org.kaaproject.kaa.server.common.dao.AbstractTest; @@ -33,6 +38,8 @@ public class EndpointServiceImplTest extends AbstractTest { private static final String INCORRECT_ID = "incorrect id"; + private static final String DEFAULT_LIMIT = "1"; + private static final String DEFAULT_OFFSET = "0"; @Test public void findEndpointGroupsByAppIdTest() { @@ -51,6 +58,44 @@ public void findEndpointGroupByIdTest() { group = endpointService.findEndpointGroupById(INCORRECT_ID); } + @Test + public void findEndpointProfileByEndpointGroupIdTest() { + EndpointGroupDto group = generateEndpointGroup(null); + String endpointGroupId = group.getId(); + PageLinkDto pageLinkDto = new PageLinkDto(endpointGroupId, DEFAULT_LIMIT, DEFAULT_OFFSET); + EndpointProfileDto savedEndpointProfileDto = generateEndpointProfileWithGroupId(endpointGroupId, false); + EndpointProfilesPageDto endpointProfilesPage = endpointService.findEndpointProfileByEndpointGroupId(pageLinkDto); + EndpointProfileDto endpointProfileDto = endpointProfilesPage.getEndpointProfiles().get(0); + Assert.assertEquals(savedEndpointProfileDto, endpointProfileDto); + } + + @Test + public void findEndpointProfileBodyByEndpointGroupIdTest() { + EndpointGroupDto group = generateEndpointGroup(null); + String endpointGroupId = group.getId(); + PageLinkDto pageLinkDto = new PageLinkDto(endpointGroupId, DEFAULT_LIMIT, DEFAULT_OFFSET); + EndpointProfileDto savedEndpointProfileDto = generateEndpointProfileWithGroupId(endpointGroupId, false); + EndpointProfilesBodyDto endpointProfilesPage = endpointService.findEndpointProfileBodyByEndpointGroupId(pageLinkDto); + EndpointProfileBodyDto endpointProfileBodyDto = endpointProfilesPage.getEndpointProfilesBody().get(0); + Assert.assertEquals(savedEndpointProfileDto.getProfile(), endpointProfileBodyDto.getProfile()); + } + + @Test + public void findEndpointProfileByKeyHashTest() { + String endpointGroupId = "124"; + EndpointProfileDto savedEndpointProfileDto = generateEndpointProfileWithGroupId(endpointGroupId, false); + EndpointProfileDto endpointProfileDto = endpointService.findEndpointProfileByKeyHash(savedEndpointProfileDto.getEndpointKeyHash()); + Assert.assertEquals(savedEndpointProfileDto, endpointProfileDto); + } + + @Test + public void findEndpointProfileBodyByKeyHashTest() { + String endpointGroupId = "124"; + EndpointProfileDto savedEndpointProfileDto = generateEndpointProfileWithGroupId(endpointGroupId, false); + EndpointProfileBodyDto endpointProfileBodyDto = endpointService.findEndpointProfileBodyByKeyHash(savedEndpointProfileDto.getEndpointKeyHash()); + Assert.assertEquals(savedEndpointProfileDto.getProfile(), endpointProfileBodyDto.getProfile()); + } + @Test(expected = IncorrectParameterException.class) public void saveEndpointGroupWithSameWeightTest() { EndpointGroupDto group = generateEndpointGroup(null); diff --git a/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/AbstractEndpointProfilesDto.java b/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/AbstractEndpointProfilesDto.java new file mode 100644 index 0000000000..13569b210a --- /dev/null +++ b/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/AbstractEndpointProfilesDto.java @@ -0,0 +1,77 @@ +/* + * Copyright 2015 CyberVision, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.kaaproject.kaa.common.dto; + +import java.io.Serializable; + +import com.fasterxml.jackson.annotation.JsonIgnore; + +public class AbstractEndpointProfilesDto implements Serializable { + + private static final long serialVersionUID = 3355356067164498361L; + + @JsonIgnore + protected PageLinkDto pageLinkDto; + protected String next; + + public PageLinkDto getPageLinkDto() { + return pageLinkDto; + } + + public void setPageLinkDto(PageLinkDto pageLinkDto) { + this.pageLinkDto = pageLinkDto; + } + + public String getNext() { + return next; + } + + public void setNext(String next) { + this.next = next; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((next == null) ? 0 : next.hashCode()); + result = prime * result + ((pageLinkDto == null) ? 0 : pageLinkDto.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + AbstractEndpointProfilesDto other = (AbstractEndpointProfilesDto) obj; + if (next == null) { + if (other.next != null) + return false; + } else if (!next.equals(other.next)) + return false; + if (pageLinkDto == null) { + if (other.pageLinkDto != null) + return false; + } else if (!pageLinkDto.equals(other.pageLinkDto)) + return false; + return true; + } +} diff --git a/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointGroupDto.java b/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointGroupDto.java index 905c4e18f6..767796e067 100644 --- a/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointGroupDto.java +++ b/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointGroupDto.java @@ -114,6 +114,14 @@ public void setEndpointCount(long endpointCount) { this.endpointCount = endpointCount; } + public boolean isGroupAll() { + boolean result = false; + if (weight == 0) { + result = true; + } + return result; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointProfileBodyDto.java b/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointProfileBodyDto.java new file mode 100644 index 0000000000..e1cc0fd988 --- /dev/null +++ b/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointProfileBodyDto.java @@ -0,0 +1,79 @@ +/* + * Copyright 2015 CyberVision, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.kaaproject.kaa.common.dto; + +import java.io.Serializable; +import java.util.Arrays; + +public class EndpointProfileBodyDto implements Serializable { + + private static final long serialVersionUID = 1459044085470010138L; + + private byte[] endpointKeyHash; + private String profile; + + public EndpointProfileBodyDto() {} + + public EndpointProfileBodyDto(byte[] endpointKeyHash, String profile) { + this.endpointKeyHash = endpointKeyHash; + this.profile = profile; + } + + public byte[] getEndpointKeyHash() { + return endpointKeyHash; + } + + public void setEndpointKeyHash(byte[] endpointKeyHash) { + this.endpointKeyHash = endpointKeyHash; + } + + public String getProfile() { + return profile; + } + + public void setProfile(String profile) { + this.profile = profile; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + Arrays.hashCode(endpointKeyHash); + result = prime * result + ((profile == null) ? 0 : profile.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + EndpointProfileBodyDto other = (EndpointProfileBodyDto) obj; + if (!Arrays.equals(endpointKeyHash, other.endpointKeyHash)) + return false; + if (profile == null) { + if (other.profile != null) + return false; + } else if (!profile.equals(other.profile)) + return false; + return true; + } +} diff --git a/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointProfilesBodyDto.java b/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointProfilesBodyDto.java new file mode 100644 index 0000000000..b260a3b637 --- /dev/null +++ b/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointProfilesBodyDto.java @@ -0,0 +1,74 @@ +/* + * Copyright 2015 CyberVision, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.kaaproject.kaa.common.dto; + +import java.util.List; + +public class EndpointProfilesBodyDto extends AbstractEndpointProfilesDto { + + private static final long serialVersionUID = -3301431577852472525L; + + private List endpointProfilesBody; + + public EndpointProfilesBodyDto() { + } + + public EndpointProfilesBodyDto(List endpointProfileBody) { + this.endpointProfilesBody = endpointProfileBody; + } + + public boolean hasEndpointBodies() { + boolean result = false; + if (endpointProfilesBody != null) { + result = !endpointProfilesBody.isEmpty(); + } + return result; + } + + public List getEndpointProfilesBody() { + return endpointProfilesBody; + } + + public void setEndpointProfilesBody(List endpointProfileBody) { + this.endpointProfilesBody = endpointProfileBody; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = super.hashCode(); + result = prime * result + ((endpointProfilesBody == null) ? 0 : endpointProfilesBody.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (!super.equals(obj)) + return false; + if (getClass() != obj.getClass()) + return false; + EndpointProfilesBodyDto other = (EndpointProfilesBodyDto) obj; + if (endpointProfilesBody == null) { + if (other.endpointProfilesBody != null) + return false; + } else if (!endpointProfilesBody.equals(other.endpointProfilesBody)) + return false; + return true; + } +} diff --git a/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointProfilesPageDto.java b/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointProfilesPageDto.java new file mode 100644 index 0000000000..d7bffa2634 --- /dev/null +++ b/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/EndpointProfilesPageDto.java @@ -0,0 +1,74 @@ +/* + * Copyright 2015 CyberVision, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.kaaproject.kaa.common.dto; + +import java.util.List; + +public class EndpointProfilesPageDto extends AbstractEndpointProfilesDto { + + private static final long serialVersionUID = 6368165337840879484L; + + private List endpointProfiles; + + public EndpointProfilesPageDto() { + } + + public EndpointProfilesPageDto(List endpointProfiles) { + this.endpointProfiles = endpointProfiles; + } + + public List getEndpointProfiles() { + return endpointProfiles; + } + + public void setEndpointProfiles(List endpointProfiles) { + this.endpointProfiles = endpointProfiles; + } + + public boolean hasEndpointProfiles() { + boolean result = false; + if (endpointProfiles != null) { + result = !endpointProfiles.isEmpty(); + } + return result; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = super.hashCode(); + result = prime * result + ((endpointProfiles == null) ? 0 : endpointProfiles.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (!super.equals(obj)) + return false; + if (getClass() != obj.getClass()) + return false; + EndpointProfilesPageDto other = (EndpointProfilesPageDto) obj; + if (endpointProfiles == null) { + if (other.endpointProfiles != null) + return false; + } else if (!endpointProfiles.equals(other.endpointProfiles)) + return false; + return true; + } +} diff --git a/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/PageLinkDto.java b/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/PageLinkDto.java new file mode 100644 index 0000000000..eca6118257 --- /dev/null +++ b/server/common/dto/src/main/java/org/kaaproject/kaa/common/dto/PageLinkDto.java @@ -0,0 +1,131 @@ +package org.kaaproject.kaa.common.dto; + +import java.io.Serializable; + +public class PageLinkDto implements Serializable { + + private static final long serialVersionUID = 3270625120957514502L; + + public static final String ENDPOINT_GROUP_ID = "endpointGroupId"; + public static final String LIMIT = "limit"; + public static final String EQ = "="; + public static final String AMP = "&"; + public static final String OFFSET = "offset"; + + private String endpointGroupId; + private String limit; + private String offset; + private String next; + private String applicationId; + + public PageLinkDto() { + } + + public PageLinkDto(String endpointGroupId, String limit, String offset) { + this.endpointGroupId = endpointGroupId; + this.limit = limit; + this.offset = offset; + this.next = null; + this.applicationId = null; + } + + public String getLimit() { + return limit; + } + + public void setLimit(String limit) { + this.limit = limit; + } + + public String getOffset() { + return offset; + } + + public void setOffset(String offset) { + this.offset = offset; + } + + public String getNext() { + return next; + } + + public void setNext(String next) { + this.next = next; + } + + public String getEndpointGroupId() { + return endpointGroupId; + } + + public void setEndpointGroupId(String endpointGroupId) { + this.endpointGroupId = endpointGroupId; + } + + public String getApplicationId() { + return applicationId; + } + + public void setApplicationId(String applicationId) { + this.applicationId = applicationId; + } + + public String getNextUrlPart() { + String nextUrlPart = null; + if (limit != null && offset != null) { + StringBuilder sb = new StringBuilder(); + sb.append(ENDPOINT_GROUP_ID).append(EQ).append(endpointGroupId).append(AMP).append(LIMIT).append(EQ).append(limit) + .append(AMP).append(OFFSET).append(EQ).append(offset); + nextUrlPart = sb.toString(); + } + return nextUrlPart; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((applicationId == null) ? 0 : applicationId.hashCode()); + result = prime * result + ((endpointGroupId == null) ? 0 : endpointGroupId.hashCode()); + result = prime * result + ((limit == null) ? 0 : limit.hashCode()); + result = prime * result + ((next == null) ? 0 : next.hashCode()); + result = prime * result + ((offset == null) ? 0 : offset.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + PageLinkDto other = (PageLinkDto) obj; + if (applicationId == null) { + if (other.applicationId != null) + return false; + } else if (!applicationId.equals(other.applicationId)) + return false; + if (endpointGroupId == null) { + if (other.endpointGroupId != null) + return false; + } else if (!endpointGroupId.equals(other.endpointGroupId)) + return false; + if (limit == null) { + if (other.limit != null) + return false; + } else if (!limit.equals(other.limit)) + return false; + if (next == null) { + if (other.next != null) + return false; + } else if (!next.equals(other.next)) + return false; + if (offset == null) { + if (other.offset != null) + return false; + } else if (!offset.equals(other.offset)) + return false; + return true; + } +} diff --git a/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/AbstractCassandraDao.java b/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/AbstractCassandraDao.java index 2398f21623..31ed1be312 100644 --- a/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/AbstractCassandraDao.java +++ b/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/AbstractCassandraDao.java @@ -33,7 +33,6 @@ import java.util.Arrays; import java.util.Collections; import java.util.List; -import java.util.UUID; public abstract class AbstractCassandraDao { diff --git a/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/EndpointProfileCassandraDao.java b/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/EndpointProfileCassandraDao.java index 5f02bedeed..546d8b5a29 100644 --- a/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/EndpointProfileCassandraDao.java +++ b/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/EndpointProfileCassandraDao.java @@ -20,35 +20,59 @@ import com.datastax.driver.core.Row; import com.datastax.driver.core.Statement; import com.datastax.driver.core.querybuilder.QueryBuilder; +import com.google.common.base.Predicates; +import com.google.common.collect.Sets; + +import org.apache.commons.codec.binary.Base64; import org.kaaproject.kaa.common.dto.EndpointProfileDto; +import org.kaaproject.kaa.common.dto.EndpointProfileBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesPageDto; +import org.kaaproject.kaa.common.dto.PageLinkDto; +import org.kaaproject.kaa.server.common.dao.DaoConstants; import org.kaaproject.kaa.server.common.dao.impl.EndpointProfileDao; import org.kaaproject.kaa.server.common.nosql.cassandra.dao.filter.CassandraEPByAccessTokenDao; import org.kaaproject.kaa.server.common.nosql.cassandra.dao.filter.CassandraEPByAppIdDao; +import org.kaaproject.kaa.server.common.nosql.cassandra.dao.filter.CassandraEPByEndpointGroupIdDao; import org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraEPByAccessToken; import org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraEPByAppId; +import org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraEPByEndpointGroupId; import org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraEndpointProfile; import org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraEndpointUser; +import org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.type.CassandraEndpointGroupState; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import java.nio.ByteBuffer; +import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; +import java.util.HashSet; +import java.util.LinkedList; import java.util.List; +import java.util.Set; import static com.datastax.driver.core.querybuilder.QueryBuilder.delete; import static com.datastax.driver.core.querybuilder.QueryBuilder.eq; import static com.datastax.driver.core.querybuilder.QueryBuilder.in; import static com.datastax.driver.core.querybuilder.QueryBuilder.select; +import static org.apache.commons.lang.StringUtils.isBlank; +import static org.kaaproject.kaa.server.common.dao.impl.DaoUtil.getDto; import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.CassandraDaoUtil.convertKeyHashToString; import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.CassandraDaoUtil.convertStringToKeyHash; import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.CassandraDaoUtil.getByteBuffer; +import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.CassandraDaoUtil.getBytes; import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants.EP_BY_APP_ID_APPLICATION_ID_PROPERTY; import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants.EP_BY_APP_ID_COLUMN_FAMILY_NAME; +import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants.EP_BY_APP_ID_ENDPOINT_KEY_HASH_PROPERTY; +import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants.EP_BY_ENDPOINT_GROUP_ID_COLUMN_FAMILY_NAME; +import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants.EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_GROUP_ID_PROPERTY; +import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants.EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_KEY_HASH_PROPERTY; import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants.EP_COLUMN_FAMILY_NAME; import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants.EP_EP_KEY_HASH_PROPERTY; +import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants.EP_PROFILE_PROPERTY; @Repository(value = "endpointProfileDao") public class EndpointProfileCassandraDao extends AbstractCassandraDao implements EndpointProfileDao { @@ -59,6 +83,8 @@ public class EndpointProfileCassandraDao extends AbstractCassandraDao statementList = new ArrayList<>(); + statementList.add(cassandraEPByAppIdDao.getSaveQuery(new CassandraEPByAppId(profile.getApplicationId(), epKeyHash))); String accessToken = profile.getAccessToken(); - Statement saveByAccessToken = null; if (accessToken != null) { - saveByAccessToken = cassandraEPByAccessTokenDao.getSaveQuery(new CassandraEPByAccessToken(accessToken, epKeyHash)); + statementList.add(cassandraEPByAccessTokenDao.getSaveQuery(new CassandraEPByAccessToken(accessToken, epKeyHash))); } - Statement saveProfile = getSaveQuery(profile); - if (saveByAccessToken != null) { - executeBatch(saveProfile, saveByAppId, saveByAccessToken); - } else { - executeBatch(saveProfile, saveByAppId); + statementList.add(getSaveQuery(profile)); + Set groupIdSet = getEndpointProfilesGroupIdSet(profile); + for (String groupId : groupIdSet) { + statementList.add(cassandraEPByEndpointGroupIdDao.getSaveQuery( + new CassandraEPByEndpointGroupId(groupId, epKeyHash))); } + executeBatch(statementList.toArray(new Statement[statementList.size()])); LOG.debug("[{}] Endpoint profile saved", profile.getId()); return profile; } + private CassandraEndpointProfile update(CassandraEndpointProfile profile) { + LOG.debug("Updating endpoint profile with id {}", profile.getId()); + ByteBuffer epKeyHash = profile.getEndpointKeyHash(); + CassandraEndpointProfile storedProfile = findByKeyHash(getBytes(epKeyHash)); + if (storedProfile != null) { + List statementList = new ArrayList<>(); + statementList.add(getSaveQuery(profile)); + Set oldEndpointGroupIds = getEndpointProfilesGroupIdSet(storedProfile); + Set newEndpointGroupIds = getEndpointProfilesGroupIdSet(profile); + + Set removeEndpointGroupIds = Sets.filter(oldEndpointGroupIds, Predicates.not(Predicates.in(newEndpointGroupIds))); + Set addEndpointGroupIds = Sets.filter(newEndpointGroupIds, Predicates.not(Predicates.in(oldEndpointGroupIds))); + if (addEndpointGroupIds != null) { + for (String id : addEndpointGroupIds) { + statementList.add(cassandraEPByEndpointGroupIdDao.getSaveQuery(new CassandraEPByEndpointGroupId(id, epKeyHash))); + } + } + if (removeEndpointGroupIds != null) { + for (String id : removeEndpointGroupIds) { + statementList.add(delete().from(EP_BY_ENDPOINT_GROUP_ID_COLUMN_FAMILY_NAME) + .where(eq(EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_GROUP_ID_PROPERTY, id)) + .and(eq(EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_KEY_HASH_PROPERTY, epKeyHash))); + } + } + executeBatch(statementList.toArray(new Statement[statementList.size()])); + LOG.debug("[{}] Endpoint profile updated", profile.getId()); + } else { + LOG.warn("Stored profile is null. Can't update endpoint profile"); + } + return profile; + } + @Override public CassandraEndpointProfile findByKeyHash(byte[] endpointKeyHash) { LOG.debug("Try to find endpoint profile by key hash [{}]", endpointKeyHash); @@ -108,6 +169,20 @@ public CassandraEndpointProfile findByKeyHash(byte[] endpointKeyHash) { return endpointProfile; } + @Override + public EndpointProfileBodyDto findBodyByKeyHash(byte[] endpointKeyHash) { + LOG.debug("Try to find endpoint profile body by key hash [{}]", endpointKeyHash); + String profile = null; + ResultSet resultSet = execute(select(EP_PROFILE_PROPERTY).from(getColumnFamilyName()) + .where(eq(EP_EP_KEY_HASH_PROPERTY, getByteBuffer(endpointKeyHash)))); + Row row = resultSet.one(); + if (row != null) { + profile = row.getString(0); + } + LOG.debug("[{}] Found endpoint profile body {}", endpointKeyHash, profile); + return new EndpointProfileBodyDto(endpointKeyHash, profile); + } + @Override public long getCountByKeyHash(byte[] endpointKeyHash) { LOG.debug("Try to check if endpoint profile exists with key hash [{}]", endpointKeyHash); @@ -122,16 +197,55 @@ public long getCountByKeyHash(byte[] endpointKeyHash) { return count; } + private void removeByKeyHashFromEpByEndpointGroupId(byte[] endpointKeyHash) { + CassandraEndpointProfile storedProfile = findByKeyHash(endpointKeyHash); + List cfGroupState = new ArrayList<>(); + List endpointGroupIds = new ArrayList<>(); + List statementList = new ArrayList<>(); + if (storedProfile.getCfGroupState() != null) { + cfGroupState.addAll(storedProfile.getCfGroupState()); + } + if (cfGroupState != null) { + for (CassandraEndpointGroupState cf : cfGroupState) { + endpointGroupIds.add(cf.getEndpointGroupId()); + } + } + if (endpointGroupIds != null) { + for (String id : endpointGroupIds) { + statementList.add(delete().from(EP_BY_ENDPOINT_GROUP_ID_COLUMN_FAMILY_NAME) + .where(eq(EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_GROUP_ID_PROPERTY, id)) + .and(eq(EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_KEY_HASH_PROPERTY, getByteBuffer(endpointKeyHash)))); + } + } + Statement[] st = new Statement[statementList.size()]; + statementList.toArray(st); + executeBatch(st); + } + @Override public void removeByKeyHash(byte[] endpointKeyHash) { LOG.debug("Remove endpoint profile by key hash [{}]", endpointKeyHash); + CassandraEndpointProfile storedProfile = findByKeyHash(endpointKeyHash); + removeByKeyHashFromEpByEndpointGroupId(endpointKeyHash); + String appId = storedProfile.getApplicationId(); + if (!appId.isEmpty()) { + Statement deleteEp = delete().from(EP_BY_APP_ID_COLUMN_FAMILY_NAME).where(eq(EP_BY_APP_ID_APPLICATION_ID_PROPERTY, appId)) + .and(eq(EP_BY_APP_ID_ENDPOINT_KEY_HASH_PROPERTY, getByteBuffer(endpointKeyHash))); + executeBatch(deleteEp); + } getMapper().delete(getByteBuffer(endpointKeyHash)); - } + } @Override public void removeByAppId(String appId) { LOG.debug("Remove endpoint profile by application id [{}]", appId); Statement deleteEps = delete().from(getColumnFamilyName()).where(in(EP_EP_KEY_HASH_PROPERTY, cassandraEPByAppIdDao.getEPIdsListByAppId(appId))); + ByteBuffer[] epKeyHashList = cassandraEPByAppIdDao.getEPIdsListByAppId(appId); + if (epKeyHashList != null) { + for (ByteBuffer epKeyHash : epKeyHashList) { + removeByKeyHashFromEpByEndpointGroupId(getBytes(epKeyHash)); + } + } Statement deleteEpsByAppId = delete().from(EP_BY_APP_ID_COLUMN_FAMILY_NAME).where(eq(EP_BY_APP_ID_APPLICATION_ID_PROPERTY, appId)); executeBatch(deleteEps, deleteEpsByAppId); LOG.trace("Execute statements {}, {} like batch", deleteEps, deleteEpsByAppId); @@ -149,6 +263,106 @@ public CassandraEndpointProfile findByAccessToken(String endpointAccessToken) { return endpointProfile; } + private List findEndpointProfilesList(ByteBuffer[] keyHashList, String endpointGroupId) { + List cassandraEndpointProfileList = new ArrayList<>(); + LOG.debug("Found {} endpoint profiles by group id {}", keyHashList != null ? keyHashList.length : 0, endpointGroupId); + for (ByteBuffer keyHash : keyHashList) { + CassandraEndpointProfile profile = findByKeyHash(getBytes(keyHash)); + if (profile != null) { + cassandraEndpointProfileList.add(getDto(profile)); + } else { + LOG.debug("Can't find endpoint profile by id {}", keyHash); + } + } + return cassandraEndpointProfileList; + } + + private List findEndpointProfilesBodyList(ByteBuffer[] keyHashList, String endpointGroupId) { + List endpointProfilesBodyDto = new ArrayList<>(); + LOG.debug("Found {} endpoint profiles body by group id {}", keyHashList != null ? keyHashList.length : 0, endpointGroupId); + for (ByteBuffer keyHash : keyHashList) { + EndpointProfileBodyDto endpointProfileBodyDto = findBodyByKeyHash(getBytes(keyHash)); + if (endpointProfileBodyDto != null) { + endpointProfilesBodyDto.add(endpointProfileBodyDto); + } else { + LOG.debug("Can't find endpoint profile by id {}", keyHash); + } + } + return endpointProfilesBodyDto; + } + + private EndpointProfilesPageDto createNextPage(List cassandraEndpointProfileList, String endpointGroupId, String limit) { + EndpointProfilesPageDto endpointProfilesPageDto = new EndpointProfilesPageDto(); + PageLinkDto pageLinkDto = new PageLinkDto(); + String next; + int lim = Integer.valueOf(limit); + if (cassandraEndpointProfileList.size() == (lim + 1)) { + pageLinkDto.setEndpointGroupId(endpointGroupId); + pageLinkDto.setLimit(limit); + pageLinkDto.setOffset(Base64.encodeBase64String(cassandraEndpointProfileList.get(lim).getEndpointKeyHash())); + cassandraEndpointProfileList.remove(lim); + next = null; + } else { + next = DaoConstants.LAST_PAGE_MESSAGE; + } + pageLinkDto.setNext(next); + endpointProfilesPageDto.setPageLinkDto(pageLinkDto); + endpointProfilesPageDto.setEndpointProfiles(cassandraEndpointProfileList); + return endpointProfilesPageDto; + } + + private EndpointProfilesBodyDto createNextBodyPage(List profilesBodyDto, String endpointGroupId, String limit) { + EndpointProfilesBodyDto endpointProfilesBodyDto = new EndpointProfilesBodyDto(); + PageLinkDto pageLinkDto = new PageLinkDto(); + String next; + int lim = Integer.valueOf(limit); + if (profilesBodyDto.size() == (lim + 1)) { + pageLinkDto.setEndpointGroupId(endpointGroupId); + pageLinkDto.setLimit(limit); + pageLinkDto.setOffset(Base64.encodeBase64String(profilesBodyDto.get(lim).getEndpointKeyHash())); + profilesBodyDto.remove(lim); + next = null; + } else { + next = DaoConstants.LAST_PAGE_MESSAGE; + } + pageLinkDto.setNext(next); + endpointProfilesBodyDto.setPageLinkDto(pageLinkDto); + endpointProfilesBodyDto.setEndpointProfilesBody(profilesBodyDto); + return endpointProfilesBodyDto; + } + + @Override + public EndpointProfilesPageDto findByEndpointGroupId(PageLinkDto pageLink) { + LOG.debug("Try to find endpoint profile by endpoint group id [{}]", pageLink.getEndpointGroupId()); + EndpointProfilesPageDto endpointProfilesPageDto; + List cassandraEndpointProfileList; + ByteBuffer[] keyHashList; + if (pageLink.getApplicationId() != null) { + keyHashList = cassandraEPByAppIdDao.findEPByAppId(pageLink, pageLink.getApplicationId()); + } else { + keyHashList = cassandraEPByEndpointGroupIdDao.findEPByEndpointGroupId(pageLink); + } + cassandraEndpointProfileList = findEndpointProfilesList(keyHashList, pageLink.getEndpointGroupId()); + endpointProfilesPageDto = createNextPage(cassandraEndpointProfileList, pageLink.getEndpointGroupId(), pageLink.getLimit()); + return endpointProfilesPageDto; + } + + @Override + public EndpointProfilesBodyDto findBodyByEndpointGroupId(PageLinkDto pageLink) { + LOG.debug("Try to find endpoint profile body by endpoint group id [{}]", pageLink.getEndpointGroupId()); + EndpointProfilesBodyDto endpointProfilesBodyDto; + List profilesBodyDto; + ByteBuffer[] keyHashList; + if (pageLink.getApplicationId() != null) { + keyHashList = cassandraEPByAppIdDao.findEPByAppId(pageLink, pageLink.getApplicationId()); + } else { + keyHashList = cassandraEPByEndpointGroupIdDao.findEPByEndpointGroupId(pageLink); + } + profilesBodyDto = findEndpointProfilesBodyList(keyHashList, pageLink.getEndpointGroupId()); + endpointProfilesBodyDto = createNextBodyPage(profilesBodyDto, pageLink.getEndpointGroupId(), pageLink.getLimit()); + return endpointProfilesBodyDto; + } + @Override public List findByEndpointUserId(String endpointUserId) { LOG.debug("Try to find endpoint profiles by endpoint user id [{}]", endpointUserId); @@ -202,4 +416,23 @@ public EndpointUserCassandraDao getEndpointUserDao() { public void setEndpointUserDao(EndpointUserCassandraDao endpointUserDao) { this.endpointUserDao = endpointUserDao; } + + private Set getEndpointProfilesGroupIdSet(CassandraEndpointProfile profile) { + Set groupIdSet = new HashSet<>(); + List groupStateSet = new LinkedList<>(); + if (profile != null) { + List cfGroupState = profile.getCfGroupState(); + if (cfGroupState != null && !cfGroupState.isEmpty()) { + groupStateSet.addAll(cfGroupState); + } + List nfGroupState = profile.getNfGroupState(); + if (nfGroupState != null && !nfGroupState.isEmpty()) { + groupStateSet.addAll(nfGroupState); + } + for (CassandraEndpointGroupState cf : groupStateSet) { + groupIdSet.add(cf.getEndpointGroupId()); + } + } + return groupIdSet; + } } diff --git a/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/filter/CassandraEPByAppIdDao.java b/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/filter/CassandraEPByAppIdDao.java index f6611a48ac..f7df45e11b 100644 --- a/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/filter/CassandraEPByAppIdDao.java +++ b/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/filter/CassandraEPByAppIdDao.java @@ -16,19 +16,28 @@ package org.kaaproject.kaa.server.common.nosql.cassandra.dao.filter; +import org.apache.commons.codec.binary.Base64; +import org.kaaproject.kaa.common.dto.PageLinkDto; import org.kaaproject.kaa.server.common.nosql.cassandra.dao.AbstractCassandraDao; import org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraEPByAppId; import org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants; + +import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.CassandraDaoUtil.getByteBuffer; + import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Repository; +import com.datastax.driver.core.Statement; + import java.nio.ByteBuffer; import java.util.List; import static com.datastax.driver.core.querybuilder.QueryBuilder.eq; +import static com.datastax.driver.core.querybuilder.QueryBuilder.gte; import static com.datastax.driver.core.querybuilder.QueryBuilder.select; import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants.EP_BY_APP_ID_APPLICATION_ID_PROPERTY; +import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants.EP_BY_APP_ID_ENDPOINT_KEY_HASH_PROPERTY; @Repository public class CassandraEPByAppIdDao extends AbstractCassandraDao { @@ -55,4 +64,34 @@ public ByteBuffer[] getEPIdsListByAppId(String appId) { } return result; } + + private ByteBuffer[] getEndpointKeyHash(List filter) { + ByteBuffer[] endpointKeyHash = new ByteBuffer[filter.size()]; + int i = 0; + for (CassandraEPByAppId ep : filter) { + endpointKeyHash[i++] = ep.getEndpointKeyHash(); + } + return endpointKeyHash; + } + + public ByteBuffer[] findEPByAppId(PageLinkDto pageLink, String appId) { + String limit = pageLink.getLimit(); + ByteBuffer endpointKey = getByteBuffer(Base64.decodeBase64(pageLink.getOffset())); + Statement queryStatement; + if ("0".equals(pageLink.getOffset())) { + queryStatement = select().from(getColumnFamilyName()) + .where(eq(EP_BY_APP_ID_APPLICATION_ID_PROPERTY, appId)) + .limit(Integer.valueOf(limit) + 1); + LOG.debug("Try to find first page of endpoint key hash by application id {} with limit {}", appId, limit); + } else { + queryStatement = select().from(getColumnFamilyName()) + .where(eq(EP_BY_APP_ID_APPLICATION_ID_PROPERTY, appId)) + .and(gte(EP_BY_APP_ID_ENDPOINT_KEY_HASH_PROPERTY, endpointKey)) + .limit(Integer.valueOf(limit) + 1); + LOG.debug("Try to find endpoint key hash list by endpoint group id {} with limit {} start from keyHash {}", + appId, limit, endpointKey); + } + List filter = findListByStatement(queryStatement); + return getEndpointKeyHash(filter); + } } diff --git a/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/filter/CassandraEPByEndpointGroupIdDao.java b/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/filter/CassandraEPByEndpointGroupIdDao.java new file mode 100644 index 0000000000..2d74a3185b --- /dev/null +++ b/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/filter/CassandraEPByEndpointGroupIdDao.java @@ -0,0 +1,69 @@ +package org.kaaproject.kaa.server.common.nosql.cassandra.dao.filter; + +import static com.datastax.driver.core.querybuilder.QueryBuilder.eq; +import static com.datastax.driver.core.querybuilder.QueryBuilder.gte; +import static com.datastax.driver.core.querybuilder.QueryBuilder.select; +import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants.EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_GROUP_ID_PROPERTY; +import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants.EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_KEY_HASH_PROPERTY; +import static org.kaaproject.kaa.server.common.nosql.cassandra.dao.CassandraDaoUtil.getByteBuffer; + +import java.nio.ByteBuffer; +import java.util.List; + +import org.apache.commons.codec.binary.Base64; +import org.kaaproject.kaa.common.dto.PageLinkDto; +import org.kaaproject.kaa.server.common.nosql.cassandra.dao.AbstractCassandraDao; +import org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraEPByEndpointGroupId; +import org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraModelConstants; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Repository; + +import com.datastax.driver.core.Statement; + +@Repository +public class CassandraEPByEndpointGroupIdDao extends AbstractCassandraDao { + + private static final Logger LOG = LoggerFactory.getLogger(CassandraEPByEndpointGroupIdDao.class); + + @Override + protected Class getColumnFamilyClass() { + return CassandraEPByEndpointGroupId.class; + } + + @Override + protected String getColumnFamilyName() { + return CassandraModelConstants.EP_BY_ENDPOINT_GROUP_ID_COLUMN_FAMILY_NAME; + } + + private ByteBuffer[] getEndpointKeyHash(List filter) { + ByteBuffer[] endpointKeyHash = new ByteBuffer[filter.size()]; + int i = 0; + for (CassandraEPByEndpointGroupId ep : filter) { + endpointKeyHash[i++] = ep.getEndpointKeyHash(); + } + return endpointKeyHash; + } + + public ByteBuffer[] findEPByEndpointGroupId(PageLinkDto pageLink) { + String endpointGroupId = pageLink.getEndpointGroupId(); + String limit = pageLink.getLimit(); + ByteBuffer endpointKey = getByteBuffer(Base64.decodeBase64(pageLink.getOffset())); + Statement queryStatement; + if ("0".equals(pageLink.getOffset())) { + queryStatement = select().from(getColumnFamilyName()) + .where(eq(EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_GROUP_ID_PROPERTY, endpointGroupId)) + .limit(Integer.valueOf(limit) + 1); + LOG.debug("Try to find first page of endpoint key hash by group id {} with limit {}", endpointGroupId, limit); + } else { + queryStatement = select().from(getColumnFamilyName()) + .where(eq(EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_GROUP_ID_PROPERTY, endpointGroupId)) + .and(gte(EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_KEY_HASH_PROPERTY, endpointKey)) + .limit(Integer.valueOf(limit) + 1); + LOG.debug("Try to find endpoint key hash list by endpoint group id {} with limit {} start from keyHash {}", + endpointGroupId, limit, endpointKey); + } + List filter = findListByStatement(queryStatement); + return getEndpointKeyHash(filter); + } +} diff --git a/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/model/CassandraEPByEndpointGroupId.java b/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/model/CassandraEPByEndpointGroupId.java new file mode 100644 index 0000000000..00d5a42e27 --- /dev/null +++ b/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/model/CassandraEPByEndpointGroupId.java @@ -0,0 +1,103 @@ +/* + * Copyright 2014 CyberVision, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.kaaproject.kaa.server.common.nosql.cassandra.dao.model; + +import com.datastax.driver.mapping.annotations.ClusteringColumn; +import com.datastax.driver.mapping.annotations.Column; +import com.datastax.driver.mapping.annotations.PartitionKey; +import com.datastax.driver.mapping.annotations.Table; +import com.datastax.driver.mapping.annotations.Transient; + +import java.io.Serializable; +import java.nio.ByteBuffer; + +@Table(name = CassandraModelConstants.EP_BY_ENDPOINT_GROUP_ID_COLUMN_FAMILY_NAME) +public class CassandraEPByEndpointGroupId implements Serializable { + + @Transient + private static final long serialVersionUID = 4892433114353644609L; + + @PartitionKey + @Column(name = CassandraModelConstants.EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_GROUP_ID_PROPERTY) + private String epGroupId; + @ClusteringColumn + @Column(name = CassandraModelConstants.EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_KEY_HASH_PROPERTY) + private ByteBuffer endpointKeyHash; + + public CassandraEPByEndpointGroupId() { + } + + public CassandraEPByEndpointGroupId(String epGroupId, ByteBuffer endpointKeyHash) { + this.epGroupId = epGroupId; + this.endpointKeyHash = endpointKeyHash; + } + + public String getEpGroupId() { + return epGroupId; + } + + public void setEpGroupId(String epGroupId) { + this.epGroupId = epGroupId; + } + + public ByteBuffer getEndpointKeyHash() { + return endpointKeyHash; + } + + public void setEndpointKeyHash(ByteBuffer endpointKeyHash) { + this.endpointKeyHash = endpointKeyHash; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((endpointKeyHash == null) ? 0 : endpointKeyHash.hashCode()); + result = prime * result + ((epGroupId == null) ? 0 : epGroupId.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + CassandraEPByEndpointGroupId other = (CassandraEPByEndpointGroupId) obj; + if (endpointKeyHash == null) { + if (other.endpointKeyHash != null) + return false; + } else if (!endpointKeyHash.equals(other.endpointKeyHash)) + return false; + if (epGroupId == null) { + if (other.epGroupId != null) + return false; + } else if (!epGroupId.equals(other.epGroupId)) + return false; + return true; + } + + @Override + public String toString() { + return "CassandraEPByAccessToken{" + + "epGroupId='" + epGroupId + '\'' + + ", endpointKeyHash=" + endpointKeyHash + + '}'; + } +} diff --git a/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/model/CassandraModelConstants.java b/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/model/CassandraModelConstants.java index 721253d8e2..7bac9f44c6 100644 --- a/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/model/CassandraModelConstants.java +++ b/server/common/nosql/cassandra-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/model/CassandraModelConstants.java @@ -132,6 +132,13 @@ public class CassandraModelConstants { public static final String EP_BY_APP_ID_APPLICATION_ID_PROPERTY = APPLICATION_ID_PROPERTY; public static final String EP_BY_APP_ID_ENDPOINT_KEY_HASH_PROPERTY = ENDPOINT_KEY_HASH_PROPERTY; + /** + * CassandraEPByEndpointGroupId constants + */ + public static final String EP_BY_ENDPOINT_GROUP_ID_COLUMN_FAMILY_NAME = "endpoint_group_id_eps"; + public static final String EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_GROUP_ID_PROPERTY = "ep_group_id"; + public static final String EP_BY_ENDPOINT_GROUP_ID_ENDPOINT_KEY_HASH_PROPERTY = ENDPOINT_KEY_HASH_PROPERTY; + /** * CassandraTopicLastSecNum constants */ @@ -169,12 +176,4 @@ public class CassandraModelConstants { public static final String EVENT_CLASS_FAMILY_VERSION_STATE_USER_TYPE_NAME = "ecf_ver_state"; public static final String EVENT_CLASS_FAMILY_VERSION_STATE_ECF_ID_PROPERTY = "ecf_id"; public static final String EVENT_CLASS_FAMILY_VERSION_STATE_ECF_VERSION_PROPERTY = "ecf_ver"; - - /** - * Cassandra EventClassFamilyVersionStateUserType constants. - */ - public static final String NF_SCHEMA_VER_USER_TYPE_NAME = "nf_schema_ver"; - public static final String NF_SCHEMA_VER_NF_TYPE_PROPERTY = "nf_type"; - public static final String NF_SCHEMA_VER_VERSION_PROPERTY = "version"; - public static final String NF_SCHEMA_VER_BATCH_NUMBER_PROPERTY = "batch_num"; } diff --git a/server/common/nosql/cassandra-dao/src/main/resources/cassandra.cql b/server/common/nosql/cassandra-dao/src/main/resources/cassandra.cql index 395466f7b1..83d7bf2fb4 100644 --- a/server/common/nosql/cassandra-dao/src/main/resources/cassandra.cql +++ b/server/common/nosql/cassandra-dao/src/main/resources/cassandra.cql @@ -96,6 +96,12 @@ CREATE TABLE IF NOT EXISTS kaa.access_token_eps ( ep_key_hash blob, ); +CREATE TABLE IF NOT EXISTS kaa.endpoint_group_id_eps ( + ep_group_id text , + ep_key_hash blob, + PRIMARY KEY (ep_group_id, ep_key_hash) +); + CREATE TABLE IF NOT EXISTS kaa.user_conf ( user_id text, app_token text, diff --git a/server/common/nosql/cassandra-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/AbstractCassandraTest.java b/server/common/nosql/cassandra-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/AbstractCassandraTest.java index b15bff20e1..fe470c3e30 100644 --- a/server/common/nosql/cassandra-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/AbstractCassandraTest.java +++ b/server/common/nosql/cassandra-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/AbstractCassandraTest.java @@ -18,6 +18,7 @@ import org.cassandraunit.dataset.cql.ClassPathCQLDataSet; import org.junit.ClassRule; +import org.kaaproject.kaa.common.dto.EndpointGroupStateDto; import org.kaaproject.kaa.common.dto.EndpointProfileDto; import org.kaaproject.kaa.common.dto.EndpointUserDto; import org.kaaproject.kaa.common.dto.NotificationDto; @@ -44,6 +45,7 @@ public class AbstractCassandraTest { private static final Random RANDOM = new Random(); + private static final String TEST_ENDPOINT_GROUP_ID = "124"; @ClassRule public static CustomCassandraCQLUnit cassandraUnit = new CustomCassandraCQLUnit(new ClassPathCQLDataSet("cassandra.cql", "kaa")); @@ -99,7 +101,7 @@ protected List generateNotifications(String topicId, String app } protected List generateConfiguration(int count) { - List configurations = new ArrayList(); + List configurations = new ArrayList<>(); for (int i = 0; i < count; i++) { CassandraEndpointConfiguration configuration = new CassandraEndpointConfiguration(); configuration.setConfiguration(ByteBuffer.wrap(generateBytes())); @@ -128,6 +130,37 @@ protected EndpointProfileDto generateEndpointProfile(String appId, String access return endpointProfileDao.save(new CassandraEndpointProfile(profileDto)).toDto(); } + protected EndpointProfileDto generateEndpointProfileForTestUpdate(String id, List cfGroupState) { + EndpointProfileDto profileDto = new EndpointProfileDto(); + profileDto.setId(id); + profileDto.setApplicationId(generateStringId()); + profileDto.setEndpointKeyHash("TEST_KEY_HASH".getBytes()); + profileDto.setAccessToken(generateStringId()); + profileDto.setCfGroupStates(cfGroupState); + return profileDto; + } + + protected EndpointProfileDto generateEndpointProfileWithEndpointGroupId(String appId, boolean nfGroupStateOnly) { + byte[] keyHash = generateBytes(); + if (appId == null) { + appId = generateStringId(); + } + EndpointProfileDto profileDto = new EndpointProfileDto(); + profileDto.setApplicationId(appId); + profileDto.setEndpointKeyHash(keyHash); + profileDto.setAccessToken(generateStringId()); + profileDto.setProfile("test Profile"); + List groupState = new ArrayList<>(); + groupState.add(new EndpointGroupStateDto(TEST_ENDPOINT_GROUP_ID, null, null)); + if (nfGroupStateOnly) { + profileDto.setNfGroupStates(groupState); + profileDto.setCfGroupStates(null); + } else { + profileDto.setCfGroupStates(groupState); + } + return endpointProfileDao.save(new CassandraEndpointProfile(profileDto)).toDto(); + } + protected EndpointUserDto generateEndpointUser() { return generateEndpointUser(null); } diff --git a/server/common/nosql/cassandra-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/EndpointProfileCassandraDaoTest.java b/server/common/nosql/cassandra-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/EndpointProfileCassandraDaoTest.java index 7384b3e931..e1461b900c 100644 --- a/server/common/nosql/cassandra-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/EndpointProfileCassandraDaoTest.java +++ b/server/common/nosql/cassandra-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/cassandra/dao/EndpointProfileCassandraDaoTest.java @@ -19,14 +19,21 @@ import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; +import org.kaaproject.kaa.common.dto.EndpointGroupDto; +import org.kaaproject.kaa.common.dto.EndpointGroupStateDto; +import org.kaaproject.kaa.common.dto.EndpointProfileBodyDto; import org.kaaproject.kaa.common.dto.EndpointProfileDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesPageDto; import org.kaaproject.kaa.common.dto.EndpointUserDto; +import org.kaaproject.kaa.common.dto.PageLinkDto; import org.kaaproject.kaa.server.common.nosql.cassandra.dao.model.CassandraEndpointProfile; import org.kaaproject.kaa.server.common.dao.model.EndpointProfile; import org.springframework.test.annotation.DirtiesContext; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import java.util.ArrayList; import java.nio.ByteBuffer; import java.util.Arrays; import java.util.List; @@ -36,6 +43,124 @@ @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_CLASS) public class EndpointProfileCassandraDaoTest extends AbstractCassandraTest { + private static final String TEST_APPID = "1"; + private static final String TEST_LIMIT = "3"; + private static final String TEST_OFFSET = "0"; + private static final int GENERATED_PROFILES_COUNT = 5; + + @Test + public void testFindByEndpointGroupId() throws Exception { + List endpointProfileList = new ArrayList<>(); + for (int i = 0; i < GENERATED_PROFILES_COUNT; i++) { + endpointProfileList.add(generateEndpointProfileWithEndpointGroupId(TEST_APPID, false)); + } + String id = endpointProfileList.get(0).getCfGroupStates().get(0).getEndpointGroupId(); + int lim = Integer.valueOf(TEST_LIMIT); + PageLinkDto pageLink = new PageLinkDto(id, TEST_LIMIT, TEST_OFFSET); + EndpointProfilesPageDto found = endpointProfileDao.findByEndpointGroupId(pageLink); + Assert.assertFalse(found.getEndpointProfiles().isEmpty()); + Assert.assertEquals(lim, found.getEndpointProfiles().size()); + pageLink.setApplicationId(TEST_APPID); + EndpointProfilesPageDto foundbyAppId = endpointProfileDao.findByEndpointGroupId(pageLink); + Assert.assertFalse(foundbyAppId.getEndpointProfiles().isEmpty()); + Assert.assertEquals(lim, foundbyAppId.getEndpointProfiles().size()); + } + + @Test + public void testFindByEndpointGroupIdWithNfGroupState() throws Exception { + List endpointProfileList = new ArrayList<>(); + for (int i = 0; i < GENERATED_PROFILES_COUNT; i++) { + endpointProfileList.add(generateEndpointProfileWithEndpointGroupId(TEST_APPID, true)); + } + String id = endpointProfileList.get(0).getNfGroupStates().get(0).getEndpointGroupId(); + int lim = Integer.valueOf(TEST_LIMIT); + PageLinkDto pageLink = new PageLinkDto(id, TEST_LIMIT, TEST_OFFSET); + EndpointProfilesPageDto found = endpointProfileDao.findByEndpointGroupId(pageLink); + Assert.assertFalse(found.getEndpointProfiles().isEmpty()); + Assert.assertEquals(lim, found.getEndpointProfiles().size()); + pageLink.setApplicationId(TEST_APPID); + EndpointProfilesPageDto foundbyAppId = endpointProfileDao.findByEndpointGroupId(pageLink); + Assert.assertFalse(foundbyAppId.getEndpointProfiles().isEmpty()); + Assert.assertEquals(lim, foundbyAppId.getEndpointProfiles().size()); + } + + @Test + public void testFindBodyByEndpointGroupId() throws Exception { + List endpointProfileList = new ArrayList<>(); + for (int i = 0; i < GENERATED_PROFILES_COUNT; i++) { + endpointProfileList.add(generateEndpointProfileWithEndpointGroupId(TEST_APPID, false)); + } + String id = endpointProfileList.get(0).getCfGroupStates().get(0).getEndpointGroupId(); + int lim = Integer.valueOf(TEST_LIMIT); + PageLinkDto pageLink = new PageLinkDto(id, TEST_LIMIT, TEST_OFFSET); + EndpointProfilesBodyDto found = endpointProfileDao.findBodyByEndpointGroupId(pageLink); + Assert.assertFalse(found.getEndpointProfilesBody().isEmpty()); + Assert.assertEquals(lim, found.getEndpointProfilesBody().size()); + pageLink.setApplicationId(TEST_APPID); + EndpointProfilesBodyDto foundbyAppId = endpointProfileDao.findBodyByEndpointGroupId(pageLink); + Assert.assertFalse(foundbyAppId.getEndpointProfilesBody().isEmpty()); + Assert.assertEquals(lim, foundbyAppId.getEndpointProfilesBody().size()); + } + + @Test + public void testFindBodyByEndpointGroupIdWithNfGroupState() throws Exception { + List endpointProfileList = new ArrayList<>(); + for (int i = 0; i < GENERATED_PROFILES_COUNT; i++) { + endpointProfileList.add(generateEndpointProfileWithEndpointGroupId(TEST_APPID, true)); + } + String id = endpointProfileList.get(0).getNfGroupStates().get(0).getEndpointGroupId(); + int lim = Integer.valueOf(TEST_LIMIT); + PageLinkDto pageLink = new PageLinkDto(id, TEST_LIMIT, TEST_OFFSET); + EndpointProfilesBodyDto found = endpointProfileDao.findBodyByEndpointGroupId(pageLink); + Assert.assertFalse(found.getEndpointProfilesBody().isEmpty()); + Assert.assertEquals(lim, found.getEndpointProfilesBody().size()); + pageLink.setApplicationId(TEST_APPID); + EndpointProfilesBodyDto foundbyAppId = endpointProfileDao.findBodyByEndpointGroupId(pageLink); + Assert.assertFalse(foundbyAppId.getEndpointProfilesBody().isEmpty()); + Assert.assertEquals(lim, foundbyAppId.getEndpointProfilesBody().size()); + } + + @Test + public void testFindBodyByKeyHash() throws Exception { + EndpointProfileDto expected = generateEndpointProfileWithEndpointGroupId(null,false); + EndpointProfileBodyDto found = endpointProfileDao.findBodyByKeyHash(expected.getEndpointKeyHash()); + Assert.assertFalse(found.getProfile().isEmpty()); + Assert.assertEquals(expected.getProfile(), found.getProfile()); + } + + @Test + public void testUpdate() throws Exception { + List cfGroupStateSave = new ArrayList(); + List cfGroupStateUpdate = new ArrayList(); + PageLinkDto pageLink; + EndpointProfilesPageDto found; + String endpointProfileId = "11"; + EndpointGroupDto endpointGroupDto = new EndpointGroupDto(); + endpointGroupDto.setWeight(1); + cfGroupStateSave.add(new EndpointGroupStateDto("111", null, null)); + cfGroupStateSave.add(new EndpointGroupStateDto("222", null, null)); + cfGroupStateSave.add(new EndpointGroupStateDto("333", null, null)); + EndpointProfileDto endpointProfileSave = generateEndpointProfileForTestUpdate(null, cfGroupStateSave); + endpointProfileDao.save(endpointProfileSave); + cfGroupStateUpdate.add(new EndpointGroupStateDto("111", null, null)); + cfGroupStateUpdate.add(new EndpointGroupStateDto("444", null, null)); + EndpointProfileDto endpointProfileUpdate = generateEndpointProfileForTestUpdate(endpointProfileId, cfGroupStateUpdate); + endpointProfileDao.save(endpointProfileUpdate); + String limit = "10"; + String offset = "0"; + String[] endpointGroupId = {"111", "444", "222", "333"}; + for (int i = 0; i < 2; i++) { + pageLink = new PageLinkDto(endpointGroupId[i], limit, offset); + found = endpointProfileDao.findByEndpointGroupId(pageLink); + Assert.assertFalse(found.getEndpointProfiles().isEmpty()); + } + for (int i = 2; i < 4; i++) { + pageLink = new PageLinkDto(endpointGroupId[i], limit, offset); + found = endpointProfileDao.findByEndpointGroupId(pageLink); + Assert.assertTrue(found.getEndpointProfiles().isEmpty()); + } + } + @Test public void testSave() throws Exception { EndpointProfileDto endpointProfile = generateEndpointProfile(null, null, null); diff --git a/server/common/nosql/mongo-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/mongo/dao/EndpointProfileMongoDao.java b/server/common/nosql/mongo-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/mongo/dao/EndpointProfileMongoDao.java index e3196c5c96..acf38be7e3 100644 --- a/server/common/nosql/mongo-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/mongo/dao/EndpointProfileMongoDao.java +++ b/server/common/nosql/mongo-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/mongo/dao/EndpointProfileMongoDao.java @@ -16,16 +16,26 @@ package org.kaaproject.kaa.server.common.nosql.mongo.dao; - import com.mongodb.DBObject; + +import static org.kaaproject.kaa.server.common.dao.impl.DaoUtil.convertDtoList; + +import org.kaaproject.kaa.common.dto.EndpointProfileBodyDto; import org.kaaproject.kaa.common.dto.EndpointProfileDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesPageDto; +import org.kaaproject.kaa.common.dto.PageLinkDto; +import org.kaaproject.kaa.server.common.dao.DaoConstants; import org.kaaproject.kaa.server.common.dao.impl.EndpointProfileDao; import org.kaaproject.kaa.server.common.nosql.mongo.dao.model.MongoEndpointProfile; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.data.mongodb.core.query.Criteria; +import org.springframework.data.mongodb.core.query.Query; import org.springframework.stereotype.Repository; import java.nio.ByteBuffer; +import java.util.ArrayList; import java.util.List; import static org.kaaproject.kaa.server.common.nosql.mongo.dao.model.MongoModelConstants.ENDPOINT_PROFILE; @@ -33,6 +43,9 @@ import static org.kaaproject.kaa.server.common.nosql.mongo.dao.model.MongoModelConstants.EP_APPLICATION_ID; import static org.kaaproject.kaa.server.common.nosql.mongo.dao.model.MongoModelConstants.EP_ENDPOINT_KEY_HASH; import static org.kaaproject.kaa.server.common.nosql.mongo.dao.model.MongoModelConstants.EP_USER_ID; +import static org.kaaproject.kaa.server.common.nosql.mongo.dao.model.MongoModelConstants.ENDPOINT_GROUP_ID; +import static org.kaaproject.kaa.server.common.nosql.mongo.dao.model.MongoModelConstants.EP_CF_GROUP_STATE; +import static org.kaaproject.kaa.server.common.nosql.mongo.dao.model.MongoModelConstants.EP_NF_GROUP_STATE; import static org.springframework.data.mongodb.core.query.Criteria.where; import static org.springframework.data.mongodb.core.query.Query.query; @@ -51,6 +64,64 @@ protected Class getDocumentClass() { return MongoEndpointProfile.class; } + @Override + public EndpointProfilesPageDto findByEndpointGroupId(PageLinkDto pageLink) { + LOG.debug("Find endpoint profiles by endpoint group id [{}] ", pageLink.getEndpointGroupId()); + EndpointProfilesPageDto endpointProfilesPageDto = new EndpointProfilesPageDto(); + String next = null; + int lim = Integer.valueOf(pageLink.getLimit()); + List mongoEndpointProfileList = find(query(new Criteria().orOperator(where(EP_CF_GROUP_STATE + "." + ENDPOINT_GROUP_ID) + .is(pageLink.getEndpointGroupId()), where(EP_NF_GROUP_STATE + "." + ENDPOINT_GROUP_ID).is(pageLink.getEndpointGroupId()))) + .skip(Integer.parseInt(pageLink.getOffset())) + .limit(Integer.parseInt(pageLink.getLimit()) + 1)); + if (mongoEndpointProfileList.size() == (lim + 1)) { + String offset = Integer.toString(lim + Integer.valueOf(pageLink.getOffset())); + pageLink.setOffset(offset); + mongoEndpointProfileList.remove(lim); + } else { + next = DaoConstants.LAST_PAGE_MESSAGE; + } + pageLink.setNext(next); + endpointProfilesPageDto.setPageLinkDto(pageLink); + endpointProfilesPageDto.setEndpointProfiles(convertDtoList(mongoEndpointProfileList)); + return endpointProfilesPageDto; + } + + @Override + public EndpointProfilesBodyDto findBodyByEndpointGroupId(PageLinkDto pageLink) { + LOG.debug("Find endpoint profiles body by endpoint group id [{}] ", pageLink.getEndpointGroupId()); + EndpointProfilesBodyDto endpointProfilesBodyDto = new EndpointProfilesBodyDto(); + List profilesBody = new ArrayList<>(); + String profile = "profile"; + String next = null; + int lim = Integer.valueOf(pageLink.getLimit()); + Query query = Query.query(new Criteria().orOperator(where(EP_CF_GROUP_STATE + "." + ENDPOINT_GROUP_ID).is(pageLink.getEndpointGroupId()), + where(EP_NF_GROUP_STATE + "." + ENDPOINT_GROUP_ID).is(pageLink.getEndpointGroupId()))); + query.skip(Integer.parseInt(pageLink.getOffset())).limit(Integer.parseInt(pageLink.getLimit()) + 1); + query.fields().include(profile); + query.fields().include(EP_ENDPOINT_KEY_HASH); + List mongoEndpointProfileList = mongoTemplate.find(query, getDocumentClass()); + if (mongoEndpointProfileList.size() == (lim + 1)) { + String offset = Integer.toString(lim + Integer.valueOf(pageLink.getOffset())); + pageLink.setOffset(offset); + mongoEndpointProfileList.remove(lim); + } else { + next = DaoConstants.LAST_PAGE_MESSAGE; + } + for (MongoEndpointProfile epList : mongoEndpointProfileList) { + EndpointProfileBodyDto endpointProfileBodyDto = new EndpointProfileBodyDto(); + endpointProfileBodyDto.setEndpointKeyHash(epList.getEndpointKeyHash()); + if (epList.getProfile() != null) { + endpointProfileBodyDto.setProfile(epList.getProfile().toString()); + } + profilesBody.add(endpointProfileBodyDto); + } + pageLink.setNext(next); + endpointProfilesBodyDto.setPageLinkDto(pageLink); + endpointProfilesBodyDto.setEndpointProfilesBody(profilesBody); + return endpointProfilesBodyDto; + } + @Override public MongoEndpointProfile findByKeyHash(byte[] endpointKeyHash) { LOG.debug("Find endpoint profile by endpoint key hash [{}] ", endpointKeyHash); @@ -59,6 +130,21 @@ public MongoEndpointProfile findByKeyHash(byte[] endpointKeyHash) { return mongoTemplate.getConverter().read(getDocumentClass(), result); } + @Override + public EndpointProfileBodyDto findBodyByKeyHash(byte[] endpointKeyHash) { + LOG.debug("Find endpoint profile body by endpoint key hash [{}] ", endpointKeyHash); + String profile = "profile"; + EndpointProfileBodyDto endpointProfileBodyDto = new EndpointProfileBodyDto(); + endpointProfileBodyDto.setEndpointKeyHash(endpointKeyHash); + Query query = Query.query(where(EP_ENDPOINT_KEY_HASH).is(endpointKeyHash)); + query.fields().include(profile); + DBObject profileObject = mongoTemplate.findOne(query, getDocumentClass()).getProfile(); + if (profileObject != null) { + endpointProfileBodyDto.setProfile(profileObject.toString()); + } + return endpointProfileBodyDto; + } + @Override public long getCountByKeyHash(byte[] endpointKeyHash) { LOG.debug("Get count of endpoint profiles by endpoint key hash [{}] ", endpointKeyHash); diff --git a/server/common/nosql/mongo-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/mongo/dao/AbstractMongoTest.java b/server/common/nosql/mongo-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/mongo/dao/AbstractMongoTest.java index 7e984872ea..bf46fac0b2 100644 --- a/server/common/nosql/mongo-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/mongo/dao/AbstractMongoTest.java +++ b/server/common/nosql/mongo-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/mongo/dao/AbstractMongoTest.java @@ -16,7 +16,6 @@ package org.kaaproject.kaa.server.common.nosql.mongo.dao; import org.kaaproject.kaa.common.dto.EndpointConfigurationDto; -import org.kaaproject.kaa.common.dto.EndpointProfileDto; import org.kaaproject.kaa.server.common.dao.AbstractTest; import org.kaaproject.kaa.server.common.dao.impl.EndpointConfigurationDao; import org.kaaproject.kaa.server.common.dao.impl.EndpointProfileDao; @@ -26,7 +25,6 @@ import org.kaaproject.kaa.server.common.nosql.mongo.dao.model.MongoEndpointUserConfiguration; import org.springframework.beans.factory.annotation.Autowired; -import java.util.List; import java.util.UUID; public class AbstractMongoTest extends AbstractTest { @@ -34,17 +32,9 @@ public class AbstractMongoTest extends AbstractTest { @Autowired protected EndpointConfigurationDao endpointConfigurationDao; @Autowired - protected EndpointProfileDao endpointProfileDao; - @Autowired protected EndpointUserConfigurationDao endpointUserConfigurationDao; - - protected EndpointProfileDto generateEndpointProfile(String appId, List topicIds) { - EndpointProfileDto profileDto = new EndpointProfileDto(); - profileDto.setApplicationId(appId); - profileDto.setSubscriptions(topicIds); - profileDto.setEndpointKeyHash("TEST_KEY_HASH".getBytes()); - return endpointProfileDao.save(new MongoEndpointProfile(profileDto)).toDto(); - } + @Autowired + protected EndpointProfileDao endpointProfileDao; protected EndpointConfigurationDto generateEndpointConfiguration() { EndpointConfigurationDto configurationDto = new EndpointConfigurationDto(); @@ -52,6 +42,4 @@ protected EndpointConfigurationDto generateEndpointConfiguration() { configurationDto.setConfiguration(UUID.randomUUID().toString().getBytes()); return endpointConfigurationDao.save(new MongoEndpointConfiguration(configurationDto)).toDto(); } - - } diff --git a/server/common/nosql/mongo-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/mongo/dao/EndpointProfileMongoDaoTest.java b/server/common/nosql/mongo-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/mongo/dao/EndpointProfileMongoDaoTest.java index e75608458f..6399956607 100644 --- a/server/common/nosql/mongo-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/mongo/dao/EndpointProfileMongoDaoTest.java +++ b/server/common/nosql/mongo-dao/src/test/java/org/kaaproject/kaa/server/common/nosql/mongo/dao/EndpointProfileMongoDaoTest.java @@ -26,7 +26,11 @@ import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; +import org.kaaproject.kaa.common.dto.EndpointProfileBodyDto; import org.kaaproject.kaa.common.dto.EndpointProfileDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesBodyDto; +import org.kaaproject.kaa.common.dto.EndpointProfilesPageDto; +import org.kaaproject.kaa.common.dto.PageLinkDto; import org.kaaproject.kaa.server.common.nosql.mongo.dao.model.MongoEndpointProfile; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -41,6 +45,11 @@ public class EndpointProfileMongoDaoTest extends AbstractMongoTest { private static final Logger LOG = LoggerFactory.getLogger(EndpointProfileMongoDaoTest.class); + private static final String TEST_ENDPOINT_GROUP_ID = "124"; + private static final String TEST_LIMIT = "3"; + private static final String TEST_OFFSET = "0"; + private static final int GENERATED_PROFILES_COUNT = 5; + @BeforeClass public static void init() throws Exception { MongoDBTestRunner.setUp(); @@ -71,6 +80,63 @@ public void testFindByKeyHash() { Assert.assertEquals(endpointProfile, found.toDto()); } + @Test + public void findBodyByKeyHashTest() { + EndpointProfileDto endpointProfile = generateEndpointProfile(null, null); + Assert.assertNotNull(endpointProfile); + EndpointProfileBodyDto found = endpointProfileDao.findBodyByKeyHash(endpointProfile.getEndpointKeyHash()); + Assert.assertNotNull(found); + Assert.assertEquals(endpointProfile.getProfile(), found.getProfile()); + } + + @Test + public void findBodyByEndpointGroupIdTest() { + for (int i = 0; i < GENERATED_PROFILES_COUNT; i++) { + generateEndpointProfileWithGroupId(TEST_ENDPOINT_GROUP_ID, false); + } + int lim = Integer.valueOf(TEST_LIMIT); + PageLinkDto pageLink = new PageLinkDto(TEST_ENDPOINT_GROUP_ID, TEST_LIMIT, TEST_OFFSET); + EndpointProfilesBodyDto found = endpointProfileDao.findBodyByEndpointGroupId(pageLink); + Assert.assertFalse(found.getEndpointProfilesBody().isEmpty()); + Assert.assertEquals(lim, found.getEndpointProfilesBody().size()); + } + + @Test + public void findBodyByEndpointGroupIdWithNfGroupStateTest() { + for (int i = 0; i < GENERATED_PROFILES_COUNT; i++) { + generateEndpointProfileWithGroupId(TEST_ENDPOINT_GROUP_ID, true); + } + int lim = Integer.valueOf(TEST_LIMIT); + PageLinkDto pageLink = new PageLinkDto(TEST_ENDPOINT_GROUP_ID, TEST_LIMIT, TEST_OFFSET); + EndpointProfilesBodyDto found = endpointProfileDao.findBodyByEndpointGroupId(pageLink); + Assert.assertFalse(found.getEndpointProfilesBody().isEmpty()); + Assert.assertEquals(lim, found.getEndpointProfilesBody().size()); + } + + @Test + public void findByEndpointGroupIdTest() { + for (int i = 0; i < GENERATED_PROFILES_COUNT; i++) { + generateEndpointProfileWithGroupId(TEST_ENDPOINT_GROUP_ID, false); + } + int lim = Integer.valueOf(TEST_LIMIT); + PageLinkDto pageLink = new PageLinkDto(TEST_ENDPOINT_GROUP_ID, TEST_LIMIT, TEST_OFFSET); + EndpointProfilesPageDto found = endpointProfileDao.findByEndpointGroupId(pageLink); + Assert.assertFalse(found.getEndpointProfiles().isEmpty()); + Assert.assertEquals(lim, found.getEndpointProfiles().size()); + } + + @Test + public void findByEndpointGroupIdWithNfGroupStateTest() { + for (int i = 0; i < GENERATED_PROFILES_COUNT; i++) { + generateEndpointProfileWithGroupId(TEST_ENDPOINT_GROUP_ID, true); + } + int lim = Integer.valueOf(TEST_LIMIT); + PageLinkDto pageLink = new PageLinkDto(TEST_ENDPOINT_GROUP_ID, TEST_LIMIT, TEST_OFFSET); + EndpointProfilesPageDto found = endpointProfileDao.findByEndpointGroupId(pageLink); + Assert.assertFalse(found.getEndpointProfiles().isEmpty()); + Assert.assertEquals(lim, found.getEndpointProfiles().size()); + } + @Test public void testFindById() { EndpointProfileDto endpointProfile = generateEndpointProfile(null, null); diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/bootstrap/BootstrapThriftService.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/bootstrap/BootstrapThriftService.java index b887bee105..bb00151c7b 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/bootstrap/BootstrapThriftService.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/bootstrap/BootstrapThriftService.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.bootstrap; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class BootstrapThriftService { public interface Iface extends org.kaaproject.kaa.server.common.thrift.gen.cli.CliThriftService.Iface { @@ -458,14 +460,14 @@ public boolean equals(onOperationsServerListUpdate_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_operationsServersList = true && (isSetOperationsServersList()); - builder.append(present_operationsServersList); + list.add(present_operationsServersList); if (present_operationsServersList) - builder.append(operationsServersList); + list.add(operationsServersList); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -561,12 +563,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, onOperationsServerL { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); struct.operationsServersList = new ArrayList(_list0.size); - for (int _i1 = 0; _i1 < _list0.size; ++_i1) + ThriftOperationsServer _elem1; + for (int _i2 = 0; _i2 < _list0.size; ++_i2) { - ThriftOperationsServer _elem2; - _elem2 = new ThriftOperationsServer(); - _elem2.read(iprot); - struct.operationsServersList.add(_elem2); + _elem1 = new ThriftOperationsServer(); + _elem1.read(iprot); + struct.operationsServersList.add(_elem1); } iprot.readListEnd(); } @@ -643,12 +645,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, onOperationsServerLi { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.operationsServersList = new ArrayList(_list5.size); - for (int _i6 = 0; _i6 < _list5.size; ++_i6) + ThriftOperationsServer _elem6; + for (int _i7 = 0; _i7 < _list5.size; ++_i7) { - ThriftOperationsServer _elem7; - _elem7 = new ThriftOperationsServer(); - _elem7.read(iprot); - struct.operationsServersList.add(_elem7); + _elem6 = new ThriftOperationsServer(); + _elem6.read(iprot); + struct.operationsServersList.add(_elem6); } } struct.setOperationsServersListIsSet(true); @@ -788,9 +790,9 @@ public boolean equals(onOperationsServerListUpdate_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/bootstrap/ThriftOperationsServer.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/bootstrap/ThriftOperationsServer.java index d6126519d5..387b3c8994 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/bootstrap/ThriftOperationsServer.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/bootstrap/ThriftOperationsServer.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.bootstrap; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class ThriftOperationsServer implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ThriftOperationsServer"); @@ -289,19 +291,19 @@ public boolean equals(ThriftOperationsServer that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_id = true && (isSetId()); - builder.append(present_id); + list.add(present_id); if (present_id) - builder.append(id); + list.add(id); boolean present_priority = true; - builder.append(present_priority); + list.add(present_priority); if (present_priority) - builder.append(priority); + list.add(priority); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CliThriftException.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CliThriftException.java index f374621791..5e1b07ba0a 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CliThriftException.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CliThriftException.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.cli; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class CliThriftException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CliThriftException"); @@ -289,19 +291,19 @@ public boolean equals(CliThriftException that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_errorCode = true; - builder.append(present_errorCode); + list.add(present_errorCode); if (present_errorCode) - builder.append(errorCode); + list.add(errorCode); boolean present_message = true && (isSetMessage()); - builder.append(present_message); + list.add(present_message); if (present_message) - builder.append(message); + list.add(message); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CliThriftService.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CliThriftService.java index eed74945b0..3983f2312a 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CliThriftService.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CliThriftService.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.cli; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class CliThriftService { public interface Iface { @@ -813,9 +815,9 @@ public boolean equals(serverName_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -1185,19 +1187,19 @@ public boolean equals(serverName_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_cliException = true && (isSetCliException()); - builder.append(present_cliException); + list.add(present_cliException); if (present_cliException) - builder.append(cliException); + list.add(cliException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -1529,9 +1531,9 @@ public boolean equals(shutdown_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -1842,14 +1844,14 @@ public boolean equals(shutdown_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_cliException = true && (isSetCliException()); - builder.append(present_cliException); + list.add(present_cliException); if (present_cliException) - builder.append(cliException); + list.add(cliException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -2207,14 +2209,14 @@ public boolean equals(getMemoryUsage_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_forceGC = true; - builder.append(present_forceGC); + list.add(present_forceGC); if (present_forceGC) - builder.append(forceGC); + list.add(forceGC); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -2623,19 +2625,19 @@ public boolean equals(getMemoryUsage_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_cliException = true && (isSetCliException()); - builder.append(present_cliException); + list.add(present_cliException); if (present_cliException) - builder.append(cliException); + list.add(cliException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -3037,14 +3039,14 @@ public boolean equals(executeCommand_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_commandLine = true && (isSetCommandLine()); - builder.append(present_commandLine); + list.add(present_commandLine); if (present_commandLine) - builder.append(commandLine); + list.add(commandLine); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -3457,19 +3459,19 @@ public boolean equals(executeCommand_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_cliException = true && (isSetCliException()); - builder.append(present_cliException); + list.add(present_cliException); if (present_cliException) - builder.append(cliException); + list.add(cliException); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CommandResult.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CommandResult.java index 51d5be8ba2..fb32cec9ea 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CommandResult.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CommandResult.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.cli; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class CommandResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CommandResult"); @@ -303,19 +305,19 @@ public boolean equals(CommandResult that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_status = true && (isSetStatus()); - builder.append(present_status); + list.add(present_status); if (present_status) - builder.append(status.getValue()); + list.add(status.getValue()); boolean present_message = true && (isSetMessage()); - builder.append(present_message); + list.add(present_message); if (present_message) - builder.append(message); + list.add(message); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -426,7 +428,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CommandResult struc switch (schemeField.id) { case 1: // STATUS if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.status = CommandStatus.findByValue(iprot.readI32()); + struct.status = org.kaaproject.kaa.server.common.thrift.gen.cli.CommandStatus.findByValue(iprot.readI32()); struct.setStatusIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -503,7 +505,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CommandResult struct TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.status = CommandStatus.findByValue(iprot.readI32()); + struct.status = org.kaaproject.kaa.server.common.thrift.gen.cli.CommandStatus.findByValue(iprot.readI32()); struct.setStatusIsSet(true); } if (incoming.get(1)) { diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CommandStatus.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CommandStatus.java index f2e7b4afb6..69f9147f7f 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CommandStatus.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/CommandStatus.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/MemoryUsage.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/MemoryUsage.java index 28001ef443..caebcba33d 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/MemoryUsage.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/cli/MemoryUsage.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.cli; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class MemoryUsage implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MemoryUsage"); @@ -348,24 +350,24 @@ public boolean equals(MemoryUsage that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_max = true; - builder.append(present_max); + list.add(present_max); if (present_max) - builder.append(max); + list.add(max); boolean present_total = true; - builder.append(present_total); + list.add(present_total); if (present_total) - builder.append(total); + list.add(total); boolean present_free = true; - builder.append(present_free); + list.add(present_free); if (present_free) - builder.append(free); + list.add(free); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/ControlThriftException.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/ControlThriftException.java index 1f232d8b96..9529906f84 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/ControlThriftException.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/ControlThriftException.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.control; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class ControlThriftException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ControlThriftException"); @@ -346,24 +348,24 @@ public boolean equals(ControlThriftException that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_message = true && (isSetMessage()); - builder.append(present_message); + list.add(present_message); if (present_message) - builder.append(message); + list.add(message); boolean present_causeExceptionClass = true && (isSetCauseExceptionClass()); - builder.append(present_causeExceptionClass); + list.add(present_causeExceptionClass); if (present_causeExceptionClass) - builder.append(causeExceptionClass); + list.add(causeExceptionClass); boolean present_causeStackStrace = true && (isSetCauseStackStrace()); - builder.append(present_causeStackStrace); + list.add(present_causeStackStrace); if (present_causeStackStrace) - builder.append(causeStackStrace); + list.add(causeStackStrace); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/ControlThriftService.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/ControlThriftService.java index 62787712ca..431b8fdf66 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/ControlThriftService.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/ControlThriftService.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.control; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,13 +29,29 @@ 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.2)", date = "2015-10-16") public class ControlThriftService { public interface Iface extends org.kaaproject.kaa.server.common.thrift.gen.cli.CliThriftService.Iface { + /** + * EndpointProfile + * + * @param endpointProfileKeyHash + */ + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getEndpointProfileByKeyHash(String endpointProfileKeyHash) throws ControlThriftException, org.apache.thrift.TException; + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getEndpointProfileByEndpointGroupId(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink) throws ControlThriftException, org.apache.thrift.TException; + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getEndpointProfileBodyByKeyHash(String endpointProfileKeyHash) throws ControlThriftException, org.apache.thrift.TException; + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getEndpointProfileBodyByEndpointGroupId(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink) throws ControlThriftException, org.apache.thrift.TException; + /** * Tenants */ @@ -330,6 +345,14 @@ public interface Iface extends org.kaaproject.kaa.server.common.thrift.gen.cli.C public interface AsyncIface extends org.kaaproject.kaa.server.common.thrift.gen.cli.CliThriftService .AsyncIface { + public void getEndpointProfileByKeyHash(String endpointProfileKeyHash, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void getEndpointProfileByEndpointGroupId(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void getEndpointProfileBodyByKeyHash(String endpointProfileKeyHash, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void getEndpointProfileBodyByEndpointGroupId(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getTenants(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getTenant(String tenantId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -552,6 +575,110 @@ public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.prot super(iprot, oprot); } + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getEndpointProfileByKeyHash(String endpointProfileKeyHash) throws ControlThriftException, org.apache.thrift.TException + { + send_getEndpointProfileByKeyHash(endpointProfileKeyHash); + return recv_getEndpointProfileByKeyHash(); + } + + public void send_getEndpointProfileByKeyHash(String endpointProfileKeyHash) throws org.apache.thrift.TException + { + getEndpointProfileByKeyHash_args args = new getEndpointProfileByKeyHash_args(); + args.setEndpointProfileKeyHash(endpointProfileKeyHash); + sendBase("getEndpointProfileByKeyHash", args); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct recv_getEndpointProfileByKeyHash() throws ControlThriftException, org.apache.thrift.TException + { + getEndpointProfileByKeyHash_result result = new getEndpointProfileByKeyHash_result(); + receiveBase(result, "getEndpointProfileByKeyHash"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ControlException != null) { + throw result.ControlException; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEndpointProfileByKeyHash failed: unknown result"); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getEndpointProfileByEndpointGroupId(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink) throws ControlThriftException, org.apache.thrift.TException + { + send_getEndpointProfileByEndpointGroupId(pageLink); + return recv_getEndpointProfileByEndpointGroupId(); + } + + public void send_getEndpointProfileByEndpointGroupId(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink) throws org.apache.thrift.TException + { + getEndpointProfileByEndpointGroupId_args args = new getEndpointProfileByEndpointGroupId_args(); + args.setPageLink(pageLink); + sendBase("getEndpointProfileByEndpointGroupId", args); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct recv_getEndpointProfileByEndpointGroupId() throws ControlThriftException, org.apache.thrift.TException + { + getEndpointProfileByEndpointGroupId_result result = new getEndpointProfileByEndpointGroupId_result(); + receiveBase(result, "getEndpointProfileByEndpointGroupId"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ControlException != null) { + throw result.ControlException; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEndpointProfileByEndpointGroupId failed: unknown result"); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getEndpointProfileBodyByKeyHash(String endpointProfileKeyHash) throws ControlThriftException, org.apache.thrift.TException + { + send_getEndpointProfileBodyByKeyHash(endpointProfileKeyHash); + return recv_getEndpointProfileBodyByKeyHash(); + } + + public void send_getEndpointProfileBodyByKeyHash(String endpointProfileKeyHash) throws org.apache.thrift.TException + { + getEndpointProfileBodyByKeyHash_args args = new getEndpointProfileBodyByKeyHash_args(); + args.setEndpointProfileKeyHash(endpointProfileKeyHash); + sendBase("getEndpointProfileBodyByKeyHash", args); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct recv_getEndpointProfileBodyByKeyHash() throws ControlThriftException, org.apache.thrift.TException + { + getEndpointProfileBodyByKeyHash_result result = new getEndpointProfileBodyByKeyHash_result(); + receiveBase(result, "getEndpointProfileBodyByKeyHash"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ControlException != null) { + throw result.ControlException; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEndpointProfileBodyByKeyHash failed: unknown result"); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getEndpointProfileBodyByEndpointGroupId(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink) throws ControlThriftException, org.apache.thrift.TException + { + send_getEndpointProfileBodyByEndpointGroupId(pageLink); + return recv_getEndpointProfileBodyByEndpointGroupId(); + } + + public void send_getEndpointProfileBodyByEndpointGroupId(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink) throws org.apache.thrift.TException + { + getEndpointProfileBodyByEndpointGroupId_args args = new getEndpointProfileBodyByEndpointGroupId_args(); + args.setPageLink(pageLink); + sendBase("getEndpointProfileBodyByEndpointGroupId", args); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct recv_getEndpointProfileBodyByEndpointGroupId() throws ControlThriftException, org.apache.thrift.TException + { + getEndpointProfileBodyByEndpointGroupId_result result = new getEndpointProfileBodyByEndpointGroupId_result(); + receiveBase(result, "getEndpointProfileBodyByEndpointGroupId"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.ControlException != null) { + throw result.ControlException; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEndpointProfileBodyByEndpointGroupId failed: unknown result"); + } + public List getTenants() throws ControlThriftException, org.apache.thrift.TException { send_getTenants(); @@ -3152,6 +3279,134 @@ public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, super(protocolFactory, clientManager, transport); } + public void getEndpointProfileByKeyHash(String endpointProfileKeyHash, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getEndpointProfileByKeyHash_call method_call = new getEndpointProfileByKeyHash_call(endpointProfileKeyHash, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getEndpointProfileByKeyHash_call extends org.apache.thrift.async.TAsyncMethodCall { + private String endpointProfileKeyHash; + public getEndpointProfileByKeyHash_call(String endpointProfileKeyHash, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.endpointProfileKeyHash = endpointProfileKeyHash; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEndpointProfileByKeyHash", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getEndpointProfileByKeyHash_args args = new getEndpointProfileByKeyHash_args(); + args.setEndpointProfileKeyHash(endpointProfileKeyHash); + args.write(prot); + prot.writeMessageEnd(); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getResult() throws ControlThriftException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_getEndpointProfileByKeyHash(); + } + } + + public void getEndpointProfileByEndpointGroupId(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getEndpointProfileByEndpointGroupId_call method_call = new getEndpointProfileByEndpointGroupId_call(pageLink, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getEndpointProfileByEndpointGroupId_call extends org.apache.thrift.async.TAsyncMethodCall { + private org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink; + public getEndpointProfileByEndpointGroupId_call(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.pageLink = pageLink; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEndpointProfileByEndpointGroupId", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getEndpointProfileByEndpointGroupId_args args = new getEndpointProfileByEndpointGroupId_args(); + args.setPageLink(pageLink); + args.write(prot); + prot.writeMessageEnd(); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getResult() throws ControlThriftException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_getEndpointProfileByEndpointGroupId(); + } + } + + public void getEndpointProfileBodyByKeyHash(String endpointProfileKeyHash, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getEndpointProfileBodyByKeyHash_call method_call = new getEndpointProfileBodyByKeyHash_call(endpointProfileKeyHash, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getEndpointProfileBodyByKeyHash_call extends org.apache.thrift.async.TAsyncMethodCall { + private String endpointProfileKeyHash; + public getEndpointProfileBodyByKeyHash_call(String endpointProfileKeyHash, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.endpointProfileKeyHash = endpointProfileKeyHash; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEndpointProfileBodyByKeyHash", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getEndpointProfileBodyByKeyHash_args args = new getEndpointProfileBodyByKeyHash_args(); + args.setEndpointProfileKeyHash(endpointProfileKeyHash); + args.write(prot); + prot.writeMessageEnd(); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getResult() throws ControlThriftException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_getEndpointProfileBodyByKeyHash(); + } + } + + public void getEndpointProfileBodyByEndpointGroupId(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getEndpointProfileBodyByEndpointGroupId_call method_call = new getEndpointProfileBodyByEndpointGroupId_call(pageLink, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getEndpointProfileBodyByEndpointGroupId_call extends org.apache.thrift.async.TAsyncMethodCall { + private org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink; + public getEndpointProfileBodyByEndpointGroupId_call(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.pageLink = pageLink; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEndpointProfileBodyByEndpointGroupId", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getEndpointProfileBodyByEndpointGroupId_args args = new getEndpointProfileBodyByEndpointGroupId_args(); + args.setPageLink(pageLink); + args.write(prot); + prot.writeMessageEnd(); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getResult() throws ControlThriftException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_getEndpointProfileBodyByEndpointGroupId(); + } + } + public void getTenants(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getTenants_call method_call = new getTenants_call(resultHandler, this, ___protocolFactory, ___transport); @@ -6428,6 +6683,10 @@ protected Processor(I iface, Map Map> getProcessMap(Map> processMap) { + processMap.put("getEndpointProfileByKeyHash", new getEndpointProfileByKeyHash()); + processMap.put("getEndpointProfileByEndpointGroupId", new getEndpointProfileByEndpointGroupId()); + processMap.put("getEndpointProfileBodyByKeyHash", new getEndpointProfileBodyByKeyHash()); + processMap.put("getEndpointProfileBodyByEndpointGroupId", new getEndpointProfileBodyByEndpointGroupId()); processMap.put("getTenants", new getTenants()); processMap.put("getTenant", new getTenant()); processMap.put("editTenant", new editTenant()); @@ -6531,6 +6790,102 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public getEndpointProfileByKeyHash() { + super("getEndpointProfileByKeyHash"); + } + + public getEndpointProfileByKeyHash_args getEmptyArgsInstance() { + return new getEndpointProfileByKeyHash_args(); + } + + protected boolean isOneway() { + return false; + } + + public getEndpointProfileByKeyHash_result getResult(I iface, getEndpointProfileByKeyHash_args args) throws org.apache.thrift.TException { + getEndpointProfileByKeyHash_result result = new getEndpointProfileByKeyHash_result(); + try { + result.success = iface.getEndpointProfileByKeyHash(args.endpointProfileKeyHash); + } catch (ControlThriftException ControlException) { + result.ControlException = ControlException; + } + return result; + } + } + + public static class getEndpointProfileByEndpointGroupId extends org.apache.thrift.ProcessFunction { + public getEndpointProfileByEndpointGroupId() { + super("getEndpointProfileByEndpointGroupId"); + } + + public getEndpointProfileByEndpointGroupId_args getEmptyArgsInstance() { + return new getEndpointProfileByEndpointGroupId_args(); + } + + protected boolean isOneway() { + return false; + } + + public getEndpointProfileByEndpointGroupId_result getResult(I iface, getEndpointProfileByEndpointGroupId_args args) throws org.apache.thrift.TException { + getEndpointProfileByEndpointGroupId_result result = new getEndpointProfileByEndpointGroupId_result(); + try { + result.success = iface.getEndpointProfileByEndpointGroupId(args.pageLink); + } catch (ControlThriftException ControlException) { + result.ControlException = ControlException; + } + return result; + } + } + + public static class getEndpointProfileBodyByKeyHash extends org.apache.thrift.ProcessFunction { + public getEndpointProfileBodyByKeyHash() { + super("getEndpointProfileBodyByKeyHash"); + } + + public getEndpointProfileBodyByKeyHash_args getEmptyArgsInstance() { + return new getEndpointProfileBodyByKeyHash_args(); + } + + protected boolean isOneway() { + return false; + } + + public getEndpointProfileBodyByKeyHash_result getResult(I iface, getEndpointProfileBodyByKeyHash_args args) throws org.apache.thrift.TException { + getEndpointProfileBodyByKeyHash_result result = new getEndpointProfileBodyByKeyHash_result(); + try { + result.success = iface.getEndpointProfileBodyByKeyHash(args.endpointProfileKeyHash); + } catch (ControlThriftException ControlException) { + result.ControlException = ControlException; + } + return result; + } + } + + public static class getEndpointProfileBodyByEndpointGroupId extends org.apache.thrift.ProcessFunction { + public getEndpointProfileBodyByEndpointGroupId() { + super("getEndpointProfileBodyByEndpointGroupId"); + } + + public getEndpointProfileBodyByEndpointGroupId_args getEmptyArgsInstance() { + return new getEndpointProfileBodyByEndpointGroupId_args(); + } + + protected boolean isOneway() { + return false; + } + + public getEndpointProfileBodyByEndpointGroupId_result getResult(I iface, getEndpointProfileBodyByEndpointGroupId_args args) throws org.apache.thrift.TException { + getEndpointProfileBodyByEndpointGroupId_result result = new getEndpointProfileBodyByEndpointGroupId_result(); + try { + result.success = iface.getEndpointProfileBodyByEndpointGroupId(args.pageLink); + } catch (ControlThriftException ControlException) { + result.ControlException = ControlException; + } + return result; + } + } + public static class getTenants extends org.apache.thrift.ProcessFunction { public getTenants() { super("getTenants"); @@ -8944,6 +9299,10 @@ protected AsyncProcessor(I iface, Map Map> getProcessMap(Map> processMap) { + processMap.put("getEndpointProfileByKeyHash", new getEndpointProfileByKeyHash()); + processMap.put("getEndpointProfileByEndpointGroupId", new getEndpointProfileByEndpointGroupId()); + processMap.put("getEndpointProfileBodyByKeyHash", new getEndpointProfileBodyByKeyHash()); + processMap.put("getEndpointProfileBodyByEndpointGroupId", new getEndpointProfileBodyByEndpointGroupId()); processMap.put("getTenants", new getTenants()); processMap.put("getTenant", new getTenant()); processMap.put("editTenant", new editTenant()); @@ -9047,20 +9406,20 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction> { - public getTenants() { - super("getTenants"); + public static class getEndpointProfileByKeyHash extends org.apache.thrift.AsyncProcessFunction { + public getEndpointProfileByKeyHash() { + super("getEndpointProfileByKeyHash"); } - public getTenants_args getEmptyArgsInstance() { - return new getTenants_args(); + public getEndpointProfileByKeyHash_args getEmptyArgsInstance() { + return new getEndpointProfileByKeyHash_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getTenants_result result = new getTenants_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + getEndpointProfileByKeyHash_result result = new getEndpointProfileByKeyHash_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -9073,7 +9432,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getTenants(resultHandler); + public void start(I iface, getEndpointProfileByKeyHash_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getEndpointProfileByKeyHash(args.endpointProfileKeyHash,resultHandler); } } - public static class getTenant extends org.apache.thrift.AsyncProcessFunction { - public getTenant() { - super("getTenant"); + public static class getEndpointProfileByEndpointGroupId extends org.apache.thrift.AsyncProcessFunction { + public getEndpointProfileByEndpointGroupId() { + super("getEndpointProfileByEndpointGroupId"); } - public getTenant_args getEmptyArgsInstance() { - return new getTenant_args(); + public getEndpointProfileByEndpointGroupId_args getEmptyArgsInstance() { + return new getEndpointProfileByEndpointGroupId_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getTenant_result result = new getTenant_result(); + getEndpointProfileByEndpointGroupId_result result = new getEndpointProfileByEndpointGroupId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -9130,7 +9489,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getTenant_result result = new getTenant_result(); + getEndpointProfileByEndpointGroupId_result result = new getEndpointProfileByEndpointGroupId_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -9156,25 +9515,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getTenant_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getTenant(args.tenantId,resultHandler); + public void start(I iface, getEndpointProfileByEndpointGroupId_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getEndpointProfileByEndpointGroupId(args.pageLink,resultHandler); } } - public static class editTenant extends org.apache.thrift.AsyncProcessFunction { - public editTenant() { - super("editTenant"); + public static class getEndpointProfileBodyByKeyHash extends org.apache.thrift.AsyncProcessFunction { + public getEndpointProfileBodyByKeyHash() { + super("getEndpointProfileBodyByKeyHash"); } - public editTenant_args getEmptyArgsInstance() { - return new editTenant_args(); + public getEndpointProfileBodyByKeyHash_args getEmptyArgsInstance() { + return new getEndpointProfileBodyByKeyHash_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editTenant_result result = new editTenant_result(); + getEndpointProfileBodyByKeyHash_result result = new getEndpointProfileBodyByKeyHash_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -9187,7 +9546,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editTenant_result result = new editTenant_result(); + getEndpointProfileBodyByKeyHash_result result = new getEndpointProfileBodyByKeyHash_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -9213,25 +9572,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, editTenant_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editTenant(args.tenant,resultHandler); + public void start(I iface, getEndpointProfileBodyByKeyHash_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getEndpointProfileBodyByKeyHash(args.endpointProfileKeyHash,resultHandler); } } - public static class deleteTenant extends org.apache.thrift.AsyncProcessFunction { - public deleteTenant() { - super("deleteTenant"); + public static class getEndpointProfileBodyByEndpointGroupId extends org.apache.thrift.AsyncProcessFunction { + public getEndpointProfileBodyByEndpointGroupId() { + super("getEndpointProfileBodyByEndpointGroupId"); } - public deleteTenant_args getEmptyArgsInstance() { - return new deleteTenant_args(); + public getEndpointProfileBodyByEndpointGroupId_args getEmptyArgsInstance() { + return new getEndpointProfileBodyByEndpointGroupId_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - deleteTenant_result result = new deleteTenant_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + getEndpointProfileBodyByEndpointGroupId_result result = new getEndpointProfileBodyByEndpointGroupId_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -9243,7 +9603,7 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteTenant_result result = new deleteTenant_result(); + getEndpointProfileBodyByEndpointGroupId_result result = new getEndpointProfileBodyByEndpointGroupId_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -9269,82 +9629,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteTenant_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteTenant(args.tenantId,resultHandler); - } - } - - public static class getUsers extends org.apache.thrift.AsyncProcessFunction> { - public getUsers() { - super("getUsers"); - } - - public getUsers_args getEmptyArgsInstance() { - return new getUsers_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getUsers_result result = new getUsers_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getUsers_result result = new getUsers_result(); - if (e instanceof ControlThriftException) { - result.ControlException = (ControlThriftException) e; - result.setControlExceptionIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, getUsers_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getUsers(resultHandler); + public void start(I iface, getEndpointProfileBodyByEndpointGroupId_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getEndpointProfileBodyByEndpointGroupId(args.pageLink,resultHandler); } } - public static class getTenantUsers extends org.apache.thrift.AsyncProcessFunction> { - public getTenantUsers() { - super("getTenantUsers"); + public static class getTenants extends org.apache.thrift.AsyncProcessFunction> { + public getTenants() { + super("getTenants"); } - public getTenantUsers_args getEmptyArgsInstance() { - return new getTenantUsers_args(); + public getTenants_args getEmptyArgsInstance() { + return new getTenants_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getTenantUsers_result result = new getTenantUsers_result(); + getTenants_result result = new getTenants_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -9357,7 +9660,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getTenantUsers(args.tenantId,resultHandler); + public void start(I iface, getTenants_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getTenants(resultHandler); } } - public static class getUser extends org.apache.thrift.AsyncProcessFunction { - public getUser() { - super("getUser"); + public static class getTenant extends org.apache.thrift.AsyncProcessFunction { + public getTenant() { + super("getTenant"); } - public getUser_args getEmptyArgsInstance() { - return new getUser_args(); + public getTenant_args getEmptyArgsInstance() { + return new getTenant_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getUser_result result = new getUser_result(); + getTenant_result result = new getTenant_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -9414,7 +9717,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getUser_result result = new getUser_result(); + getTenant_result result = new getTenant_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -9440,25 +9743,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getUser(args.userId,resultHandler); + public void start(I iface, getTenant_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getTenant(args.tenantId,resultHandler); } } - public static class getUserByExternalUid extends org.apache.thrift.AsyncProcessFunction { - public getUserByExternalUid() { - super("getUserByExternalUid"); + public static class editTenant extends org.apache.thrift.AsyncProcessFunction { + public editTenant() { + super("editTenant"); } - public getUserByExternalUid_args getEmptyArgsInstance() { - return new getUserByExternalUid_args(); + public editTenant_args getEmptyArgsInstance() { + return new editTenant_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getUserByExternalUid_result result = new getUserByExternalUid_result(); + editTenant_result result = new editTenant_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -9471,7 +9774,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getUserByExternalUid_result result = new getUserByExternalUid_result(); + editTenant_result result = new editTenant_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -9497,26 +9800,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getUserByExternalUid_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getUserByExternalUid(args.uid,resultHandler); + public void start(I iface, editTenant_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editTenant(args.tenant,resultHandler); } } - public static class editUser extends org.apache.thrift.AsyncProcessFunction { - public editUser() { - super("editUser"); + public static class deleteTenant extends org.apache.thrift.AsyncProcessFunction { + public deleteTenant() { + super("deleteTenant"); } - public editUser_args getEmptyArgsInstance() { - return new editUser_args(); + public deleteTenant_args getEmptyArgsInstance() { + return new deleteTenant_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editUser_result result = new editUser_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteTenant_result result = new deleteTenant_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -9528,7 +9830,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editUser_result result = new editUser_result(); + deleteTenant_result result = new deleteTenant_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -9554,25 +9856,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, editUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editUser(args.user,resultHandler); + public void start(I iface, deleteTenant_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteTenant(args.tenantId,resultHandler); } } - public static class deleteUser extends org.apache.thrift.AsyncProcessFunction { - public deleteUser() { - super("deleteUser"); + public static class getUsers extends org.apache.thrift.AsyncProcessFunction> { + public getUsers() { + super("getUsers"); } - public deleteUser_args getEmptyArgsInstance() { - return new deleteUser_args(); + public getUsers_args getEmptyArgsInstance() { + return new getUsers_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - deleteUser_result result = new deleteUser_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getUsers_result result = new getUsers_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -9584,7 +9887,7 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteUser_result result = new deleteUser_result(); + getUsers_result result = new getUsers_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -9610,25 +9913,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteUser(args.userId,resultHandler); + public void start(I iface, getUsers_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getUsers(resultHandler); } } - public static class getTenantAdmins extends org.apache.thrift.AsyncProcessFunction> { - public getTenantAdmins() { - super("getTenantAdmins"); + public static class getTenantUsers extends org.apache.thrift.AsyncProcessFunction> { + public getTenantUsers() { + super("getTenantUsers"); } - public getTenantAdmins_args getEmptyArgsInstance() { - return new getTenantAdmins_args(); + public getTenantUsers_args getEmptyArgsInstance() { + return new getTenantUsers_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getTenantAdmins_result result = new getTenantAdmins_result(); + getTenantUsers_result result = new getTenantUsers_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -9641,7 +9944,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getTenantAdmins(resultHandler); + public void start(I iface, getTenantUsers_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getTenantUsers(args.tenantId,resultHandler); } } - public static class getTenantAdmin extends org.apache.thrift.AsyncProcessFunction { - public getTenantAdmin() { - super("getTenantAdmin"); + public static class getUser extends org.apache.thrift.AsyncProcessFunction { + public getUser() { + super("getUser"); } - public getTenantAdmin_args getEmptyArgsInstance() { - return new getTenantAdmin_args(); + public getUser_args getEmptyArgsInstance() { + return new getUser_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getTenantAdmin_result result = new getTenantAdmin_result(); + getUser_result result = new getUser_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -9698,7 +10001,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getTenantAdmin_result result = new getTenantAdmin_result(); + getUser_result result = new getUser_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -9724,25 +10027,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getTenantAdmin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getTenantAdmin(args.tenantId,resultHandler); + public void start(I iface, getUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getUser(args.userId,resultHandler); } } - public static class editTenantAdmin extends org.apache.thrift.AsyncProcessFunction { - public editTenantAdmin() { - super("editTenantAdmin"); + public static class getUserByExternalUid extends org.apache.thrift.AsyncProcessFunction { + public getUserByExternalUid() { + super("getUserByExternalUid"); } - public editTenantAdmin_args getEmptyArgsInstance() { - return new editTenantAdmin_args(); + public getUserByExternalUid_args getEmptyArgsInstance() { + return new getUserByExternalUid_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editTenantAdmin_result result = new editTenantAdmin_result(); + getUserByExternalUid_result result = new getUserByExternalUid_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -9755,7 +10058,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editTenantAdmin_result result = new editTenantAdmin_result(); + getUserByExternalUid_result result = new getUserByExternalUid_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -9781,25 +10084,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, editTenantAdmin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editTenantAdmin(args.tenantAdmin,resultHandler); + public void start(I iface, getUserByExternalUid_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getUserByExternalUid(args.uid,resultHandler); } } - public static class deleteTenantAdmin extends org.apache.thrift.AsyncProcessFunction { - public deleteTenantAdmin() { - super("deleteTenantAdmin"); + public static class editUser extends org.apache.thrift.AsyncProcessFunction { + public editUser() { + super("editUser"); } - public deleteTenantAdmin_args getEmptyArgsInstance() { - return new deleteTenantAdmin_args(); + public editUser_args getEmptyArgsInstance() { + return new editUser_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - deleteTenantAdmin_result result = new deleteTenantAdmin_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + editUser_result result = new editUser_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -9811,7 +10115,7 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteTenantAdmin_result result = new deleteTenantAdmin_result(); + editUser_result result = new editUser_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -9837,26 +10141,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteTenantAdmin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteTenantAdmin(args.tenantId,resultHandler); + public void start(I iface, editUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editUser(args.user,resultHandler); } } - public static class getApplicationsByTenantId extends org.apache.thrift.AsyncProcessFunction> { - public getApplicationsByTenantId() { - super("getApplicationsByTenantId"); + public static class deleteUser extends org.apache.thrift.AsyncProcessFunction { + public deleteUser() { + super("deleteUser"); } - public getApplicationsByTenantId_args getEmptyArgsInstance() { - return new getApplicationsByTenantId_args(); + public deleteUser_args getEmptyArgsInstance() { + return new deleteUser_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getApplicationsByTenantId_result result = new getApplicationsByTenantId_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteUser_result result = new deleteUser_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -9868,7 +10171,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getApplicationsByTenantId(args.tenantId,resultHandler); + public void start(I iface, deleteUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteUser(args.userId,resultHandler); } } - public static class getApplication extends org.apache.thrift.AsyncProcessFunction { - public getApplication() { - super("getApplication"); + public static class getTenantAdmins extends org.apache.thrift.AsyncProcessFunction> { + public getTenantAdmins() { + super("getTenantAdmins"); } - public getApplication_args getEmptyArgsInstance() { - return new getApplication_args(); + public getTenantAdmins_args getEmptyArgsInstance() { + return new getTenantAdmins_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getApplication_result result = new getApplication_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getTenantAdmins_result result = new getTenantAdmins_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -9925,7 +10228,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getApplication_result result = new getApplication_result(); + getTenantAdmins_result result = new getTenantAdmins_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -9951,25 +10254,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getApplication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getApplication(args.applicationId,resultHandler); + public void start(I iface, getTenantAdmins_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getTenantAdmins(resultHandler); } } - public static class getApplicationByApplicationToken extends org.apache.thrift.AsyncProcessFunction { - public getApplicationByApplicationToken() { - super("getApplicationByApplicationToken"); + public static class getTenantAdmin extends org.apache.thrift.AsyncProcessFunction { + public getTenantAdmin() { + super("getTenantAdmin"); } - public getApplicationByApplicationToken_args getEmptyArgsInstance() { - return new getApplicationByApplicationToken_args(); + public getTenantAdmin_args getEmptyArgsInstance() { + return new getTenantAdmin_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getApplicationByApplicationToken_result result = new getApplicationByApplicationToken_result(); + getTenantAdmin_result result = new getTenantAdmin_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -9982,7 +10285,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getApplicationByApplicationToken_result result = new getApplicationByApplicationToken_result(); + getTenantAdmin_result result = new getTenantAdmin_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -10008,25 +10311,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getApplicationByApplicationToken_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getApplicationByApplicationToken(args.applicationToken,resultHandler); + public void start(I iface, getTenantAdmin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getTenantAdmin(args.tenantId,resultHandler); } } - public static class editApplication extends org.apache.thrift.AsyncProcessFunction { - public editApplication() { - super("editApplication"); + public static class editTenantAdmin extends org.apache.thrift.AsyncProcessFunction { + public editTenantAdmin() { + super("editTenantAdmin"); } - public editApplication_args getEmptyArgsInstance() { - return new editApplication_args(); + public editTenantAdmin_args getEmptyArgsInstance() { + return new editTenantAdmin_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editApplication_result result = new editApplication_result(); + editTenantAdmin_result result = new editTenantAdmin_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10039,7 +10342,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editApplication_result result = new editApplication_result(); + editTenantAdmin_result result = new editTenantAdmin_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -10065,25 +10368,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, editApplication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editApplication(args.application,resultHandler); + public void start(I iface, editTenantAdmin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editTenantAdmin(args.tenantAdmin,resultHandler); } } - public static class deleteApplication extends org.apache.thrift.AsyncProcessFunction { - public deleteApplication() { - super("deleteApplication"); + public static class deleteTenantAdmin extends org.apache.thrift.AsyncProcessFunction { + public deleteTenantAdmin() { + super("deleteTenantAdmin"); } - public deleteApplication_args getEmptyArgsInstance() { - return new deleteApplication_args(); + public deleteTenantAdmin_args getEmptyArgsInstance() { + return new deleteTenantAdmin_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { - deleteApplication_result result = new deleteApplication_result(); + deleteTenantAdmin_result result = new deleteTenantAdmin_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -10095,7 +10398,7 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteApplication_result result = new deleteApplication_result(); + deleteTenantAdmin_result result = new deleteTenantAdmin_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -10121,25 +10424,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteApplication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteApplication(args.applicationId,resultHandler); + public void start(I iface, deleteTenantAdmin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteTenantAdmin(args.tenantId,resultHandler); } } - public static class getConfigurationSchemaVersionsByApplicationId extends org.apache.thrift.AsyncProcessFunction> { - public getConfigurationSchemaVersionsByApplicationId() { - super("getConfigurationSchemaVersionsByApplicationId"); + public static class getApplicationsByTenantId extends org.apache.thrift.AsyncProcessFunction> { + public getApplicationsByTenantId() { + super("getApplicationsByTenantId"); } - public getConfigurationSchemaVersionsByApplicationId_args getEmptyArgsInstance() { - return new getConfigurationSchemaVersionsByApplicationId_args(); + public getApplicationsByTenantId_args getEmptyArgsInstance() { + return new getApplicationsByTenantId_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getConfigurationSchemaVersionsByApplicationId_result result = new getConfigurationSchemaVersionsByApplicationId_result(); + getApplicationsByTenantId_result result = new getApplicationsByTenantId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10152,7 +10455,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getConfigurationSchemaVersionsByApplicationId(args.applicationId,resultHandler); + public void start(I iface, getApplicationsByTenantId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getApplicationsByTenantId(args.tenantId,resultHandler); } } - public static class getConfigurationSchemasByApplicationId extends org.apache.thrift.AsyncProcessFunction> { - public getConfigurationSchemasByApplicationId() { - super("getConfigurationSchemasByApplicationId"); + public static class getApplication extends org.apache.thrift.AsyncProcessFunction { + public getApplication() { + super("getApplication"); } - public getConfigurationSchemasByApplicationId_args getEmptyArgsInstance() { - return new getConfigurationSchemasByApplicationId_args(); + public getApplication_args getEmptyArgsInstance() { + return new getApplication_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getConfigurationSchemasByApplicationId_result result = new getConfigurationSchemasByApplicationId_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + getApplication_result result = new getApplication_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10209,7 +10512,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getConfigurationSchemasByApplicationId(args.applicationId,resultHandler); + public void start(I iface, getApplication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getApplication(args.applicationId,resultHandler); } } - public static class getConfigurationSchema extends org.apache.thrift.AsyncProcessFunction { - public getConfigurationSchema() { - super("getConfigurationSchema"); + public static class getApplicationByApplicationToken extends org.apache.thrift.AsyncProcessFunction { + public getApplicationByApplicationToken() { + super("getApplicationByApplicationToken"); } - public getConfigurationSchema_args getEmptyArgsInstance() { - return new getConfigurationSchema_args(); + public getApplicationByApplicationToken_args getEmptyArgsInstance() { + return new getApplicationByApplicationToken_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getConfigurationSchema_result result = new getConfigurationSchema_result(); + getApplicationByApplicationToken_result result = new getApplicationByApplicationToken_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10266,7 +10569,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getConfigurationSchema_result result = new getConfigurationSchema_result(); + getApplicationByApplicationToken_result result = new getApplicationByApplicationToken_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -10292,25 +10595,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getConfigurationSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getConfigurationSchema(args.configurationSchemaId,resultHandler); + public void start(I iface, getApplicationByApplicationToken_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getApplicationByApplicationToken(args.applicationToken,resultHandler); } } - public static class editConfigurationSchema extends org.apache.thrift.AsyncProcessFunction { - public editConfigurationSchema() { - super("editConfigurationSchema"); + public static class editApplication extends org.apache.thrift.AsyncProcessFunction { + public editApplication() { + super("editApplication"); } - public editConfigurationSchema_args getEmptyArgsInstance() { - return new editConfigurationSchema_args(); + public editApplication_args getEmptyArgsInstance() { + return new editApplication_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editConfigurationSchema_result result = new editConfigurationSchema_result(); + editApplication_result result = new editApplication_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10323,7 +10626,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editConfigurationSchema_result result = new editConfigurationSchema_result(); + editApplication_result result = new editApplication_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -10349,26 +10652,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, editConfigurationSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editConfigurationSchema(args.configurationSchema,resultHandler); + public void start(I iface, editApplication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editApplication(args.application,resultHandler); } } - public static class getProfileSchemaVersionsByApplicationId extends org.apache.thrift.AsyncProcessFunction> { - public getProfileSchemaVersionsByApplicationId() { - super("getProfileSchemaVersionsByApplicationId"); + public static class deleteApplication extends org.apache.thrift.AsyncProcessFunction { + public deleteApplication() { + super("deleteApplication"); } - public getProfileSchemaVersionsByApplicationId_args getEmptyArgsInstance() { - return new getProfileSchemaVersionsByApplicationId_args(); + public deleteApplication_args getEmptyArgsInstance() { + return new deleteApplication_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getProfileSchemaVersionsByApplicationId_result result = new getProfileSchemaVersionsByApplicationId_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteApplication_result result = new deleteApplication_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -10380,7 +10682,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getProfileSchemaVersionsByApplicationId(args.applicationId,resultHandler); + public void start(I iface, deleteApplication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteApplication(args.applicationId,resultHandler); } } - public static class getProfileSchemasByApplicationId extends org.apache.thrift.AsyncProcessFunction> { - public getProfileSchemasByApplicationId() { - super("getProfileSchemasByApplicationId"); + public static class getConfigurationSchemaVersionsByApplicationId extends org.apache.thrift.AsyncProcessFunction> { + public getConfigurationSchemaVersionsByApplicationId() { + super("getConfigurationSchemaVersionsByApplicationId"); } - public getProfileSchemasByApplicationId_args getEmptyArgsInstance() { - return new getProfileSchemasByApplicationId_args(); + public getConfigurationSchemaVersionsByApplicationId_args getEmptyArgsInstance() { + return new getConfigurationSchemaVersionsByApplicationId_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getProfileSchemasByApplicationId_result result = new getProfileSchemasByApplicationId_result(); + getConfigurationSchemaVersionsByApplicationId_result result = new getConfigurationSchemaVersionsByApplicationId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10437,7 +10739,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getProfileSchemasByApplicationId(args.applicationId,resultHandler); + public void start(I iface, getConfigurationSchemaVersionsByApplicationId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getConfigurationSchemaVersionsByApplicationId(args.applicationId,resultHandler); } } - public static class getProfileSchema extends org.apache.thrift.AsyncProcessFunction { - public getProfileSchema() { - super("getProfileSchema"); + public static class getConfigurationSchemasByApplicationId extends org.apache.thrift.AsyncProcessFunction> { + public getConfigurationSchemasByApplicationId() { + super("getConfigurationSchemasByApplicationId"); } - public getProfileSchema_args getEmptyArgsInstance() { - return new getProfileSchema_args(); + public getConfigurationSchemasByApplicationId_args getEmptyArgsInstance() { + return new getConfigurationSchemasByApplicationId_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getProfileSchema_result result = new getProfileSchema_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getConfigurationSchemasByApplicationId_result result = new getConfigurationSchemasByApplicationId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10494,7 +10796,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getProfileSchema_result result = new getProfileSchema_result(); + getConfigurationSchemasByApplicationId_result result = new getConfigurationSchemasByApplicationId_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -10520,25 +10822,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getProfileSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getProfileSchema(args.profileSchemaId,resultHandler); + public void start(I iface, getConfigurationSchemasByApplicationId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getConfigurationSchemasByApplicationId(args.applicationId,resultHandler); } } - public static class editProfileSchema extends org.apache.thrift.AsyncProcessFunction { - public editProfileSchema() { - super("editProfileSchema"); + public static class getConfigurationSchema extends org.apache.thrift.AsyncProcessFunction { + public getConfigurationSchema() { + super("getConfigurationSchema"); } - public editProfileSchema_args getEmptyArgsInstance() { - return new editProfileSchema_args(); + public getConfigurationSchema_args getEmptyArgsInstance() { + return new getConfigurationSchema_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editProfileSchema_result result = new editProfileSchema_result(); + getConfigurationSchema_result result = new getConfigurationSchema_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10551,7 +10853,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editProfileSchema_result result = new editProfileSchema_result(); + getConfigurationSchema_result result = new getConfigurationSchema_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -10577,25 +10879,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, editProfileSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editProfileSchema(args.profileSchema,resultHandler); + public void start(I iface, getConfigurationSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getConfigurationSchema(args.configurationSchemaId,resultHandler); } } - public static class getLogSchemaVersionsByApplicationId extends org.apache.thrift.AsyncProcessFunction> { - public getLogSchemaVersionsByApplicationId() { - super("getLogSchemaVersionsByApplicationId"); + public static class editConfigurationSchema extends org.apache.thrift.AsyncProcessFunction { + public editConfigurationSchema() { + super("editConfigurationSchema"); } - public getLogSchemaVersionsByApplicationId_args getEmptyArgsInstance() { - return new getLogSchemaVersionsByApplicationId_args(); + public editConfigurationSchema_args getEmptyArgsInstance() { + return new editConfigurationSchema_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getLogSchemaVersionsByApplicationId_result result = new getLogSchemaVersionsByApplicationId_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + editConfigurationSchema_result result = new editConfigurationSchema_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10608,7 +10910,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getLogSchemaVersionsByApplicationId(args.applicationId,resultHandler); + public void start(I iface, editConfigurationSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editConfigurationSchema(args.configurationSchema,resultHandler); } } - public static class getLogSchemasByApplicationId extends org.apache.thrift.AsyncProcessFunction> { - public getLogSchemasByApplicationId() { - super("getLogSchemasByApplicationId"); + public static class getProfileSchemaVersionsByApplicationId extends org.apache.thrift.AsyncProcessFunction> { + public getProfileSchemaVersionsByApplicationId() { + super("getProfileSchemaVersionsByApplicationId"); } - public getLogSchemasByApplicationId_args getEmptyArgsInstance() { - return new getLogSchemasByApplicationId_args(); + public getProfileSchemaVersionsByApplicationId_args getEmptyArgsInstance() { + return new getProfileSchemaVersionsByApplicationId_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getLogSchemasByApplicationId_result result = new getLogSchemasByApplicationId_result(); + getProfileSchemaVersionsByApplicationId_result result = new getProfileSchemaVersionsByApplicationId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10665,7 +10967,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getLogSchemasByApplicationId(args.applicationId,resultHandler); + public void start(I iface, getProfileSchemaVersionsByApplicationId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getProfileSchemaVersionsByApplicationId(args.applicationId,resultHandler); } } - public static class getLogSchema extends org.apache.thrift.AsyncProcessFunction { - public getLogSchema() { - super("getLogSchema"); + public static class getProfileSchemasByApplicationId extends org.apache.thrift.AsyncProcessFunction> { + public getProfileSchemasByApplicationId() { + super("getProfileSchemasByApplicationId"); } - public getLogSchema_args getEmptyArgsInstance() { - return new getLogSchema_args(); + public getProfileSchemasByApplicationId_args getEmptyArgsInstance() { + return new getProfileSchemasByApplicationId_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getLogSchema_result result = new getLogSchema_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getProfileSchemasByApplicationId_result result = new getProfileSchemasByApplicationId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10722,7 +11024,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getLogSchema_result result = new getLogSchema_result(); + getProfileSchemasByApplicationId_result result = new getProfileSchemasByApplicationId_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -10748,25 +11050,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getLogSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getLogSchema(args.logSchemaId,resultHandler); + public void start(I iface, getProfileSchemasByApplicationId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getProfileSchemasByApplicationId(args.applicationId,resultHandler); } } - public static class getLogSchemaByApplicationIdAndVersion extends org.apache.thrift.AsyncProcessFunction { - public getLogSchemaByApplicationIdAndVersion() { - super("getLogSchemaByApplicationIdAndVersion"); + public static class getProfileSchema extends org.apache.thrift.AsyncProcessFunction { + public getProfileSchema() { + super("getProfileSchema"); } - public getLogSchemaByApplicationIdAndVersion_args getEmptyArgsInstance() { - return new getLogSchemaByApplicationIdAndVersion_args(); + public getProfileSchema_args getEmptyArgsInstance() { + return new getProfileSchema_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getLogSchemaByApplicationIdAndVersion_result result = new getLogSchemaByApplicationIdAndVersion_result(); + getProfileSchema_result result = new getProfileSchema_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10779,7 +11081,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getLogSchemaByApplicationIdAndVersion_result result = new getLogSchemaByApplicationIdAndVersion_result(); + getProfileSchema_result result = new getProfileSchema_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -10805,25 +11107,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getLogSchemaByApplicationIdAndVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getLogSchemaByApplicationIdAndVersion(args.applicationId, args.version,resultHandler); + public void start(I iface, getProfileSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getProfileSchema(args.profileSchemaId,resultHandler); } } - public static class editLogSchema extends org.apache.thrift.AsyncProcessFunction { - public editLogSchema() { - super("editLogSchema"); + public static class editProfileSchema extends org.apache.thrift.AsyncProcessFunction { + public editProfileSchema() { + super("editProfileSchema"); } - public editLogSchema_args getEmptyArgsInstance() { - return new editLogSchema_args(); + public editProfileSchema_args getEmptyArgsInstance() { + return new editProfileSchema_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editLogSchema_result result = new editLogSchema_result(); + editProfileSchema_result result = new editProfileSchema_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10836,7 +11138,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editLogSchema_result result = new editLogSchema_result(); + editProfileSchema_result result = new editProfileSchema_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -10862,25 +11164,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, editLogSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editLogSchema(args.logSchema,resultHandler); + public void start(I iface, editProfileSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editProfileSchema(args.profileSchema,resultHandler); } } - public static class getEndpointGroupsByApplicationId extends org.apache.thrift.AsyncProcessFunction> { - public getEndpointGroupsByApplicationId() { - super("getEndpointGroupsByApplicationId"); + public static class getLogSchemaVersionsByApplicationId extends org.apache.thrift.AsyncProcessFunction> { + public getLogSchemaVersionsByApplicationId() { + super("getLogSchemaVersionsByApplicationId"); } - public getEndpointGroupsByApplicationId_args getEmptyArgsInstance() { - return new getEndpointGroupsByApplicationId_args(); + public getLogSchemaVersionsByApplicationId_args getEmptyArgsInstance() { + return new getLogSchemaVersionsByApplicationId_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getEndpointGroupsByApplicationId_result result = new getEndpointGroupsByApplicationId_result(); + getLogSchemaVersionsByApplicationId_result result = new getLogSchemaVersionsByApplicationId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10893,7 +11195,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getEndpointGroupsByApplicationId(args.applicationId,resultHandler); + public void start(I iface, getLogSchemaVersionsByApplicationId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getLogSchemaVersionsByApplicationId(args.applicationId,resultHandler); } } - public static class getEndpointGroup extends org.apache.thrift.AsyncProcessFunction { - public getEndpointGroup() { - super("getEndpointGroup"); + public static class getLogSchemasByApplicationId extends org.apache.thrift.AsyncProcessFunction> { + public getLogSchemasByApplicationId() { + super("getLogSchemasByApplicationId"); } - public getEndpointGroup_args getEmptyArgsInstance() { - return new getEndpointGroup_args(); + public getLogSchemasByApplicationId_args getEmptyArgsInstance() { + return new getLogSchemasByApplicationId_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getEndpointGroup_result result = new getEndpointGroup_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getLogSchemasByApplicationId_result result = new getLogSchemasByApplicationId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -10950,7 +11252,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getEndpointGroup_result result = new getEndpointGroup_result(); + getLogSchemasByApplicationId_result result = new getLogSchemasByApplicationId_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -10976,25 +11278,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getEndpointGroup_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getEndpointGroup(args.endpointGroupId,resultHandler); + public void start(I iface, getLogSchemasByApplicationId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getLogSchemasByApplicationId(args.applicationId,resultHandler); } } - public static class editEndpointGroup extends org.apache.thrift.AsyncProcessFunction { - public editEndpointGroup() { - super("editEndpointGroup"); + public static class getLogSchema extends org.apache.thrift.AsyncProcessFunction { + public getLogSchema() { + super("getLogSchema"); } - public editEndpointGroup_args getEmptyArgsInstance() { - return new editEndpointGroup_args(); + public getLogSchema_args getEmptyArgsInstance() { + return new getLogSchema_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editEndpointGroup_result result = new editEndpointGroup_result(); + getLogSchema_result result = new getLogSchema_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -11007,63 +11309,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editEndpointGroup_result result = new editEndpointGroup_result(); - if (e instanceof ControlThriftException) { - result.ControlException = (ControlThriftException) e; - result.setControlExceptionIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, editEndpointGroup_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editEndpointGroup(args.endpointGroup,resultHandler); - } - } - - public static class deleteEndpointGroup extends org.apache.thrift.AsyncProcessFunction { - public deleteEndpointGroup() { - super("deleteEndpointGroup"); - } - - public deleteEndpointGroup_args getEmptyArgsInstance() { - return new deleteEndpointGroup_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - deleteEndpointGroup_result result = new deleteEndpointGroup_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - deleteEndpointGroup_result result = new deleteEndpointGroup_result(); + getLogSchema_result result = new getLogSchema_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -11089,25 +11335,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteEndpointGroup_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteEndpointGroup(args.endpointGroupId,resultHandler); + public void start(I iface, getLogSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getLogSchema(args.logSchemaId,resultHandler); } } - public static class removeTopicsFromEndpointGroup extends org.apache.thrift.AsyncProcessFunction { - public removeTopicsFromEndpointGroup() { - super("removeTopicsFromEndpointGroup"); + public static class getLogSchemaByApplicationIdAndVersion extends org.apache.thrift.AsyncProcessFunction { + public getLogSchemaByApplicationIdAndVersion() { + super("getLogSchemaByApplicationIdAndVersion"); } - public removeTopicsFromEndpointGroup_args getEmptyArgsInstance() { - return new removeTopicsFromEndpointGroup_args(); + public getLogSchemaByApplicationIdAndVersion_args getEmptyArgsInstance() { + return new getLogSchemaByApplicationIdAndVersion_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - removeTopicsFromEndpointGroup_result result = new removeTopicsFromEndpointGroup_result(); + getLogSchemaByApplicationIdAndVersion_result result = new getLogSchemaByApplicationIdAndVersion_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -11120,7 +11366,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - removeTopicsFromEndpointGroup_result result = new removeTopicsFromEndpointGroup_result(); + getLogSchemaByApplicationIdAndVersion_result result = new getLogSchemaByApplicationIdAndVersion_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -11146,25 +11392,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, removeTopicsFromEndpointGroup_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.removeTopicsFromEndpointGroup(args.endpointGroupId, args.topicId,resultHandler); + public void start(I iface, getLogSchemaByApplicationIdAndVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getLogSchemaByApplicationIdAndVersion(args.applicationId, args.version,resultHandler); } } - public static class addTopicsToEndpointGroup extends org.apache.thrift.AsyncProcessFunction { - public addTopicsToEndpointGroup() { - super("addTopicsToEndpointGroup"); + public static class editLogSchema extends org.apache.thrift.AsyncProcessFunction { + public editLogSchema() { + super("editLogSchema"); } - public addTopicsToEndpointGroup_args getEmptyArgsInstance() { - return new addTopicsToEndpointGroup_args(); + public editLogSchema_args getEmptyArgsInstance() { + return new editLogSchema_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - addTopicsToEndpointGroup_result result = new addTopicsToEndpointGroup_result(); + editLogSchema_result result = new editLogSchema_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -11177,7 +11423,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addTopicsToEndpointGroup_result result = new addTopicsToEndpointGroup_result(); + editLogSchema_result result = new editLogSchema_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -11203,25 +11449,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, addTopicsToEndpointGroup_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addTopicsToEndpointGroup(args.endpointGroupId, args.topicId,resultHandler); + public void start(I iface, editLogSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editLogSchema(args.logSchema,resultHandler); } } - public static class getProfileFilterRecordsByEndpointGroupId extends org.apache.thrift.AsyncProcessFunction> { - public getProfileFilterRecordsByEndpointGroupId() { - super("getProfileFilterRecordsByEndpointGroupId"); + public static class getEndpointGroupsByApplicationId extends org.apache.thrift.AsyncProcessFunction> { + public getEndpointGroupsByApplicationId() { + super("getEndpointGroupsByApplicationId"); } - public getProfileFilterRecordsByEndpointGroupId_args getEmptyArgsInstance() { - return new getProfileFilterRecordsByEndpointGroupId_args(); + public getEndpointGroupsByApplicationId_args getEmptyArgsInstance() { + return new getEndpointGroupsByApplicationId_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getProfileFilterRecordsByEndpointGroupId_result result = new getProfileFilterRecordsByEndpointGroupId_result(); + getEndpointGroupsByApplicationId_result result = new getEndpointGroupsByApplicationId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -11234,7 +11480,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getProfileFilterRecordsByEndpointGroupId(args.endpointGroupId, args.includeDeprecated,resultHandler); + public void start(I iface, getEndpointGroupsByApplicationId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getEndpointGroupsByApplicationId(args.applicationId,resultHandler); } } - public static class getProfileFilterRecord extends org.apache.thrift.AsyncProcessFunction { - public getProfileFilterRecord() { - super("getProfileFilterRecord"); + public static class getEndpointGroup extends org.apache.thrift.AsyncProcessFunction { + public getEndpointGroup() { + super("getEndpointGroup"); } - public getProfileFilterRecord_args getEmptyArgsInstance() { - return new getProfileFilterRecord_args(); + public getEndpointGroup_args getEmptyArgsInstance() { + return new getEndpointGroup_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getProfileFilterRecord_result result = new getProfileFilterRecord_result(); + getEndpointGroup_result result = new getEndpointGroup_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -11291,7 +11537,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getProfileFilterRecord_result result = new getProfileFilterRecord_result(); + getEndpointGroup_result result = new getEndpointGroup_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -11317,25 +11563,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getProfileFilterRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getProfileFilterRecord(args.schemaId, args.endpointGroupId,resultHandler); + public void start(I iface, getEndpointGroup_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getEndpointGroup(args.endpointGroupId,resultHandler); } } - public static class getVacantProfileSchemasByEndpointGroupId extends org.apache.thrift.AsyncProcessFunction> { - public getVacantProfileSchemasByEndpointGroupId() { - super("getVacantProfileSchemasByEndpointGroupId"); + public static class editEndpointGroup extends org.apache.thrift.AsyncProcessFunction { + public editEndpointGroup() { + super("editEndpointGroup"); } - public getVacantProfileSchemasByEndpointGroupId_args getEmptyArgsInstance() { - return new getVacantProfileSchemasByEndpointGroupId_args(); + public editEndpointGroup_args getEmptyArgsInstance() { + return new editEndpointGroup_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getVacantProfileSchemasByEndpointGroupId_result result = new getVacantProfileSchemasByEndpointGroupId_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + editEndpointGroup_result result = new editEndpointGroup_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -11348,7 +11594,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getVacantProfileSchemasByEndpointGroupId(args.endpointGroupId,resultHandler); + public void start(I iface, editEndpointGroup_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editEndpointGroup(args.endpointGroup,resultHandler); } } - public static class getProfileFilter extends org.apache.thrift.AsyncProcessFunction { - public getProfileFilter() { - super("getProfileFilter"); + public static class deleteEndpointGroup extends org.apache.thrift.AsyncProcessFunction { + public deleteEndpointGroup() { + super("deleteEndpointGroup"); } - public getProfileFilter_args getEmptyArgsInstance() { - return new getProfileFilter_args(); + public deleteEndpointGroup_args getEmptyArgsInstance() { + return new deleteEndpointGroup_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getProfileFilter_result result = new getProfileFilter_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteEndpointGroup_result result = new deleteEndpointGroup_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -11405,7 +11650,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getProfileFilter_result result = new getProfileFilter_result(); + deleteEndpointGroup_result result = new deleteEndpointGroup_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -11431,25 +11676,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getProfileFilter_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getProfileFilter(args.profileFilterId,resultHandler); + public void start(I iface, deleteEndpointGroup_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteEndpointGroup(args.endpointGroupId,resultHandler); } } - public static class editProfileFilter extends org.apache.thrift.AsyncProcessFunction { - public editProfileFilter() { - super("editProfileFilter"); + public static class removeTopicsFromEndpointGroup extends org.apache.thrift.AsyncProcessFunction { + public removeTopicsFromEndpointGroup() { + super("removeTopicsFromEndpointGroup"); } - public editProfileFilter_args getEmptyArgsInstance() { - return new editProfileFilter_args(); + public removeTopicsFromEndpointGroup_args getEmptyArgsInstance() { + return new removeTopicsFromEndpointGroup_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editProfileFilter_result result = new editProfileFilter_result(); + removeTopicsFromEndpointGroup_result result = new removeTopicsFromEndpointGroup_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -11462,7 +11707,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editProfileFilter_result result = new editProfileFilter_result(); + removeTopicsFromEndpointGroup_result result = new removeTopicsFromEndpointGroup_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -11488,25 +11733,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, editProfileFilter_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editProfileFilter(args.profileFilter,resultHandler); + public void start(I iface, removeTopicsFromEndpointGroup_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.removeTopicsFromEndpointGroup(args.endpointGroupId, args.topicId,resultHandler); } } - public static class activateProfileFilter extends org.apache.thrift.AsyncProcessFunction { - public activateProfileFilter() { - super("activateProfileFilter"); + public static class addTopicsToEndpointGroup extends org.apache.thrift.AsyncProcessFunction { + public addTopicsToEndpointGroup() { + super("addTopicsToEndpointGroup"); } - public activateProfileFilter_args getEmptyArgsInstance() { - return new activateProfileFilter_args(); + public addTopicsToEndpointGroup_args getEmptyArgsInstance() { + return new addTopicsToEndpointGroup_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - activateProfileFilter_result result = new activateProfileFilter_result(); + addTopicsToEndpointGroup_result result = new addTopicsToEndpointGroup_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -11519,7 +11764,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - activateProfileFilter_result result = new activateProfileFilter_result(); + addTopicsToEndpointGroup_result result = new addTopicsToEndpointGroup_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -11545,25 +11790,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, activateProfileFilter_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.activateProfileFilter(args.profileFilterId, args.activatedUsername,resultHandler); + public void start(I iface, addTopicsToEndpointGroup_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addTopicsToEndpointGroup(args.endpointGroupId, args.topicId,resultHandler); } } - public static class deactivateProfileFilter extends org.apache.thrift.AsyncProcessFunction { - public deactivateProfileFilter() { - super("deactivateProfileFilter"); + public static class getProfileFilterRecordsByEndpointGroupId extends org.apache.thrift.AsyncProcessFunction> { + public getProfileFilterRecordsByEndpointGroupId() { + super("getProfileFilterRecordsByEndpointGroupId"); } - public deactivateProfileFilter_args getEmptyArgsInstance() { - return new deactivateProfileFilter_args(); + public getProfileFilterRecordsByEndpointGroupId_args getEmptyArgsInstance() { + return new getProfileFilterRecordsByEndpointGroupId_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - deactivateProfileFilter_result result = new deactivateProfileFilter_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getProfileFilterRecordsByEndpointGroupId_result result = new getProfileFilterRecordsByEndpointGroupId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -11576,7 +11821,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deactivateProfileFilter_result result = new deactivateProfileFilter_result(); + getProfileFilterRecordsByEndpointGroupId_result result = new getProfileFilterRecordsByEndpointGroupId_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -11602,25 +11847,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, deactivateProfileFilter_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deactivateProfileFilter(args.profileFilterId, args.deactivatedUsername,resultHandler); + public void start(I iface, getProfileFilterRecordsByEndpointGroupId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getProfileFilterRecordsByEndpointGroupId(args.endpointGroupId, args.includeDeprecated,resultHandler); } } - public static class deleteProfileFilterRecord extends org.apache.thrift.AsyncProcessFunction { - public deleteProfileFilterRecord() { - super("deleteProfileFilterRecord"); + public static class getProfileFilterRecord extends org.apache.thrift.AsyncProcessFunction { + public getProfileFilterRecord() { + super("getProfileFilterRecord"); } - public deleteProfileFilterRecord_args getEmptyArgsInstance() { - return new deleteProfileFilterRecord_args(); + public getProfileFilterRecord_args getEmptyArgsInstance() { + return new getProfileFilterRecord_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - deleteProfileFilterRecord_result result = new deleteProfileFilterRecord_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + getProfileFilterRecord_result result = new getProfileFilterRecord_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -11632,7 +11878,7 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteProfileFilterRecord_result result = new deleteProfileFilterRecord_result(); + getProfileFilterRecord_result result = new getProfileFilterRecord_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -11658,25 +11904,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteProfileFilterRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteProfileFilterRecord(args.schemaId, args.endpointGroupId, args.deactivatedUsername,resultHandler); + public void start(I iface, getProfileFilterRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getProfileFilterRecord(args.schemaId, args.endpointGroupId,resultHandler); } } - public static class getConfigurationRecordsByEndpointGroupId extends org.apache.thrift.AsyncProcessFunction> { - public getConfigurationRecordsByEndpointGroupId() { - super("getConfigurationRecordsByEndpointGroupId"); + public static class getVacantProfileSchemasByEndpointGroupId extends org.apache.thrift.AsyncProcessFunction> { + public getVacantProfileSchemasByEndpointGroupId() { + super("getVacantProfileSchemasByEndpointGroupId"); } - public getConfigurationRecordsByEndpointGroupId_args getEmptyArgsInstance() { - return new getConfigurationRecordsByEndpointGroupId_args(); + public getVacantProfileSchemasByEndpointGroupId_args getEmptyArgsInstance() { + return new getVacantProfileSchemasByEndpointGroupId_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getConfigurationRecordsByEndpointGroupId_result result = new getConfigurationRecordsByEndpointGroupId_result(); + getVacantProfileSchemasByEndpointGroupId_result result = new getVacantProfileSchemasByEndpointGroupId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -11689,7 +11935,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getConfigurationRecordsByEndpointGroupId(args.endpointGroupId, args.includeDeprecated,resultHandler); + public void start(I iface, getVacantProfileSchemasByEndpointGroupId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getVacantProfileSchemasByEndpointGroupId(args.endpointGroupId,resultHandler); } } - public static class getConfigurationRecord extends org.apache.thrift.AsyncProcessFunction { - public getConfigurationRecord() { - super("getConfigurationRecord"); + public static class getProfileFilter extends org.apache.thrift.AsyncProcessFunction { + public getProfileFilter() { + super("getProfileFilter"); } - public getConfigurationRecord_args getEmptyArgsInstance() { - return new getConfigurationRecord_args(); + public getProfileFilter_args getEmptyArgsInstance() { + return new getProfileFilter_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getConfigurationRecord_result result = new getConfigurationRecord_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getConfigurationRecord_result result = new getConfigurationRecord_result(); - if (e instanceof ControlThriftException) { - result.ControlException = (ControlThriftException) e; - result.setControlExceptionIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, getConfigurationRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getConfigurationRecord(args.schemaId, args.endpointGroupId,resultHandler); - } - } - - public static class getVacantConfigurationSchemasByEndpointGroupId extends org.apache.thrift.AsyncProcessFunction> { - public getVacantConfigurationSchemasByEndpointGroupId() { - super("getVacantConfigurationSchemasByEndpointGroupId"); - } - - public getVacantConfigurationSchemasByEndpointGroupId_args getEmptyArgsInstance() { - return new getVacantConfigurationSchemasByEndpointGroupId_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getVacantConfigurationSchemasByEndpointGroupId_result result = new getVacantConfigurationSchemasByEndpointGroupId_result(); + getProfileFilter_result result = new getProfileFilter_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -11803,7 +11992,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getVacantConfigurationSchemasByEndpointGroupId(args.endpointGroupId,resultHandler); + public void start(I iface, getProfileFilter_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getProfileFilter(args.profileFilterId,resultHandler); } } - public static class getConfiguration extends org.apache.thrift.AsyncProcessFunction { - public getConfiguration() { - super("getConfiguration"); + public static class editProfileFilter extends org.apache.thrift.AsyncProcessFunction { + public editProfileFilter() { + super("editProfileFilter"); } - public getConfiguration_args getEmptyArgsInstance() { - return new getConfiguration_args(); + public editProfileFilter_args getEmptyArgsInstance() { + return new editProfileFilter_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getConfiguration_result result = new getConfiguration_result(); + editProfileFilter_result result = new editProfileFilter_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -11860,7 +12049,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getConfiguration_result result = new getConfiguration_result(); + editProfileFilter_result result = new editProfileFilter_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -11886,25 +12075,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getConfiguration(args.configurationId,resultHandler); + public void start(I iface, editProfileFilter_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editProfileFilter(args.profileFilter,resultHandler); } } - public static class editConfiguration extends org.apache.thrift.AsyncProcessFunction { - public editConfiguration() { - super("editConfiguration"); + public static class activateProfileFilter extends org.apache.thrift.AsyncProcessFunction { + public activateProfileFilter() { + super("activateProfileFilter"); } - public editConfiguration_args getEmptyArgsInstance() { - return new editConfiguration_args(); + public activateProfileFilter_args getEmptyArgsInstance() { + return new activateProfileFilter_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editConfiguration_result result = new editConfiguration_result(); + activateProfileFilter_result result = new activateProfileFilter_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -11917,7 +12106,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editConfiguration_result result = new editConfiguration_result(); + activateProfileFilter_result result = new activateProfileFilter_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -11943,25 +12132,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, editConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editConfiguration(args.configuration,resultHandler); + public void start(I iface, activateProfileFilter_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.activateProfileFilter(args.profileFilterId, args.activatedUsername,resultHandler); } } - public static class activateConfiguration extends org.apache.thrift.AsyncProcessFunction { - public activateConfiguration() { - super("activateConfiguration"); + public static class deactivateProfileFilter extends org.apache.thrift.AsyncProcessFunction { + public deactivateProfileFilter() { + super("deactivateProfileFilter"); } - public activateConfiguration_args getEmptyArgsInstance() { - return new activateConfiguration_args(); + public deactivateProfileFilter_args getEmptyArgsInstance() { + return new deactivateProfileFilter_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - activateConfiguration_result result = new activateConfiguration_result(); + deactivateProfileFilter_result result = new deactivateProfileFilter_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -11974,7 +12163,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - activateConfiguration_result result = new activateConfiguration_result(); + deactivateProfileFilter_result result = new deactivateProfileFilter_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -12000,26 +12189,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, activateConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.activateConfiguration(args.configurationId, args.activatedUsername,resultHandler); + public void start(I iface, deactivateProfileFilter_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deactivateProfileFilter(args.profileFilterId, args.deactivatedUsername,resultHandler); } } - public static class deactivateConfiguration extends org.apache.thrift.AsyncProcessFunction { - public deactivateConfiguration() { - super("deactivateConfiguration"); + public static class deleteProfileFilterRecord extends org.apache.thrift.AsyncProcessFunction { + public deleteProfileFilterRecord() { + super("deleteProfileFilterRecord"); } - public deactivateConfiguration_args getEmptyArgsInstance() { - return new deactivateConfiguration_args(); + public deleteProfileFilterRecord_args getEmptyArgsInstance() { + return new deleteProfileFilterRecord_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - deactivateConfiguration_result result = new deactivateConfiguration_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteProfileFilterRecord_result result = new deleteProfileFilterRecord_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -12031,7 +12219,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deactivateConfiguration_result result = new deactivateConfiguration_result(); + deleteProfileFilterRecord_result result = new deleteProfileFilterRecord_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -12057,25 +12245,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, deactivateConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deactivateConfiguration(args.configurationId, args.deactivatedUsername,resultHandler); + public void start(I iface, deleteProfileFilterRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteProfileFilterRecord(args.schemaId, args.endpointGroupId, args.deactivatedUsername,resultHandler); } } - public static class deleteConfigurationRecord extends org.apache.thrift.AsyncProcessFunction { - public deleteConfigurationRecord() { - super("deleteConfigurationRecord"); + public static class getConfigurationRecordsByEndpointGroupId extends org.apache.thrift.AsyncProcessFunction> { + public getConfigurationRecordsByEndpointGroupId() { + super("getConfigurationRecordsByEndpointGroupId"); } - public deleteConfigurationRecord_args getEmptyArgsInstance() { - return new deleteConfigurationRecord_args(); + public getConfigurationRecordsByEndpointGroupId_args getEmptyArgsInstance() { + return new getConfigurationRecordsByEndpointGroupId_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - deleteConfigurationRecord_result result = new deleteConfigurationRecord_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getConfigurationRecordsByEndpointGroupId_result result = new getConfigurationRecordsByEndpointGroupId_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -12087,7 +12276,7 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteConfigurationRecord_result result = new deleteConfigurationRecord_result(); + getConfigurationRecordsByEndpointGroupId_result result = new getConfigurationRecordsByEndpointGroupId_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -12113,25 +12302,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteConfigurationRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteConfigurationRecord(args.schemaId, args.endpointGroupId, args.deactivatedUsername,resultHandler); + public void start(I iface, getConfigurationRecordsByEndpointGroupId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getConfigurationRecordsByEndpointGroupId(args.endpointGroupId, args.includeDeprecated,resultHandler); } } - public static class editUserConfiguration extends org.apache.thrift.AsyncProcessFunction { - public editUserConfiguration() { - super("editUserConfiguration"); + public static class getConfigurationRecord extends org.apache.thrift.AsyncProcessFunction { + public getConfigurationRecord() { + super("getConfigurationRecord"); } - public editUserConfiguration_args getEmptyArgsInstance() { - return new editUserConfiguration_args(); + public getConfigurationRecord_args getEmptyArgsInstance() { + return new getConfigurationRecord_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - editUserConfiguration_result result = new editUserConfiguration_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + getConfigurationRecord_result result = new getConfigurationRecord_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -12143,7 +12333,7 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editUserConfiguration_result result = new editUserConfiguration_result(); + getConfigurationRecord_result result = new getConfigurationRecord_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -12169,25 +12359,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, editUserConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editUserConfiguration(args.configuration,resultHandler); + public void start(I iface, getConfigurationRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getConfigurationRecord(args.schemaId, args.endpointGroupId,resultHandler); } } - public static class getNotificationSchemaVersionsByApplicationId extends org.apache.thrift.AsyncProcessFunction> { - public getNotificationSchemaVersionsByApplicationId() { - super("getNotificationSchemaVersionsByApplicationId"); + public static class getVacantConfigurationSchemasByEndpointGroupId extends org.apache.thrift.AsyncProcessFunction> { + public getVacantConfigurationSchemasByEndpointGroupId() { + super("getVacantConfigurationSchemasByEndpointGroupId"); } - public getNotificationSchemaVersionsByApplicationId_args getEmptyArgsInstance() { - return new getNotificationSchemaVersionsByApplicationId_args(); + public getVacantConfigurationSchemasByEndpointGroupId_args getEmptyArgsInstance() { + return new getVacantConfigurationSchemasByEndpointGroupId_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getNotificationSchemaVersionsByApplicationId_result result = new getNotificationSchemaVersionsByApplicationId_result(); + getVacantConfigurationSchemasByEndpointGroupId_result result = new getVacantConfigurationSchemasByEndpointGroupId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -12200,7 +12390,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getNotificationSchemaVersionsByApplicationId(args.applicationId,resultHandler); + public void start(I iface, getVacantConfigurationSchemasByEndpointGroupId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getVacantConfigurationSchemasByEndpointGroupId(args.endpointGroupId,resultHandler); } } - public static class editNotificationSchema extends org.apache.thrift.AsyncProcessFunction { - public editNotificationSchema() { - super("editNotificationSchema"); + public static class getConfiguration extends org.apache.thrift.AsyncProcessFunction { + public getConfiguration() { + super("getConfiguration"); } - public editNotificationSchema_args getEmptyArgsInstance() { - return new editNotificationSchema_args(); + public getConfiguration_args getEmptyArgsInstance() { + return new getConfiguration_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editNotificationSchema_result result = new editNotificationSchema_result(); + getConfiguration_result result = new getConfiguration_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -12257,7 +12447,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editNotificationSchema_result result = new editNotificationSchema_result(); + getConfiguration_result result = new getConfiguration_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -12283,25 +12473,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, editNotificationSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editNotificationSchema(args.notificationSchema,resultHandler); + public void start(I iface, getConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getConfiguration(args.configurationId,resultHandler); } } - public static class getNotificationSchema extends org.apache.thrift.AsyncProcessFunction { - public getNotificationSchema() { - super("getNotificationSchema"); + public static class editConfiguration extends org.apache.thrift.AsyncProcessFunction { + public editConfiguration() { + super("editConfiguration"); } - public getNotificationSchema_args getEmptyArgsInstance() { - return new getNotificationSchema_args(); + public editConfiguration_args getEmptyArgsInstance() { + return new editConfiguration_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getNotificationSchema_result result = new getNotificationSchema_result(); + editConfiguration_result result = new editConfiguration_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -12314,7 +12504,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getNotificationSchema_result result = new getNotificationSchema_result(); + editConfiguration_result result = new editConfiguration_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -12340,25 +12530,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getNotificationSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getNotificationSchema(args.notificationSchemaId,resultHandler); + public void start(I iface, editConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editConfiguration(args.configuration,resultHandler); } } - public static class getNotificationSchemasByAppId extends org.apache.thrift.AsyncProcessFunction> { - public getNotificationSchemasByAppId() { - super("getNotificationSchemasByAppId"); + public static class activateConfiguration extends org.apache.thrift.AsyncProcessFunction { + public activateConfiguration() { + super("activateConfiguration"); } - public getNotificationSchemasByAppId_args getEmptyArgsInstance() { - return new getNotificationSchemasByAppId_args(); + public activateConfiguration_args getEmptyArgsInstance() { + return new activateConfiguration_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getNotificationSchemasByAppId_result result = new getNotificationSchemasByAppId_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + activateConfiguration_result result = new activateConfiguration_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -12371,7 +12561,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getNotificationSchemasByAppId(args.applicationId,resultHandler); + public void start(I iface, activateConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.activateConfiguration(args.configurationId, args.activatedUsername,resultHandler); } } - public static class getUserNotificationSchemasByAppId extends org.apache.thrift.AsyncProcessFunction> { - public getUserNotificationSchemasByAppId() { - super("getUserNotificationSchemasByAppId"); + public static class deactivateConfiguration extends org.apache.thrift.AsyncProcessFunction { + public deactivateConfiguration() { + super("deactivateConfiguration"); } - public getUserNotificationSchemasByAppId_args getEmptyArgsInstance() { - return new getUserNotificationSchemasByAppId_args(); + public deactivateConfiguration_args getEmptyArgsInstance() { + return new deactivateConfiguration_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getUserNotificationSchemasByAppId_result result = new getUserNotificationSchemasByAppId_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + deactivateConfiguration_result result = new deactivateConfiguration_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -12428,7 +12618,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getUserNotificationSchemasByAppId(args.applicationId,resultHandler); + public void start(I iface, deactivateConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deactivateConfiguration(args.configurationId, args.deactivatedUsername,resultHandler); } } - public static class findNotificationSchemasByAppIdAndType extends org.apache.thrift.AsyncProcessFunction> { - public findNotificationSchemasByAppIdAndType() { - super("findNotificationSchemasByAppIdAndType"); + public static class deleteConfigurationRecord extends org.apache.thrift.AsyncProcessFunction { + public deleteConfigurationRecord() { + super("deleteConfigurationRecord"); } - public findNotificationSchemasByAppIdAndType_args getEmptyArgsInstance() { - return new findNotificationSchemasByAppIdAndType_args(); + public deleteConfigurationRecord_args getEmptyArgsInstance() { + return new deleteConfigurationRecord_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - findNotificationSchemasByAppIdAndType_result result = new findNotificationSchemasByAppIdAndType_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteConfigurationRecord_result result = new deleteConfigurationRecord_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -12485,7 +12674,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.findNotificationSchemasByAppIdAndType(args.applicationId, args.type,resultHandler); + public void start(I iface, deleteConfigurationRecord_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteConfigurationRecord(args.schemaId, args.endpointGroupId, args.deactivatedUsername,resultHandler); } } - public static class editNotification extends org.apache.thrift.AsyncProcessFunction { - public editNotification() { - super("editNotification"); + public static class editUserConfiguration extends org.apache.thrift.AsyncProcessFunction { + public editUserConfiguration() { + super("editUserConfiguration"); } - public editNotification_args getEmptyArgsInstance() { - return new editNotification_args(); + public editUserConfiguration_args getEmptyArgsInstance() { + return new editUserConfiguration_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editNotification_result result = new editNotification_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + editUserConfiguration_result result = new editUserConfiguration_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -12542,7 +12730,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editNotification_result result = new editNotification_result(); + editUserConfiguration_result result = new editUserConfiguration_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -12568,25 +12756,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, editNotification_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editNotification(args.notification,resultHandler); + public void start(I iface, editUserConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editUserConfiguration(args.configuration,resultHandler); } } - public static class getNotification extends org.apache.thrift.AsyncProcessFunction { - public getNotification() { - super("getNotification"); + public static class getNotificationSchemaVersionsByApplicationId extends org.apache.thrift.AsyncProcessFunction> { + public getNotificationSchemaVersionsByApplicationId() { + super("getNotificationSchemaVersionsByApplicationId"); } - public getNotification_args getEmptyArgsInstance() { - return new getNotification_args(); + public getNotificationSchemaVersionsByApplicationId_args getEmptyArgsInstance() { + return new getNotificationSchemaVersionsByApplicationId_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getNotification_result result = new getNotification_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getNotificationSchemaVersionsByApplicationId_result result = new getNotificationSchemaVersionsByApplicationId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -12599,7 +12787,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getNotification_result result = new getNotification_result(); + getNotificationSchemaVersionsByApplicationId_result result = new getNotificationSchemaVersionsByApplicationId_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -12625,82 +12813,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getNotification_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getNotification(args.notificationId,resultHandler); - } - } - - public static class getNotificationsByTopicId extends org.apache.thrift.AsyncProcessFunction> { - public getNotificationsByTopicId() { - super("getNotificationsByTopicId"); - } - - public getNotificationsByTopicId_args getEmptyArgsInstance() { - return new getNotificationsByTopicId_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getNotificationsByTopicId_result result = new getNotificationsByTopicId_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getNotificationsByTopicId_result result = new getNotificationsByTopicId_result(); - if (e instanceof ControlThriftException) { - result.ControlException = (ControlThriftException) e; - result.setControlExceptionIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, getNotificationsByTopicId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getNotificationsByTopicId(args.topicId,resultHandler); + public void start(I iface, getNotificationSchemaVersionsByApplicationId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getNotificationSchemaVersionsByApplicationId(args.applicationId,resultHandler); } } - public static class editTopic extends org.apache.thrift.AsyncProcessFunction { - public editTopic() { - super("editTopic"); + public static class editNotificationSchema extends org.apache.thrift.AsyncProcessFunction { + public editNotificationSchema() { + super("editNotificationSchema"); } - public editTopic_args getEmptyArgsInstance() { - return new editTopic_args(); + public editNotificationSchema_args getEmptyArgsInstance() { + return new editNotificationSchema_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editTopic_result result = new editTopic_result(); + editNotificationSchema_result result = new editNotificationSchema_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -12713,7 +12844,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editTopic_result result = new editTopic_result(); + editNotificationSchema_result result = new editNotificationSchema_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -12739,25 +12870,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, editTopic_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editTopic(args.topic,resultHandler); + public void start(I iface, editNotificationSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editNotificationSchema(args.notificationSchema,resultHandler); } } - public static class getTopic extends org.apache.thrift.AsyncProcessFunction { - public getTopic() { - super("getTopic"); + public static class getNotificationSchema extends org.apache.thrift.AsyncProcessFunction { + public getNotificationSchema() { + super("getNotificationSchema"); } - public getTopic_args getEmptyArgsInstance() { - return new getTopic_args(); + public getNotificationSchema_args getEmptyArgsInstance() { + return new getNotificationSchema_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getTopic_result result = new getTopic_result(); + getNotificationSchema_result result = new getNotificationSchema_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -12770,7 +12901,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getTopic_result result = new getTopic_result(); + getNotificationSchema_result result = new getNotificationSchema_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -12796,25 +12927,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getTopic_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getTopic(args.topicId,resultHandler); + public void start(I iface, getNotificationSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getNotificationSchema(args.notificationSchemaId,resultHandler); } } - public static class getTopicByAppId extends org.apache.thrift.AsyncProcessFunction> { - public getTopicByAppId() { - super("getTopicByAppId"); + public static class getNotificationSchemasByAppId extends org.apache.thrift.AsyncProcessFunction> { + public getNotificationSchemasByAppId() { + super("getNotificationSchemasByAppId"); } - public getTopicByAppId_args getEmptyArgsInstance() { - return new getTopicByAppId_args(); + public getNotificationSchemasByAppId_args getEmptyArgsInstance() { + return new getNotificationSchemasByAppId_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getTopicByAppId_result result = new getTopicByAppId_result(); + getNotificationSchemasByAppId_result result = new getNotificationSchemasByAppId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -12827,7 +12958,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getTopicByAppId(args.appId,resultHandler); + public void start(I iface, getNotificationSchemasByAppId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getNotificationSchemasByAppId(args.applicationId,resultHandler); } } - public static class getTopicByEndpointGroupId extends org.apache.thrift.AsyncProcessFunction> { - public getTopicByEndpointGroupId() { - super("getTopicByEndpointGroupId"); + public static class getUserNotificationSchemasByAppId extends org.apache.thrift.AsyncProcessFunction> { + public getUserNotificationSchemasByAppId() { + super("getUserNotificationSchemasByAppId"); } - public getTopicByEndpointGroupId_args getEmptyArgsInstance() { - return new getTopicByEndpointGroupId_args(); + public getUserNotificationSchemasByAppId_args getEmptyArgsInstance() { + return new getUserNotificationSchemasByAppId_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getTopicByEndpointGroupId_result result = new getTopicByEndpointGroupId_result(); + getUserNotificationSchemasByAppId_result result = new getUserNotificationSchemasByAppId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -12884,7 +13015,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getTopicByEndpointGroupId(args.endpointGroupId,resultHandler); + public void start(I iface, getUserNotificationSchemasByAppId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getUserNotificationSchemasByAppId(args.applicationId,resultHandler); } } - public static class getVacantTopicByEndpointGroupId extends org.apache.thrift.AsyncProcessFunction> { - public getVacantTopicByEndpointGroupId() { - super("getVacantTopicByEndpointGroupId"); + public static class findNotificationSchemasByAppIdAndType extends org.apache.thrift.AsyncProcessFunction> { + public findNotificationSchemasByAppIdAndType() { + super("findNotificationSchemasByAppIdAndType"); } - public getVacantTopicByEndpointGroupId_args getEmptyArgsInstance() { - return new getVacantTopicByEndpointGroupId_args(); + public findNotificationSchemasByAppIdAndType_args getEmptyArgsInstance() { + return new findNotificationSchemasByAppIdAndType_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getVacantTopicByEndpointGroupId_result result = new getVacantTopicByEndpointGroupId_result(); + findNotificationSchemasByAppIdAndType_result result = new findNotificationSchemasByAppIdAndType_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -12941,7 +13072,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getVacantTopicByEndpointGroupId(args.endpointGroupId,resultHandler); + public void start(I iface, findNotificationSchemasByAppIdAndType_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.findNotificationSchemasByAppIdAndType(args.applicationId, args.type,resultHandler); } } - public static class deleteTopicById extends org.apache.thrift.AsyncProcessFunction { - public deleteTopicById() { - super("deleteTopicById"); + public static class editNotification extends org.apache.thrift.AsyncProcessFunction { + public editNotification() { + super("editNotification"); } - public deleteTopicById_args getEmptyArgsInstance() { - return new deleteTopicById_args(); + public editNotification_args getEmptyArgsInstance() { + return new editNotification_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - deleteTopicById_result result = new deleteTopicById_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + editNotification_result result = new editNotification_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -12997,7 +13129,7 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteTopicById_result result = new deleteTopicById_result(); + editNotification_result result = new editNotification_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -13023,25 +13155,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteTopicById_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteTopicById(args.topicId,resultHandler); + public void start(I iface, editNotification_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editNotification(args.notification,resultHandler); } } - public static class getUnicastNotification extends org.apache.thrift.AsyncProcessFunction { - public getUnicastNotification() { - super("getUnicastNotification"); + public static class getNotification extends org.apache.thrift.AsyncProcessFunction { + public getNotification() { + super("getNotification"); } - public getUnicastNotification_args getEmptyArgsInstance() { - return new getUnicastNotification_args(); + public getNotification_args getEmptyArgsInstance() { + return new getNotification_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getUnicastNotification_result result = new getUnicastNotification_result(); + getNotification_result result = new getNotification_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -13054,7 +13186,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getUnicastNotification_result result = new getUnicastNotification_result(); + getNotification_result result = new getNotification_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -13080,25 +13212,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getUnicastNotification_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getUnicastNotification(args.notificationId,resultHandler); + public void start(I iface, getNotification_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getNotification(args.notificationId,resultHandler); } } - public static class editUnicastNotification extends org.apache.thrift.AsyncProcessFunction { - public editUnicastNotification() { - super("editUnicastNotification"); + public static class getNotificationsByTopicId extends org.apache.thrift.AsyncProcessFunction> { + public getNotificationsByTopicId() { + super("getNotificationsByTopicId"); } - public editUnicastNotification_args getEmptyArgsInstance() { - return new editUnicastNotification_args(); + public getNotificationsByTopicId_args getEmptyArgsInstance() { + return new getNotificationsByTopicId_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editUnicastNotification_result result = new editUnicastNotification_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getNotificationsByTopicId_result result = new getNotificationsByTopicId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -13111,7 +13243,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editUnicastNotification_result result = new editUnicastNotification_result(); + getNotificationsByTopicId_result result = new getNotificationsByTopicId_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -13137,25 +13269,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, editUnicastNotification_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editUnicastNotification(args.notification,resultHandler); + public void start(I iface, getNotificationsByTopicId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getNotificationsByTopicId(args.topicId,resultHandler); } } - public static class getUnicastNotificationsByKeyHash extends org.apache.thrift.AsyncProcessFunction> { - public getUnicastNotificationsByKeyHash() { - super("getUnicastNotificationsByKeyHash"); + public static class editTopic extends org.apache.thrift.AsyncProcessFunction { + public editTopic() { + super("editTopic"); } - public getUnicastNotificationsByKeyHash_args getEmptyArgsInstance() { - return new getUnicastNotificationsByKeyHash_args(); + public editTopic_args getEmptyArgsInstance() { + return new editTopic_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getUnicastNotificationsByKeyHash_result result = new getUnicastNotificationsByKeyHash_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + editTopic_result result = new editTopic_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -13168,7 +13300,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getUnicastNotificationsByKeyHash(args.keyhash,resultHandler); + public void start(I iface, editTopic_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editTopic(args.topic,resultHandler); } } - public static class generateSdk extends org.apache.thrift.AsyncProcessFunction { - public generateSdk() { - super("generateSdk"); + public static class getTopic extends org.apache.thrift.AsyncProcessFunction { + public getTopic() { + super("getTopic"); } - public generateSdk_args getEmptyArgsInstance() { - return new generateSdk_args(); + public getTopic_args getEmptyArgsInstance() { + return new getTopic_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Sdk o) { - generateSdk_result result = new generateSdk_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + getTopic_result result = new getTopic_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -13225,7 +13357,7 @@ public void onComplete(Sdk o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - generateSdk_result result = new generateSdk_result(); + getTopic_result result = new getTopic_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -13251,25 +13383,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, generateSdk_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.generateSdk(args.sdkProperties,resultHandler); + public void start(I iface, getTopic_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getTopic(args.topicId,resultHandler); } } - public static class editEventClassFamily extends org.apache.thrift.AsyncProcessFunction { - public editEventClassFamily() { - super("editEventClassFamily"); + public static class getTopicByAppId extends org.apache.thrift.AsyncProcessFunction> { + public getTopicByAppId() { + super("getTopicByAppId"); } - public editEventClassFamily_args getEmptyArgsInstance() { - return new editEventClassFamily_args(); + public getTopicByAppId_args getEmptyArgsInstance() { + return new getTopicByAppId_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editEventClassFamily_result result = new editEventClassFamily_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getTopicByAppId_result result = new getTopicByAppId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -13282,7 +13414,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editEventClassFamily_result result = new editEventClassFamily_result(); + getTopicByAppId_result result = new getTopicByAppId_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -13308,25 +13440,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, editEventClassFamily_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editEventClassFamily(args.eventClassFamily,resultHandler); + public void start(I iface, getTopicByAppId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getTopicByAppId(args.appId,resultHandler); } } - public static class getEventClassFamiliesByTenantId extends org.apache.thrift.AsyncProcessFunction> { - public getEventClassFamiliesByTenantId() { - super("getEventClassFamiliesByTenantId"); + public static class getTopicByEndpointGroupId extends org.apache.thrift.AsyncProcessFunction> { + public getTopicByEndpointGroupId() { + super("getTopicByEndpointGroupId"); } - public getEventClassFamiliesByTenantId_args getEmptyArgsInstance() { - return new getEventClassFamiliesByTenantId_args(); + public getTopicByEndpointGroupId_args getEmptyArgsInstance() { + return new getTopicByEndpointGroupId_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getEventClassFamiliesByTenantId_result result = new getEventClassFamiliesByTenantId_result(); + getTopicByEndpointGroupId_result result = new getTopicByEndpointGroupId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -13339,7 +13471,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getEventClassFamiliesByTenantId(args.tenantId,resultHandler); + public void start(I iface, getTopicByEndpointGroupId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getTopicByEndpointGroupId(args.endpointGroupId,resultHandler); } } - public static class getEventClassFamily extends org.apache.thrift.AsyncProcessFunction { - public getEventClassFamily() { - super("getEventClassFamily"); + public static class getVacantTopicByEndpointGroupId extends org.apache.thrift.AsyncProcessFunction> { + public getVacantTopicByEndpointGroupId() { + super("getVacantTopicByEndpointGroupId"); } - public getEventClassFamily_args getEmptyArgsInstance() { - return new getEventClassFamily_args(); + public getVacantTopicByEndpointGroupId_args getEmptyArgsInstance() { + return new getVacantTopicByEndpointGroupId_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getEventClassFamily_result result = new getEventClassFamily_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getVacantTopicByEndpointGroupId_result result = new getVacantTopicByEndpointGroupId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -13396,7 +13528,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getEventClassFamily_result result = new getEventClassFamily_result(); + getVacantTopicByEndpointGroupId_result result = new getVacantTopicByEndpointGroupId_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -13422,82 +13554,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getEventClassFamily_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getEventClassFamily(args.eventClassFamilyId,resultHandler); + public void start(I iface, getVacantTopicByEndpointGroupId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getVacantTopicByEndpointGroupId(args.endpointGroupId,resultHandler); } } - public static class addEventClassFamilySchema extends org.apache.thrift.AsyncProcessFunction { - public addEventClassFamilySchema() { - super("addEventClassFamilySchema"); + public static class deleteTopicById extends org.apache.thrift.AsyncProcessFunction { + public deleteTopicById() { + super("deleteTopicById"); } - public addEventClassFamilySchema_args getEmptyArgsInstance() { - return new addEventClassFamilySchema_args(); + public deleteTopicById_args getEmptyArgsInstance() { + return new deleteTopicById_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { - addEventClassFamilySchema_result result = new addEventClassFamilySchema_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - addEventClassFamilySchema_result result = new addEventClassFamilySchema_result(); - if (e instanceof ControlThriftException) { - result.ControlException = (ControlThriftException) e; - result.setControlExceptionIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, addEventClassFamilySchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addEventClassFamilySchema(args.eventClassFamilyId, args.eventClassFamilySchema, args.createdUsername,resultHandler); - } - } - - public static class getEventClassesByFamilyIdVersionAndType extends org.apache.thrift.AsyncProcessFunction> { - public getEventClassesByFamilyIdVersionAndType() { - super("getEventClassesByFamilyIdVersionAndType"); - } - - public getEventClassesByFamilyIdVersionAndType_args getEmptyArgsInstance() { - return new getEventClassesByFamilyIdVersionAndType_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getEventClassesByFamilyIdVersionAndType_result result = new getEventClassesByFamilyIdVersionAndType_result(); - result.success = o; + deleteTopicById_result result = new deleteTopicById_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -13509,7 +13584,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getEventClassesByFamilyIdVersionAndType(args.ecfId, args.version, args.type,resultHandler); + public void start(I iface, deleteTopicById_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteTopicById(args.topicId,resultHandler); } } - public static class editApplicationEventFamilyMap extends org.apache.thrift.AsyncProcessFunction { - public editApplicationEventFamilyMap() { - super("editApplicationEventFamilyMap"); + public static class getUnicastNotification extends org.apache.thrift.AsyncProcessFunction { + public getUnicastNotification() { + super("getUnicastNotification"); } - public editApplicationEventFamilyMap_args getEmptyArgsInstance() { - return new editApplicationEventFamilyMap_args(); + public getUnicastNotification_args getEmptyArgsInstance() { + return new getUnicastNotification_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editApplicationEventFamilyMap_result result = new editApplicationEventFamilyMap_result(); + getUnicastNotification_result result = new getUnicastNotification_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -13566,7 +13641,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editApplicationEventFamilyMap_result result = new editApplicationEventFamilyMap_result(); + getUnicastNotification_result result = new getUnicastNotification_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -13592,25 +13667,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, editApplicationEventFamilyMap_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editApplicationEventFamilyMap(args.applicationEventFamilyMap,resultHandler); + public void start(I iface, getUnicastNotification_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getUnicastNotification(args.notificationId,resultHandler); } } - public static class getApplicationEventFamilyMap extends org.apache.thrift.AsyncProcessFunction { - public getApplicationEventFamilyMap() { - super("getApplicationEventFamilyMap"); + public static class editUnicastNotification extends org.apache.thrift.AsyncProcessFunction { + public editUnicastNotification() { + super("editUnicastNotification"); } - public getApplicationEventFamilyMap_args getEmptyArgsInstance() { - return new getApplicationEventFamilyMap_args(); + public editUnicastNotification_args getEmptyArgsInstance() { + return new editUnicastNotification_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getApplicationEventFamilyMap_result result = new getApplicationEventFamilyMap_result(); + editUnicastNotification_result result = new editUnicastNotification_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -13623,7 +13698,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getApplicationEventFamilyMap_result result = new getApplicationEventFamilyMap_result(); + editUnicastNotification_result result = new editUnicastNotification_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -13649,25 +13724,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getApplicationEventFamilyMap_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getApplicationEventFamilyMap(args.applicationEventFamilyMapId,resultHandler); + public void start(I iface, editUnicastNotification_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editUnicastNotification(args.notification,resultHandler); } } - public static class getApplicationEventFamilyMapsByApplicationId extends org.apache.thrift.AsyncProcessFunction> { - public getApplicationEventFamilyMapsByApplicationId() { - super("getApplicationEventFamilyMapsByApplicationId"); + public static class getUnicastNotificationsByKeyHash extends org.apache.thrift.AsyncProcessFunction> { + public getUnicastNotificationsByKeyHash() { + super("getUnicastNotificationsByKeyHash"); } - public getApplicationEventFamilyMapsByApplicationId_args getEmptyArgsInstance() { - return new getApplicationEventFamilyMapsByApplicationId_args(); + public getUnicastNotificationsByKeyHash_args getEmptyArgsInstance() { + return new getUnicastNotificationsByKeyHash_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getApplicationEventFamilyMapsByApplicationId_result result = new getApplicationEventFamilyMapsByApplicationId_result(); + getUnicastNotificationsByKeyHash_result result = new getUnicastNotificationsByKeyHash_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -13680,7 +13755,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getApplicationEventFamilyMapsByApplicationId(args.applicationId,resultHandler); + public void start(I iface, getUnicastNotificationsByKeyHash_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getUnicastNotificationsByKeyHash(args.keyhash,resultHandler); } } - public static class getVacantEventClassFamiliesByApplicationId extends org.apache.thrift.AsyncProcessFunction> { - public getVacantEventClassFamiliesByApplicationId() { - super("getVacantEventClassFamiliesByApplicationId"); + public static class generateSdk extends org.apache.thrift.AsyncProcessFunction { + public generateSdk() { + super("generateSdk"); } - public getVacantEventClassFamiliesByApplicationId_args getEmptyArgsInstance() { - return new getVacantEventClassFamiliesByApplicationId_args(); + public generateSdk_args getEmptyArgsInstance() { + return new generateSdk_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getVacantEventClassFamiliesByApplicationId_result result = new getVacantEventClassFamiliesByApplicationId_result(); + return new AsyncMethodCallback() { + public void onComplete(Sdk o) { + generateSdk_result result = new generateSdk_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -13737,7 +13812,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getVacantEventClassFamiliesByApplicationId(args.applicationId,resultHandler); + public void start(I iface, generateSdk_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.generateSdk(args.sdkProperties,resultHandler); } } - public static class getEventClassFamiliesByApplicationId extends org.apache.thrift.AsyncProcessFunction> { - public getEventClassFamiliesByApplicationId() { - super("getEventClassFamiliesByApplicationId"); + public static class editEventClassFamily extends org.apache.thrift.AsyncProcessFunction { + public editEventClassFamily() { + super("editEventClassFamily"); } - public getEventClassFamiliesByApplicationId_args getEmptyArgsInstance() { - return new getEventClassFamiliesByApplicationId_args(); + public editEventClassFamily_args getEmptyArgsInstance() { + return new editEventClassFamily_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getEventClassFamiliesByApplicationId_result result = new getEventClassFamiliesByApplicationId_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + editEventClassFamily_result result = new editEventClassFamily_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -13794,7 +13869,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getEventClassFamiliesByApplicationId(args.applicationId,resultHandler); + public void start(I iface, editEventClassFamily_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editEventClassFamily(args.eventClassFamily,resultHandler); } } - public static class getEndpointUsers extends org.apache.thrift.AsyncProcessFunction> { - public getEndpointUsers() { - super("getEndpointUsers"); + public static class getEventClassFamiliesByTenantId extends org.apache.thrift.AsyncProcessFunction> { + public getEventClassFamiliesByTenantId() { + super("getEventClassFamiliesByTenantId"); } - public getEndpointUsers_args getEmptyArgsInstance() { - return new getEndpointUsers_args(); + public getEventClassFamiliesByTenantId_args getEmptyArgsInstance() { + return new getEventClassFamiliesByTenantId_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getEndpointUsers_result result = new getEndpointUsers_result(); + getEventClassFamiliesByTenantId_result result = new getEventClassFamiliesByTenantId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -13851,7 +13926,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getEndpointUsers(resultHandler); + public void start(I iface, getEventClassFamiliesByTenantId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getEventClassFamiliesByTenantId(args.tenantId,resultHandler); } } - public static class getEndpointUser extends org.apache.thrift.AsyncProcessFunction { - public getEndpointUser() { - super("getEndpointUser"); + public static class getEventClassFamily extends org.apache.thrift.AsyncProcessFunction { + public getEventClassFamily() { + super("getEventClassFamily"); } - public getEndpointUser_args getEmptyArgsInstance() { - return new getEndpointUser_args(); + public getEventClassFamily_args getEmptyArgsInstance() { + return new getEventClassFamily_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getEndpointUser_result result = new getEndpointUser_result(); + getEventClassFamily_result result = new getEventClassFamily_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -13908,7 +13983,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getEndpointUser_result result = new getEndpointUser_result(); + getEventClassFamily_result result = new getEventClassFamily_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -13934,26 +14009,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getEndpointUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getEndpointUser(args.endpointUserId,resultHandler); + public void start(I iface, getEventClassFamily_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getEventClassFamily(args.eventClassFamilyId,resultHandler); } } - public static class editEndpointUser extends org.apache.thrift.AsyncProcessFunction { - public editEndpointUser() { - super("editEndpointUser"); + public static class addEventClassFamilySchema extends org.apache.thrift.AsyncProcessFunction { + public addEventClassFamilySchema() { + super("addEventClassFamilySchema"); } - public editEndpointUser_args getEmptyArgsInstance() { - return new editEndpointUser_args(); + public addEventClassFamilySchema_args getEmptyArgsInstance() { + return new addEventClassFamilySchema_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editEndpointUser_result result = new editEndpointUser_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + addEventClassFamilySchema_result result = new addEventClassFamilySchema_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -13965,7 +14039,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editEndpointUser_result result = new editEndpointUser_result(); + addEventClassFamilySchema_result result = new addEventClassFamilySchema_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -13991,25 +14065,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, editEndpointUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editEndpointUser(args.endpointUser,resultHandler); + public void start(I iface, addEventClassFamilySchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addEventClassFamilySchema(args.eventClassFamilyId, args.eventClassFamilySchema, args.createdUsername,resultHandler); } } - public static class deleteEndpointUser extends org.apache.thrift.AsyncProcessFunction { - public deleteEndpointUser() { - super("deleteEndpointUser"); + public static class getEventClassesByFamilyIdVersionAndType extends org.apache.thrift.AsyncProcessFunction> { + public getEventClassesByFamilyIdVersionAndType() { + super("getEventClassesByFamilyIdVersionAndType"); } - public deleteEndpointUser_args getEmptyArgsInstance() { - return new deleteEndpointUser_args(); + public getEventClassesByFamilyIdVersionAndType_args getEmptyArgsInstance() { + return new getEventClassesByFamilyIdVersionAndType_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - deleteEndpointUser_result result = new deleteEndpointUser_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getEventClassesByFamilyIdVersionAndType_result result = new getEventClassesByFamilyIdVersionAndType_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -14021,7 +14096,7 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteEndpointUser_result result = new deleteEndpointUser_result(); + getEventClassesByFamilyIdVersionAndType_result result = new getEventClassesByFamilyIdVersionAndType_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -14047,25 +14122,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteEndpointUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteEndpointUser(args.endpointUserId,resultHandler); + public void start(I iface, getEventClassesByFamilyIdVersionAndType_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getEventClassesByFamilyIdVersionAndType(args.ecfId, args.version, args.type,resultHandler); } } - public static class generateEndpointUserAccessToken extends org.apache.thrift.AsyncProcessFunction { - public generateEndpointUserAccessToken() { - super("generateEndpointUserAccessToken"); + public static class editApplicationEventFamilyMap extends org.apache.thrift.AsyncProcessFunction { + public editApplicationEventFamilyMap() { + super("editApplicationEventFamilyMap"); } - public generateEndpointUserAccessToken_args getEmptyArgsInstance() { - return new generateEndpointUserAccessToken_args(); + public editApplicationEventFamilyMap_args getEmptyArgsInstance() { + return new editApplicationEventFamilyMap_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - generateEndpointUserAccessToken_result result = new generateEndpointUserAccessToken_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + editApplicationEventFamilyMap_result result = new editApplicationEventFamilyMap_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14078,7 +14153,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - generateEndpointUserAccessToken_result result = new generateEndpointUserAccessToken_result(); + editApplicationEventFamilyMap_result result = new editApplicationEventFamilyMap_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -14104,25 +14179,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, generateEndpointUserAccessToken_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.generateEndpointUserAccessToken(args.externalUid, args.tenantId,resultHandler); + public void start(I iface, editApplicationEventFamilyMap_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editApplicationEventFamilyMap(args.applicationEventFamilyMap,resultHandler); } } - public static class getLogAppendersByApplicationId extends org.apache.thrift.AsyncProcessFunction> { - public getLogAppendersByApplicationId() { - super("getLogAppendersByApplicationId"); + public static class getApplicationEventFamilyMap extends org.apache.thrift.AsyncProcessFunction { + public getApplicationEventFamilyMap() { + super("getApplicationEventFamilyMap"); } - public getLogAppendersByApplicationId_args getEmptyArgsInstance() { - return new getLogAppendersByApplicationId_args(); + public getApplicationEventFamilyMap_args getEmptyArgsInstance() { + return new getApplicationEventFamilyMap_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getLogAppendersByApplicationId_result result = new getLogAppendersByApplicationId_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + getApplicationEventFamilyMap_result result = new getApplicationEventFamilyMap_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14135,7 +14210,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getLogAppendersByApplicationId(args.applicationId,resultHandler); + public void start(I iface, getApplicationEventFamilyMap_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getApplicationEventFamilyMap(args.applicationEventFamilyMapId,resultHandler); } } - public static class getLogAppender extends org.apache.thrift.AsyncProcessFunction { - public getLogAppender() { - super("getLogAppender"); + public static class getApplicationEventFamilyMapsByApplicationId extends org.apache.thrift.AsyncProcessFunction> { + public getApplicationEventFamilyMapsByApplicationId() { + super("getApplicationEventFamilyMapsByApplicationId"); } - public getLogAppender_args getEmptyArgsInstance() { - return new getLogAppender_args(); + public getApplicationEventFamilyMapsByApplicationId_args getEmptyArgsInstance() { + return new getApplicationEventFamilyMapsByApplicationId_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getLogAppender_result result = new getLogAppender_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getApplicationEventFamilyMapsByApplicationId_result result = new getApplicationEventFamilyMapsByApplicationId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14192,7 +14267,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getLogAppender_result result = new getLogAppender_result(); + getApplicationEventFamilyMapsByApplicationId_result result = new getApplicationEventFamilyMapsByApplicationId_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -14218,25 +14293,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getLogAppender_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getLogAppender(args.logAppenderId,resultHandler); + public void start(I iface, getApplicationEventFamilyMapsByApplicationId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getApplicationEventFamilyMapsByApplicationId(args.applicationId,resultHandler); } } - public static class editLogAppender extends org.apache.thrift.AsyncProcessFunction { - public editLogAppender() { - super("editLogAppender"); + public static class getVacantEventClassFamiliesByApplicationId extends org.apache.thrift.AsyncProcessFunction> { + public getVacantEventClassFamiliesByApplicationId() { + super("getVacantEventClassFamiliesByApplicationId"); } - public editLogAppender_args getEmptyArgsInstance() { - return new editLogAppender_args(); + public getVacantEventClassFamiliesByApplicationId_args getEmptyArgsInstance() { + return new getVacantEventClassFamiliesByApplicationId_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editLogAppender_result result = new editLogAppender_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getVacantEventClassFamiliesByApplicationId_result result = new getVacantEventClassFamiliesByApplicationId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14249,7 +14324,7 @@ public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataSt public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - editLogAppender_result result = new editLogAppender_result(); + getVacantEventClassFamiliesByApplicationId_result result = new getVacantEventClassFamiliesByApplicationId_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -14275,25 +14350,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, editLogAppender_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editLogAppender(args.logAppender,resultHandler); + public void start(I iface, getVacantEventClassFamiliesByApplicationId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getVacantEventClassFamiliesByApplicationId(args.applicationId,resultHandler); } } - public static class deleteLogAppender extends org.apache.thrift.AsyncProcessFunction { - public deleteLogAppender() { - super("deleteLogAppender"); + public static class getEventClassFamiliesByApplicationId extends org.apache.thrift.AsyncProcessFunction> { + public getEventClassFamiliesByApplicationId() { + super("getEventClassFamiliesByApplicationId"); } - public deleteLogAppender_args getEmptyArgsInstance() { - return new deleteLogAppender_args(); + public getEventClassFamiliesByApplicationId_args getEmptyArgsInstance() { + return new getEventClassFamiliesByApplicationId_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - deleteLogAppender_result result = new deleteLogAppender_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getEventClassFamiliesByApplicationId_result result = new getEventClassFamiliesByApplicationId_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -14305,7 +14381,7 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteLogAppender_result result = new deleteLogAppender_result(); + getEventClassFamiliesByApplicationId_result result = new getEventClassFamiliesByApplicationId_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -14331,25 +14407,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteLogAppender_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteLogAppender(args.logAppenderId,resultHandler); + public void start(I iface, getEventClassFamiliesByApplicationId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getEventClassFamiliesByApplicationId(args.applicationId,resultHandler); } } - public static class generateRecordStructureLibrary extends org.apache.thrift.AsyncProcessFunction { - public generateRecordStructureLibrary() { - super("generateRecordStructureLibrary"); + public static class getEndpointUsers extends org.apache.thrift.AsyncProcessFunction> { + public getEndpointUsers() { + super("getEndpointUsers"); } - public generateRecordStructureLibrary_args getEmptyArgsInstance() { - return new generateRecordStructureLibrary_args(); + public getEndpointUsers_args getEmptyArgsInstance() { + return new getEndpointUsers_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(FileData o) { - generateRecordStructureLibrary_result result = new generateRecordStructureLibrary_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getEndpointUsers_result result = new getEndpointUsers_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14362,7 +14438,7 @@ public void onComplete(FileData o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - generateRecordStructureLibrary_result result = new generateRecordStructureLibrary_result(); + getEndpointUsers_result result = new getEndpointUsers_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -14388,25 +14464,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, generateRecordStructureLibrary_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.generateRecordStructureLibrary(args.applicationId, args.logSchemaVersion,resultHandler); + public void start(I iface, getEndpointUsers_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getEndpointUsers(resultHandler); } } - public static class getRecordStructureSchema extends org.apache.thrift.AsyncProcessFunction { - public getRecordStructureSchema() { - super("getRecordStructureSchema"); + public static class getEndpointUser extends org.apache.thrift.AsyncProcessFunction { + public getEndpointUser() { + super("getEndpointUser"); } - public getRecordStructureSchema_args getEmptyArgsInstance() { - return new getRecordStructureSchema_args(); + public getEndpointUser_args getEmptyArgsInstance() { + return new getEndpointUser_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(FileData o) { - getRecordStructureSchema_result result = new getRecordStructureSchema_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + getEndpointUser_result result = new getEndpointUser_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14419,7 +14495,7 @@ public void onComplete(FileData o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getRecordStructureSchema_result result = new getRecordStructureSchema_result(); + getEndpointUser_result result = new getEndpointUser_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -14445,25 +14521,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getRecordStructureSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getRecordStructureSchema(args.applicationId, args.logSchemaVersion,resultHandler); + public void start(I iface, getEndpointUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getEndpointUser(args.endpointUserId,resultHandler); } } - public static class getRecordStructureData extends org.apache.thrift.AsyncProcessFunction { - public getRecordStructureData() { - super("getRecordStructureData"); + public static class editEndpointUser extends org.apache.thrift.AsyncProcessFunction { + public editEndpointUser() { + super("editEndpointUser"); } - public getRecordStructureData_args getEmptyArgsInstance() { - return new getRecordStructureData_args(); + public editEndpointUser_args getEmptyArgsInstance() { + return new editEndpointUser_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(FileData o) { - getRecordStructureData_result result = new getRecordStructureData_result(); + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + editEndpointUser_result result = new editEndpointUser_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -14476,7 +14552,518 @@ public void onComplete(FileData o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getRecordStructureData_result result = new getRecordStructureData_result(); + editEndpointUser_result result = new editEndpointUser_result(); + if (e instanceof ControlThriftException) { + result.ControlException = (ControlThriftException) e; + result.setControlExceptionIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, editEndpointUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editEndpointUser(args.endpointUser,resultHandler); + } + } + + public static class deleteEndpointUser extends org.apache.thrift.AsyncProcessFunction { + public deleteEndpointUser() { + super("deleteEndpointUser"); + } + + public deleteEndpointUser_args getEmptyArgsInstance() { + return new deleteEndpointUser_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteEndpointUser_result result = new deleteEndpointUser_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + deleteEndpointUser_result result = new deleteEndpointUser_result(); + if (e instanceof ControlThriftException) { + result.ControlException = (ControlThriftException) e; + result.setControlExceptionIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, deleteEndpointUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteEndpointUser(args.endpointUserId,resultHandler); + } + } + + public static class generateEndpointUserAccessToken extends org.apache.thrift.AsyncProcessFunction { + public generateEndpointUserAccessToken() { + super("generateEndpointUserAccessToken"); + } + + public generateEndpointUserAccessToken_args getEmptyArgsInstance() { + return new generateEndpointUserAccessToken_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + generateEndpointUserAccessToken_result result = new generateEndpointUserAccessToken_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + generateEndpointUserAccessToken_result result = new generateEndpointUserAccessToken_result(); + if (e instanceof ControlThriftException) { + result.ControlException = (ControlThriftException) e; + result.setControlExceptionIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, generateEndpointUserAccessToken_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.generateEndpointUserAccessToken(args.externalUid, args.tenantId,resultHandler); + } + } + + public static class getLogAppendersByApplicationId extends org.apache.thrift.AsyncProcessFunction> { + public getLogAppendersByApplicationId() { + super("getLogAppendersByApplicationId"); + } + + public getLogAppendersByApplicationId_args getEmptyArgsInstance() { + return new getLogAppendersByApplicationId_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getLogAppendersByApplicationId_result result = new getLogAppendersByApplicationId_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getLogAppendersByApplicationId_result result = new getLogAppendersByApplicationId_result(); + if (e instanceof ControlThriftException) { + result.ControlException = (ControlThriftException) e; + result.setControlExceptionIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getLogAppendersByApplicationId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getLogAppendersByApplicationId(args.applicationId,resultHandler); + } + } + + public static class getLogAppender extends org.apache.thrift.AsyncProcessFunction { + public getLogAppender() { + super("getLogAppender"); + } + + public getLogAppender_args getEmptyArgsInstance() { + return new getLogAppender_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + getLogAppender_result result = new getLogAppender_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getLogAppender_result result = new getLogAppender_result(); + if (e instanceof ControlThriftException) { + result.ControlException = (ControlThriftException) e; + result.setControlExceptionIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getLogAppender_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getLogAppender(args.logAppenderId,resultHandler); + } + } + + public static class editLogAppender extends org.apache.thrift.AsyncProcessFunction { + public editLogAppender() { + super("editLogAppender"); + } + + public editLogAppender_args getEmptyArgsInstance() { + return new editLogAppender_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + editLogAppender_result result = new editLogAppender_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + editLogAppender_result result = new editLogAppender_result(); + if (e instanceof ControlThriftException) { + result.ControlException = (ControlThriftException) e; + result.setControlExceptionIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, editLogAppender_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editLogAppender(args.logAppender,resultHandler); + } + } + + public static class deleteLogAppender extends org.apache.thrift.AsyncProcessFunction { + public deleteLogAppender() { + super("deleteLogAppender"); + } + + public deleteLogAppender_args getEmptyArgsInstance() { + return new deleteLogAppender_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteLogAppender_result result = new deleteLogAppender_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + deleteLogAppender_result result = new deleteLogAppender_result(); + if (e instanceof ControlThriftException) { + result.ControlException = (ControlThriftException) e; + result.setControlExceptionIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, deleteLogAppender_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteLogAppender(args.logAppenderId,resultHandler); + } + } + + public static class generateRecordStructureLibrary extends org.apache.thrift.AsyncProcessFunction { + public generateRecordStructureLibrary() { + super("generateRecordStructureLibrary"); + } + + public generateRecordStructureLibrary_args getEmptyArgsInstance() { + return new generateRecordStructureLibrary_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(FileData o) { + generateRecordStructureLibrary_result result = new generateRecordStructureLibrary_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + generateRecordStructureLibrary_result result = new generateRecordStructureLibrary_result(); + if (e instanceof ControlThriftException) { + result.ControlException = (ControlThriftException) e; + result.setControlExceptionIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, generateRecordStructureLibrary_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.generateRecordStructureLibrary(args.applicationId, args.logSchemaVersion,resultHandler); + } + } + + public static class getRecordStructureSchema extends org.apache.thrift.AsyncProcessFunction { + public getRecordStructureSchema() { + super("getRecordStructureSchema"); + } + + public getRecordStructureSchema_args getEmptyArgsInstance() { + return new getRecordStructureSchema_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(FileData o) { + getRecordStructureSchema_result result = new getRecordStructureSchema_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getRecordStructureSchema_result result = new getRecordStructureSchema_result(); + if (e instanceof ControlThriftException) { + result.ControlException = (ControlThriftException) e; + result.setControlExceptionIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getRecordStructureSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getRecordStructureSchema(args.applicationId, args.logSchemaVersion,resultHandler); + } + } + + public static class getRecordStructureData extends org.apache.thrift.AsyncProcessFunction { + public getRecordStructureData() { + super("getRecordStructureData"); + } + + public getRecordStructureData_args getEmptyArgsInstance() { + return new getRecordStructureData_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(FileData o) { + getRecordStructureData_result result = new getRecordStructureData_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getRecordStructureData_result result = new getRecordStructureData_result(); if (e instanceof ControlThriftException) { result.ControlException = (ControlThriftException) e; result.setControlExceptionIsSet(true); @@ -14505,232 +15092,3560 @@ protected boolean isOneway() { public void start(I iface, getRecordStructureData_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getRecordStructureData(args.applicationId, args.schemaVersion, args.recordFile,resultHandler); } - } + } + + public static class getUserVerifiersByApplicationId extends org.apache.thrift.AsyncProcessFunction> { + public getUserVerifiersByApplicationId() { + super("getUserVerifiersByApplicationId"); + } + + public getUserVerifiersByApplicationId_args getEmptyArgsInstance() { + return new getUserVerifiersByApplicationId_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getUserVerifiersByApplicationId_result result = new getUserVerifiersByApplicationId_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getUserVerifiersByApplicationId_result result = new getUserVerifiersByApplicationId_result(); + if (e instanceof ControlThriftException) { + result.ControlException = (ControlThriftException) e; + result.setControlExceptionIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getUserVerifiersByApplicationId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getUserVerifiersByApplicationId(args.applicationId,resultHandler); + } + } + + public static class getUserVerifier extends org.apache.thrift.AsyncProcessFunction { + public getUserVerifier() { + super("getUserVerifier"); + } + + public getUserVerifier_args getEmptyArgsInstance() { + return new getUserVerifier_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + getUserVerifier_result result = new getUserVerifier_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getUserVerifier_result result = new getUserVerifier_result(); + if (e instanceof ControlThriftException) { + result.ControlException = (ControlThriftException) e; + result.setControlExceptionIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getUserVerifier_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getUserVerifier(args.userVerifierId,resultHandler); + } + } + + public static class editUserVerifier extends org.apache.thrift.AsyncProcessFunction { + public editUserVerifier() { + super("editUserVerifier"); + } + + public editUserVerifier_args getEmptyArgsInstance() { + return new editUserVerifier_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { + editUserVerifier_result result = new editUserVerifier_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + editUserVerifier_result result = new editUserVerifier_result(); + if (e instanceof ControlThriftException) { + result.ControlException = (ControlThriftException) e; + result.setControlExceptionIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, editUserVerifier_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.editUserVerifier(args.userVerifier,resultHandler); + } + } + + public static class deleteUserVerifier extends org.apache.thrift.AsyncProcessFunction { + public deleteUserVerifier() { + super("deleteUserVerifier"); + } + + public deleteUserVerifier_args getEmptyArgsInstance() { + return new deleteUserVerifier_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteUserVerifier_result result = new deleteUserVerifier_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + deleteUserVerifier_result result = new deleteUserVerifier_result(); + if (e instanceof ControlThriftException) { + result.ControlException = (ControlThriftException) e; + result.setControlExceptionIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, deleteUserVerifier_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteUserVerifier(args.userVerifierId,resultHandler); + } + } + + } + + public static class getEndpointProfileByKeyHash_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEndpointProfileByKeyHash_args"); + + private static final org.apache.thrift.protocol.TField ENDPOINT_PROFILE_KEY_HASH_FIELD_DESC = new org.apache.thrift.protocol.TField("endpointProfileKeyHash", org.apache.thrift.protocol.TType.STRING, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getEndpointProfileByKeyHash_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getEndpointProfileByKeyHash_argsTupleSchemeFactory()); + } + + public String endpointProfileKeyHash; // 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 { + ENDPOINT_PROFILE_KEY_HASH((short)1, "endpointProfileKeyHash"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // ENDPOINT_PROFILE_KEY_HASH + return ENDPOINT_PROFILE_KEY_HASH; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.ENDPOINT_PROFILE_KEY_HASH, new org.apache.thrift.meta_data.FieldMetaData("endpointProfileKeyHash", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "id"))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEndpointProfileByKeyHash_args.class, metaDataMap); + } + + public getEndpointProfileByKeyHash_args() { + } + + public getEndpointProfileByKeyHash_args( + String endpointProfileKeyHash) + { + this(); + this.endpointProfileKeyHash = endpointProfileKeyHash; + } + + /** + * Performs a deep copy on other. + */ + public getEndpointProfileByKeyHash_args(getEndpointProfileByKeyHash_args other) { + if (other.isSetEndpointProfileKeyHash()) { + this.endpointProfileKeyHash = other.endpointProfileKeyHash; + } + } + + public getEndpointProfileByKeyHash_args deepCopy() { + return new getEndpointProfileByKeyHash_args(this); + } + + @Override + public void clear() { + this.endpointProfileKeyHash = null; + } + + public String getEndpointProfileKeyHash() { + return this.endpointProfileKeyHash; + } + + public getEndpointProfileByKeyHash_args setEndpointProfileKeyHash(String endpointProfileKeyHash) { + this.endpointProfileKeyHash = endpointProfileKeyHash; + return this; + } + + public void unsetEndpointProfileKeyHash() { + this.endpointProfileKeyHash = null; + } + + /** Returns true if field endpointProfileKeyHash is set (has been assigned a value) and false otherwise */ + public boolean isSetEndpointProfileKeyHash() { + return this.endpointProfileKeyHash != null; + } + + public void setEndpointProfileKeyHashIsSet(boolean value) { + if (!value) { + this.endpointProfileKeyHash = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case ENDPOINT_PROFILE_KEY_HASH: + if (value == null) { + unsetEndpointProfileKeyHash(); + } else { + setEndpointProfileKeyHash((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case ENDPOINT_PROFILE_KEY_HASH: + return getEndpointProfileKeyHash(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case ENDPOINT_PROFILE_KEY_HASH: + return isSetEndpointProfileKeyHash(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getEndpointProfileByKeyHash_args) + return this.equals((getEndpointProfileByKeyHash_args)that); + return false; + } + + public boolean equals(getEndpointProfileByKeyHash_args that) { + if (that == null) + return false; + + boolean this_present_endpointProfileKeyHash = true && this.isSetEndpointProfileKeyHash(); + boolean that_present_endpointProfileKeyHash = true && that.isSetEndpointProfileKeyHash(); + if (this_present_endpointProfileKeyHash || that_present_endpointProfileKeyHash) { + if (!(this_present_endpointProfileKeyHash && that_present_endpointProfileKeyHash)) + return false; + if (!this.endpointProfileKeyHash.equals(that.endpointProfileKeyHash)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_endpointProfileKeyHash = true && (isSetEndpointProfileKeyHash()); + list.add(present_endpointProfileKeyHash); + if (present_endpointProfileKeyHash) + list.add(endpointProfileKeyHash); + + return list.hashCode(); + } + + @Override + public int compareTo(getEndpointProfileByKeyHash_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetEndpointProfileKeyHash()).compareTo(other.isSetEndpointProfileKeyHash()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEndpointProfileKeyHash()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endpointProfileKeyHash, other.endpointProfileKeyHash); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getEndpointProfileByKeyHash_args("); + boolean first = true; + + sb.append("endpointProfileKeyHash:"); + if (this.endpointProfileKeyHash == null) { + sb.append("null"); + } else { + sb.append(this.endpointProfileKeyHash); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getEndpointProfileByKeyHash_argsStandardSchemeFactory implements SchemeFactory { + public getEndpointProfileByKeyHash_argsStandardScheme getScheme() { + return new getEndpointProfileByKeyHash_argsStandardScheme(); + } + } + + private static class getEndpointProfileByKeyHash_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getEndpointProfileByKeyHash_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: // ENDPOINT_PROFILE_KEY_HASH + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.endpointProfileKeyHash = iprot.readString(); + struct.setEndpointProfileKeyHashIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getEndpointProfileByKeyHash_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.endpointProfileKeyHash != null) { + oprot.writeFieldBegin(ENDPOINT_PROFILE_KEY_HASH_FIELD_DESC); + oprot.writeString(struct.endpointProfileKeyHash); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getEndpointProfileByKeyHash_argsTupleSchemeFactory implements SchemeFactory { + public getEndpointProfileByKeyHash_argsTupleScheme getScheme() { + return new getEndpointProfileByKeyHash_argsTupleScheme(); + } + } + + private static class getEndpointProfileByKeyHash_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileByKeyHash_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetEndpointProfileKeyHash()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetEndpointProfileKeyHash()) { + oprot.writeString(struct.endpointProfileKeyHash); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileByKeyHash_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.endpointProfileKeyHash = iprot.readString(); + struct.setEndpointProfileKeyHashIsSet(true); + } + } + } + + } + + public static class getEndpointProfileByKeyHash_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEndpointProfileByKeyHash_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 CONTROL_EXCEPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("ControlException", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getEndpointProfileByKeyHash_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getEndpointProfileByKeyHash_resultTupleSchemeFactory()); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct success; // required + public ControlThriftException ControlException; // 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"), + CONTROL_EXCEPTION((short)1, "ControlException"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // CONTROL_EXCEPTION + return CONTROL_EXCEPTION; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT , "data"))); + tmpMap.put(_Fields.CONTROL_EXCEPTION, new org.apache.thrift.meta_data.FieldMetaData("ControlException", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEndpointProfileByKeyHash_result.class, metaDataMap); + } + + public getEndpointProfileByKeyHash_result() { + } + + public getEndpointProfileByKeyHash_result( + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct success, + ControlThriftException ControlException) + { + this(); + this.success = success; + this.ControlException = ControlException; + } + + /** + * Performs a deep copy on other. + */ + public getEndpointProfileByKeyHash_result(getEndpointProfileByKeyHash_result other) { + if (other.isSetSuccess()) { + this.success = other.success; + } + if (other.isSetControlException()) { + this.ControlException = new ControlThriftException(other.ControlException); + } + } + + public getEndpointProfileByKeyHash_result deepCopy() { + return new getEndpointProfileByKeyHash_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ControlException = null; + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getSuccess() { + return this.success; + } + + public getEndpointProfileByKeyHash_result setSuccess(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public ControlThriftException getControlException() { + return this.ControlException; + } + + public getEndpointProfileByKeyHash_result setControlException(ControlThriftException ControlException) { + this.ControlException = ControlException; + return this; + } + + public void unsetControlException() { + this.ControlException = null; + } + + /** Returns true if field ControlException is set (has been assigned a value) and false otherwise */ + public boolean isSetControlException() { + return this.ControlException != null; + } + + public void setControlExceptionIsSet(boolean value) { + if (!value) { + this.ControlException = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct)value); + } + break; + + case CONTROL_EXCEPTION: + if (value == null) { + unsetControlException(); + } else { + setControlException((ControlThriftException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case CONTROL_EXCEPTION: + return getControlException(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case CONTROL_EXCEPTION: + return isSetControlException(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getEndpointProfileByKeyHash_result) + return this.equals((getEndpointProfileByKeyHash_result)that); + return false; + } + + public boolean equals(getEndpointProfileByKeyHash_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_ControlException = true && this.isSetControlException(); + boolean that_present_ControlException = true && that.isSetControlException(); + if (this_present_ControlException || that_present_ControlException) { + if (!(this_present_ControlException && that_present_ControlException)) + return false; + if (!this.ControlException.equals(that.ControlException)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + boolean present_ControlException = true && (isSetControlException()); + list.add(present_ControlException); + if (present_ControlException) + list.add(ControlException); + + return list.hashCode(); + } + + @Override + public int compareTo(getEndpointProfileByKeyHash_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetControlException()).compareTo(other.isSetControlException()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetControlException()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ControlException, other.ControlException); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getEndpointProfileByKeyHash_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("ControlException:"); + if (this.ControlException == null) { + sb.append("null"); + } else { + sb.append(this.ControlException); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getEndpointProfileByKeyHash_resultStandardSchemeFactory implements SchemeFactory { + public getEndpointProfileByKeyHash_resultStandardScheme getScheme() { + return new getEndpointProfileByKeyHash_resultStandardScheme(); + } + } + + private static class getEndpointProfileByKeyHash_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getEndpointProfileByKeyHash_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 org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CONTROL_EXCEPTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ControlException = new ControlThriftException(); + struct.ControlException.read(iprot); + struct.setControlExceptionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getEndpointProfileByKeyHash_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.ControlException != null) { + oprot.writeFieldBegin(CONTROL_EXCEPTION_FIELD_DESC); + struct.ControlException.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getEndpointProfileByKeyHash_resultTupleSchemeFactory implements SchemeFactory { + public getEndpointProfileByKeyHash_resultTupleScheme getScheme() { + return new getEndpointProfileByKeyHash_resultTupleScheme(); + } + } + + private static class getEndpointProfileByKeyHash_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileByKeyHash_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetControlException()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetControlException()) { + struct.ControlException.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileByKeyHash_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ControlException = new ControlThriftException(); + struct.ControlException.read(iprot); + struct.setControlExceptionIsSet(true); + } + } + } + + } + + public static class getEndpointProfileByEndpointGroupId_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEndpointProfileByEndpointGroupId_args"); + + private static final org.apache.thrift.protocol.TField PAGE_LINK_FIELD_DESC = new org.apache.thrift.protocol.TField("pageLink", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getEndpointProfileByEndpointGroupId_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getEndpointProfileByEndpointGroupId_argsTupleSchemeFactory()); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink; // 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 { + PAGE_LINK((short)1, "pageLink"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // PAGE_LINK + return PAGE_LINK; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PAGE_LINK, new org.apache.thrift.meta_data.FieldMetaData("pageLink", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT , "data"))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEndpointProfileByEndpointGroupId_args.class, metaDataMap); + } + + public getEndpointProfileByEndpointGroupId_args() { + } + + public getEndpointProfileByEndpointGroupId_args( + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink) + { + this(); + this.pageLink = pageLink; + } + + /** + * Performs a deep copy on other. + */ + public getEndpointProfileByEndpointGroupId_args(getEndpointProfileByEndpointGroupId_args other) { + if (other.isSetPageLink()) { + this.pageLink = other.pageLink; + } + } + + public getEndpointProfileByEndpointGroupId_args deepCopy() { + return new getEndpointProfileByEndpointGroupId_args(this); + } + + @Override + public void clear() { + this.pageLink = null; + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getPageLink() { + return this.pageLink; + } + + public getEndpointProfileByEndpointGroupId_args setPageLink(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink) { + this.pageLink = pageLink; + return this; + } + + public void unsetPageLink() { + this.pageLink = null; + } + + /** Returns true if field pageLink is set (has been assigned a value) and false otherwise */ + public boolean isSetPageLink() { + return this.pageLink != null; + } + + public void setPageLinkIsSet(boolean value) { + if (!value) { + this.pageLink = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PAGE_LINK: + if (value == null) { + unsetPageLink(); + } else { + setPageLink((org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PAGE_LINK: + return getPageLink(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case PAGE_LINK: + return isSetPageLink(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getEndpointProfileByEndpointGroupId_args) + return this.equals((getEndpointProfileByEndpointGroupId_args)that); + return false; + } + + public boolean equals(getEndpointProfileByEndpointGroupId_args that) { + if (that == null) + return false; + + boolean this_present_pageLink = true && this.isSetPageLink(); + boolean that_present_pageLink = true && that.isSetPageLink(); + if (this_present_pageLink || that_present_pageLink) { + if (!(this_present_pageLink && that_present_pageLink)) + return false; + if (!this.pageLink.equals(that.pageLink)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_pageLink = true && (isSetPageLink()); + list.add(present_pageLink); + if (present_pageLink) + list.add(pageLink); + + return list.hashCode(); + } + + @Override + public int compareTo(getEndpointProfileByEndpointGroupId_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetPageLink()).compareTo(other.isSetPageLink()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPageLink()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pageLink, other.pageLink); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getEndpointProfileByEndpointGroupId_args("); + boolean first = true; + + sb.append("pageLink:"); + if (this.pageLink == null) { + sb.append("null"); + } else { + sb.append(this.pageLink); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getEndpointProfileByEndpointGroupId_argsStandardSchemeFactory implements SchemeFactory { + public getEndpointProfileByEndpointGroupId_argsStandardScheme getScheme() { + return new getEndpointProfileByEndpointGroupId_argsStandardScheme(); + } + } + + private static class getEndpointProfileByEndpointGroupId_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getEndpointProfileByEndpointGroupId_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: // PAGE_LINK + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.pageLink = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + struct.pageLink.read(iprot); + struct.setPageLinkIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getEndpointProfileByEndpointGroupId_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.pageLink != null) { + oprot.writeFieldBegin(PAGE_LINK_FIELD_DESC); + struct.pageLink.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getEndpointProfileByEndpointGroupId_argsTupleSchemeFactory implements SchemeFactory { + public getEndpointProfileByEndpointGroupId_argsTupleScheme getScheme() { + return new getEndpointProfileByEndpointGroupId_argsTupleScheme(); + } + } + + private static class getEndpointProfileByEndpointGroupId_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileByEndpointGroupId_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetPageLink()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetPageLink()) { + struct.pageLink.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileByEndpointGroupId_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.pageLink = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + struct.pageLink.read(iprot); + struct.setPageLinkIsSet(true); + } + } + } + + } + + public static class getEndpointProfileByEndpointGroupId_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEndpointProfileByEndpointGroupId_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 CONTROL_EXCEPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("ControlException", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getEndpointProfileByEndpointGroupId_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getEndpointProfileByEndpointGroupId_resultTupleSchemeFactory()); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct success; // required + public ControlThriftException ControlException; // 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"), + CONTROL_EXCEPTION((short)1, "ControlException"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // CONTROL_EXCEPTION + return CONTROL_EXCEPTION; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT , "data"))); + tmpMap.put(_Fields.CONTROL_EXCEPTION, new org.apache.thrift.meta_data.FieldMetaData("ControlException", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEndpointProfileByEndpointGroupId_result.class, metaDataMap); + } + + public getEndpointProfileByEndpointGroupId_result() { + } + + public getEndpointProfileByEndpointGroupId_result( + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct success, + ControlThriftException ControlException) + { + this(); + this.success = success; + this.ControlException = ControlException; + } + + /** + * Performs a deep copy on other. + */ + public getEndpointProfileByEndpointGroupId_result(getEndpointProfileByEndpointGroupId_result other) { + if (other.isSetSuccess()) { + this.success = other.success; + } + if (other.isSetControlException()) { + this.ControlException = new ControlThriftException(other.ControlException); + } + } + + public getEndpointProfileByEndpointGroupId_result deepCopy() { + return new getEndpointProfileByEndpointGroupId_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ControlException = null; + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getSuccess() { + return this.success; + } + + public getEndpointProfileByEndpointGroupId_result setSuccess(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public ControlThriftException getControlException() { + return this.ControlException; + } + + public getEndpointProfileByEndpointGroupId_result setControlException(ControlThriftException ControlException) { + this.ControlException = ControlException; + return this; + } + + public void unsetControlException() { + this.ControlException = null; + } + + /** Returns true if field ControlException is set (has been assigned a value) and false otherwise */ + public boolean isSetControlException() { + return this.ControlException != null; + } + + public void setControlExceptionIsSet(boolean value) { + if (!value) { + this.ControlException = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct)value); + } + break; + + case CONTROL_EXCEPTION: + if (value == null) { + unsetControlException(); + } else { + setControlException((ControlThriftException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case CONTROL_EXCEPTION: + return getControlException(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case CONTROL_EXCEPTION: + return isSetControlException(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getEndpointProfileByEndpointGroupId_result) + return this.equals((getEndpointProfileByEndpointGroupId_result)that); + return false; + } + + public boolean equals(getEndpointProfileByEndpointGroupId_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_ControlException = true && this.isSetControlException(); + boolean that_present_ControlException = true && that.isSetControlException(); + if (this_present_ControlException || that_present_ControlException) { + if (!(this_present_ControlException && that_present_ControlException)) + return false; + if (!this.ControlException.equals(that.ControlException)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + boolean present_ControlException = true && (isSetControlException()); + list.add(present_ControlException); + if (present_ControlException) + list.add(ControlException); + + return list.hashCode(); + } + + @Override + public int compareTo(getEndpointProfileByEndpointGroupId_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetControlException()).compareTo(other.isSetControlException()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetControlException()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ControlException, other.ControlException); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getEndpointProfileByEndpointGroupId_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("ControlException:"); + if (this.ControlException == null) { + sb.append("null"); + } else { + sb.append(this.ControlException); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getEndpointProfileByEndpointGroupId_resultStandardSchemeFactory implements SchemeFactory { + public getEndpointProfileByEndpointGroupId_resultStandardScheme getScheme() { + return new getEndpointProfileByEndpointGroupId_resultStandardScheme(); + } + } + + private static class getEndpointProfileByEndpointGroupId_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getEndpointProfileByEndpointGroupId_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 org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CONTROL_EXCEPTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ControlException = new ControlThriftException(); + struct.ControlException.read(iprot); + struct.setControlExceptionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getEndpointProfileByEndpointGroupId_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.ControlException != null) { + oprot.writeFieldBegin(CONTROL_EXCEPTION_FIELD_DESC); + struct.ControlException.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getEndpointProfileByEndpointGroupId_resultTupleSchemeFactory implements SchemeFactory { + public getEndpointProfileByEndpointGroupId_resultTupleScheme getScheme() { + return new getEndpointProfileByEndpointGroupId_resultTupleScheme(); + } + } + + private static class getEndpointProfileByEndpointGroupId_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileByEndpointGroupId_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetControlException()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetControlException()) { + struct.ControlException.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileByEndpointGroupId_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ControlException = new ControlThriftException(); + struct.ControlException.read(iprot); + struct.setControlExceptionIsSet(true); + } + } + } + + } + + public static class getEndpointProfileBodyByKeyHash_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEndpointProfileBodyByKeyHash_args"); + + private static final org.apache.thrift.protocol.TField ENDPOINT_PROFILE_KEY_HASH_FIELD_DESC = new org.apache.thrift.protocol.TField("endpointProfileKeyHash", org.apache.thrift.protocol.TType.STRING, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getEndpointProfileBodyByKeyHash_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getEndpointProfileBodyByKeyHash_argsTupleSchemeFactory()); + } + + public String endpointProfileKeyHash; // 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 { + ENDPOINT_PROFILE_KEY_HASH((short)1, "endpointProfileKeyHash"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // ENDPOINT_PROFILE_KEY_HASH + return ENDPOINT_PROFILE_KEY_HASH; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.ENDPOINT_PROFILE_KEY_HASH, new org.apache.thrift.meta_data.FieldMetaData("endpointProfileKeyHash", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "id"))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEndpointProfileBodyByKeyHash_args.class, metaDataMap); + } + + public getEndpointProfileBodyByKeyHash_args() { + } + + public getEndpointProfileBodyByKeyHash_args( + String endpointProfileKeyHash) + { + this(); + this.endpointProfileKeyHash = endpointProfileKeyHash; + } + + /** + * Performs a deep copy on other. + */ + public getEndpointProfileBodyByKeyHash_args(getEndpointProfileBodyByKeyHash_args other) { + if (other.isSetEndpointProfileKeyHash()) { + this.endpointProfileKeyHash = other.endpointProfileKeyHash; + } + } + + public getEndpointProfileBodyByKeyHash_args deepCopy() { + return new getEndpointProfileBodyByKeyHash_args(this); + } + + @Override + public void clear() { + this.endpointProfileKeyHash = null; + } + + public String getEndpointProfileKeyHash() { + return this.endpointProfileKeyHash; + } + + public getEndpointProfileBodyByKeyHash_args setEndpointProfileKeyHash(String endpointProfileKeyHash) { + this.endpointProfileKeyHash = endpointProfileKeyHash; + return this; + } + + public void unsetEndpointProfileKeyHash() { + this.endpointProfileKeyHash = null; + } + + /** Returns true if field endpointProfileKeyHash is set (has been assigned a value) and false otherwise */ + public boolean isSetEndpointProfileKeyHash() { + return this.endpointProfileKeyHash != null; + } + + public void setEndpointProfileKeyHashIsSet(boolean value) { + if (!value) { + this.endpointProfileKeyHash = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case ENDPOINT_PROFILE_KEY_HASH: + if (value == null) { + unsetEndpointProfileKeyHash(); + } else { + setEndpointProfileKeyHash((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case ENDPOINT_PROFILE_KEY_HASH: + return getEndpointProfileKeyHash(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case ENDPOINT_PROFILE_KEY_HASH: + return isSetEndpointProfileKeyHash(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getEndpointProfileBodyByKeyHash_args) + return this.equals((getEndpointProfileBodyByKeyHash_args)that); + return false; + } + + public boolean equals(getEndpointProfileBodyByKeyHash_args that) { + if (that == null) + return false; + + boolean this_present_endpointProfileKeyHash = true && this.isSetEndpointProfileKeyHash(); + boolean that_present_endpointProfileKeyHash = true && that.isSetEndpointProfileKeyHash(); + if (this_present_endpointProfileKeyHash || that_present_endpointProfileKeyHash) { + if (!(this_present_endpointProfileKeyHash && that_present_endpointProfileKeyHash)) + return false; + if (!this.endpointProfileKeyHash.equals(that.endpointProfileKeyHash)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_endpointProfileKeyHash = true && (isSetEndpointProfileKeyHash()); + list.add(present_endpointProfileKeyHash); + if (present_endpointProfileKeyHash) + list.add(endpointProfileKeyHash); + + return list.hashCode(); + } + + @Override + public int compareTo(getEndpointProfileBodyByKeyHash_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetEndpointProfileKeyHash()).compareTo(other.isSetEndpointProfileKeyHash()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEndpointProfileKeyHash()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endpointProfileKeyHash, other.endpointProfileKeyHash); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getEndpointProfileBodyByKeyHash_args("); + boolean first = true; + + sb.append("endpointProfileKeyHash:"); + if (this.endpointProfileKeyHash == null) { + sb.append("null"); + } else { + sb.append(this.endpointProfileKeyHash); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getEndpointProfileBodyByKeyHash_argsStandardSchemeFactory implements SchemeFactory { + public getEndpointProfileBodyByKeyHash_argsStandardScheme getScheme() { + return new getEndpointProfileBodyByKeyHash_argsStandardScheme(); + } + } + + private static class getEndpointProfileBodyByKeyHash_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getEndpointProfileBodyByKeyHash_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: // ENDPOINT_PROFILE_KEY_HASH + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.endpointProfileKeyHash = iprot.readString(); + struct.setEndpointProfileKeyHashIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getEndpointProfileBodyByKeyHash_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.endpointProfileKeyHash != null) { + oprot.writeFieldBegin(ENDPOINT_PROFILE_KEY_HASH_FIELD_DESC); + oprot.writeString(struct.endpointProfileKeyHash); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getEndpointProfileBodyByKeyHash_argsTupleSchemeFactory implements SchemeFactory { + public getEndpointProfileBodyByKeyHash_argsTupleScheme getScheme() { + return new getEndpointProfileBodyByKeyHash_argsTupleScheme(); + } + } + + private static class getEndpointProfileBodyByKeyHash_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileBodyByKeyHash_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetEndpointProfileKeyHash()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetEndpointProfileKeyHash()) { + oprot.writeString(struct.endpointProfileKeyHash); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileBodyByKeyHash_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.endpointProfileKeyHash = iprot.readString(); + struct.setEndpointProfileKeyHashIsSet(true); + } + } + } + + } + + public static class getEndpointProfileBodyByKeyHash_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEndpointProfileBodyByKeyHash_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 CONTROL_EXCEPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("ControlException", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getEndpointProfileBodyByKeyHash_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getEndpointProfileBodyByKeyHash_resultTupleSchemeFactory()); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct success; // required + public ControlThriftException ControlException; // 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"), + CONTROL_EXCEPTION((short)1, "ControlException"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // CONTROL_EXCEPTION + return CONTROL_EXCEPTION; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT , "data"))); + tmpMap.put(_Fields.CONTROL_EXCEPTION, new org.apache.thrift.meta_data.FieldMetaData("ControlException", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEndpointProfileBodyByKeyHash_result.class, metaDataMap); + } + + public getEndpointProfileBodyByKeyHash_result() { + } + + public getEndpointProfileBodyByKeyHash_result( + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct success, + ControlThriftException ControlException) + { + this(); + this.success = success; + this.ControlException = ControlException; + } + + /** + * Performs a deep copy on other. + */ + public getEndpointProfileBodyByKeyHash_result(getEndpointProfileBodyByKeyHash_result other) { + if (other.isSetSuccess()) { + this.success = other.success; + } + if (other.isSetControlException()) { + this.ControlException = new ControlThriftException(other.ControlException); + } + } + + public getEndpointProfileBodyByKeyHash_result deepCopy() { + return new getEndpointProfileBodyByKeyHash_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ControlException = null; + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getSuccess() { + return this.success; + } + + public getEndpointProfileBodyByKeyHash_result setSuccess(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public ControlThriftException getControlException() { + return this.ControlException; + } + + public getEndpointProfileBodyByKeyHash_result setControlException(ControlThriftException ControlException) { + this.ControlException = ControlException; + return this; + } + + public void unsetControlException() { + this.ControlException = null; + } + + /** Returns true if field ControlException is set (has been assigned a value) and false otherwise */ + public boolean isSetControlException() { + return this.ControlException != null; + } + + public void setControlExceptionIsSet(boolean value) { + if (!value) { + this.ControlException = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct)value); + } + break; + + case CONTROL_EXCEPTION: + if (value == null) { + unsetControlException(); + } else { + setControlException((ControlThriftException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case CONTROL_EXCEPTION: + return getControlException(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case CONTROL_EXCEPTION: + return isSetControlException(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getEndpointProfileBodyByKeyHash_result) + return this.equals((getEndpointProfileBodyByKeyHash_result)that); + return false; + } + + public boolean equals(getEndpointProfileBodyByKeyHash_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_ControlException = true && this.isSetControlException(); + boolean that_present_ControlException = true && that.isSetControlException(); + if (this_present_ControlException || that_present_ControlException) { + if (!(this_present_ControlException && that_present_ControlException)) + return false; + if (!this.ControlException.equals(that.ControlException)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + boolean present_ControlException = true && (isSetControlException()); + list.add(present_ControlException); + if (present_ControlException) + list.add(ControlException); + + return list.hashCode(); + } + + @Override + public int compareTo(getEndpointProfileBodyByKeyHash_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetControlException()).compareTo(other.isSetControlException()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetControlException()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ControlException, other.ControlException); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getEndpointProfileBodyByKeyHash_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("ControlException:"); + if (this.ControlException == null) { + sb.append("null"); + } else { + sb.append(this.ControlException); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getEndpointProfileBodyByKeyHash_resultStandardSchemeFactory implements SchemeFactory { + public getEndpointProfileBodyByKeyHash_resultStandardScheme getScheme() { + return new getEndpointProfileBodyByKeyHash_resultStandardScheme(); + } + } + + private static class getEndpointProfileBodyByKeyHash_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getEndpointProfileBodyByKeyHash_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 org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CONTROL_EXCEPTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ControlException = new ControlThriftException(); + struct.ControlException.read(iprot); + struct.setControlExceptionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getEndpointProfileBodyByKeyHash_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.ControlException != null) { + oprot.writeFieldBegin(CONTROL_EXCEPTION_FIELD_DESC); + struct.ControlException.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getEndpointProfileBodyByKeyHash_resultTupleSchemeFactory implements SchemeFactory { + public getEndpointProfileBodyByKeyHash_resultTupleScheme getScheme() { + return new getEndpointProfileBodyByKeyHash_resultTupleScheme(); + } + } + + private static class getEndpointProfileBodyByKeyHash_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileBodyByKeyHash_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetControlException()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetControlException()) { + struct.ControlException.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileBodyByKeyHash_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ControlException = new ControlThriftException(); + struct.ControlException.read(iprot); + struct.setControlExceptionIsSet(true); + } + } + } + + } + + public static class getEndpointProfileBodyByEndpointGroupId_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEndpointProfileBodyByEndpointGroupId_args"); + + private static final org.apache.thrift.protocol.TField PAGE_LINK_FIELD_DESC = new org.apache.thrift.protocol.TField("pageLink", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getEndpointProfileBodyByEndpointGroupId_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getEndpointProfileBodyByEndpointGroupId_argsTupleSchemeFactory()); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink; // 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 { + PAGE_LINK((short)1, "pageLink"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // PAGE_LINK + return PAGE_LINK; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PAGE_LINK, new org.apache.thrift.meta_data.FieldMetaData("pageLink", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT , "data"))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEndpointProfileBodyByEndpointGroupId_args.class, metaDataMap); + } + + public getEndpointProfileBodyByEndpointGroupId_args() { + } + + public getEndpointProfileBodyByEndpointGroupId_args( + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink) + { + this(); + this.pageLink = pageLink; + } + + /** + * Performs a deep copy on other. + */ + public getEndpointProfileBodyByEndpointGroupId_args(getEndpointProfileBodyByEndpointGroupId_args other) { + if (other.isSetPageLink()) { + this.pageLink = other.pageLink; + } + } + + public getEndpointProfileBodyByEndpointGroupId_args deepCopy() { + return new getEndpointProfileBodyByEndpointGroupId_args(this); + } + + @Override + public void clear() { + this.pageLink = null; + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getPageLink() { + return this.pageLink; + } + + public getEndpointProfileBodyByEndpointGroupId_args setPageLink(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct pageLink) { + this.pageLink = pageLink; + return this; + } + + public void unsetPageLink() { + this.pageLink = null; + } + + /** Returns true if field pageLink is set (has been assigned a value) and false otherwise */ + public boolean isSetPageLink() { + return this.pageLink != null; + } + + public void setPageLinkIsSet(boolean value) { + if (!value) { + this.pageLink = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PAGE_LINK: + if (value == null) { + unsetPageLink(); + } else { + setPageLink((org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PAGE_LINK: + return getPageLink(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case PAGE_LINK: + return isSetPageLink(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getEndpointProfileBodyByEndpointGroupId_args) + return this.equals((getEndpointProfileBodyByEndpointGroupId_args)that); + return false; + } + + public boolean equals(getEndpointProfileBodyByEndpointGroupId_args that) { + if (that == null) + return false; + + boolean this_present_pageLink = true && this.isSetPageLink(); + boolean that_present_pageLink = true && that.isSetPageLink(); + if (this_present_pageLink || that_present_pageLink) { + if (!(this_present_pageLink && that_present_pageLink)) + return false; + if (!this.pageLink.equals(that.pageLink)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_pageLink = true && (isSetPageLink()); + list.add(present_pageLink); + if (present_pageLink) + list.add(pageLink); + + return list.hashCode(); + } + + @Override + public int compareTo(getEndpointProfileBodyByEndpointGroupId_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetPageLink()).compareTo(other.isSetPageLink()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPageLink()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pageLink, other.pageLink); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getEndpointProfileBodyByEndpointGroupId_args("); + boolean first = true; + + sb.append("pageLink:"); + if (this.pageLink == null) { + sb.append("null"); + } else { + sb.append(this.pageLink); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getEndpointProfileBodyByEndpointGroupId_argsStandardSchemeFactory implements SchemeFactory { + public getEndpointProfileBodyByEndpointGroupId_argsStandardScheme getScheme() { + return new getEndpointProfileBodyByEndpointGroupId_argsStandardScheme(); + } + } + + private static class getEndpointProfileBodyByEndpointGroupId_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getEndpointProfileBodyByEndpointGroupId_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: // PAGE_LINK + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.pageLink = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + struct.pageLink.read(iprot); + struct.setPageLinkIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getEndpointProfileBodyByEndpointGroupId_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.pageLink != null) { + oprot.writeFieldBegin(PAGE_LINK_FIELD_DESC); + struct.pageLink.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getEndpointProfileBodyByEndpointGroupId_argsTupleSchemeFactory implements SchemeFactory { + public getEndpointProfileBodyByEndpointGroupId_argsTupleScheme getScheme() { + return new getEndpointProfileBodyByEndpointGroupId_argsTupleScheme(); + } + } + + private static class getEndpointProfileBodyByEndpointGroupId_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileBodyByEndpointGroupId_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetPageLink()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetPageLink()) { + struct.pageLink.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileBodyByEndpointGroupId_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.pageLink = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + struct.pageLink.read(iprot); + struct.setPageLinkIsSet(true); + } + } + } + + } + + public static class getEndpointProfileBodyByEndpointGroupId_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEndpointProfileBodyByEndpointGroupId_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 CONTROL_EXCEPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("ControlException", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getEndpointProfileBodyByEndpointGroupId_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getEndpointProfileBodyByEndpointGroupId_resultTupleSchemeFactory()); + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct success; // required + public ControlThriftException ControlException; // 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"), + CONTROL_EXCEPTION((short)1, "ControlException"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // CONTROL_EXCEPTION + return CONTROL_EXCEPTION; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } - public static class getUserVerifiersByApplicationId extends org.apache.thrift.AsyncProcessFunction> { - public getUserVerifiersByApplicationId() { - super("getUserVerifiersByApplicationId"); + public short getThriftFieldId() { + return _thriftId; } - public getUserVerifiersByApplicationId_args getEmptyArgsInstance() { - return new getUserVerifiersByApplicationId_args(); + public String getFieldName() { + return _fieldName; } + } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getUserVerifiersByApplicationId_result result = new getUserVerifiersByApplicationId_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getUserVerifiersByApplicationId_result result = new getUserVerifiersByApplicationId_result(); - if (e instanceof ControlThriftException) { - result.ControlException = (ControlThriftException) e; - result.setControlExceptionIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT , "data"))); + tmpMap.put(_Fields.CONTROL_EXCEPTION, new org.apache.thrift.meta_data.FieldMetaData("ControlException", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEndpointProfileBodyByEndpointGroupId_result.class, metaDataMap); + } + + public getEndpointProfileBodyByEndpointGroupId_result() { + } + + public getEndpointProfileBodyByEndpointGroupId_result( + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct success, + ControlThriftException ControlException) + { + this(); + this.success = success; + this.ControlException = ControlException; + } + + /** + * Performs a deep copy on other. + */ + public getEndpointProfileBodyByEndpointGroupId_result(getEndpointProfileBodyByEndpointGroupId_result other) { + if (other.isSetSuccess()) { + this.success = other.success; + } + if (other.isSetControlException()) { + this.ControlException = new ControlThriftException(other.ControlException); } + } - protected boolean isOneway() { - return false; + public getEndpointProfileBodyByEndpointGroupId_result deepCopy() { + return new getEndpointProfileBodyByEndpointGroupId_result(this); + } + + @Override + public void clear() { + this.success = null; + this.ControlException = null; + } + + public org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct getSuccess() { + return this.success; + } + + public getEndpointProfileBodyByEndpointGroupId_result setSuccess(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; } + } - public void start(I iface, getUserVerifiersByApplicationId_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getUserVerifiersByApplicationId(args.applicationId,resultHandler); + public ControlThriftException getControlException() { + return this.ControlException; + } + + public getEndpointProfileBodyByEndpointGroupId_result setControlException(ControlThriftException ControlException) { + this.ControlException = ControlException; + return this; + } + + public void unsetControlException() { + this.ControlException = null; + } + + /** Returns true if field ControlException is set (has been assigned a value) and false otherwise */ + public boolean isSetControlException() { + return this.ControlException != null; + } + + public void setControlExceptionIsSet(boolean value) { + if (!value) { + this.ControlException = null; } } - public static class getUserVerifier extends org.apache.thrift.AsyncProcessFunction { - public getUserVerifier() { - super("getUserVerifier"); + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct)value); + } + break; + + case CONTROL_EXCEPTION: + if (value == null) { + unsetControlException(); + } else { + setControlException((ControlThriftException)value); + } + break; + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case CONTROL_EXCEPTION: + return getControlException(); - public getUserVerifier_args getEmptyArgsInstance() { - return new getUserVerifier_args(); } + throw new IllegalStateException(); + } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - getUserVerifier_result result = new getUserVerifier_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getUserVerifier_result result = new getUserVerifier_result(); - if (e instanceof ControlThriftException) { - result.ControlException = (ControlThriftException) e; - result.setControlExceptionIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); } - protected boolean isOneway() { + switch (field) { + case SUCCESS: + return isSetSuccess(); + case CONTROL_EXCEPTION: + return isSetControlException(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getEndpointProfileBodyByEndpointGroupId_result) + return this.equals((getEndpointProfileBodyByEndpointGroupId_result)that); + return false; + } + + public boolean equals(getEndpointProfileBodyByEndpointGroupId_result that) { + if (that == null) return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; } - public void start(I iface, getUserVerifier_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getUserVerifier(args.userVerifierId,resultHandler); + boolean this_present_ControlException = true && this.isSetControlException(); + boolean that_present_ControlException = true && that.isSetControlException(); + if (this_present_ControlException || that_present_ControlException) { + if (!(this_present_ControlException && that_present_ControlException)) + return false; + if (!this.ControlException.equals(that.ControlException)) + return false; } + + return true; } - public static class editUserVerifier extends org.apache.thrift.AsyncProcessFunction { - public editUserVerifier() { - super("editUserVerifier"); + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + boolean present_ControlException = true && (isSetControlException()); + list.add(present_ControlException); + if (present_ControlException) + list.add(ControlException); + + return list.hashCode(); + } + + @Override + public int compareTo(getEndpointProfileBodyByEndpointGroupId_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); } - public editUserVerifier_args getEmptyArgsInstance() { - return new editUserVerifier_args(); + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetControlException()).compareTo(other.isSetControlException()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetControlException()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ControlException, other.ControlException); + if (lastComparison != 0) { + return lastComparison; + } } + return 0; + } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct o) { - editUserVerifier_result result = new editUserVerifier_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - editUserVerifier_result result = new editUserVerifier_result(); - if (e instanceof ControlThriftException) { - result.ControlException = (ControlThriftException) e; - result.setControlExceptionIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } - protected boolean isOneway() { - return false; + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getEndpointProfileBodyByEndpointGroupId_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("ControlException:"); + if (this.ControlException == null) { + sb.append("null"); + } else { + sb.append(this.ControlException); } + first = false; + sb.append(")"); + return sb.toString(); + } - public void start(I iface, editUserVerifier_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.editUserVerifier(args.userVerifier,resultHandler); + 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); } } - public static class deleteUserVerifier extends org.apache.thrift.AsyncProcessFunction { - public deleteUserVerifier() { - super("deleteUserVerifier"); + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); } + } - public deleteUserVerifier_args getEmptyArgsInstance() { - return new deleteUserVerifier_args(); + private static class getEndpointProfileBodyByEndpointGroupId_resultStandardSchemeFactory implements SchemeFactory { + public getEndpointProfileBodyByEndpointGroupId_resultStandardScheme getScheme() { + return new getEndpointProfileBodyByEndpointGroupId_resultStandardScheme(); } + } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - deleteUserVerifier_result result = new deleteUserVerifier_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); + private static class getEndpointProfileBodyByEndpointGroupId_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getEndpointProfileBodyByEndpointGroupId_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; } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - deleteUserVerifier_result result = new deleteUserVerifier_result(); - if (e instanceof ControlThriftException) { - result.ControlException = (ControlThriftException) e; - result.setControlExceptionIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // CONTROL_EXCEPTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ControlException = new ControlThriftException(); + struct.ControlException.read(iprot); + struct.setControlExceptionIsSet(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(); } - protected boolean isOneway() { - return false; + public void write(org.apache.thrift.protocol.TProtocol oprot, getEndpointProfileBodyByEndpointGroupId_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.ControlException != null) { + oprot.writeFieldBegin(CONTROL_EXCEPTION_FIELD_DESC); + struct.ControlException.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); } - public void start(I iface, deleteUserVerifier_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteUserVerifier(args.userVerifierId,resultHandler); + } + + private static class getEndpointProfileBodyByEndpointGroupId_resultTupleSchemeFactory implements SchemeFactory { + public getEndpointProfileBodyByEndpointGroupId_resultTupleScheme getScheme() { + return new getEndpointProfileBodyByEndpointGroupId_resultTupleScheme(); + } + } + + private static class getEndpointProfileBodyByEndpointGroupId_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileBodyByEndpointGroupId_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetControlException()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetControlException()) { + struct.ControlException.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getEndpointProfileBodyByEndpointGroupId_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.ControlException = new ControlThriftException(); + struct.ControlException.read(iprot); + struct.setControlExceptionIsSet(true); + } } } @@ -14866,9 +18781,9 @@ public boolean equals(getTenants_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -15258,19 +19173,19 @@ public boolean equals(getTenants_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -15384,12 +19299,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getTenants_result s { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); struct.success = new ArrayList(_list0.size); - for (int _i1 = 0; _i1 < _list0.size; ++_i1) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem1; + for (int _i2 = 0; _i2 < _list0.size; ++_i2) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem2; - _elem2 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem2.read(iprot); - struct.success.add(_elem2); + _elem1 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem1.read(iprot); + struct.success.add(_elem1); } iprot.readListEnd(); } @@ -15486,12 +19401,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getTenants_result st { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list5.size); - for (int _i6 = 0; _i6 < _list5.size; ++_i6) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem6; + for (int _i7 = 0; _i7 < _list5.size; ++_i7) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem7; - _elem7 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem7.read(iprot); - struct.success.add(_elem7); + _elem6 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem6.read(iprot); + struct.success.add(_elem6); } } struct.setSuccessIsSet(true); @@ -15701,14 +19616,14 @@ public boolean equals(getTenant_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tenantId = true && (isSetTenantId()); - builder.append(present_tenantId); + list.add(present_tenantId); if (present_tenantId) - builder.append(tenantId); + list.add(tenantId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -16121,19 +20036,19 @@ public boolean equals(getTenant_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -16532,14 +20447,14 @@ public boolean equals(editTenant_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tenant = true && (isSetTenant()); - builder.append(present_tenant); + list.add(present_tenant); if (present_tenant) - builder.append(tenant); + list.add(tenant); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -16954,19 +20869,19 @@ public boolean equals(editTenant_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -17365,14 +21280,14 @@ public boolean equals(deleteTenant_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tenantId = true && (isSetTenantId()); - builder.append(present_tenantId); + list.add(present_tenantId); if (present_tenantId) - builder.append(tenantId); + list.add(tenantId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -17726,14 +21641,14 @@ public boolean equals(deleteTenant_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -18024,9 +21939,9 @@ public boolean equals(getUsers_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -18416,19 +22331,19 @@ public boolean equals(getUsers_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -18542,12 +22457,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getUsers_result str { org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); struct.success = new ArrayList(_list8.size); - for (int _i9 = 0; _i9 < _list8.size; ++_i9) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem9; + for (int _i10 = 0; _i10 < _list8.size; ++_i10) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem10; - _elem10 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem10.read(iprot); - struct.success.add(_elem10); + _elem9 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem9.read(iprot); + struct.success.add(_elem9); } iprot.readListEnd(); } @@ -18644,12 +22559,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getUsers_result stru { org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list13.size); - for (int _i14 = 0; _i14 < _list13.size; ++_i14) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem14; + for (int _i15 = 0; _i15 < _list13.size; ++_i15) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem15; - _elem15 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem15.read(iprot); - struct.success.add(_elem15); + _elem14 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem14.read(iprot); + struct.success.add(_elem14); } } struct.setSuccessIsSet(true); @@ -18859,14 +22774,14 @@ public boolean equals(getTenantUsers_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tenantId = true && (isSetTenantId()); - builder.append(present_tenantId); + list.add(present_tenantId); if (present_tenantId) - builder.append(tenantId); + list.add(tenantId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -19299,19 +23214,19 @@ public boolean equals(getTenantUsers_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -19425,12 +23340,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getTenantUsers_resu { org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); struct.success = new ArrayList(_list16.size); - for (int _i17 = 0; _i17 < _list16.size; ++_i17) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem17; + for (int _i18 = 0; _i18 < _list16.size; ++_i18) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem18; - _elem18 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem18.read(iprot); - struct.success.add(_elem18); + _elem17 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem17.read(iprot); + struct.success.add(_elem17); } iprot.readListEnd(); } @@ -19527,12 +23442,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getTenantUsers_resul { org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list21.size); - for (int _i22 = 0; _i22 < _list21.size; ++_i22) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem22; + for (int _i23 = 0; _i23 < _list21.size; ++_i23) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem23; - _elem23 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem23.read(iprot); - struct.success.add(_elem23); + _elem22 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem22.read(iprot); + struct.success.add(_elem22); } } struct.setSuccessIsSet(true); @@ -19742,14 +23657,14 @@ public boolean equals(getUser_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_userId = true && (isSetUserId()); - builder.append(present_userId); + list.add(present_userId); if (present_userId) - builder.append(userId); + list.add(userId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -20162,19 +24077,19 @@ public boolean equals(getUser_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -20573,14 +24488,14 @@ public boolean equals(getUserByExternalUid_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_uid = true && (isSetUid()); - builder.append(present_uid); + list.add(present_uid); if (present_uid) - builder.append(uid); + list.add(uid); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -20993,19 +24908,19 @@ public boolean equals(getUserByExternalUid_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -21404,14 +25319,14 @@ public boolean equals(editUser_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_user = true && (isSetUser()); - builder.append(present_user); + list.add(present_user); if (present_user) - builder.append(user); + list.add(user); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -21826,19 +25741,19 @@ public boolean equals(editUser_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -22237,14 +26152,14 @@ public boolean equals(deleteUser_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_userId = true && (isSetUserId()); - builder.append(present_userId); + list.add(present_userId); if (present_userId) - builder.append(userId); + list.add(userId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -22598,14 +26513,14 @@ public boolean equals(deleteUser_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -22896,9 +26811,9 @@ public boolean equals(getTenantAdmins_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -23288,19 +27203,19 @@ public boolean equals(getTenantAdmins_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -23414,12 +27329,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getTenantAdmins_res { org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); struct.success = new ArrayList(_list24.size); - for (int _i25 = 0; _i25 < _list24.size; ++_i25) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem25; + for (int _i26 = 0; _i26 < _list24.size; ++_i26) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem26; - _elem26 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem26.read(iprot); - struct.success.add(_elem26); + _elem25 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem25.read(iprot); + struct.success.add(_elem25); } iprot.readListEnd(); } @@ -23516,12 +27431,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getTenantAdmins_resu { org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list29.size); - for (int _i30 = 0; _i30 < _list29.size; ++_i30) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem30; + for (int _i31 = 0; _i31 < _list29.size; ++_i31) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem31; - _elem31 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem31.read(iprot); - struct.success.add(_elem31); + _elem30 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem30.read(iprot); + struct.success.add(_elem30); } } struct.setSuccessIsSet(true); @@ -23731,14 +27646,14 @@ public boolean equals(getTenantAdmin_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tenantId = true && (isSetTenantId()); - builder.append(present_tenantId); + list.add(present_tenantId); if (present_tenantId) - builder.append(tenantId); + list.add(tenantId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -24151,19 +28066,19 @@ public boolean equals(getTenantAdmin_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -24562,14 +28477,14 @@ public boolean equals(editTenantAdmin_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tenantAdmin = true && (isSetTenantAdmin()); - builder.append(present_tenantAdmin); + list.add(present_tenantAdmin); if (present_tenantAdmin) - builder.append(tenantAdmin); + list.add(tenantAdmin); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -24984,19 +28899,19 @@ public boolean equals(editTenantAdmin_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -25395,14 +29310,14 @@ public boolean equals(deleteTenantAdmin_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tenantId = true && (isSetTenantId()); - builder.append(present_tenantId); + list.add(present_tenantId); if (present_tenantId) - builder.append(tenantId); + list.add(tenantId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -25756,14 +29671,14 @@ public boolean equals(deleteTenantAdmin_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -26119,14 +30034,14 @@ public boolean equals(getApplicationsByTenantId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tenantId = true && (isSetTenantId()); - builder.append(present_tenantId); + list.add(present_tenantId); if (present_tenantId) - builder.append(tenantId); + list.add(tenantId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -26559,19 +30474,19 @@ public boolean equals(getApplicationsByTenantId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -26685,12 +30600,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getApplicationsByTe { org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); struct.success = new ArrayList(_list32.size); - for (int _i33 = 0; _i33 < _list32.size; ++_i33) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem33; + for (int _i34 = 0; _i34 < _list32.size; ++_i34) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem34; - _elem34 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem34.read(iprot); - struct.success.add(_elem34); + _elem33 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem33.read(iprot); + struct.success.add(_elem33); } iprot.readListEnd(); } @@ -26787,12 +30702,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getApplicationsByTen { org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list37.size); - for (int _i38 = 0; _i38 < _list37.size; ++_i38) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem38; + for (int _i39 = 0; _i39 < _list37.size; ++_i39) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem39; - _elem39 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem39.read(iprot); - struct.success.add(_elem39); + _elem38 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem38.read(iprot); + struct.success.add(_elem38); } } struct.setSuccessIsSet(true); @@ -27002,14 +30917,14 @@ public boolean equals(getApplication_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -27422,19 +31337,19 @@ public boolean equals(getApplication_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -27833,14 +31748,14 @@ public boolean equals(getApplicationByApplicationToken_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationToken = true && (isSetApplicationToken()); - builder.append(present_applicationToken); + list.add(present_applicationToken); if (present_applicationToken) - builder.append(applicationToken); + list.add(applicationToken); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -28253,19 +32168,19 @@ public boolean equals(getApplicationByApplicationToken_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -28664,14 +32579,14 @@ public boolean equals(editApplication_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_application = true && (isSetApplication()); - builder.append(present_application); + list.add(present_application); if (present_application) - builder.append(application); + list.add(application); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -29086,19 +33001,19 @@ public boolean equals(editApplication_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -29497,14 +33412,14 @@ public boolean equals(deleteApplication_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -29858,14 +33773,14 @@ public boolean equals(deleteApplication_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -30221,14 +34136,14 @@ public boolean equals(getConfigurationSchemaVersionsByApplicationId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -30661,19 +34576,19 @@ public boolean equals(getConfigurationSchemaVersionsByApplicationId_result that) @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -30787,12 +34702,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getConfigurationSch { org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); struct.success = new ArrayList(_list40.size); - for (int _i41 = 0; _i41 < _list40.size; ++_i41) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem41; + for (int _i42 = 0; _i42 < _list40.size; ++_i42) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem42; - _elem42 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem42.read(iprot); - struct.success.add(_elem42); + _elem41 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem41.read(iprot); + struct.success.add(_elem41); } iprot.readListEnd(); } @@ -30889,12 +34804,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getConfigurationSche { org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list45.size); - for (int _i46 = 0; _i46 < _list45.size; ++_i46) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem46; + for (int _i47 = 0; _i47 < _list45.size; ++_i47) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem47; - _elem47 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem47.read(iprot); - struct.success.add(_elem47); + _elem46 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem46.read(iprot); + struct.success.add(_elem46); } } struct.setSuccessIsSet(true); @@ -31104,14 +35019,14 @@ public boolean equals(getConfigurationSchemasByApplicationId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -31544,19 +35459,19 @@ public boolean equals(getConfigurationSchemasByApplicationId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -31670,12 +35585,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getConfigurationSch { org.apache.thrift.protocol.TList _list48 = iprot.readListBegin(); struct.success = new ArrayList(_list48.size); - for (int _i49 = 0; _i49 < _list48.size; ++_i49) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem49; + for (int _i50 = 0; _i50 < _list48.size; ++_i50) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem50; - _elem50 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem50.read(iprot); - struct.success.add(_elem50); + _elem49 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem49.read(iprot); + struct.success.add(_elem49); } iprot.readListEnd(); } @@ -31772,12 +35687,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getConfigurationSche { org.apache.thrift.protocol.TList _list53 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list53.size); - for (int _i54 = 0; _i54 < _list53.size; ++_i54) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem54; + for (int _i55 = 0; _i55 < _list53.size; ++_i55) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem55; - _elem55 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem55.read(iprot); - struct.success.add(_elem55); + _elem54 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem54.read(iprot); + struct.success.add(_elem54); } } struct.setSuccessIsSet(true); @@ -31987,14 +35902,14 @@ public boolean equals(getConfigurationSchema_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_configurationSchemaId = true && (isSetConfigurationSchemaId()); - builder.append(present_configurationSchemaId); + list.add(present_configurationSchemaId); if (present_configurationSchemaId) - builder.append(configurationSchemaId); + list.add(configurationSchemaId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -32407,19 +36322,19 @@ public boolean equals(getConfigurationSchema_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -32818,14 +36733,14 @@ public boolean equals(editConfigurationSchema_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_configurationSchema = true && (isSetConfigurationSchema()); - builder.append(present_configurationSchema); + list.add(present_configurationSchema); if (present_configurationSchema) - builder.append(configurationSchema); + list.add(configurationSchema); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -33240,19 +37155,19 @@ public boolean equals(editConfigurationSchema_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -33651,14 +37566,14 @@ public boolean equals(getProfileSchemaVersionsByApplicationId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -34091,19 +38006,19 @@ public boolean equals(getProfileSchemaVersionsByApplicationId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -34217,12 +38132,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getProfileSchemaVer { org.apache.thrift.protocol.TList _list56 = iprot.readListBegin(); struct.success = new ArrayList(_list56.size); - for (int _i57 = 0; _i57 < _list56.size; ++_i57) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem57; + for (int _i58 = 0; _i58 < _list56.size; ++_i58) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem58; - _elem58 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem58.read(iprot); - struct.success.add(_elem58); + _elem57 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem57.read(iprot); + struct.success.add(_elem57); } iprot.readListEnd(); } @@ -34319,12 +38234,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getProfileSchemaVers { org.apache.thrift.protocol.TList _list61 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list61.size); - for (int _i62 = 0; _i62 < _list61.size; ++_i62) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem62; + for (int _i63 = 0; _i63 < _list61.size; ++_i63) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem63; - _elem63 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem63.read(iprot); - struct.success.add(_elem63); + _elem62 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem62.read(iprot); + struct.success.add(_elem62); } } struct.setSuccessIsSet(true); @@ -34534,14 +38449,14 @@ public boolean equals(getProfileSchemasByApplicationId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -34974,19 +38889,19 @@ public boolean equals(getProfileSchemasByApplicationId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -35100,12 +39015,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getProfileSchemasBy { org.apache.thrift.protocol.TList _list64 = iprot.readListBegin(); struct.success = new ArrayList(_list64.size); - for (int _i65 = 0; _i65 < _list64.size; ++_i65) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem65; + for (int _i66 = 0; _i66 < _list64.size; ++_i66) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem66; - _elem66 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem66.read(iprot); - struct.success.add(_elem66); + _elem65 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem65.read(iprot); + struct.success.add(_elem65); } iprot.readListEnd(); } @@ -35202,12 +39117,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getProfileSchemasByA { org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list69.size); - for (int _i70 = 0; _i70 < _list69.size; ++_i70) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem70; + for (int _i71 = 0; _i71 < _list69.size; ++_i71) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem71; - _elem71 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem71.read(iprot); - struct.success.add(_elem71); + _elem70 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem70.read(iprot); + struct.success.add(_elem70); } } struct.setSuccessIsSet(true); @@ -35417,14 +39332,14 @@ public boolean equals(getProfileSchema_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_profileSchemaId = true && (isSetProfileSchemaId()); - builder.append(present_profileSchemaId); + list.add(present_profileSchemaId); if (present_profileSchemaId) - builder.append(profileSchemaId); + list.add(profileSchemaId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -35837,19 +39752,19 @@ public boolean equals(getProfileSchema_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -36248,14 +40163,14 @@ public boolean equals(editProfileSchema_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_profileSchema = true && (isSetProfileSchema()); - builder.append(present_profileSchema); + list.add(present_profileSchema); if (present_profileSchema) - builder.append(profileSchema); + list.add(profileSchema); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -36670,19 +40585,19 @@ public boolean equals(editProfileSchema_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -37081,14 +40996,14 @@ public boolean equals(getLogSchemaVersionsByApplicationId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -37521,19 +41436,19 @@ public boolean equals(getLogSchemaVersionsByApplicationId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -37647,12 +41562,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getLogSchemaVersion { org.apache.thrift.protocol.TList _list72 = iprot.readListBegin(); struct.success = new ArrayList(_list72.size); - for (int _i73 = 0; _i73 < _list72.size; ++_i73) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem73; + for (int _i74 = 0; _i74 < _list72.size; ++_i74) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem74; - _elem74 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem74.read(iprot); - struct.success.add(_elem74); + _elem73 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem73.read(iprot); + struct.success.add(_elem73); } iprot.readListEnd(); } @@ -37749,12 +41664,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getLogSchemaVersions { org.apache.thrift.protocol.TList _list77 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list77.size); - for (int _i78 = 0; _i78 < _list77.size; ++_i78) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem78; + for (int _i79 = 0; _i79 < _list77.size; ++_i79) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem79; - _elem79 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem79.read(iprot); - struct.success.add(_elem79); + _elem78 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem78.read(iprot); + struct.success.add(_elem78); } } struct.setSuccessIsSet(true); @@ -37964,14 +41879,14 @@ public boolean equals(getLogSchemasByApplicationId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -38404,19 +42319,19 @@ public boolean equals(getLogSchemasByApplicationId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -38530,12 +42445,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getLogSchemasByAppl { org.apache.thrift.protocol.TList _list80 = iprot.readListBegin(); struct.success = new ArrayList(_list80.size); - for (int _i81 = 0; _i81 < _list80.size; ++_i81) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem81; + for (int _i82 = 0; _i82 < _list80.size; ++_i82) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem82; - _elem82 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem82.read(iprot); - struct.success.add(_elem82); + _elem81 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem81.read(iprot); + struct.success.add(_elem81); } iprot.readListEnd(); } @@ -38632,12 +42547,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getLogSchemasByAppli { org.apache.thrift.protocol.TList _list85 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list85.size); - for (int _i86 = 0; _i86 < _list85.size; ++_i86) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem86; + for (int _i87 = 0; _i87 < _list85.size; ++_i87) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem87; - _elem87 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem87.read(iprot); - struct.success.add(_elem87); + _elem86 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem86.read(iprot); + struct.success.add(_elem86); } } struct.setSuccessIsSet(true); @@ -38847,14 +42762,14 @@ public boolean equals(getLogSchema_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_logSchemaId = true && (isSetLogSchemaId()); - builder.append(present_logSchemaId); + list.add(present_logSchemaId); if (present_logSchemaId) - builder.append(logSchemaId); + list.add(logSchemaId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -39267,19 +43182,19 @@ public boolean equals(getLogSchema_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -39739,19 +43654,19 @@ public boolean equals(getLogSchemaByApplicationIdAndVersion_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); boolean present_version = true; - builder.append(present_version); + list.add(present_version); if (present_version) - builder.append(version); + list.add(version); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -40201,19 +44116,19 @@ public boolean equals(getLogSchemaByApplicationIdAndVersion_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -40612,14 +44527,14 @@ public boolean equals(editLogSchema_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_logSchema = true && (isSetLogSchema()); - builder.append(present_logSchema); + list.add(present_logSchema); if (present_logSchema) - builder.append(logSchema); + list.add(logSchema); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -41034,19 +44949,19 @@ public boolean equals(editLogSchema_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -41445,14 +45360,14 @@ public boolean equals(getEndpointGroupsByApplicationId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -41885,19 +45800,19 @@ public boolean equals(getEndpointGroupsByApplicationId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -42011,12 +45926,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getEndpointGroupsBy { org.apache.thrift.protocol.TList _list88 = iprot.readListBegin(); struct.success = new ArrayList(_list88.size); - for (int _i89 = 0; _i89 < _list88.size; ++_i89) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem89; + for (int _i90 = 0; _i90 < _list88.size; ++_i90) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem90; - _elem90 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem90.read(iprot); - struct.success.add(_elem90); + _elem89 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem89.read(iprot); + struct.success.add(_elem89); } iprot.readListEnd(); } @@ -42113,12 +46028,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getEndpointGroupsByA { org.apache.thrift.protocol.TList _list93 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list93.size); - for (int _i94 = 0; _i94 < _list93.size; ++_i94) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem94; + for (int _i95 = 0; _i95 < _list93.size; ++_i95) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem95; - _elem95 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem95.read(iprot); - struct.success.add(_elem95); + _elem94 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem94.read(iprot); + struct.success.add(_elem94); } } struct.setSuccessIsSet(true); @@ -42328,14 +46243,14 @@ public boolean equals(getEndpointGroup_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointGroupId = true && (isSetEndpointGroupId()); - builder.append(present_endpointGroupId); + list.add(present_endpointGroupId); if (present_endpointGroupId) - builder.append(endpointGroupId); + list.add(endpointGroupId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -42748,19 +46663,19 @@ public boolean equals(getEndpointGroup_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -43159,14 +47074,14 @@ public boolean equals(editEndpointGroup_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointGroup = true && (isSetEndpointGroup()); - builder.append(present_endpointGroup); + list.add(present_endpointGroup); if (present_endpointGroup) - builder.append(endpointGroup); + list.add(endpointGroup); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -43581,19 +47496,19 @@ public boolean equals(editEndpointGroup_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -43992,14 +47907,14 @@ public boolean equals(deleteEndpointGroup_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointGroupId = true && (isSetEndpointGroupId()); - builder.append(present_endpointGroupId); + list.add(present_endpointGroupId); if (present_endpointGroupId) - builder.append(endpointGroupId); + list.add(endpointGroupId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -44353,14 +48268,14 @@ public boolean equals(deleteEndpointGroup_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -44775,19 +48690,19 @@ public boolean equals(removeTopicsFromEndpointGroup_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointGroupId = true && (isSetEndpointGroupId()); - builder.append(present_endpointGroupId); + list.add(present_endpointGroupId); if (present_endpointGroupId) - builder.append(endpointGroupId); + list.add(endpointGroupId); boolean present_topicId = true && (isSetTopicId()); - builder.append(present_topicId); + list.add(present_topicId); if (present_topicId) - builder.append(topicId); + list.add(topicId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -45241,19 +49156,19 @@ public boolean equals(removeTopicsFromEndpointGroup_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -45711,19 +49626,19 @@ public boolean equals(addTopicsToEndpointGroup_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointGroupId = true && (isSetEndpointGroupId()); - builder.append(present_endpointGroupId); + list.add(present_endpointGroupId); if (present_endpointGroupId) - builder.append(endpointGroupId); + list.add(endpointGroupId); boolean present_topicId = true && (isSetTopicId()); - builder.append(present_topicId); + list.add(present_topicId); if (present_topicId) - builder.append(topicId); + list.add(topicId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -46177,19 +50092,19 @@ public boolean equals(addTopicsToEndpointGroup_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -46649,19 +50564,19 @@ public boolean equals(getProfileFilterRecordsByEndpointGroupId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointGroupId = true && (isSetEndpointGroupId()); - builder.append(present_endpointGroupId); + list.add(present_endpointGroupId); if (present_endpointGroupId) - builder.append(endpointGroupId); + list.add(endpointGroupId); boolean present_includeDeprecated = true; - builder.append(present_includeDeprecated); + list.add(present_includeDeprecated); if (present_includeDeprecated) - builder.append(includeDeprecated); + list.add(includeDeprecated); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -47131,19 +51046,19 @@ public boolean equals(getProfileFilterRecordsByEndpointGroupId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -47257,12 +51172,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getProfileFilterRec { org.apache.thrift.protocol.TList _list96 = iprot.readListBegin(); struct.success = new ArrayList(_list96.size); - for (int _i97 = 0; _i97 < _list96.size; ++_i97) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem97; + for (int _i98 = 0; _i98 < _list96.size; ++_i98) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem98; - _elem98 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem98.read(iprot); - struct.success.add(_elem98); + _elem97 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem97.read(iprot); + struct.success.add(_elem97); } iprot.readListEnd(); } @@ -47359,12 +51274,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getProfileFilterReco { org.apache.thrift.protocol.TList _list101 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list101.size); - for (int _i102 = 0; _i102 < _list101.size; ++_i102) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem102; + for (int _i103 = 0; _i103 < _list101.size; ++_i103) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem103; - _elem103 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem103.read(iprot); - struct.success.add(_elem103); + _elem102 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem102.read(iprot); + struct.success.add(_elem102); } } struct.setSuccessIsSet(true); @@ -47633,19 +51548,19 @@ public boolean equals(getProfileFilterRecord_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_schemaId = true && (isSetSchemaId()); - builder.append(present_schemaId); + list.add(present_schemaId); if (present_schemaId) - builder.append(schemaId); + list.add(schemaId); boolean present_endpointGroupId = true && (isSetEndpointGroupId()); - builder.append(present_endpointGroupId); + list.add(present_endpointGroupId); if (present_endpointGroupId) - builder.append(endpointGroupId); + list.add(endpointGroupId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -48099,19 +52014,19 @@ public boolean equals(getProfileFilterRecord_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -48510,14 +52425,14 @@ public boolean equals(getVacantProfileSchemasByEndpointGroupId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointGroupId = true && (isSetEndpointGroupId()); - builder.append(present_endpointGroupId); + list.add(present_endpointGroupId); if (present_endpointGroupId) - builder.append(endpointGroupId); + list.add(endpointGroupId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -48950,19 +52865,19 @@ public boolean equals(getVacantProfileSchemasByEndpointGroupId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -49076,12 +52991,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getVacantProfileSch { org.apache.thrift.protocol.TList _list104 = iprot.readListBegin(); struct.success = new ArrayList(_list104.size); - for (int _i105 = 0; _i105 < _list104.size; ++_i105) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem105; + for (int _i106 = 0; _i106 < _list104.size; ++_i106) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem106; - _elem106 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem106.read(iprot); - struct.success.add(_elem106); + _elem105 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem105.read(iprot); + struct.success.add(_elem105); } iprot.readListEnd(); } @@ -49178,12 +53093,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getVacantProfileSche { org.apache.thrift.protocol.TList _list109 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list109.size); - for (int _i110 = 0; _i110 < _list109.size; ++_i110) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem110; + for (int _i111 = 0; _i111 < _list109.size; ++_i111) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem111; - _elem111 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem111.read(iprot); - struct.success.add(_elem111); + _elem110 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem110.read(iprot); + struct.success.add(_elem110); } } struct.setSuccessIsSet(true); @@ -49393,14 +53308,14 @@ public boolean equals(getProfileFilter_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_profileFilterId = true && (isSetProfileFilterId()); - builder.append(present_profileFilterId); + list.add(present_profileFilterId); if (present_profileFilterId) - builder.append(profileFilterId); + list.add(profileFilterId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -49813,19 +53728,19 @@ public boolean equals(getProfileFilter_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -50224,14 +54139,14 @@ public boolean equals(editProfileFilter_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_profileFilter = true && (isSetProfileFilter()); - builder.append(present_profileFilter); + list.add(present_profileFilter); if (present_profileFilter) - builder.append(profileFilter); + list.add(profileFilter); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -50646,19 +54561,19 @@ public boolean equals(editProfileFilter_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -51116,19 +55031,19 @@ public boolean equals(activateProfileFilter_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_profileFilterId = true && (isSetProfileFilterId()); - builder.append(present_profileFilterId); + list.add(present_profileFilterId); if (present_profileFilterId) - builder.append(profileFilterId); + list.add(profileFilterId); boolean present_activatedUsername = true && (isSetActivatedUsername()); - builder.append(present_activatedUsername); + list.add(present_activatedUsername); if (present_activatedUsername) - builder.append(activatedUsername); + list.add(activatedUsername); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -51582,19 +55497,19 @@ public boolean equals(activateProfileFilter_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -52052,19 +55967,19 @@ public boolean equals(deactivateProfileFilter_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_profileFilterId = true && (isSetProfileFilterId()); - builder.append(present_profileFilterId); + list.add(present_profileFilterId); if (present_profileFilterId) - builder.append(profileFilterId); + list.add(profileFilterId); boolean present_deactivatedUsername = true && (isSetDeactivatedUsername()); - builder.append(present_deactivatedUsername); + list.add(present_deactivatedUsername); if (present_deactivatedUsername) - builder.append(deactivatedUsername); + list.add(deactivatedUsername); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -52518,19 +56433,19 @@ public boolean equals(deactivateProfileFilter_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -53047,24 +56962,24 @@ public boolean equals(deleteProfileFilterRecord_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_schemaId = true && (isSetSchemaId()); - builder.append(present_schemaId); + list.add(present_schemaId); if (present_schemaId) - builder.append(schemaId); + list.add(schemaId); boolean present_endpointGroupId = true && (isSetEndpointGroupId()); - builder.append(present_endpointGroupId); + list.add(present_endpointGroupId); if (present_endpointGroupId) - builder.append(endpointGroupId); + list.add(endpointGroupId); boolean present_deactivatedUsername = true && (isSetDeactivatedUsername()); - builder.append(present_deactivatedUsername); + list.add(present_deactivatedUsername); if (present_deactivatedUsername) - builder.append(deactivatedUsername); + list.add(deactivatedUsername); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -53500,14 +57415,14 @@ public boolean equals(deleteProfileFilterRecord_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -53924,19 +57839,19 @@ public boolean equals(getConfigurationRecordsByEndpointGroupId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointGroupId = true && (isSetEndpointGroupId()); - builder.append(present_endpointGroupId); + list.add(present_endpointGroupId); if (present_endpointGroupId) - builder.append(endpointGroupId); + list.add(endpointGroupId); boolean present_includeDeprecated = true; - builder.append(present_includeDeprecated); + list.add(present_includeDeprecated); if (present_includeDeprecated) - builder.append(includeDeprecated); + list.add(includeDeprecated); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -54406,19 +58321,19 @@ public boolean equals(getConfigurationRecordsByEndpointGroupId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -54532,12 +58447,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getConfigurationRec { org.apache.thrift.protocol.TList _list112 = iprot.readListBegin(); struct.success = new ArrayList(_list112.size); - for (int _i113 = 0; _i113 < _list112.size; ++_i113) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem113; + for (int _i114 = 0; _i114 < _list112.size; ++_i114) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem114; - _elem114 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem114.read(iprot); - struct.success.add(_elem114); + _elem113 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem113.read(iprot); + struct.success.add(_elem113); } iprot.readListEnd(); } @@ -54634,12 +58549,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getConfigurationReco { org.apache.thrift.protocol.TList _list117 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list117.size); - for (int _i118 = 0; _i118 < _list117.size; ++_i118) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem118; + for (int _i119 = 0; _i119 < _list117.size; ++_i119) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem119; - _elem119 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem119.read(iprot); - struct.success.add(_elem119); + _elem118 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem118.read(iprot); + struct.success.add(_elem118); } } struct.setSuccessIsSet(true); @@ -54908,19 +58823,19 @@ public boolean equals(getConfigurationRecord_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_schemaId = true && (isSetSchemaId()); - builder.append(present_schemaId); + list.add(present_schemaId); if (present_schemaId) - builder.append(schemaId); + list.add(schemaId); boolean present_endpointGroupId = true && (isSetEndpointGroupId()); - builder.append(present_endpointGroupId); + list.add(present_endpointGroupId); if (present_endpointGroupId) - builder.append(endpointGroupId); + list.add(endpointGroupId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -55374,19 +59289,19 @@ public boolean equals(getConfigurationRecord_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -55785,14 +59700,14 @@ public boolean equals(getVacantConfigurationSchemasByEndpointGroupId_args that) @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointGroupId = true && (isSetEndpointGroupId()); - builder.append(present_endpointGroupId); + list.add(present_endpointGroupId); if (present_endpointGroupId) - builder.append(endpointGroupId); + list.add(endpointGroupId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -56225,19 +60140,19 @@ public boolean equals(getVacantConfigurationSchemasByEndpointGroupId_result that @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -56351,12 +60266,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getVacantConfigurat { org.apache.thrift.protocol.TList _list120 = iprot.readListBegin(); struct.success = new ArrayList(_list120.size); - for (int _i121 = 0; _i121 < _list120.size; ++_i121) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem121; + for (int _i122 = 0; _i122 < _list120.size; ++_i122) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem122; - _elem122 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem122.read(iprot); - struct.success.add(_elem122); + _elem121 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem121.read(iprot); + struct.success.add(_elem121); } iprot.readListEnd(); } @@ -56453,12 +60368,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getVacantConfigurati { org.apache.thrift.protocol.TList _list125 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list125.size); - for (int _i126 = 0; _i126 < _list125.size; ++_i126) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem126; + for (int _i127 = 0; _i127 < _list125.size; ++_i127) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem127; - _elem127 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem127.read(iprot); - struct.success.add(_elem127); + _elem126 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem126.read(iprot); + struct.success.add(_elem126); } } struct.setSuccessIsSet(true); @@ -56668,14 +60583,14 @@ public boolean equals(getConfiguration_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_configurationId = true && (isSetConfigurationId()); - builder.append(present_configurationId); + list.add(present_configurationId); if (present_configurationId) - builder.append(configurationId); + list.add(configurationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -57088,19 +61003,19 @@ public boolean equals(getConfiguration_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -57499,14 +61414,14 @@ public boolean equals(editConfiguration_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_configuration = true && (isSetConfiguration()); - builder.append(present_configuration); + list.add(present_configuration); if (present_configuration) - builder.append(configuration); + list.add(configuration); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -57921,19 +61836,19 @@ public boolean equals(editConfiguration_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -58391,19 +62306,19 @@ public boolean equals(activateConfiguration_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_configurationId = true && (isSetConfigurationId()); - builder.append(present_configurationId); + list.add(present_configurationId); if (present_configurationId) - builder.append(configurationId); + list.add(configurationId); boolean present_activatedUsername = true && (isSetActivatedUsername()); - builder.append(present_activatedUsername); + list.add(present_activatedUsername); if (present_activatedUsername) - builder.append(activatedUsername); + list.add(activatedUsername); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -58857,19 +62772,19 @@ public boolean equals(activateConfiguration_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -59327,19 +63242,19 @@ public boolean equals(deactivateConfiguration_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_configurationId = true && (isSetConfigurationId()); - builder.append(present_configurationId); + list.add(present_configurationId); if (present_configurationId) - builder.append(configurationId); + list.add(configurationId); boolean present_deactivatedUsername = true && (isSetDeactivatedUsername()); - builder.append(present_deactivatedUsername); + list.add(present_deactivatedUsername); if (present_deactivatedUsername) - builder.append(deactivatedUsername); + list.add(deactivatedUsername); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -59793,19 +63708,19 @@ public boolean equals(deactivateConfiguration_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -60322,24 +64237,24 @@ public boolean equals(deleteConfigurationRecord_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_schemaId = true && (isSetSchemaId()); - builder.append(present_schemaId); + list.add(present_schemaId); if (present_schemaId) - builder.append(schemaId); + list.add(schemaId); boolean present_endpointGroupId = true && (isSetEndpointGroupId()); - builder.append(present_endpointGroupId); + list.add(present_endpointGroupId); if (present_endpointGroupId) - builder.append(endpointGroupId); + list.add(endpointGroupId); boolean present_deactivatedUsername = true && (isSetDeactivatedUsername()); - builder.append(present_deactivatedUsername); + list.add(present_deactivatedUsername); if (present_deactivatedUsername) - builder.append(deactivatedUsername); + list.add(deactivatedUsername); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -60775,14 +64690,14 @@ public boolean equals(deleteConfigurationRecord_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -61138,14 +65053,14 @@ public boolean equals(editUserConfiguration_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_configuration = true && (isSetConfiguration()); - builder.append(present_configuration); + list.add(present_configuration); if (present_configuration) - builder.append(configuration); + list.add(configuration); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -61501,14 +65416,14 @@ public boolean equals(editUserConfiguration_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -61864,14 +65779,14 @@ public boolean equals(getNotificationSchemaVersionsByApplicationId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -62304,19 +66219,19 @@ public boolean equals(getNotificationSchemaVersionsByApplicationId_result that) @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -62430,12 +66345,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getNotificationSche { org.apache.thrift.protocol.TList _list128 = iprot.readListBegin(); struct.success = new ArrayList(_list128.size); - for (int _i129 = 0; _i129 < _list128.size; ++_i129) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem129; + for (int _i130 = 0; _i130 < _list128.size; ++_i130) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem130; - _elem130 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem130.read(iprot); - struct.success.add(_elem130); + _elem129 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem129.read(iprot); + struct.success.add(_elem129); } iprot.readListEnd(); } @@ -62532,12 +66447,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getNotificationSchem { org.apache.thrift.protocol.TList _list133 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list133.size); - for (int _i134 = 0; _i134 < _list133.size; ++_i134) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem134; + for (int _i135 = 0; _i135 < _list133.size; ++_i135) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem135; - _elem135 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem135.read(iprot); - struct.success.add(_elem135); + _elem134 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem134.read(iprot); + struct.success.add(_elem134); } } struct.setSuccessIsSet(true); @@ -62747,14 +66662,14 @@ public boolean equals(editNotificationSchema_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_notificationSchema = true && (isSetNotificationSchema()); - builder.append(present_notificationSchema); + list.add(present_notificationSchema); if (present_notificationSchema) - builder.append(notificationSchema); + list.add(notificationSchema); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -63169,19 +67084,19 @@ public boolean equals(editNotificationSchema_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -63580,14 +67495,14 @@ public boolean equals(getNotificationSchema_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_notificationSchemaId = true && (isSetNotificationSchemaId()); - builder.append(present_notificationSchemaId); + list.add(present_notificationSchemaId); if (present_notificationSchemaId) - builder.append(notificationSchemaId); + list.add(notificationSchemaId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -64000,19 +67915,19 @@ public boolean equals(getNotificationSchema_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -64411,14 +68326,14 @@ public boolean equals(getNotificationSchemasByAppId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -64851,19 +68766,19 @@ public boolean equals(getNotificationSchemasByAppId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -64977,12 +68892,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getNotificationSche { org.apache.thrift.protocol.TList _list136 = iprot.readListBegin(); struct.success = new ArrayList(_list136.size); - for (int _i137 = 0; _i137 < _list136.size; ++_i137) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem137; + for (int _i138 = 0; _i138 < _list136.size; ++_i138) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem138; - _elem138 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem138.read(iprot); - struct.success.add(_elem138); + _elem137 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem137.read(iprot); + struct.success.add(_elem137); } iprot.readListEnd(); } @@ -65079,12 +68994,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getNotificationSchem { org.apache.thrift.protocol.TList _list141 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list141.size); - for (int _i142 = 0; _i142 < _list141.size; ++_i142) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem142; + for (int _i143 = 0; _i143 < _list141.size; ++_i143) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem143; - _elem143 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem143.read(iprot); - struct.success.add(_elem143); + _elem142 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem142.read(iprot); + struct.success.add(_elem142); } } struct.setSuccessIsSet(true); @@ -65294,14 +69209,14 @@ public boolean equals(getUserNotificationSchemasByAppId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -65734,19 +69649,19 @@ public boolean equals(getUserNotificationSchemasByAppId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -65860,12 +69775,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getUserNotification { org.apache.thrift.protocol.TList _list144 = iprot.readListBegin(); struct.success = new ArrayList(_list144.size); - for (int _i145 = 0; _i145 < _list144.size; ++_i145) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem145; + for (int _i146 = 0; _i146 < _list144.size; ++_i146) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem146; - _elem146 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem146.read(iprot); - struct.success.add(_elem146); + _elem145 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem145.read(iprot); + struct.success.add(_elem145); } iprot.readListEnd(); } @@ -65962,12 +69877,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getUserNotificationS { org.apache.thrift.protocol.TList _list149 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list149.size); - for (int _i150 = 0; _i150 < _list149.size; ++_i150) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem150; + for (int _i151 = 0; _i151 < _list149.size; ++_i151) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem151; - _elem151 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem151.read(iprot); - struct.success.add(_elem151); + _elem150 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem150.read(iprot); + struct.success.add(_elem150); } } struct.setSuccessIsSet(true); @@ -66236,19 +70151,19 @@ public boolean equals(findNotificationSchemasByAppIdAndType_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); boolean present_type = true && (isSetType()); - builder.append(present_type); + list.add(present_type); if (present_type) - builder.append(type); + list.add(type); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -66724,19 +70639,19 @@ public boolean equals(findNotificationSchemasByAppIdAndType_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -66850,12 +70765,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, findNotificationSch { org.apache.thrift.protocol.TList _list152 = iprot.readListBegin(); struct.success = new ArrayList(_list152.size); - for (int _i153 = 0; _i153 < _list152.size; ++_i153) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem153; + for (int _i154 = 0; _i154 < _list152.size; ++_i154) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem154; - _elem154 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem154.read(iprot); - struct.success.add(_elem154); + _elem153 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem153.read(iprot); + struct.success.add(_elem153); } iprot.readListEnd(); } @@ -66952,12 +70867,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, findNotificationSche { org.apache.thrift.protocol.TList _list157 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list157.size); - for (int _i158 = 0; _i158 < _list157.size; ++_i158) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem158; + for (int _i159 = 0; _i159 < _list157.size; ++_i159) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem159; - _elem159 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem159.read(iprot); - struct.success.add(_elem159); + _elem158 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem158.read(iprot); + struct.success.add(_elem158); } } struct.setSuccessIsSet(true); @@ -67167,14 +71082,14 @@ public boolean equals(editNotification_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_notification = true && (isSetNotification()); - builder.append(present_notification); + list.add(present_notification); if (present_notification) - builder.append(notification); + list.add(notification); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -67589,19 +71504,19 @@ public boolean equals(editNotification_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -68000,14 +71915,14 @@ public boolean equals(getNotification_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_notificationId = true && (isSetNotificationId()); - builder.append(present_notificationId); + list.add(present_notificationId); if (present_notificationId) - builder.append(notificationId); + list.add(notificationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -68420,19 +72335,19 @@ public boolean equals(getNotification_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -68831,14 +72746,14 @@ public boolean equals(getNotificationsByTopicId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_topicId = true && (isSetTopicId()); - builder.append(present_topicId); + list.add(present_topicId); if (present_topicId) - builder.append(topicId); + list.add(topicId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -69271,19 +73186,19 @@ public boolean equals(getNotificationsByTopicId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -69397,12 +73312,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getNotificationsByT { org.apache.thrift.protocol.TList _list160 = iprot.readListBegin(); struct.success = new ArrayList(_list160.size); - for (int _i161 = 0; _i161 < _list160.size; ++_i161) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem161; + for (int _i162 = 0; _i162 < _list160.size; ++_i162) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem162; - _elem162 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem162.read(iprot); - struct.success.add(_elem162); + _elem161 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem161.read(iprot); + struct.success.add(_elem161); } iprot.readListEnd(); } @@ -69499,12 +73414,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getNotificationsByTo { org.apache.thrift.protocol.TList _list165 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list165.size); - for (int _i166 = 0; _i166 < _list165.size; ++_i166) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem166; + for (int _i167 = 0; _i167 < _list165.size; ++_i167) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem167; - _elem167 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem167.read(iprot); - struct.success.add(_elem167); + _elem166 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem166.read(iprot); + struct.success.add(_elem166); } } struct.setSuccessIsSet(true); @@ -69714,14 +73629,14 @@ public boolean equals(editTopic_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_topic = true && (isSetTopic()); - builder.append(present_topic); + list.add(present_topic); if (present_topic) - builder.append(topic); + list.add(topic); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -70136,19 +74051,19 @@ public boolean equals(editTopic_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -70547,14 +74462,14 @@ public boolean equals(getTopic_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_topicId = true && (isSetTopicId()); - builder.append(present_topicId); + list.add(present_topicId); if (present_topicId) - builder.append(topicId); + list.add(topicId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -70967,19 +74882,19 @@ public boolean equals(getTopic_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -71378,14 +75293,14 @@ public boolean equals(getTopicByAppId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_appId = true && (isSetAppId()); - builder.append(present_appId); + list.add(present_appId); if (present_appId) - builder.append(appId); + list.add(appId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -71818,19 +75733,19 @@ public boolean equals(getTopicByAppId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -71944,12 +75859,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getTopicByAppId_res { org.apache.thrift.protocol.TList _list168 = iprot.readListBegin(); struct.success = new ArrayList(_list168.size); - for (int _i169 = 0; _i169 < _list168.size; ++_i169) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem169; + for (int _i170 = 0; _i170 < _list168.size; ++_i170) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem170; - _elem170 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem170.read(iprot); - struct.success.add(_elem170); + _elem169 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem169.read(iprot); + struct.success.add(_elem169); } iprot.readListEnd(); } @@ -72046,12 +75961,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getTopicByAppId_resu { org.apache.thrift.protocol.TList _list173 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list173.size); - for (int _i174 = 0; _i174 < _list173.size; ++_i174) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem174; + for (int _i175 = 0; _i175 < _list173.size; ++_i175) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem175; - _elem175 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem175.read(iprot); - struct.success.add(_elem175); + _elem174 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem174.read(iprot); + struct.success.add(_elem174); } } struct.setSuccessIsSet(true); @@ -72261,14 +76176,14 @@ public boolean equals(getTopicByEndpointGroupId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointGroupId = true && (isSetEndpointGroupId()); - builder.append(present_endpointGroupId); + list.add(present_endpointGroupId); if (present_endpointGroupId) - builder.append(endpointGroupId); + list.add(endpointGroupId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -72701,19 +76616,19 @@ public boolean equals(getTopicByEndpointGroupId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -72827,12 +76742,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getTopicByEndpointG { org.apache.thrift.protocol.TList _list176 = iprot.readListBegin(); struct.success = new ArrayList(_list176.size); - for (int _i177 = 0; _i177 < _list176.size; ++_i177) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem177; + for (int _i178 = 0; _i178 < _list176.size; ++_i178) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem178; - _elem178 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem178.read(iprot); - struct.success.add(_elem178); + _elem177 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem177.read(iprot); + struct.success.add(_elem177); } iprot.readListEnd(); } @@ -72929,12 +76844,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getTopicByEndpointGr { org.apache.thrift.protocol.TList _list181 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list181.size); - for (int _i182 = 0; _i182 < _list181.size; ++_i182) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem182; + for (int _i183 = 0; _i183 < _list181.size; ++_i183) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem183; - _elem183 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem183.read(iprot); - struct.success.add(_elem183); + _elem182 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem182.read(iprot); + struct.success.add(_elem182); } } struct.setSuccessIsSet(true); @@ -73144,14 +77059,14 @@ public boolean equals(getVacantTopicByEndpointGroupId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointGroupId = true && (isSetEndpointGroupId()); - builder.append(present_endpointGroupId); + list.add(present_endpointGroupId); if (present_endpointGroupId) - builder.append(endpointGroupId); + list.add(endpointGroupId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -73584,19 +77499,19 @@ public boolean equals(getVacantTopicByEndpointGroupId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -73710,12 +77625,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getVacantTopicByEnd { org.apache.thrift.protocol.TList _list184 = iprot.readListBegin(); struct.success = new ArrayList(_list184.size); - for (int _i185 = 0; _i185 < _list184.size; ++_i185) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem185; + for (int _i186 = 0; _i186 < _list184.size; ++_i186) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem186; - _elem186 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem186.read(iprot); - struct.success.add(_elem186); + _elem185 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem185.read(iprot); + struct.success.add(_elem185); } iprot.readListEnd(); } @@ -73812,12 +77727,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getVacantTopicByEndp { org.apache.thrift.protocol.TList _list189 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list189.size); - for (int _i190 = 0; _i190 < _list189.size; ++_i190) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem190; + for (int _i191 = 0; _i191 < _list189.size; ++_i191) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem191; - _elem191 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem191.read(iprot); - struct.success.add(_elem191); + _elem190 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem190.read(iprot); + struct.success.add(_elem190); } } struct.setSuccessIsSet(true); @@ -74027,14 +77942,14 @@ public boolean equals(deleteTopicById_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_topicId = true && (isSetTopicId()); - builder.append(present_topicId); + list.add(present_topicId); if (present_topicId) - builder.append(topicId); + list.add(topicId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -74388,14 +78303,14 @@ public boolean equals(deleteTopicById_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -74751,14 +78666,14 @@ public boolean equals(getUnicastNotification_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_notificationId = true && (isSetNotificationId()); - builder.append(present_notificationId); + list.add(present_notificationId); if (present_notificationId) - builder.append(notificationId); + list.add(notificationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -75171,19 +79086,19 @@ public boolean equals(getUnicastNotification_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -75582,14 +79497,14 @@ public boolean equals(editUnicastNotification_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_notification = true && (isSetNotification()); - builder.append(present_notification); + list.add(present_notification); if (present_notification) - builder.append(notification); + list.add(notification); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -76004,19 +79919,19 @@ public boolean equals(editUnicastNotification_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -76308,7 +80223,7 @@ public getUnicastNotificationsByKeyHash_args( ByteBuffer keyhash) { this(); - this.keyhash = keyhash; + this.keyhash = org.apache.thrift.TBaseHelper.copyBinary(keyhash); } /** @@ -76317,7 +80232,6 @@ public getUnicastNotificationsByKeyHash_args( public getUnicastNotificationsByKeyHash_args(getUnicastNotificationsByKeyHash_args other) { if (other.isSetKeyhash()) { this.keyhash = org.apache.thrift.TBaseHelper.copyBinary(other.keyhash); -; } } @@ -76336,16 +80250,16 @@ public byte[] getKeyhash() { } public ByteBuffer bufferForKeyhash() { - return keyhash; + return org.apache.thrift.TBaseHelper.copyBinary(keyhash); } public getUnicastNotificationsByKeyHash_args setKeyhash(byte[] keyhash) { - setKeyhash(keyhash == null ? (ByteBuffer)null : ByteBuffer.wrap(keyhash)); + this.keyhash = keyhash == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(keyhash, keyhash.length)); return this; } public getUnicastNotificationsByKeyHash_args setKeyhash(ByteBuffer keyhash) { - this.keyhash = keyhash; + this.keyhash = org.apache.thrift.TBaseHelper.copyBinary(keyhash); return this; } @@ -76426,14 +80340,14 @@ public boolean equals(getUnicastNotificationsByKeyHash_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_keyhash = true && (isSetKeyhash()); - builder.append(present_keyhash); + list.add(present_keyhash); if (present_keyhash) - builder.append(keyhash); + list.add(keyhash); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -76866,19 +80780,19 @@ public boolean equals(getUnicastNotificationsByKeyHash_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -76992,12 +80906,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getUnicastNotificat { org.apache.thrift.protocol.TList _list192 = iprot.readListBegin(); struct.success = new ArrayList(_list192.size); - for (int _i193 = 0; _i193 < _list192.size; ++_i193) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem193; + for (int _i194 = 0; _i194 < _list192.size; ++_i194) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem194; - _elem194 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem194.read(iprot); - struct.success.add(_elem194); + _elem193 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem193.read(iprot); + struct.success.add(_elem193); } iprot.readListEnd(); } @@ -77094,12 +81008,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getUnicastNotificati { org.apache.thrift.protocol.TList _list197 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list197.size); - for (int _i198 = 0; _i198 < _list197.size; ++_i198) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem198; + for (int _i199 = 0; _i199 < _list197.size; ++_i199) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem199; - _elem199 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem199.read(iprot); - struct.success.add(_elem199); + _elem198 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem198.read(iprot); + struct.success.add(_elem198); } } struct.setSuccessIsSet(true); @@ -77309,14 +81223,14 @@ public boolean equals(generateSdk_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_sdkProperties = true && (isSetSdkProperties()); - builder.append(present_sdkProperties); + list.add(present_sdkProperties); if (present_sdkProperties) - builder.append(sdkProperties); + list.add(sdkProperties); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -77731,19 +81645,19 @@ public boolean equals(generateSdk_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -78145,14 +82059,14 @@ public boolean equals(editEventClassFamily_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_eventClassFamily = true && (isSetEventClassFamily()); - builder.append(present_eventClassFamily); + list.add(present_eventClassFamily); if (present_eventClassFamily) - builder.append(eventClassFamily); + list.add(eventClassFamily); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -78567,19 +82481,19 @@ public boolean equals(editEventClassFamily_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -78978,14 +82892,14 @@ public boolean equals(getEventClassFamiliesByTenantId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tenantId = true && (isSetTenantId()); - builder.append(present_tenantId); + list.add(present_tenantId); if (present_tenantId) - builder.append(tenantId); + list.add(tenantId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -79418,19 +83332,19 @@ public boolean equals(getEventClassFamiliesByTenantId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -79544,12 +83458,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getEventClassFamili { org.apache.thrift.protocol.TList _list200 = iprot.readListBegin(); struct.success = new ArrayList(_list200.size); - for (int _i201 = 0; _i201 < _list200.size; ++_i201) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem201; + for (int _i202 = 0; _i202 < _list200.size; ++_i202) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem202; - _elem202 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem202.read(iprot); - struct.success.add(_elem202); + _elem201 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem201.read(iprot); + struct.success.add(_elem201); } iprot.readListEnd(); } @@ -79646,12 +83560,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getEventClassFamilie { org.apache.thrift.protocol.TList _list205 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list205.size); - for (int _i206 = 0; _i206 < _list205.size; ++_i206) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem206; + for (int _i207 = 0; _i207 < _list205.size; ++_i207) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem207; - _elem207 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem207.read(iprot); - struct.success.add(_elem207); + _elem206 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem206.read(iprot); + struct.success.add(_elem206); } } struct.setSuccessIsSet(true); @@ -79861,14 +83775,14 @@ public boolean equals(getEventClassFamily_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_eventClassFamilyId = true && (isSetEventClassFamilyId()); - builder.append(present_eventClassFamilyId); + list.add(present_eventClassFamilyId); if (present_eventClassFamilyId) - builder.append(eventClassFamilyId); + list.add(eventClassFamilyId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -80281,19 +84195,19 @@ public boolean equals(getEventClassFamily_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -80810,24 +84724,24 @@ public boolean equals(addEventClassFamilySchema_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_eventClassFamilyId = true && (isSetEventClassFamilyId()); - builder.append(present_eventClassFamilyId); + list.add(present_eventClassFamilyId); if (present_eventClassFamilyId) - builder.append(eventClassFamilyId); + list.add(eventClassFamilyId); boolean present_eventClassFamilySchema = true && (isSetEventClassFamilySchema()); - builder.append(present_eventClassFamilySchema); + list.add(present_eventClassFamilySchema); if (present_eventClassFamilySchema) - builder.append(eventClassFamilySchema); + list.add(eventClassFamilySchema); boolean present_createdUsername = true && (isSetCreatedUsername()); - builder.append(present_createdUsername); + list.add(present_createdUsername); if (present_createdUsername) - builder.append(createdUsername); + list.add(createdUsername); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -81263,14 +85177,14 @@ public boolean equals(addEventClassFamilySchema_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -81746,24 +85660,24 @@ public boolean equals(getEventClassesByFamilyIdVersionAndType_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_ecfId = true && (isSetEcfId()); - builder.append(present_ecfId); + list.add(present_ecfId); if (present_ecfId) - builder.append(ecfId); + list.add(ecfId); boolean present_version = true; - builder.append(present_version); + list.add(present_version); if (present_version) - builder.append(version); + list.add(version); boolean present_type = true && (isSetType()); - builder.append(present_type); + list.add(present_type); if (present_type) - builder.append(type); + list.add(type); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -82276,19 +86190,19 @@ public boolean equals(getEventClassesByFamilyIdVersionAndType_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -82402,12 +86316,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getEventClassesByFa { org.apache.thrift.protocol.TList _list208 = iprot.readListBegin(); struct.success = new ArrayList(_list208.size); - for (int _i209 = 0; _i209 < _list208.size; ++_i209) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem209; + for (int _i210 = 0; _i210 < _list208.size; ++_i210) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem210; - _elem210 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem210.read(iprot); - struct.success.add(_elem210); + _elem209 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem209.read(iprot); + struct.success.add(_elem209); } iprot.readListEnd(); } @@ -82504,12 +86418,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getEventClassesByFam { org.apache.thrift.protocol.TList _list213 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list213.size); - for (int _i214 = 0; _i214 < _list213.size; ++_i214) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem214; + for (int _i215 = 0; _i215 < _list213.size; ++_i215) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem215; - _elem215 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem215.read(iprot); - struct.success.add(_elem215); + _elem214 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem214.read(iprot); + struct.success.add(_elem214); } } struct.setSuccessIsSet(true); @@ -82719,14 +86633,14 @@ public boolean equals(editApplicationEventFamilyMap_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationEventFamilyMap = true && (isSetApplicationEventFamilyMap()); - builder.append(present_applicationEventFamilyMap); + list.add(present_applicationEventFamilyMap); if (present_applicationEventFamilyMap) - builder.append(applicationEventFamilyMap); + list.add(applicationEventFamilyMap); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -83141,19 +87055,19 @@ public boolean equals(editApplicationEventFamilyMap_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -83552,14 +87466,14 @@ public boolean equals(getApplicationEventFamilyMap_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationEventFamilyMapId = true && (isSetApplicationEventFamilyMapId()); - builder.append(present_applicationEventFamilyMapId); + list.add(present_applicationEventFamilyMapId); if (present_applicationEventFamilyMapId) - builder.append(applicationEventFamilyMapId); + list.add(applicationEventFamilyMapId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -83972,19 +87886,19 @@ public boolean equals(getApplicationEventFamilyMap_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -84383,14 +88297,14 @@ public boolean equals(getApplicationEventFamilyMapsByApplicationId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -84823,19 +88737,19 @@ public boolean equals(getApplicationEventFamilyMapsByApplicationId_result that) @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -84949,12 +88863,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getApplicationEvent { org.apache.thrift.protocol.TList _list216 = iprot.readListBegin(); struct.success = new ArrayList(_list216.size); - for (int _i217 = 0; _i217 < _list216.size; ++_i217) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem217; + for (int _i218 = 0; _i218 < _list216.size; ++_i218) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem218; - _elem218 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem218.read(iprot); - struct.success.add(_elem218); + _elem217 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem217.read(iprot); + struct.success.add(_elem217); } iprot.readListEnd(); } @@ -85051,12 +88965,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getApplicationEventF { org.apache.thrift.protocol.TList _list221 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list221.size); - for (int _i222 = 0; _i222 < _list221.size; ++_i222) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem222; + for (int _i223 = 0; _i223 < _list221.size; ++_i223) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem223; - _elem223 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem223.read(iprot); - struct.success.add(_elem223); + _elem222 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem222.read(iprot); + struct.success.add(_elem222); } } struct.setSuccessIsSet(true); @@ -85266,14 +89180,14 @@ public boolean equals(getVacantEventClassFamiliesByApplicationId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -85706,19 +89620,19 @@ public boolean equals(getVacantEventClassFamiliesByApplicationId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -85832,12 +89746,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getVacantEventClass { org.apache.thrift.protocol.TList _list224 = iprot.readListBegin(); struct.success = new ArrayList(_list224.size); - for (int _i225 = 0; _i225 < _list224.size; ++_i225) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem225; + for (int _i226 = 0; _i226 < _list224.size; ++_i226) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem226; - _elem226 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem226.read(iprot); - struct.success.add(_elem226); + _elem225 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem225.read(iprot); + struct.success.add(_elem225); } iprot.readListEnd(); } @@ -85934,12 +89848,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getVacantEventClassF { org.apache.thrift.protocol.TList _list229 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list229.size); - for (int _i230 = 0; _i230 < _list229.size; ++_i230) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem230; + for (int _i231 = 0; _i231 < _list229.size; ++_i231) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem231; - _elem231 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem231.read(iprot); - struct.success.add(_elem231); + _elem230 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem230.read(iprot); + struct.success.add(_elem230); } } struct.setSuccessIsSet(true); @@ -86149,14 +90063,14 @@ public boolean equals(getEventClassFamiliesByApplicationId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -86589,19 +90503,19 @@ public boolean equals(getEventClassFamiliesByApplicationId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -86715,12 +90629,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getEventClassFamili { org.apache.thrift.protocol.TList _list232 = iprot.readListBegin(); struct.success = new ArrayList(_list232.size); - for (int _i233 = 0; _i233 < _list232.size; ++_i233) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem233; + for (int _i234 = 0; _i234 < _list232.size; ++_i234) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem234; - _elem234 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem234.read(iprot); - struct.success.add(_elem234); + _elem233 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem233.read(iprot); + struct.success.add(_elem233); } iprot.readListEnd(); } @@ -86817,12 +90731,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getEventClassFamilie { org.apache.thrift.protocol.TList _list237 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list237.size); - for (int _i238 = 0; _i238 < _list237.size; ++_i238) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem238; + for (int _i239 = 0; _i239 < _list237.size; ++_i239) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem239; - _elem239 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem239.read(iprot); - struct.success.add(_elem239); + _elem238 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem238.read(iprot); + struct.success.add(_elem238); } } struct.setSuccessIsSet(true); @@ -86967,9 +90881,9 @@ public boolean equals(getEndpointUsers_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -87359,19 +91273,19 @@ public boolean equals(getEndpointUsers_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -87485,12 +91399,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getEndpointUsers_re { org.apache.thrift.protocol.TList _list240 = iprot.readListBegin(); struct.success = new ArrayList(_list240.size); - for (int _i241 = 0; _i241 < _list240.size; ++_i241) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem241; + for (int _i242 = 0; _i242 < _list240.size; ++_i242) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem242; - _elem242 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem242.read(iprot); - struct.success.add(_elem242); + _elem241 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem241.read(iprot); + struct.success.add(_elem241); } iprot.readListEnd(); } @@ -87587,12 +91501,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getEndpointUsers_res { org.apache.thrift.protocol.TList _list245 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list245.size); - for (int _i246 = 0; _i246 < _list245.size; ++_i246) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem246; + for (int _i247 = 0; _i247 < _list245.size; ++_i247) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem247; - _elem247 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem247.read(iprot); - struct.success.add(_elem247); + _elem246 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem246.read(iprot); + struct.success.add(_elem246); } } struct.setSuccessIsSet(true); @@ -87802,14 +91716,14 @@ public boolean equals(getEndpointUser_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointUserId = true && (isSetEndpointUserId()); - builder.append(present_endpointUserId); + list.add(present_endpointUserId); if (present_endpointUserId) - builder.append(endpointUserId); + list.add(endpointUserId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -88222,19 +92136,19 @@ public boolean equals(getEndpointUser_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -88633,14 +92547,14 @@ public boolean equals(editEndpointUser_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointUser = true && (isSetEndpointUser()); - builder.append(present_endpointUser); + list.add(present_endpointUser); if (present_endpointUser) - builder.append(endpointUser); + list.add(endpointUser); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -89055,19 +92969,19 @@ public boolean equals(editEndpointUser_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -89466,14 +93380,14 @@ public boolean equals(deleteEndpointUser_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointUserId = true && (isSetEndpointUserId()); - builder.append(present_endpointUserId); + list.add(present_endpointUserId); if (present_endpointUserId) - builder.append(endpointUserId); + list.add(endpointUserId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -89827,14 +93741,14 @@ public boolean equals(deleteEndpointUser_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -90249,19 +94163,19 @@ public boolean equals(generateEndpointUserAccessToken_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_externalUid = true && (isSetExternalUid()); - builder.append(present_externalUid); + list.add(present_externalUid); if (present_externalUid) - builder.append(externalUid); + list.add(externalUid); boolean present_tenantId = true && (isSetTenantId()); - builder.append(present_tenantId); + list.add(present_tenantId); if (present_tenantId) - builder.append(tenantId); + list.add(tenantId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -90715,19 +94629,19 @@ public boolean equals(generateEndpointUserAccessToken_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -91124,14 +95038,14 @@ public boolean equals(getLogAppendersByApplicationId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -91564,19 +95478,19 @@ public boolean equals(getLogAppendersByApplicationId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -91690,12 +95604,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getLogAppendersByAp { org.apache.thrift.protocol.TList _list248 = iprot.readListBegin(); struct.success = new ArrayList(_list248.size); - for (int _i249 = 0; _i249 < _list248.size; ++_i249) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem249; + for (int _i250 = 0; _i250 < _list248.size; ++_i250) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem250; - _elem250 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem250.read(iprot); - struct.success.add(_elem250); + _elem249 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem249.read(iprot); + struct.success.add(_elem249); } iprot.readListEnd(); } @@ -91792,12 +95706,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getLogAppendersByApp { org.apache.thrift.protocol.TList _list253 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list253.size); - for (int _i254 = 0; _i254 < _list253.size; ++_i254) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem254; + for (int _i255 = 0; _i255 < _list253.size; ++_i255) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem255; - _elem255 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem255.read(iprot); - struct.success.add(_elem255); + _elem254 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem254.read(iprot); + struct.success.add(_elem254); } } struct.setSuccessIsSet(true); @@ -92007,14 +95921,14 @@ public boolean equals(getLogAppender_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_logAppenderId = true && (isSetLogAppenderId()); - builder.append(present_logAppenderId); + list.add(present_logAppenderId); if (present_logAppenderId) - builder.append(logAppenderId); + list.add(logAppenderId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -92427,19 +96341,19 @@ public boolean equals(getLogAppender_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -92838,14 +96752,14 @@ public boolean equals(editLogAppender_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_logAppender = true && (isSetLogAppender()); - builder.append(present_logAppender); + list.add(present_logAppender); if (present_logAppender) - builder.append(logAppender); + list.add(logAppender); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -93260,19 +97174,19 @@ public boolean equals(editLogAppender_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -93671,14 +97585,14 @@ public boolean equals(deleteLogAppender_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_logAppenderId = true && (isSetLogAppenderId()); - builder.append(present_logAppenderId); + list.add(present_logAppenderId); if (present_logAppenderId) - builder.append(logAppenderId); + list.add(logAppenderId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -94032,14 +97946,14 @@ public boolean equals(deleteLogAppender_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -94456,19 +98370,19 @@ public boolean equals(generateRecordStructureLibrary_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); boolean present_logSchemaVersion = true; - builder.append(present_logSchemaVersion); + list.add(present_logSchemaVersion); if (present_logSchemaVersion) - builder.append(logSchemaVersion); + list.add(logSchemaVersion); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -94918,19 +98832,19 @@ public boolean equals(generateRecordStructureLibrary_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -95393,19 +99307,19 @@ public boolean equals(getRecordStructureSchema_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); boolean present_logSchemaVersion = true; - builder.append(present_logSchemaVersion); + list.add(present_logSchemaVersion); if (present_logSchemaVersion) - builder.append(logSchemaVersion); + list.add(logSchemaVersion); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -95855,19 +99769,19 @@ public boolean equals(getRecordStructureSchema_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -96405,24 +100319,24 @@ public boolean equals(getRecordStructureData_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); boolean present_schemaVersion = true; - builder.append(present_schemaVersion); + list.add(present_schemaVersion); if (present_schemaVersion) - builder.append(schemaVersion); + list.add(schemaVersion); boolean present_recordFile = true && (isSetRecordFile()); - builder.append(present_recordFile); + list.add(present_recordFile); if (present_recordFile) - builder.append(recordFile.getValue()); + list.add(recordFile.getValue()); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -96565,7 +100479,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getRecordStructureD break; case 3: // RECORD_FILE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.recordFile = RecordFile.findByValue(iprot.readI32()); + struct.recordFile = org.kaaproject.kaa.server.common.thrift.gen.control.RecordFile.findByValue(iprot.readI32()); struct.setRecordFileIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -96651,7 +100565,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getRecordStructureDa struct.setSchemaVersionIsSet(true); } if (incoming.get(2)) { - struct.recordFile = RecordFile.findByValue(iprot.readI32()); + struct.recordFile = org.kaaproject.kaa.server.common.thrift.gen.control.RecordFile.findByValue(iprot.readI32()); struct.setRecordFileIsSet(true); } } @@ -96913,19 +100827,19 @@ public boolean equals(getRecordStructureData_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -97327,14 +101241,14 @@ public boolean equals(getUserVerifiersByApplicationId_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_applicationId = true && (isSetApplicationId()); - builder.append(present_applicationId); + list.add(present_applicationId); if (present_applicationId) - builder.append(applicationId); + list.add(applicationId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -97767,19 +101681,19 @@ public boolean equals(getUserVerifiersByApplicationId_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -97893,12 +101807,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getUserVerifiersByA { org.apache.thrift.protocol.TList _list256 = iprot.readListBegin(); struct.success = new ArrayList(_list256.size); - for (int _i257 = 0; _i257 < _list256.size; ++_i257) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem257; + for (int _i258 = 0; _i258 < _list256.size; ++_i258) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem258; - _elem258 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem258.read(iprot); - struct.success.add(_elem258); + _elem257 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem257.read(iprot); + struct.success.add(_elem257); } iprot.readListEnd(); } @@ -97995,12 +101909,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getUserVerifiersByAp { org.apache.thrift.protocol.TList _list261 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list261.size); - for (int _i262 = 0; _i262 < _list261.size; ++_i262) + org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem262; + for (int _i263 = 0; _i263 < _list261.size; ++_i263) { - org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct _elem263; - _elem263 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); - _elem263.read(iprot); - struct.success.add(_elem263); + _elem262 = new org.kaaproject.kaa.server.common.thrift.gen.shared.DataStruct(); + _elem262.read(iprot); + struct.success.add(_elem262); } } struct.setSuccessIsSet(true); @@ -98210,14 +102124,14 @@ public boolean equals(getUserVerifier_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_userVerifierId = true && (isSetUserVerifierId()); - builder.append(present_userVerifierId); + list.add(present_userVerifierId); if (present_userVerifierId) - builder.append(userVerifierId); + list.add(userVerifierId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -98630,19 +102544,19 @@ public boolean equals(getUserVerifier_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -99041,14 +102955,14 @@ public boolean equals(editUserVerifier_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_userVerifier = true && (isSetUserVerifier()); - builder.append(present_userVerifier); + list.add(present_userVerifier); if (present_userVerifier) - builder.append(userVerifier); + list.add(userVerifier); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -99463,19 +103377,19 @@ public boolean equals(editUserVerifier_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); - builder.append(present_success); + list.add(present_success); if (present_success) - builder.append(success); + list.add(success); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -99874,14 +103788,14 @@ public boolean equals(deleteUserVerifier_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_userVerifierId = true && (isSetUserVerifierId()); - builder.append(present_userVerifierId); + list.add(present_userVerifierId); if (present_userVerifierId) - builder.append(userVerifierId); + list.add(userVerifierId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -100235,14 +104149,14 @@ public boolean equals(deleteUserVerifier_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_ControlException = true && (isSetControlException()); - builder.append(present_ControlException); + list.add(present_ControlException); if (present_ControlException) - builder.append(ControlException); + list.add(ControlException); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/FileData.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/FileData.java index 9395f151ab..8b568a6829 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/FileData.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/FileData.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.control; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class FileData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FileData"); @@ -130,7 +132,7 @@ public FileData( { this(); this.fileName = fileName; - this.data = data; + this.data = org.apache.thrift.TBaseHelper.copyBinary(data); } /** @@ -142,7 +144,6 @@ public FileData(FileData other) { } if (other.isSetData()) { this.data = org.apache.thrift.TBaseHelper.copyBinary(other.data); -; } } @@ -186,16 +187,16 @@ public byte[] getData() { } public ByteBuffer bufferForData() { - return data; + return org.apache.thrift.TBaseHelper.copyBinary(data); } public FileData setData(byte[] data) { - setData(data == null ? (ByteBuffer)null : ByteBuffer.wrap(data)); + this.data = data == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(data, data.length)); return this; } public FileData setData(ByteBuffer data) { - this.data = data; + this.data = org.apache.thrift.TBaseHelper.copyBinary(data); return this; } @@ -298,19 +299,19 @@ public boolean equals(FileData that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_fileName = true && (isSetFileName()); - builder.append(present_fileName); + list.add(present_fileName); if (present_fileName) - builder.append(fileName); + list.add(fileName); boolean present_data = true && (isSetData()); - builder.append(present_data); + list.add(present_data); if (present_data) - builder.append(data); + list.add(data); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/RecordFile.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/RecordFile.java index 911eca93d1..f625c92e0a 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/RecordFile.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/RecordFile.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/Sdk.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/Sdk.java index 6ea031b80d..16b2271a01 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/Sdk.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/Sdk.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.control; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class Sdk implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Sdk"); @@ -130,7 +132,7 @@ public Sdk( { this(); this.fileName = fileName; - this.data = data; + this.data = org.apache.thrift.TBaseHelper.copyBinary(data); } /** @@ -142,7 +144,6 @@ public Sdk(Sdk other) { } if (other.isSetData()) { this.data = org.apache.thrift.TBaseHelper.copyBinary(other.data); -; } } @@ -186,16 +187,16 @@ public byte[] getData() { } public ByteBuffer bufferForData() { - return data; + return org.apache.thrift.TBaseHelper.copyBinary(data); } public Sdk setData(byte[] data) { - setData(data == null ? (ByteBuffer)null : ByteBuffer.wrap(data)); + this.data = data == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(data, data.length)); return this; } public Sdk setData(ByteBuffer data) { - this.data = data; + this.data = org.apache.thrift.TBaseHelper.copyBinary(data); return this; } @@ -298,19 +299,19 @@ public boolean equals(Sdk that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_fileName = true && (isSetFileName()); - builder.append(present_fileName); + list.add(present_fileName); if (present_fileName) - builder.append(fileName); + list.add(fileName); boolean present_data = true && (isSetData()); - builder.append(present_data); + list.add(present_data); if (present_data) - builder.append(data); + list.add(data); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/SdkPlatform.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/SdkPlatform.java index d45315687d..0cd68769e8 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/SdkPlatform.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/control/SdkPlatform.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EndpointEvent.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EndpointEvent.java index 4f9f285c64..046b3b719a 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EndpointEvent.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EndpointEvent.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.operations; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class EndpointEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("EndpointEvent"); @@ -157,8 +159,8 @@ public EndpointEvent( { this(); this.uuid = uuid; - this.sender = sender; - this.eventData = eventData; + this.sender = org.apache.thrift.TBaseHelper.copyBinary(sender); + this.eventData = org.apache.thrift.TBaseHelper.copyBinary(eventData); this.createTime = createTime; setCreateTimeIsSet(true); this.version = version; @@ -178,7 +180,6 @@ public EndpointEvent(EndpointEvent other) { } if (other.isSetEventData()) { this.eventData = org.apache.thrift.TBaseHelper.copyBinary(other.eventData); -; } this.createTime = other.createTime; this.version = other.version; @@ -229,16 +230,16 @@ public byte[] getSender() { } public ByteBuffer bufferForSender() { - return sender; + return org.apache.thrift.TBaseHelper.copyBinary(sender); } public EndpointEvent setSender(byte[] sender) { - setSender(sender == null ? (ByteBuffer)null : ByteBuffer.wrap(sender)); + this.sender = sender == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(sender, sender.length)); return this; } public EndpointEvent setSender(ByteBuffer sender) { - this.sender = sender; + this.sender = org.apache.thrift.TBaseHelper.copyBinary(sender); return this; } @@ -263,16 +264,16 @@ public byte[] getEventData() { } public ByteBuffer bufferForEventData() { - return eventData; + return org.apache.thrift.TBaseHelper.copyBinary(eventData); } public EndpointEvent setEventData(byte[] eventData) { - setEventData(eventData == null ? (ByteBuffer)null : ByteBuffer.wrap(eventData)); + this.eventData = eventData == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(eventData, eventData.length)); return this; } public EndpointEvent setEventData(ByteBuffer eventData) { - this.eventData = eventData; + this.eventData = org.apache.thrift.TBaseHelper.copyBinary(eventData); return this; } @@ -487,34 +488,34 @@ public boolean equals(EndpointEvent that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_uuid = true && (isSetUuid()); - builder.append(present_uuid); + list.add(present_uuid); if (present_uuid) - builder.append(uuid); + list.add(uuid); boolean present_sender = true && (isSetSender()); - builder.append(present_sender); + list.add(present_sender); if (present_sender) - builder.append(sender); + list.add(sender); boolean present_eventData = true && (isSetEventData()); - builder.append(present_eventData); + list.add(present_eventData); if (present_eventData) - builder.append(eventData); + list.add(eventData); boolean present_createTime = true; - builder.append(present_createTime); + list.add(present_createTime); if (present_createTime) - builder.append(createTime); + list.add(createTime); boolean present_version = true; - builder.append(present_version); + list.add(present_version); if (present_version) - builder.append(version); + list.add(version); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EndpointRouteUpdate.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EndpointRouteUpdate.java index 374c6697b5..068a735fb8 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EndpointRouteUpdate.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EndpointRouteUpdate.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.operations; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class EndpointRouteUpdate implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("EndpointRouteUpdate"); @@ -177,7 +179,7 @@ public EndpointRouteUpdate( this.updateType = updateType; this.cfSchemaVersion = cfSchemaVersion; setCfSchemaVersionIsSet(true); - this.ucfHash = ucfHash; + this.ucfHash = org.apache.thrift.TBaseHelper.copyBinary(ucfHash); } /** @@ -200,7 +202,6 @@ public EndpointRouteUpdate(EndpointRouteUpdate other) { this.cfSchemaVersion = other.cfSchemaVersion; if (other.isSetUcfHash()) { this.ucfHash = org.apache.thrift.TBaseHelper.copyBinary(other.ucfHash); -; } } @@ -352,16 +353,16 @@ public byte[] getUcfHash() { } public ByteBuffer bufferForUcfHash() { - return ucfHash; + return org.apache.thrift.TBaseHelper.copyBinary(ucfHash); } public EndpointRouteUpdate setUcfHash(byte[] ucfHash) { - setUcfHash(ucfHash == null ? (ByteBuffer)null : ByteBuffer.wrap(ucfHash)); + this.ucfHash = ucfHash == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(ucfHash, ucfHash.length)); return this; } public EndpointRouteUpdate setUcfHash(ByteBuffer ucfHash) { - this.ucfHash = ucfHash; + this.ucfHash = org.apache.thrift.TBaseHelper.copyBinary(ucfHash); return this; } @@ -552,39 +553,39 @@ public boolean equals(EndpointRouteUpdate that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tenantId = true && (isSetTenantId()); - builder.append(present_tenantId); + list.add(present_tenantId); if (present_tenantId) - builder.append(tenantId); + list.add(tenantId); boolean present_userId = true && (isSetUserId()); - builder.append(present_userId); + list.add(present_userId); if (present_userId) - builder.append(userId); + list.add(userId); boolean present_routeAddress = true && (isSetRouteAddress()); - builder.append(present_routeAddress); + list.add(present_routeAddress); if (present_routeAddress) - builder.append(routeAddress); + list.add(routeAddress); boolean present_updateType = true && (isSetUpdateType()); - builder.append(present_updateType); + list.add(present_updateType); if (present_updateType) - builder.append(updateType.getValue()); + list.add(updateType.getValue()); boolean present_cfSchemaVersion = true; - builder.append(present_cfSchemaVersion); + list.add(present_cfSchemaVersion); if (present_cfSchemaVersion) - builder.append(cfSchemaVersion); + list.add(cfSchemaVersion); boolean present_ucfHash = true && (isSetUcfHash()); - builder.append(present_ucfHash); + list.add(present_ucfHash); if (present_ucfHash) - builder.append(ucfHash); + list.add(ucfHash); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -793,7 +794,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, EndpointRouteUpdate break; case 4: // UPDATE_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.updateType = EventRouteUpdateType.findByValue(iprot.readI32()); + struct.updateType = org.kaaproject.kaa.server.common.thrift.gen.operations.EventRouteUpdateType.findByValue(iprot.readI32()); struct.setUpdateTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -933,7 +934,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, EndpointRouteUpdate struct.setRouteAddressIsSet(true); } if (incoming.get(3)) { - struct.updateType = EventRouteUpdateType.findByValue(iprot.readI32()); + struct.updateType = org.kaaproject.kaa.server.common.thrift.gen.operations.EventRouteUpdateType.findByValue(iprot.readI32()); struct.setUpdateTypeIsSet(true); } if (incoming.get(4)) { diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EndpointStateUpdate.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EndpointStateUpdate.java index a5d3ee5a61..a668506b4b 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EndpointStateUpdate.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EndpointStateUpdate.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.operations; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class EndpointStateUpdate implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("EndpointStateUpdate"); @@ -156,8 +158,8 @@ public EndpointStateUpdate( this.tenantId = tenantId; this.userId = userId; this.applicationToken = applicationToken; - this.endpointKey = endpointKey; - this.ucfHash = ucfHash; + this.endpointKey = org.apache.thrift.TBaseHelper.copyBinary(endpointKey); + this.ucfHash = org.apache.thrift.TBaseHelper.copyBinary(ucfHash); } /** @@ -178,7 +180,6 @@ public EndpointStateUpdate(EndpointStateUpdate other) { } if (other.isSetUcfHash()) { this.ucfHash = org.apache.thrift.TBaseHelper.copyBinary(other.ucfHash); -; } } @@ -273,16 +274,16 @@ public byte[] getEndpointKey() { } public ByteBuffer bufferForEndpointKey() { - return endpointKey; + return org.apache.thrift.TBaseHelper.copyBinary(endpointKey); } public EndpointStateUpdate setEndpointKey(byte[] endpointKey) { - setEndpointKey(endpointKey == null ? (ByteBuffer)null : ByteBuffer.wrap(endpointKey)); + this.endpointKey = endpointKey == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(endpointKey, endpointKey.length)); return this; } public EndpointStateUpdate setEndpointKey(ByteBuffer endpointKey) { - this.endpointKey = endpointKey; + this.endpointKey = org.apache.thrift.TBaseHelper.copyBinary(endpointKey); return this; } @@ -307,16 +308,16 @@ public byte[] getUcfHash() { } public ByteBuffer bufferForUcfHash() { - return ucfHash; + return org.apache.thrift.TBaseHelper.copyBinary(ucfHash); } public EndpointStateUpdate setUcfHash(byte[] ucfHash) { - setUcfHash(ucfHash == null ? (ByteBuffer)null : ByteBuffer.wrap(ucfHash)); + this.ucfHash = ucfHash == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(ucfHash, ucfHash.length)); return this; } public EndpointStateUpdate setUcfHash(ByteBuffer ucfHash) { - this.ucfHash = ucfHash; + this.ucfHash = org.apache.thrift.TBaseHelper.copyBinary(ucfHash); return this; } @@ -485,34 +486,34 @@ public boolean equals(EndpointStateUpdate that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tenantId = true && (isSetTenantId()); - builder.append(present_tenantId); + list.add(present_tenantId); if (present_tenantId) - builder.append(tenantId); + list.add(tenantId); boolean present_userId = true && (isSetUserId()); - builder.append(present_userId); + list.add(present_userId); if (present_userId) - builder.append(userId); + list.add(userId); boolean present_applicationToken = true && (isSetApplicationToken()); - builder.append(present_applicationToken); + list.add(present_applicationToken); if (present_applicationToken) - builder.append(applicationToken); + list.add(applicationToken); boolean present_endpointKey = true && (isSetEndpointKey()); - builder.append(present_endpointKey); + list.add(present_endpointKey); if (present_endpointKey) - builder.append(endpointKey); + list.add(endpointKey); boolean present_ucfHash = true && (isSetUcfHash()); - builder.append(present_ucfHash); + list.add(present_ucfHash); if (present_ucfHash) - builder.append(ucfHash); + list.add(ucfHash); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Event.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Event.java index 54f92f7361..6826628e85 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Event.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Event.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.operations; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class Event implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Event"); @@ -405,29 +407,29 @@ public boolean equals(Event that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_userId = true && (isSetUserId()); - builder.append(present_userId); + list.add(present_userId); if (present_userId) - builder.append(userId); + list.add(userId); boolean present_tenantId = true && (isSetTenantId()); - builder.append(present_tenantId); + list.add(present_tenantId); if (present_tenantId) - builder.append(tenantId); + list.add(tenantId); boolean present_endpointEvent = true && (isSetEndpointEvent()); - builder.append(present_endpointEvent); + list.add(present_endpointEvent); if (present_endpointEvent) - builder.append(endpointEvent); + list.add(endpointEvent); boolean present_routeAddress = true && (isSetRouteAddress()); - builder.append(present_routeAddress); + list.add(present_routeAddress); if (present_routeAddress) - builder.append(routeAddress); + list.add(routeAddress); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventClassFamilyVersion.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventClassFamilyVersion.java index 0ccb653bd4..7d7b78382a 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventClassFamilyVersion.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventClassFamilyVersion.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.operations; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class EventClassFamilyVersion implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("EventClassFamilyVersion"); @@ -289,19 +291,19 @@ public boolean equals(EventClassFamilyVersion that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointClassFamilyId = true && (isSetEndpointClassFamilyId()); - builder.append(present_endpointClassFamilyId); + list.add(present_endpointClassFamilyId); if (present_endpointClassFamilyId) - builder.append(endpointClassFamilyId); + list.add(endpointClassFamilyId); boolean present_endpointClassFamilyVersion = true; - builder.append(present_endpointClassFamilyVersion); + list.add(present_endpointClassFamilyVersion); if (present_endpointClassFamilyVersion) - builder.append(endpointClassFamilyVersion); + list.add(endpointClassFamilyVersion); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventMessageType.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventMessageType.java index 1fedd4a3cc..b7d6de8623 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventMessageType.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventMessageType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventRoute.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventRoute.java index 6642afd927..06f93f3909 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventRoute.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventRoute.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.operations; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class EventRoute implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("EventRoute"); @@ -425,29 +427,29 @@ public boolean equals(EventRoute that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_userId = true && (isSetUserId()); - builder.append(present_userId); + list.add(present_userId); if (present_userId) - builder.append(userId); + list.add(userId); boolean present_tenantId = true && (isSetTenantId()); - builder.append(present_tenantId); + list.add(present_tenantId); if (present_tenantId) - builder.append(tenantId); + list.add(tenantId); boolean present_routeInfo = true && (isSetRouteInfo()); - builder.append(present_routeInfo); + list.add(present_routeInfo); if (present_routeInfo) - builder.append(routeInfo); + list.add(routeInfo); boolean present_operationsServerId = true && (isSetOperationsServerId()); - builder.append(present_operationsServerId); + list.add(present_operationsServerId); if (present_operationsServerId) - builder.append(operationsServerId); + list.add(operationsServerId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -613,12 +615,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, EventRoute struct) { org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); struct.routeInfo = new ArrayList(_list8.size); - for (int _i9 = 0; _i9 < _list8.size; ++_i9) + RouteInfo _elem9; + for (int _i10 = 0; _i10 < _list8.size; ++_i10) { - RouteInfo _elem10; - _elem10 = new RouteInfo(); - _elem10.read(iprot); - struct.routeInfo.add(_elem10); + _elem9 = new RouteInfo(); + _elem9.read(iprot); + struct.routeInfo.add(_elem9); } iprot.readListEnd(); } @@ -744,12 +746,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, EventRoute struct) t { org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.routeInfo = new ArrayList(_list13.size); - for (int _i14 = 0; _i14 < _list13.size; ++_i14) + RouteInfo _elem14; + for (int _i15 = 0; _i15 < _list13.size; ++_i15) { - RouteInfo _elem15; - _elem15 = new RouteInfo(); - _elem15.read(iprot); - struct.routeInfo.add(_elem15); + _elem14 = new RouteInfo(); + _elem14.read(iprot); + struct.routeInfo.add(_elem14); } } struct.setRouteInfoIsSet(true); diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventRouteUpdateType.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventRouteUpdateType.java index dac7a06aef..730583e6f3 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventRouteUpdateType.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/EventRouteUpdateType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Message.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Message.java index 12fe17614f..c3b16cbe29 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Message.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Message.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.operations; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class Message implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Message"); @@ -600,44 +602,44 @@ public boolean equals(Message that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_type = true && (isSetType()); - builder.append(present_type); + list.add(present_type); if (present_type) - builder.append(type.getValue()); + list.add(type.getValue()); boolean present_eventId = true; - builder.append(present_eventId); + list.add(present_eventId); if (present_eventId) - builder.append(eventId); + list.add(eventId); boolean present_event = true && (isSetEvent()); - builder.append(present_event); + list.add(present_event); if (present_event) - builder.append(event); + list.add(event); boolean present_route = true && (isSetRoute()); - builder.append(present_route); + list.add(present_route); if (present_route) - builder.append(route); + list.add(route); boolean present_userRoute = true && (isSetUserRoute()); - builder.append(present_userRoute); + list.add(present_userRoute); if (present_userRoute) - builder.append(userRoute); + list.add(userRoute); boolean present_endpointRouteUpdate = true && (isSetEndpointRouteUpdate()); - builder.append(present_endpointRouteUpdate); + list.add(present_endpointRouteUpdate); if (present_endpointRouteUpdate) - builder.append(endpointRouteUpdate); + list.add(endpointRouteUpdate); boolean present_endpointStateUpdate = true && (isSetEndpointStateUpdate()); - builder.append(present_endpointStateUpdate); + list.add(present_endpointStateUpdate); if (present_endpointStateUpdate) - builder.append(endpointStateUpdate); + list.add(endpointStateUpdate); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -851,7 +853,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Message struct) thr switch (schemeField.id) { case 1: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = EventMessageType.findByValue(iprot.readI32()); + struct.type = org.kaaproject.kaa.server.common.thrift.gen.operations.EventMessageType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1026,7 +1028,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Message struct) thro TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { - struct.type = EventMessageType.findByValue(iprot.readI32()); + struct.type = org.kaaproject.kaa.server.common.thrift.gen.operations.EventMessageType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } if (incoming.get(1)) { diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Notification.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Notification.java index 20748efc3c..bfa4c1b38f 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Notification.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Notification.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.operations; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class Notification implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Notification"); @@ -261,7 +263,7 @@ public Notification( this.notificationId = notificationId; this.unicastNotificationId = unicastNotificationId; this.topicId = topicId; - this.keyHash = keyHash; + this.keyHash = org.apache.thrift.TBaseHelper.copyBinary(keyHash); this.op = op; this.appenderId = appenderId; this.userVerifierToken = userVerifierToken; @@ -299,7 +301,6 @@ public Notification(Notification other) { } if (other.isSetKeyHash()) { this.keyHash = org.apache.thrift.TBaseHelper.copyBinary(other.keyHash); -; } if (other.isSetOp()) { this.op = other.op; @@ -605,16 +606,16 @@ public byte[] getKeyHash() { } public ByteBuffer bufferForKeyHash() { - return keyHash; + return org.apache.thrift.TBaseHelper.copyBinary(keyHash); } public Notification setKeyHash(byte[] keyHash) { - setKeyHash(keyHash == null ? (ByteBuffer)null : ByteBuffer.wrap(keyHash)); + this.keyHash = keyHash == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(keyHash, keyHash.length)); return this; } public Notification setKeyHash(ByteBuffer keyHash) { - this.keyHash = keyHash; + this.keyHash = org.apache.thrift.TBaseHelper.copyBinary(keyHash); return this; } @@ -1083,84 +1084,84 @@ public boolean equals(Notification that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_appId = true && (isSetAppId()); - builder.append(present_appId); + list.add(present_appId); if (present_appId) - builder.append(appId); + list.add(appId); boolean present_appSeqNumber = true; - builder.append(present_appSeqNumber); + list.add(present_appSeqNumber); if (present_appSeqNumber) - builder.append(appSeqNumber); + list.add(appSeqNumber); boolean present_groupId = true && (isSetGroupId()); - builder.append(present_groupId); + list.add(present_groupId); if (present_groupId) - builder.append(groupId); + list.add(groupId); boolean present_groupSeqNumber = true; - builder.append(present_groupSeqNumber); + list.add(present_groupSeqNumber); if (present_groupSeqNumber) - builder.append(groupSeqNumber); + list.add(groupSeqNumber); boolean present_profileFilterId = true && (isSetProfileFilterId()); - builder.append(present_profileFilterId); + list.add(present_profileFilterId); if (present_profileFilterId) - builder.append(profileFilterId); + list.add(profileFilterId); boolean present_profileFilterSeqNumber = true; - builder.append(present_profileFilterSeqNumber); + list.add(present_profileFilterSeqNumber); if (present_profileFilterSeqNumber) - builder.append(profileFilterSeqNumber); + list.add(profileFilterSeqNumber); boolean present_configurationId = true && (isSetConfigurationId()); - builder.append(present_configurationId); + list.add(present_configurationId); if (present_configurationId) - builder.append(configurationId); + list.add(configurationId); boolean present_configurationSeqNumber = true; - builder.append(present_configurationSeqNumber); + list.add(present_configurationSeqNumber); if (present_configurationSeqNumber) - builder.append(configurationSeqNumber); + list.add(configurationSeqNumber); boolean present_notificationId = true && (isSetNotificationId()); - builder.append(present_notificationId); + list.add(present_notificationId); if (present_notificationId) - builder.append(notificationId); + list.add(notificationId); boolean present_unicastNotificationId = true && (isSetUnicastNotificationId()); - builder.append(present_unicastNotificationId); + list.add(present_unicastNotificationId); if (present_unicastNotificationId) - builder.append(unicastNotificationId); + list.add(unicastNotificationId); boolean present_topicId = true && (isSetTopicId()); - builder.append(present_topicId); + list.add(present_topicId); if (present_topicId) - builder.append(topicId); + list.add(topicId); boolean present_keyHash = true && (isSetKeyHash()); - builder.append(present_keyHash); + list.add(present_keyHash); if (present_keyHash) - builder.append(keyHash); + list.add(keyHash); boolean present_op = true && (isSetOp()); - builder.append(present_op); + list.add(present_op); if (present_op) - builder.append(op.getValue()); + list.add(op.getValue()); boolean present_appenderId = true && (isSetAppenderId()); - builder.append(present_appenderId); + list.add(present_appenderId); if (present_appenderId) - builder.append(appenderId); + list.add(appenderId); boolean present_userVerifierToken = true && (isSetUserVerifierToken()); - builder.append(present_userVerifierToken); + list.add(present_userVerifierToken); if (present_userVerifierToken) - builder.append(userVerifierToken); + list.add(userVerifierToken); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -1587,7 +1588,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Notification struct break; case 13: // OP if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.op = Operation.findByValue(iprot.readI32()); + struct.op = org.kaaproject.kaa.server.common.thrift.gen.operations.Operation.findByValue(iprot.readI32()); struct.setOpIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1855,7 +1856,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Notification struct) struct.setKeyHashIsSet(true); } if (incoming.get(12)) { - struct.op = Operation.findByValue(iprot.readI32()); + struct.op = org.kaaproject.kaa.server.common.thrift.gen.operations.Operation.findByValue(iprot.readI32()); struct.setOpIsSet(true); } if (incoming.get(13)) { diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Operation.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Operation.java index 3465d7e11c..8cd356998a 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Operation.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/Operation.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/OperationsThriftService.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/OperationsThriftService.java index 11ffaea181..1e2ac3c6ff 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/OperationsThriftService.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/OperationsThriftService.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.operations; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class OperationsThriftService { public interface Iface extends org.kaaproject.kaa.server.common.thrift.gen.cli.CliThriftService.Iface { @@ -842,14 +844,14 @@ public boolean equals(onNotification_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_notification = true && (isSetNotification()); - builder.append(present_notification); + list.add(present_notification); if (present_notification) - builder.append(notification); + list.add(notification); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -1143,9 +1145,9 @@ public boolean equals(onNotification_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -1456,14 +1458,14 @@ public boolean equals(setRedirectionRule_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_redirectionRule = true && (isSetRedirectionRule()); - builder.append(present_redirectionRule); + list.add(present_redirectionRule); if (present_redirectionRule) - builder.append(redirectionRule); + list.add(redirectionRule); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -1757,9 +1759,9 @@ public boolean equals(setRedirectionRule_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -2090,14 +2092,14 @@ public boolean equals(sendMessages_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_messages = true && (isSetMessages()); - builder.append(present_messages); + list.add(present_messages); if (present_messages) - builder.append(messages); + list.add(messages); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -2193,12 +2195,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, sendMessages_args s { org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); struct.messages = new ArrayList(_list16.size); - for (int _i17 = 0; _i17 < _list16.size; ++_i17) + Message _elem17; + for (int _i18 = 0; _i18 < _list16.size; ++_i18) { - Message _elem18; - _elem18 = new Message(); - _elem18.read(iprot); - struct.messages.add(_elem18); + _elem17 = new Message(); + _elem17.read(iprot); + struct.messages.add(_elem17); } iprot.readListEnd(); } @@ -2275,12 +2277,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, sendMessages_args st { org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.messages = new ArrayList(_list21.size); - for (int _i22 = 0; _i22 < _list21.size; ++_i22) + Message _elem22; + for (int _i23 = 0; _i23 < _list21.size; ++_i23) { - Message _elem23; - _elem23 = new Message(); - _elem23.read(iprot); - struct.messages.add(_elem23); + _elem22 = new Message(); + _elem22.read(iprot); + struct.messages.add(_elem22); } } struct.setMessagesIsSet(true); @@ -2420,9 +2422,9 @@ public boolean equals(sendMessages_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -2753,14 +2755,14 @@ public boolean equals(sendUserConfigurationUpdates_args that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_updates = true && (isSetUpdates()); - builder.append(present_updates); + list.add(present_updates); if (present_updates) - builder.append(updates); + list.add(updates); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -2856,12 +2858,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, sendUserConfigurati { org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); struct.updates = new ArrayList(_list24.size); - for (int _i25 = 0; _i25 < _list24.size; ++_i25) + UserConfigurationUpdate _elem25; + for (int _i26 = 0; _i26 < _list24.size; ++_i26) { - UserConfigurationUpdate _elem26; - _elem26 = new UserConfigurationUpdate(); - _elem26.read(iprot); - struct.updates.add(_elem26); + _elem25 = new UserConfigurationUpdate(); + _elem25.read(iprot); + struct.updates.add(_elem25); } iprot.readListEnd(); } @@ -2938,12 +2940,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, sendUserConfiguratio { org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.updates = new ArrayList(_list29.size); - for (int _i30 = 0; _i30 < _list29.size; ++_i30) + UserConfigurationUpdate _elem30; + for (int _i31 = 0; _i31 < _list29.size; ++_i31) { - UserConfigurationUpdate _elem31; - _elem31 = new UserConfigurationUpdate(); - _elem31.read(iprot); - struct.updates.add(_elem31); + _elem30 = new UserConfigurationUpdate(); + _elem30.read(iprot); + struct.updates.add(_elem30); } } struct.setUpdatesIsSet(true); @@ -3083,9 +3085,9 @@ public boolean equals(sendUserConfigurationUpdates_result that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/RedirectionRule.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/RedirectionRule.java index bad7d9456c..5e99bb0ed0 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/RedirectionRule.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/RedirectionRule.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.operations; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class RedirectionRule implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RedirectionRule"); @@ -466,34 +468,34 @@ public boolean equals(RedirectionRule that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_accessPointId = true; - builder.append(present_accessPointId); + list.add(present_accessPointId); if (present_accessPointId) - builder.append(accessPointId); + list.add(accessPointId); boolean present_ruleId = true; - builder.append(present_ruleId); + list.add(present_ruleId); if (present_ruleId) - builder.append(ruleId); + list.add(ruleId); boolean present_initRedirectProbability = true; - builder.append(present_initRedirectProbability); + list.add(present_initRedirectProbability); if (present_initRedirectProbability) - builder.append(initRedirectProbability); + list.add(initRedirectProbability); boolean present_sessionRedirectProbability = true; - builder.append(present_sessionRedirectProbability); + list.add(present_sessionRedirectProbability); if (present_sessionRedirectProbability) - builder.append(sessionRedirectProbability); + list.add(sessionRedirectProbability); boolean present_ruleTTL = true; - builder.append(present_ruleTTL); + list.add(present_ruleTTL); if (present_ruleTTL) - builder.append(ruleTTL); + list.add(ruleTTL); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/RouteAddress.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/RouteAddress.java index 886947e37f..fc59fbb589 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/RouteAddress.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/RouteAddress.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.operations; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class RouteAddress implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RouteAddress"); @@ -137,7 +139,7 @@ public RouteAddress( String operationsServerId) { this(); - this.endpointKey = endpointKey; + this.endpointKey = org.apache.thrift.TBaseHelper.copyBinary(endpointKey); this.applicationToken = applicationToken; this.operationsServerId = operationsServerId; } @@ -174,16 +176,16 @@ public byte[] getEndpointKey() { } public ByteBuffer bufferForEndpointKey() { - return endpointKey; + return org.apache.thrift.TBaseHelper.copyBinary(endpointKey); } public RouteAddress setEndpointKey(byte[] endpointKey) { - setEndpointKey(endpointKey == null ? (ByteBuffer)null : ByteBuffer.wrap(endpointKey)); + this.endpointKey = endpointKey == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(endpointKey, endpointKey.length)); return this; } public RouteAddress setEndpointKey(ByteBuffer endpointKey) { - this.endpointKey = endpointKey; + this.endpointKey = org.apache.thrift.TBaseHelper.copyBinary(endpointKey); return this; } @@ -356,24 +358,24 @@ public boolean equals(RouteAddress that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_endpointKey = true && (isSetEndpointKey()); - builder.append(present_endpointKey); + list.add(present_endpointKey); if (present_endpointKey) - builder.append(endpointKey); + list.add(endpointKey); boolean present_applicationToken = true && (isSetApplicationToken()); - builder.append(present_applicationToken); + list.add(present_applicationToken); if (present_applicationToken) - builder.append(applicationToken); + list.add(applicationToken); boolean present_operationsServerId = true && (isSetOperationsServerId()); - builder.append(present_operationsServerId); + list.add(present_operationsServerId); if (present_operationsServerId) - builder.append(operationsServerId); + list.add(operationsServerId); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/RouteInfo.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/RouteInfo.java index 236c9528b4..d429e9b0c6 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/RouteInfo.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/RouteInfo.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.operations; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class RouteInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RouteInfo"); @@ -157,7 +159,7 @@ public RouteInfo( this.updateType = updateType; this.eventClassFamilyVersion = eventClassFamilyVersion; this.applicationToken = applicationToken; - this.endpointId = endpointId; + this.endpointId = org.apache.thrift.TBaseHelper.copyBinary(endpointId); } /** @@ -295,16 +297,16 @@ public byte[] getEndpointId() { } public ByteBuffer bufferForEndpointId() { - return endpointId; + return org.apache.thrift.TBaseHelper.copyBinary(endpointId); } public RouteInfo setEndpointId(byte[] endpointId) { - setEndpointId(endpointId == null ? (ByteBuffer)null : ByteBuffer.wrap(endpointId)); + this.endpointId = endpointId == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(endpointId, endpointId.length)); return this; } public RouteInfo setEndpointId(ByteBuffer endpointId) { - this.endpointId = endpointId; + this.endpointId = org.apache.thrift.TBaseHelper.copyBinary(endpointId); return this; } @@ -451,29 +453,29 @@ public boolean equals(RouteInfo that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_updateType = true && (isSetUpdateType()); - builder.append(present_updateType); + list.add(present_updateType); if (present_updateType) - builder.append(updateType.getValue()); + list.add(updateType.getValue()); boolean present_eventClassFamilyVersion = true && (isSetEventClassFamilyVersion()); - builder.append(present_eventClassFamilyVersion); + list.add(present_eventClassFamilyVersion); if (present_eventClassFamilyVersion) - builder.append(eventClassFamilyVersion); + list.add(eventClassFamilyVersion); boolean present_applicationToken = true && (isSetApplicationToken()); - builder.append(present_applicationToken); + list.add(present_applicationToken); if (present_applicationToken) - builder.append(applicationToken); + list.add(applicationToken); boolean present_endpointId = true && (isSetEndpointId()); - builder.append(present_endpointId); + list.add(present_endpointId); if (present_endpointId) - builder.append(endpointId); + list.add(endpointId); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -620,7 +622,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, RouteInfo struct) t switch (schemeField.id) { case 1: // UPDATE_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.updateType = EventRouteUpdateType.findByValue(iprot.readI32()); + struct.updateType = org.kaaproject.kaa.server.common.thrift.gen.operations.EventRouteUpdateType.findByValue(iprot.readI32()); struct.setUpdateTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -631,12 +633,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, RouteInfo struct) t { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); struct.eventClassFamilyVersion = new ArrayList(_list0.size); - for (int _i1 = 0; _i1 < _list0.size; ++_i1) + EventClassFamilyVersion _elem1; + for (int _i2 = 0; _i2 < _list0.size; ++_i2) { - EventClassFamilyVersion _elem2; - _elem2 = new EventClassFamilyVersion(); - _elem2.read(iprot); - struct.eventClassFamilyVersion.add(_elem2); + _elem1 = new EventClassFamilyVersion(); + _elem1.read(iprot); + struct.eventClassFamilyVersion.add(_elem1); } iprot.readListEnd(); } @@ -759,19 +761,19 @@ public void read(org.apache.thrift.protocol.TProtocol prot, RouteInfo struct) th TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.updateType = EventRouteUpdateType.findByValue(iprot.readI32()); + struct.updateType = org.kaaproject.kaa.server.common.thrift.gen.operations.EventRouteUpdateType.findByValue(iprot.readI32()); struct.setUpdateTypeIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.eventClassFamilyVersion = new ArrayList(_list5.size); - for (int _i6 = 0; _i6 < _list5.size; ++_i6) + EventClassFamilyVersion _elem6; + for (int _i7 = 0; _i7 < _list5.size; ++_i7) { - EventClassFamilyVersion _elem7; - _elem7 = new EventClassFamilyVersion(); - _elem7.read(iprot); - struct.eventClassFamilyVersion.add(_elem7); + _elem6 = new EventClassFamilyVersion(); + _elem6.read(iprot); + struct.eventClassFamilyVersion.add(_elem6); } } struct.setEventClassFamilyVersionIsSet(true); diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/UserConfigurationUpdate.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/UserConfigurationUpdate.java index d7887d596d..940435fb04 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/UserConfigurationUpdate.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/UserConfigurationUpdate.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.operations; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class UserConfigurationUpdate implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserConfigurationUpdate"); @@ -160,7 +162,7 @@ public UserConfigurationUpdate( this.applicationToken = applicationToken; this.cfSchemaVersion = cfSchemaVersion; setCfSchemaVersionIsSet(true); - this.ucfHash = ucfHash; + this.ucfHash = org.apache.thrift.TBaseHelper.copyBinary(ucfHash); } /** @@ -180,7 +182,6 @@ public UserConfigurationUpdate(UserConfigurationUpdate other) { this.cfSchemaVersion = other.cfSchemaVersion; if (other.isSetUcfHash()) { this.ucfHash = org.apache.thrift.TBaseHelper.copyBinary(other.ucfHash); -; } } @@ -299,16 +300,16 @@ public byte[] getUcfHash() { } public ByteBuffer bufferForUcfHash() { - return ucfHash; + return org.apache.thrift.TBaseHelper.copyBinary(ucfHash); } public UserConfigurationUpdate setUcfHash(byte[] ucfHash) { - setUcfHash(ucfHash == null ? (ByteBuffer)null : ByteBuffer.wrap(ucfHash)); + this.ucfHash = ucfHash == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(ucfHash, ucfHash.length)); return this; } public UserConfigurationUpdate setUcfHash(ByteBuffer ucfHash) { - this.ucfHash = ucfHash; + this.ucfHash = org.apache.thrift.TBaseHelper.copyBinary(ucfHash); return this; } @@ -477,34 +478,34 @@ public boolean equals(UserConfigurationUpdate that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_tenantId = true && (isSetTenantId()); - builder.append(present_tenantId); + list.add(present_tenantId); if (present_tenantId) - builder.append(tenantId); + list.add(tenantId); boolean present_userId = true && (isSetUserId()); - builder.append(present_userId); + list.add(present_userId); if (present_userId) - builder.append(userId); + list.add(userId); boolean present_applicationToken = true && (isSetApplicationToken()); - builder.append(present_applicationToken); + list.add(present_applicationToken); if (present_applicationToken) - builder.append(applicationToken); + list.add(applicationToken); boolean present_cfSchemaVersion = true; - builder.append(present_cfSchemaVersion); + list.add(present_cfSchemaVersion); if (present_cfSchemaVersion) - builder.append(cfSchemaVersion); + list.add(cfSchemaVersion); boolean present_ucfHash = true && (isSetUcfHash()); - builder.append(present_ucfHash); + list.add(present_ucfHash); if (present_ucfHash) - builder.append(ucfHash); + list.add(ucfHash); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/UserRouteInfo.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/UserRouteInfo.java index 06f966fa99..dbcc273dc2 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/UserRouteInfo.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/operations/UserRouteInfo.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.operations; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class UserRouteInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserRouteInfo"); @@ -421,29 +423,29 @@ public boolean equals(UserRouteInfo that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_userId = true && (isSetUserId()); - builder.append(present_userId); + list.add(present_userId); if (present_userId) - builder.append(userId); + list.add(userId); boolean present_tenantId = true && (isSetTenantId()); - builder.append(present_tenantId); + list.add(present_tenantId); if (present_tenantId) - builder.append(tenantId); + list.add(tenantId); boolean present_operationsServerId = true && (isSetOperationsServerId()); - builder.append(present_operationsServerId); + list.add(present_operationsServerId); if (present_operationsServerId) - builder.append(operationsServerId); + list.add(operationsServerId); boolean present_updateType = true && (isSetUpdateType()); - builder.append(present_updateType); + list.add(present_updateType); if (present_updateType) - builder.append(updateType.getValue()); + list.add(updateType.getValue()); - return builder.toHashCode(); + return list.hashCode(); } @Override @@ -614,7 +616,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, UserRouteInfo struc break; case 4: // UPDATE_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.updateType = EventRouteUpdateType.findByValue(iprot.readI32()); + struct.updateType = org.kaaproject.kaa.server.common.thrift.gen.operations.EventRouteUpdateType.findByValue(iprot.readI32()); struct.setUpdateTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -717,7 +719,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, UserRouteInfo struct struct.setOperationsServerIdIsSet(true); } if (incoming.get(3)) { - struct.updateType = EventRouteUpdateType.findByValue(iprot.readI32()); + struct.updateType = org.kaaproject.kaa.server.common.thrift.gen.operations.EventRouteUpdateType.findByValue(iprot.readI32()); struct.setUpdateTypeIsSet(true); } } diff --git a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/shared/DataStruct.java b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/shared/DataStruct.java index 2958bec60e..71b20dd6f8 100644 --- a/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/shared/DataStruct.java +++ b/server/common/thrift/src/main/thrift-java/org/kaaproject/kaa/server/common/thrift/gen/shared/DataStruct.java @@ -1,12 +1,11 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.kaaproject.kaa.server.common.thrift.gen.shared; -import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -30,9 +29,12 @@ 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.2)", date = "2015-10-16") public class DataStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DataStruct"); @@ -130,7 +132,7 @@ public DataStruct( { this(); this.key = key; - this.data = data; + this.data = org.apache.thrift.TBaseHelper.copyBinary(data); } /** @@ -142,7 +144,6 @@ public DataStruct(DataStruct other) { } if (other.isSetData()) { this.data = org.apache.thrift.TBaseHelper.copyBinary(other.data); -; } } @@ -186,16 +187,16 @@ public byte[] getData() { } public ByteBuffer bufferForData() { - return data; + return org.apache.thrift.TBaseHelper.copyBinary(data); } public DataStruct setData(byte[] data) { - setData(data == null ? (ByteBuffer)null : ByteBuffer.wrap(data)); + this.data = data == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(data, data.length)); return this; } public DataStruct setData(ByteBuffer data) { - this.data = data; + this.data = org.apache.thrift.TBaseHelper.copyBinary(data); return this; } @@ -298,19 +299,19 @@ public boolean equals(DataStruct that) { @Override public int hashCode() { - HashCodeBuilder builder = new HashCodeBuilder(); + List list = new ArrayList(); boolean present_key = true && (isSetKey()); - builder.append(present_key); + list.add(present_key); if (present_key) - builder.append(key); + list.add(key); boolean present_data = true && (isSetData()); - builder.append(present_data); + list.add(present_data); if (present_data) - builder.append(data); + list.add(data); - return builder.toHashCode(); + return list.hashCode(); } @Override diff --git a/server/common/thrift/src/main/thrift/control.thrift b/server/common/thrift/src/main/thrift/control.thrift index c4f0bca84e..387a43d6fd 100644 --- a/server/common/thrift/src/main/thrift/control.thrift +++ b/server/common/thrift/src/main/thrift/control.thrift @@ -60,6 +60,15 @@ exception ControlThriftException { service ControlThriftService extends cli.CliThriftService{ +/** +* EndpointProfile +*/ + + data getEndpointProfileByKeyHash(1: id endpointProfileKeyHash) throws(1: ControlThriftException ControlException) + data getEndpointProfileByEndpointGroupId(1: data pageLink) throws(1: ControlThriftException ControlException) + data getEndpointProfileBodyByKeyHash(1: id endpointProfileKeyHash) throws(1: ControlThriftException ControlException) + data getEndpointProfileBodyByEndpointGroupId(1: data pageLink) throws(1: ControlThriftException ControlException) + /** * Tenants */ diff --git a/server/control/src/main/java/org/kaaproject/kaa/server/control/service/thrift/ControlThriftServiceImpl.java b/server/control/src/main/java/org/kaaproject/kaa/server/control/service/thrift/ControlThriftServiceImpl.java index d7dfde22e3..31fa6f3cb4 100644 --- a/server/control/src/main/java/org/kaaproject/kaa/server/control/service/thrift/ControlThriftServiceImpl.java +++ b/server/control/src/main/java/org/kaaproject/kaa/server/control/service/thrift/ControlThriftServiceImpl.java @@ -29,6 +29,7 @@ import java.util.List; import org.apache.avro.Schema; +import org.apache.commons.codec.binary.Base64; import org.apache.thrift.TException; import org.kaaproject.kaa.common.avro.GenericAvroConverter; import org.kaaproject.kaa.common.dto.AbstractSchemaDto; @@ -47,6 +48,7 @@ import org.kaaproject.kaa.common.dto.NotificationDto; import org.kaaproject.kaa.common.dto.NotificationSchemaDto; import org.kaaproject.kaa.common.dto.NotificationTypeDto; +import org.kaaproject.kaa.common.dto.PageLinkDto; import org.kaaproject.kaa.common.dto.ProfileFilterDto; import org.kaaproject.kaa.common.dto.ProfileSchemaDto; import org.kaaproject.kaa.common.dto.TenantAdminDto; @@ -204,6 +206,54 @@ public class ControlThriftServiceImpl extends BaseCliThriftService implements Co private Object zkLock = new Object(); + /* + * (non-Javadoc) + * @see + * org.kaaproject.kaa.server.common.thrift.gen.control.ControlThriftService + * .Iface#getEndpointProfileByEndpointGroupId() + */ + /* CLI method */ + @Override + public DataStruct getEndpointProfileByEndpointGroupId(DataStruct pageLink) throws TException { + return toGenericDataStruct(endpointService.findEndpointProfileByEndpointGroupId(ThriftDtoConverter.toGenericDto(pageLink))); + } + + /* + * (non-Javadoc) + * @see + * org.kaaproject.kaa.server.common.thrift.gen.control.ControlThriftService + * .Iface#getEndpointProfileBodyByEndpointGroupId() + */ + /* CLI method */ + @Override + public DataStruct getEndpointProfileBodyByEndpointGroupId(DataStruct pageLink) throws TException { + return toGenericDataStruct(endpointService.findEndpointProfileBodyByEndpointGroupId(ThriftDtoConverter.toGenericDto(pageLink))); + } + + /* + * (non-Javadoc) + * @see + * org.kaaproject.kaa.server.common.thrift.gen.control.ControlThriftService + * .Iface#getEndpointProfileByKeyHash(java.lang.String) + */ + /* CLI method */ + @Override + public DataStruct getEndpointProfileByKeyHash(String endpointProfileKeyHash) throws TException { + return toDataStruct(endpointService.findEndpointProfileByKeyHash(Base64.decodeBase64(endpointProfileKeyHash))); + } + + /* + * (non-Javadoc) + * @see + * org.kaaproject.kaa.server.common.thrift.gen.control.ControlThriftService + * .Iface#getEndpointProfileBodyByKeyHash(java.lang.String) + */ + /* CLI method */ + @Override + public DataStruct getEndpointProfileBodyByKeyHash(String endpointProfileKeyHash) throws TException { + return toGenericDataStruct(endpointService.findEndpointProfileBodyByKeyHash(Base64.decodeBase64(endpointProfileKeyHash))); + } + /* * (non-Javadoc) *