Create constants for the EDP job type strings

Registered by Trevor McKay

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.Streaming"
"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.Streaming" job type.

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/src/savanna/savanna

$ 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:
milestone icon 2014.2
Started by
Michael McCune
Completed by
Michael McCune

Related branches

Sprints

Whiteboard

Addressed by: https://review.openstack.org/#/c/80352

Gerrit topic: https://review.openstack.org/#q,topic:bp/edp-job-type-constants,n,z

Addressed by: https://review.openstack.org/80352
    Implementing constants for the job types used by EDP

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.