cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prasanna Santhanam <>
Subject Re: API Updates: Tracking progress, changes
Date Mon, 24 Dec 2012 03:38:39 GMT
On Mon, Dec 24, 2012 at 08:27:52AM +0530, Min Chen wrote:
> Added recent change and TODO item for list api performance
> optimization.
> Thanks
> -min
> On 12/23/12 6:20 PM, "Rohit Yadav"
> <<>> wrote:
> This thread is for tracking progress, changes on api_refactoring.
> Current changes:
> 1. Introduction of a new InternalIdentity interface that provides a
> contract for any extending Interface or implementing class that it
> would have a getId() method that returns the internal id (long).
> 2. Merge master on api_refactoring to get the latest changes, all
> merge conflicts (about 3k lines) resolved.
> 3. Host/hypervisor simulator runs with the mgmt server when the
> profile simulator (mvn xxx -P simulator) is selected.

The simulator is mostly running now save for systemVms that don't come
up unless you remove the SecondaryStorageDiscoverer from
components.xml. I'm still figuring out how to fix ComponentLocator to
not load multiple adapters of the same name.

Until then do the following:
diff --cc build/
index c9a93c2,c9a93c2..23156ed
--- a/build/
+++ b/build/
@@@ -24,6 -24,6 +24,6 @@@ DBHOST=localhos
diff --cc client/tomcatconf/
index 5957b61,5957b61..d224356
--- a/client/tomcatconf/
+++ b/client/tomcatconf/
@@@ -130,7 -130,7 +130,6 @@@ under the License
          <adapters key="">
              <adapter name="XCP Agent" class=""/>
--            <adapter name="SecondaryStorage" class=""/>
              <adapter name="KVM Agent" class=""/>
              <adapter name="Bare Metal Agent" class=""/>
              <adapter name="SCVMMServer" class=""/>

And then to startup the simulator:
mvn -Psimulator clean install
mvn -Pdeveloper -pl developer -Ddeploydb
mvn -Pdeveloper -pl developer -Ddeploydb-simulator
mvn -pl client jetty:run

> 4. Correctly annotate @Parameter on *all apis* and remove
> @IdentityMapper, except for few in plugin whose VO classes did not
> implement an interface. For. ex:  ExternalLoadBalancerDeviceVO,
> NiciraNvpDeviceVO
> 5. Get rid of IdentityMapper annotation processing code in
> ApiDispatcher.
>   6. Replace IdentityProxy field in all Response classes by String
>   field except CreateCmdResponse.
>   7. Created Host db join view to improve listHostsCmd performance.
> 1. Prasanna to completely resurrect the simulator.
There might be some commands that might be missing from Simulator's set but we
can fix those along the way as we hit the corressponding API Cmd.

> 2. Fix ACL Role and checkaccess adapters, move out config. to the
> plugin and implement an interface for ACL adapter to get mappings of
> apiname etc.
> 3. Rename @Implementation to @Command and introduce name field so we
> tightly couple over the wire api name to the Cmd class (no mappings
> in properties files necessary).
>   4. Performance profiling for several costly list APIs
>   (listAccountsCmd, listUserCmd, listVolumesCmd, listStorgePoolsCmd)
>   identified by QAs and look into creation of DB join views for
>   these responses.

5. Come up with the marvin configurations covering the admin APIs/user
6. CRUD tests

I'll start on 5 & 6 tomorrow.

Happy Christmas and Happy Holidays to all!


View raw message