Issue Details (XML | Word | Printable)

Key: CONCURRENCY_EE_SPEC-14
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: anthony.lai
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
concurrency-ee-spec

Add interface to provide hint for distributed execution

Created: 15/Aug/12 10:29 PM   Updated: 27/Dec/12 07:11 PM   Resolved: 27/Dec/12 07:11 PM
Component/s: None
Affects Version/s: None
Fix Version/s: Public Review

Time Tracking:
Not Specified

Issue Links:
Related
 

Tags:
Participants: anthony.lai


 Description  « Hide

Suggestion from Andrew:

For a distributed implementation it is useful for applications to provide some additional information (eg. priority or a preference as to where they might execute). Given that ManagedExecutorService extends ExecutorService which already specifies the signatures to submit(), and this is a less common use case, it might be better to have this be an interface that extends Callable and provides something like Properties getExecutionProperties(). This should definitely be optional, and could fall back to local execution.



anthony.lai added a comment - 12/Dec/12 10:03 PM

Proposed changes to issue http://java.net/jira/browse/CONCURRENCY_EE_SPEC-22 could take care of this suggestion.


anthony.lai added a comment - 27/Dec/12 07:11 PM

getExecutionProperties() added to new ManagedTask interface per CONCURRENCY_EE_SPEC-22. Added a DISTRIBUTABLE_HINT execution property to allow tasks to provide hint on whether the task can be run remotely.