Clean up CollectorStub command-line interface; allow users to specify custom servlets to run alongside Chukwa.
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.
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.
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.
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.).
Integrated in Chukwa-trunk #49 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/49/)
. More flexible CollectorStub
This should get reopened.
Report from QA,