concurrency-ee-spec
  1. concurrency-ee-spec
  2. CONCURRENCY_EE_SPEC-14

Add interface to provide hint for distributed execution

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Public Review
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Issue Links

          Activity

          anthony.lai created issue -
          Hide
          anthony.lai added a comment -

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

          Show
          anthony.lai added a comment - Proposed changes to issue http://java.net/jira/browse/CONCURRENCY_EE_SPEC-22 could take care of this suggestion.
          anthony.lai made changes -
          Field Original Value New Value
          Link This issue is related to CONCURRENCY_EE_SPEC-22 [ CONCURRENCY_EE_SPEC-22 ]
          Hide
          anthony.lai added a comment -

          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.

          Show
          anthony.lai added a comment - 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.
          anthony.lai made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s Public Review [ 16247 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              anthony.lai
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: