cloudstack/server/src/com/cloud/async
alena c5d78a726e Modified exception handing in API. Following exceptions are supported now (location - BaseCmd.java):
* MALFORMED_PARAMETER_ERROR - when type of the request parameter is invalid (String instead of Long for id for example)
* PARAM_ERROR - when invalid parameter value is specified in api request. For example, id of non existing vm for StartVmCmd
* ACCOUNT_RESOURCE_LIMIT_ERROR - when user tries to exceed his resource limits by executing the api command.
* INSUFFICIENT_CAPACITY_ERROR - when resource fails to create/start due to insufficient capacity.
* RESOURCE_UNAVAILABLE_ERROR - when user tries to create a vm when storage is not available.
* RESOURCE_IN_USE_ERROR - when user tries to delete/modify resource while it's in use. For example, when we try to delete a network group when it contains ingress rules.
* NETWORK_RULE_CONFLICT_ERROR - when LB/PF rule to add conflicts with existing rule
* ACCOUNT_ERROR - when user is not authorized to execute operation on the resource.
* INTERNAL_ERROR
2010-11-16 11:56:34 -08:00
..
dao bug 7063: AsyncJobResult should now return the correct success and error tags upon the completion of a async job. It should now follow either the format ... jobresult.success or jobresult.errorcode and jobresult.errortext 2010-11-05 17:30:03 -07:00
executor Modified exception handing in API. Following exceptions are supported now (location - BaseCmd.java): 2010-11-16 11:56:34 -08:00
AsyncCommandQueued.java Refactoring the AsyncJobManager to queue jobs appropriately if there is a need to synchronize execution on an object, e.g. a router. API developers can now call command.synchronizeCommand(String, Long) to force the command to be synchronized on a particular object type [the string arg] with a particular id [the long arg]. When synchronizeCommand() is invoked, an exception maybe thrown by the framework (AsyncCommandQueued exception) to force the business logic to abort. The command will then be queued and invoked at the appropriate time. The synchronizeCommand() is re-entrant and will be a no-op if the command has already been queued and is now ready for execution. 2010-09-16 19:05:06 -07:00
AsyncJobExecutor.java cleaning up imports, fixing up some compilation problems related to API refactoring 2010-09-13 15:25:46 -07:00
AsyncJobExecutorContext.java API refactor 2010-08-18 11:24:29 -07:00
AsyncJobExecutorContextImpl.java API refactor 2010-08-18 11:24:29 -07:00
AsyncJobManager.java 1) Refactored current Apis not to use reflection for method invocation. In new version following has to be done: 2010-11-08 11:27:36 -08:00
AsyncJobManagerImpl.java More api refactor - build api response is execute() method instead of getResponse method. 2010-11-09 09:58:05 -08:00
AsyncJobResult.java bug 7063: AsyncJobResult should now return the correct success and error tags upon the completion of a async job. It should now follow either the format ... jobresult.success or jobresult.errorcode and jobresult.errortext 2010-11-05 17:30:03 -07:00
BaseAsyncJobExecutor.java cleaning up imports, fixing up some compilation problems related to API refactoring 2010-09-13 15:25:46 -07:00
SyncQueueManager.java cleaning up imports, fixing up some compilation problems related to API refactoring 2010-09-13 15:25:46 -07:00
SyncQueueManagerImpl.java Removed InternalErrorException. Renamed the lock methods on the DAO objects to be more understandable. 2010-11-02 12:25:08 -07:00