Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-2268

JobControl classes should use interfaces rather than implemenations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.15.0
    • 0.16.0
    • None
    • None

    Description

      See HADOOP-2202 for background on this issue. Arun C. Murthy agrees that when possible it is preferable to program against the interface rather than a concrete implementation (more flexible, allows for changes of the implementation in future etc.) JobControl currently exposes running, waiting, ready, successful and dependent jobs as ArrayList rather than List. I propose to change this to List.

      I will code up a patch for this.

      Attachments

        1. HADOOP-2268-1.patch
          3 kB
          Adrian Woodhead
        2. HADOOP-2268-2.patch
          7 kB
          Adrian Woodhead
        3. HADOOP-2268-3.patch
          6 kB
          Adrian Woodhead
        4. HADOOP-2268-4.patch
          6 kB
          Adrian Woodhead

        Issue Links

          Activity

            People

              adrianw Adrian Woodhead
              adrianw Adrian Woodhead
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: