add tenantservicehandler to multiplxed profileservice server
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/f113d160 Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/f113d160 Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/f113d160 Branch: refs/heads/develop Commit: f113d160cafdf81ec4a13ed48d6c13c776cc9fcd Parents: 1a619c9 Author: Gourav Shenoy <[email protected]> Authored: Tue Mar 7 16:58:35 2017 -0500 Committer: Gourav Shenoy <[email protected]> Committed: Tue Mar 7 16:58:35 2017 -0500 ---------------------------------------------------------------------- .../airavata/service/profile/server/ProfileServiceServer.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata/blob/f113d160/airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/server/ProfileServiceServer.java ---------------------------------------------------------------------- diff --git a/airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/server/ProfileServiceServer.java b/airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/server/ProfileServiceServer.java index 459fd36..c998b11 100644 --- a/airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/server/ProfileServiceServer.java +++ b/airavata-services/profile-service/profile-service-server/src/main/java/org/apache/airavata/service/profile/server/ProfileServiceServer.java @@ -23,6 +23,9 @@ package org.apache.airavata.service.profile.server; import org.apache.airavata.common.utils.IServer; import org.apache.airavata.common.utils.ServerSettings; +import org.apache.airavata.service.profile.gateway.cpi.GatewayProfileService; +import org.apache.airavata.service.profile.gateway.cpi.profile_gateway_cpiConstants; +import org.apache.airavata.service.profile.handlers.TenantProfileServiceHandler; import org.apache.airavata.service.profile.handlers.UserProfileServiceHandler; import org.apache.airavata.service.profile.user.cpi.UserProfileService; import org.apache.airavata.service.profile.user.cpi.profile_user_cpiConstants; @@ -77,10 +80,12 @@ public class ProfileServiceServer implements IServer { // create multiple processors for each profile-service UserProfileService.Processor userProfileProcessor = new UserProfileService.Processor(new UserProfileServiceHandler()); + GatewayProfileService.Processor gatewayProfileProcessor = new GatewayProfileService.Processor(new TenantProfileServiceHandler()); // create a multiplexed processor TMultiplexedProcessor profileServiceProcessor = new TMultiplexedProcessor(); profileServiceProcessor.registerProcessor(profile_user_cpiConstants.USER_PROFILE_CPI_NAME, userProfileProcessor); + profileServiceProcessor.registerProcessor(profile_gateway_cpiConstants.GATEWAY_PROFILE_CPI_NAME, gatewayProfileProcessor); TServerTransport serverTransport;
