You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airavata.apache.org by "Raminderjeet Singh (JIRA)" <ji...@apache.org> on 2012/11/26 22:02:59 UTC

[jira] [Created] (AIRAVATA-661) Optimize AiravataJPARegistry.getServiceDescriptor

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