Commit Graph

176 Commits

Author SHA1 Message Date
Kris McQueen b797313ac0 Refactor listOSTypes API to new framework. 2010-08-30 16:18:40 -07:00
Kris McQueen 9abc658da0 Refactor listGuestOSCategories API to new framework. 2010-08-30 16:18:40 -07:00
Kris McQueen 5636503e39 Refactor listDomainChildren API to new framework. 2010-08-30 16:18:40 -07:00
Kris McQueen 4bb71d2a0c Refactor listEvents API to new framework. 2010-08-30 16:18:40 -07:00
Kris McQueen 9eeabb701a Refactoring listDomains to the new API framework. The search criteria are now retrieved from the command itself rather than creating an intermediate Criteria object first. 2010-08-30 16:18:40 -07:00
Kris McQueen e55e6c283f Refactoring work on listCapacities, listConfigurations, listClusters, and listDiskOfferings commands. The work represents consolidating the Criteria object into just pulling the search criteria directly from the command. Also changed BaseListCmd to server the startIndex and pageSizeVal [includes default page size of 50] rather than have each search command compute these things. 2010-08-30 16:18:39 -07:00
Kris McQueen 68275debc0 Refactor listAsyncJobs to new API framework, consolidating parameter and criteria packing/unpacking into just command unpacking to simplify building the search criteria. 2010-08-30 16:18:39 -07:00
alena 53892037c4 Refactored associateIPAddress and updateHost commands. 2010-08-30 15:22:42 -07:00
abhishek 48944aedec import refactoring 2010-08-30 10:54:12 -07:00
abhishek dc750e2691 Moving the disassoc logic to network manager 2010-08-30 10:50:27 -07:00
abhishek 742869b750 Refactoring the delete snapshot command. This has a lot of spaghetti calls, trying my best to make it works. Hopefully it all does, on the 1st pass 2010-08-27 11:26:14 -07:00
abhishek 284c630eeb Further refactoring the cmd 2010-08-27 10:27:00 -07:00
abhishek 0ea56e1504 refactored the delete port forwarding service rule cmd 2010-08-27 10:22:11 -07:00
abhishek 126da4baf7 Refactored the delete user cmd 2010-08-26 17:58:53 -07:00
abhishek 3d8a3ef358 Refactoring the snapshot policies cmd 2010-08-26 17:17:30 -07:00
abhishek 8b8e0929f1 Refactored the delete template command 2010-08-26 16:15:42 -07:00
abhishek 4bdbc64bf7 Some more refactoring 2010-08-26 15:33:12 -07:00
abhishek 7f7a342cbe Refactoring the delete volume command 2010-08-26 14:31:25 -07:00
abhishek 604e7016a3 Incremental checkin 2010-08-26 14:18:36 -07:00
abhishek 2bdaaa48a6 Refactored the destroy vm command 2010-08-26 13:37:57 -07:00
abhishek 6070948e16 Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor 2010-08-26 11:11:10 -07:00
abhishek f73d14e267 Refactored the destroy console proxy command 2010-08-26 11:10:29 -07:00
Kris McQueen f30e0dc383 Adding the response object for alerts, initially created as part of the listAlerts refactoring. 2010-08-26 10:46:04 -07:00
Kris McQueen 187d89fce5 Refactoring listAlerts to the new API framework. This is now a BaseListCmd so it inherits keywork, page, and pagesize parameters. This also simplifies creating a Criteria object from the parameters, and then creating a search criteria from the criteria object. It's now one step...search criteria from the command itself. 2010-08-26 10:46:04 -07:00
abhishek 14fde77792 test again 2010-08-26 10:39:21 -07:00
abhishek 76a79890d6 test 2010-08-26 10:36:20 -07:00
abhishek 5f1459be93 Adding new methods 2010-08-26 10:34:28 -07:00
abhishek 3e3cc19937 adding manager 2010-08-26 10:33:18 -07:00
abhishek d1b4034633 Mvoing console proxy manager to server 2010-08-26 10:30:52 -07:00
abhishek 88d41090ca Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor 2010-08-26 10:17:36 -07:00
abhishek 3a2930e383 Adding another manager 2010-08-26 10:16:51 -07:00
Kris McQueen 479ff26051 Refactoring createZone to new API framework. The logic was entirely delegated to configuration manager, so pushed the logic there and removed the proxy method from Management server. 2010-08-25 18:26:38 -07:00
Kris McQueen 34a3c3ece2 Refactored createVlanIpRange to new API framework. Moved logic to configuration manager, including the association of the ip addresses on a vlan with the account for which the vlan is being created. On deployVirtualMachine, this association might happen as well, and now mgmt server calls config manager. 2010-08-25 18:26:38 -07:00
Kris McQueen c085283c2e Refactor createUser to new API framework. Consolidate the old createUser (GWT UI used this API) and createUserAPI into one createUser method since it's only called through integration API now. Return a UserAccount instead of a User in order to generate a response with all the information required. Also clean up some of the unused private template code from ManagementServer that was mistakenly left in from a previous refactor. 2010-08-25 18:26:38 -07:00
Kris McQueen defae59126 Finish refactoring createTemplate to new API framework. The executor and result object from old framework still need to be deleted, but this commit moves all the business logic to the manager with validation in the createPrivateTemplateRecord and creating a snapshot if necessary in createPrivateTemplate. Additionally, added a find method on the template dao to check if the template name is in use for the account (this is part of the validation). 2010-08-25 18:26:38 -07:00
Kris McQueen 97f3068687 Work in progress refactoring createTemplate command to new API. The logic had been partially moved to the manager, still need to finish up moving the logic, then delete the unnecessary code. 2010-08-25 18:26:38 -07:00
abhishek cf68dfb430 Refactored detach iso command 2010-08-25 15:33:06 -07:00
abhishek 37f6e794d9 Used the wrong base cmd 2010-08-25 14:54:38 -07:00
abhishek 74a8dc0aa8 Incremental checkin 2010-08-25 14:20:08 -07:00
abhishek d8219225ea Import cleanup 2010-08-25 13:54:31 -07:00
abhishek 82fbae2553 Refactoring the detach volume command 2010-08-25 13:53:43 -07:00
abhishek 46f69a604b some more refactoring 2010-08-25 11:43:49 -07:00
abhishek 702658556b Refactoring the delete zone cmd 2010-08-25 11:16:07 -07:00
abhishek c2f517fa81 Refactoring the delete vlan ip range cmd 2010-08-25 10:59:14 -07:00
abhishek 5a8313cc51 Detach volume command refactor incremental checkin 2010-08-23 17:41:22 -07:00
abhishek ec9fdd5b16 Refactored disassociateipaddress cmd 2010-08-20 16:01:37 -07:00
abhishek 5503013e1f Refactoring the lockAccount cmd 2010-08-20 14:48:35 -07:00
abhishek 58598bb0cb Refactoring the lockUser cmd 2010-08-20 14:20:27 -07:00
abhishek 934173db2e Refactoring some more system vm commands 2010-08-20 12:19:37 -07:00
abhishek dc45e9b08b Refactoring the rebootvm cmd 2010-08-20 11:48:24 -07:00
abhishek be75946b1f Refactored the reconnectHost command 2010-08-20 11:14:48 -07:00
abhishek 49482e947b Refactoring another bunch of commands for vms 2010-08-20 10:38:44 -07:00
abhishek b27a5af5fc Refactored 2010-08-20 10:15:58 -07:00
abhishek 62df1ce6a9 Refactored 2010-08-20 10:15:35 -07:00
abhishek f625900b8b Refactoring the register command 2010-08-20 09:59:06 -07:00
abhishek 728b4641f6 Further refactoring of the templates and iso code. 2010-08-19 18:07:07 -07:00
abhishek d5b041a790 Refactoring register commands for template and iso 2010-08-19 17:59:56 -07:00
abhishek d468a0bd7f Incremental checkin 2010-08-19 16:40:41 -07:00
abhishek 21f7c0dec8 Refactored RegisterTemplateCmd 2010-08-19 16:33:26 -07:00
abhishek fcdeb5a97d Incremental checkin 2010-08-19 14:40:08 -07:00
abhishek 9da6d89837 Refactoring deleteServiceOffering cmd 2010-08-19 12:15:26 -07:00
abhishek c200375b0f Refactoring RemoveFromLoadBalancerRuleCmd 2010-08-19 11:59:56 -07:00
abhishek ef2b80f9c6 Refactoring the removePortForwardingService cmd 2010-08-19 10:55:58 -07:00
abhishek 25d5126f68 Refactoring the resetVmPassword command 2010-08-19 10:12:38 -07:00
alena 78846ec4eb 1) Fixed AddHost, AddSecondaryStorage, UpdateIso, UpdateTemplate to return correct command name.
2) Added missing accessors getFormat and isPasswordEnabled to UpdateTemplateOrIso abstract class.
2010-08-18 21:03:31 -07:00
Kris McQueen 4c86af9901 cleaning up imports 2010-08-18 19:12:27 -07:00
Kris McQueen 74e0201c77 cleaning up some imports 2010-08-18 19:11:01 -07:00
Kris McQueen 78445d8348 Refactoring createStoragePool to new API framework. The logic was always in StoragePoolManager, mostly removed the management server proxy method which called into StoragePoolManager. There is still an outstanding TODO for this API in terms of the response. Once the storage pool has been added, there is a query for the allocated bytes on the pool in order to return proper storage stats. Hooking into this query to get the right data needs to be done. 2010-08-18 19:11:01 -07:00
Kris McQueen b0668df1b9 refactoring createSnapshotPolicy to new API framework...since this is a basic database create just move parameter validation to SnapshotManager and save the snapshot policy in the database 2010-08-18 19:08:23 -07:00
Kris McQueen da03aee028 Add snapshot manager to the list of managers that can be invoked through the API. This prepares the way for refactoring createSnapshot, but since the method is an async create that also needs to create a policy first and generally does not follow any other patters, I'll do this one last. 2010-08-18 19:08:23 -07:00
Kris McQueen 96f999a375 Refactoring createServiceOffering to the new API framework, just a simple database create that has been moved from a management server proxy method that calls configuration manager directly into the configuration manager. 2010-08-18 19:06:12 -07:00
Kris McQueen 88395cfcd8 CreatePortForwardingService has been refactored to the new API framework. CreatePortForwardingServiceRule has also been refactored to the new API framework. This is the first async create command, so there are some changes for the framework with async creates. First, the annotation has a 'createMethod' element, the framework will invoke the createMethod synchronously, update the id of the created object, return the jobId and objectId, then queue the method. Once the method is invoked the actual business logic will kick in, for example 'createVolume' will create a database record for the volume, return the appropriate id, and then asynchronously create the volume in the correct storage pool. The requirement is now that both a create method and an implementation method will be required in the given manager for async create commands. 2010-08-18 19:06:12 -07:00
abhishek 3198abd8c1 Refactoring network ingress group command 2010-08-18 17:52:55 -07:00
abhishek d6f1f641b4 bug 5934: Checking if scmbug works : TEST
status 5934: resolved fixed
2010-08-18 17:42:12 -07:00
abhishek 2c670609b1 Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor 2010-08-18 16:15:09 -07:00
abhishek 66f51effd9 Refactoring startsystemvm cmd 2010-08-18 16:14:31 -07:00
alena 89179dd12e Api refactor 2010-08-18 16:00:31 -07:00
alena 46c331b54b Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor
Conflicts:
	server/src/com/cloud/storage/StorageManagerImpl.java
