[CONCURRENCY_EE_SPEC-14] Add interface to provide hint for distributed execution Created: 15/Aug/12  Updated: 27/Dec/12  Resolved: 27/Dec/12

Status: Closed
Project: concurrency-ee-spec
Component/s: None
Affects Version/s: None
Fix Version/s: Public Review

Type: Task Priority: Major
Reporter: anthony.lai Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
is related to CONCURRENCY_EE_SPEC-22 Simplify MES, MSES APIs regarding Man... Closed


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.

Comment by anthony.lai [ 12/Dec/12 ]

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

Comment by anthony.lai [ 27/Dec/12 ]

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.

Generated at Tue Feb 28 13:08:22 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.