caskdata/cdap — pull request #875 by bdmogal (2014-12-20 10:02:18+00:00)
Title: Feature/namespaced logs

Added namespaces in log retrieval APIs.

Things changed:
1. Existing ``LogHandler`` moved to ``LogHandlerV2``
2. Implemented ``/v3/namespaces/nsid/.../logs/...`` APIs in ``LogHandler``
3. ``LogHandlerV2`` delegates v2 user log handler methods to ``LogHandler``
4. Removed ``LoggingContext.EntityType`` and instead used ``ProgramType`` for consistency.
5. Removed request parsing logic for query parameters and instead used ``@QueryParam``
6. Added logic in ``RouterPathLookup`` to route ``/v3/namespaces/nsid/.../logs/...`` APIs to metrics service
7. Added unit tests.