cloudstack/server/src/com/cloud/async
alena 1c24deda34 1) Refactored current Apis not to use reflection for method invocation. In new version following has to be done:
* Implement callCreate() and execute() methods in apis extending BaseAsyncCreateCmd (example - CreateVolumeCmd)
* Implement execute() method in apis extending BaseCmd and BaseAsyncCmd (example - deleteVolumeCmd and deleteUserCmd)

We no longer need createMethod(), method(), manager() fields in @Implementation annotation, cleanup has to be done.

2) Moved Account/User related methods to AccountManagerImpl. Methods are exposed via AccountService interface.
3) Enhanced exception handing for Api calls.
4) Created ConfigurationService interface, all Api config methods are exposed via it.
2010-11-08 11:27:36 -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 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
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 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
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