dana-i2cat/opennaas — pull request #589 by isartcanyameres (2013-05-03 10:43:58+00:00)
Title: Feature/build vcpe async

VCPENetworkManager.create(model) is now asynchronous (part of it at least).

VCPENetworkManager.create(model) now creates a VCPE resource, starts an other thread to make the build and returns the resourceId.
VCPENetworkManager.hasFinishedBuild(resourceId) tells if the build has finished or not. It can be used to poll for build to finish.
VCPENetworkManager.getBuildResult(resourceId) can be used to retrieve the building task result when it has finished (either ok or exception).

GUI calls three methods above in VCPENetworkBO.create(model) method.
This method performs the polling for build to complete, behaving the same way it did before. It remains synchronous.

This pull request avoid following issue when creating a VCPE: http://jira.i2cat.net:8080/browse/OPENNAAS-919
It fixes issue: http://jira.i2cat.net/browse/OPENNAAS-1000