Clean up CollectorStub command-line interface; allow users to specify custom servlets to run alongside Chukwa.
This should get reopened.
Report from QA,
Integrated in Chukwa-trunk #49 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/49/)
. More flexible CollectorStub
I just committed this.
Note. The patch conflicted in a trivial way with CHUKWA-30. I didn't bother to regenerate the patch, but did merge in the changes. (CHUKWA-30 changed the daemon.setRunning() option, for reasons that aren't clear to me.).
The patch does indeed break backwards compatibility. It makes / default to /chukwa. The awkwardness for unit testing is that most of the action happens in main(); I suppose I can probably refactor to avoid that.
I do have code that uses this patch, but it isn't quite commit-ready.
Could we add custom servlet as a test case?
It looks like this patch may break the backward compatibility. Is this going to make unspecified URL default to /chukwa? If so, I am ok with this patch.
Real motivation here is to allow other custom servlets to run alongside the Chukwa collector for real-time reporting.
Cleaned-up command-line interface facilitates this, but is useful on its own.