[
https://issues.apache.org/jira/browse/CHUKWA-515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bill Graham updated CHUKWA-515:
-------------------------------
Attachment: CHUKWA-515-4.patch
Here's patch 4, which uses Jersey. The only functional change from the last
one, is that the add command now takes an optional viewType querystring just
like the get command. The default for both add and get is to return XML, but
text is also supported. I've also added the ability to inject other
user-developed servlets into the REST server (similar to what's done on the
collector) by setting the {{chukwaAgent.http.rest.controller.packages}} config.
This appends to the default
{{org.apache.hadoop.chukwa.datacollection.agent.rest}} package.
> REST API for Agent
> ------------------
>
> Key: CHUKWA-515
> URL: https://issues.apache.org/jira/browse/CHUKWA-515
> Project: Chukwa
> Issue Type: Sub-task
> Components: data collection
> Reporter: Bill Graham
> Assignee: Bill Graham
> Fix For: 0.5.0
>
> Attachments: CHUKWA-515-1.patch, CHUKWA-515-2.patch,
> CHUKWA-515-3.patch, CHUKWA-515-4.patch
>
>
> Develop a REST interface for the Agent to expose Adaptor CRUD operations.
> * Request URI:
> {noformat}
> GET /rest/v1/adaptor HTTP/1.0
> {noformat}
> * For now I'm shooting for the XML and plain text response, but ultimately we
> can support optional params:
> {noformat}
> viewType=[json|xml|text] (default is XML?)
> {noformat}
> I'm planning on using Jetty similar to how the collector does. We could have
> some common code that delegates requests to different handlers based on the
> URI. The current telnet interface will remain as-is.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.