Uploaded image for project: 'Spring for Apache Hadoop'
  1. Spring for Apache Hadoop
  2. SHDP-40

Change JobRunner not to be a factory bean and introduce return status object on runJob method.

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.0.0.M1
    • Fix Version/s: 1.0.0.M2
    • Component/s: MR
    • Labels:
      None

      Description

      Right now the JobRunner is a FactoryBean and looks like it was trying to return the status of running the job from getObject(). I don't think we need a factory bean for this functionality. It also makes the invocation from a scheduler very awkward in that one needs to prefix the JobRunner bean with '&' to get the factory bean itself and not it's product,
      eg.
      <task:schedule ref=@amp;runner" method="runJob" cron="blah blah" />

      Suggest removing factory bean style implementation and also add some JobsStatus object return value from the runJob method. Rename runJob -> runJobs.

        Attachments

          Activity

            People

            • Assignee:
              jiali Jarred Li
              Reporter:
              mark.pollack Mark Pollack
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: