add tenantservicehandler to multiplxed profileservice server
@@ -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;
