ever-been / everBeen

EverBEEN is a generic benchmarking environment focused on platform-independent middleware benchmarking.
www.everbeen.cz
GNU Lesser General Public License v3.0
7 stars 3 forks source link

BeenApi#submitTask(TaskDescriptor) returns context-id, not task-id #215

Open radek-macha opened 10 years ago

radek-macha commented 10 years ago

JavaDoc says @return ID of the newly submitted task, but the ID of the submitted task's context is returned instead

radek-macha commented 10 years ago

The task submit procedure actually doesn't have access to taskId, since it only commits its task descriptor in the context descriptor container.

As a result, a TaskContextEntry is created, but contained TaskEntry objects only start existing once the context is scheduled.