airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raminderjeet Singh (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRAVATA-661) Optimize AiravataJPARegistry.getServiceDescriptor
Date Mon, 26 Nov 2012 21:02:59 GMT
Raminderjeet Singh created AIRAVATA-661:
-------------------------------------------

             Summary: Optimize AiravataJPARegistry.getServiceDescriptor
                 Key: AIRAVATA-661
                 URL: https://issues.apache.org/jira/browse/AIRAVATA-661
             Project: Airavata
          Issue Type: Improvement
          Components: Registry API
            Reporter: Raminderjeet Singh


Rightnow we have 2 method call in getServiceDescriptor(String serviceName) method to 1st check
of service object exists and then get the service object using getServiceDescriptorResource
. 1st method itself have the service object and can be returned to the client. This is true
for other get operations also as isExists method is called from multiple places. 

GatewayResource gateway = jpa.getGateway();
if (!gateway.isServiceDescriptorExists(serviceName)){
        	return null;
 }
 ServiceDescriptorResource serviceDescriptorResource = gateway.getServiceDescriptorResource(serviceName);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message