Yifan Gu created MESOS-1484:
-------------------------------
Summary: Make the checker code into modules
Key: MESOS-1484
URL: https://issues.apache.org/jira/browse/MESOS-1484
Project: Mesos
Issue Type: Improvement
Reporter: Yifan Gu
Priority: Minor
Currently, we can see a lot of similar codes checking the validation of
frameworkId, slaveId, executorId and so on, in the beginning of the message
handlers (say launchTasks, killTask). I think maybe we could put those codes
into separate modules with well defined interfaces.
I think this can help us to improve the readability of the code, reduce the
size of the source, and more importantly, make it easier for folks to add new
features (avoiding copy-pasting, which is error prone).
Any ideas or discussion on this is highly welcome! Thank you!
--
This message was sent by Atlassian JIRA
(v6.2#6252)