commit | c4245acd35b00c238275ef133d5cb836601acb6b | [log] [tgz] |
---|---|---|
author | Geoff Macartney <geoff.macartney@cloudsoftcorp.com> | Wed Feb 01 10:04:32 2017 +0000 |
committer | Andrea Turli <andrea.turli@gmail.com> | Mon Feb 13 12:34:12 2017 +0100 |
tree | 8155642daf09c1b4bd571b44ff641c4db7892328 | |
parent | 663123a97cd0e2db1782643c0bec8774aabc4c22 [diff] |
Fix O(n^2) response time for "list-security-groups" on openstack-nova. For https://issues.apache.org/jira/browse/JCLOUDS-1235. This change takes the approach of storing the information about the overall list of groups within the `SecurityGroupInRegion` when it is created, so that any subsequent conversion operation has access to all the groups in the same region as the one to be converted. It also collapses the functionality of `NovaSecurityGroupToSecurityGroup`, `SecurityGroupRuleToIpPermission` and `FindSecurityGroupWithNameAndReturnTrue` all into `NovaSecurityGroupInRegionToSecurityGroup`, and deletes the now unused-classes SecurityGroupRuleToIpPermission, NovaSecurityGroupToSecurityGroup and associated tests.
Apache jclouds is an open source multi-cloud toolkit for the Java platform that gives you the freedom to create applications that are portable across clouds while giving you full control to use cloud-specific features.
For more information about using or contributing to jclouds, please visit our website at jclouds.apache.org.
Copyright (C) 2009-2013 The Apache Software Foundation
Licensed under the Apache License, Version 2.0