Create constants for the EDP job type strings
Currently, string literals are used for the EDP job type values throughout the savanna-api code. We should define constants for these strings and replace the string literal usage with constants.
The string literal job type values are
"MapReduce"
"MapReduce.
"Java"
"Pig"
"Hive"
We should probably define constants for subtypes too for consistency and build the above constants with JOB_TYPE + SUBTYPE where applicable. Currently this just applies to the "Streaming" subtype and the "MapReduce.
Note that in some places, single quotes are used and in some places double quotes are used, and "Streaming" may be used by itself as a subtype. This makes searching for all the references a little harder.
The places that need to be modified can be found easily with ack or grep:
$ pwd
/home/tmckay/
$ ack "job.type.*[\"\']"
Blueprint information
- Status:
- Complete
- Approver:
- Sergey Lukjanov
- Priority:
- Medium
- Drafter:
- Trevor McKay
- Direction:
- Approved
- Assignee:
- Michael McCune
- Definition:
- Approved
- Series goal:
- Accepted for juno
- Implementation:
- Implemented
- Milestone target:
- 2014.2
- Started by
- Michael McCune
- Completed by
- Michael McCune
Related branches
Related bugs
Sprints
Whiteboard
Addressed by: https:/
Gerrit topic: https:/
Addressed by: https:/
Implementing constants for the job types used by EDP