2010-08-18 15:52:23 -07:00
alena f1b95641cb Refactor api deletePool, addHost, addSecondaryStorage 2010-08-18 15:41:16 -07:00
abhishek 6ca1ceb769 Refactoring the startvm cmd 2010-08-18 15:38:02 -07:00
abhishek c58749b917 Refactoring StopSystemVmCmd 2010-08-18 14:55:19 -07:00
abhishek 716271fca1 Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor 2010-08-18 14:05:45 -07:00
abhishek aa6e9ab2bb Refactoring the startvm command 2010-08-18 14:01:15 -07:00
alena e2950eb5a1 Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor
Conflicts:
	server/src/com/cloud/api/BaseCmd.java
	server/src/com/cloud/network/security/NetworkGroupManagerImpl.java
2010-08-18 11:36:05 -07:00
alena 3d85fdf687 API refactor 2010-08-18 11:24:29 -07:00
abhishek 8f54cac031 Resolve conflicts
Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor

Conflicts:
	server/src/com/cloud/api/BaseCmd.java
2010-08-18 10:41:34 -07:00
abhishek e553bcde96 Refactoring the updateResourceLimits code, moving all logic to agent manager, updating the enum with a new manager type for reflection 2010-08-18 10:32:21 -07:00
Kris McQueen 261c96f99c refactor createPod command to new API framework 2010-08-17 19:08:06 -07:00
Kris McQueen 21ab91dc2c refactoring CreateNetworkGroup API command to new API framework 2010-08-17 19:07:00 -07:00
Kris McQueen 82d6edcdf3 Refactoring CreateIPForwardingRule and CreateLoadBalancerRule to new API framework 2010-08-17 19:07:00 -07:00
Kris McQueen a6c34d422c Work in progress for modifying createPortForwardingRule command.
- some of the logic has been moved to manager
  - some annotations have been added for the command itself
2010-08-17 19:07:00 -07:00
abhishek 154c6985a4 Refactoring updatePod command 2010-08-17 17:55:38 -07:00
abhishek 1252a2b8a7 Refactoring update service offering cmd 2010-08-17 17:21:04 -07:00
abhishek 1174486e27 Refactoring into server project 2010-08-17 16:43:57 -07:00
abhishek 57edd7d2f8 Refactoring the StorageManager interface into server code 2010-08-17 16:43:01 -07:00
abhishek 8b8f126a2c Called the wrong method, fixing the same 2010-08-17 16:11:44 -07:00
abhishek 7e502768ed Incremental checkin 2010-08-17 16:07:48 -07:00
abhishek 492fa760ff Removing unused imports 2010-08-17 15:19:09 -07:00
abhishek fffd1f2099 Refactoring permissions commands 2010-08-17 15:18:00 -07:00
abhishek 67b8a9e608 Incremental checkin 2010-08-17 14:52:29 -07:00