accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Marion (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-3005) Convert the monitor into a real REST server
Date Wed, 03 Dec 2014 01:54:12 GMT


Dave Marion commented on ACCUMULO-3005:

bq.  I need to start looking how to replace the HTML renderings which is the big unknown presently.

  Looking at some of your resources (for example, MasterResource), the class produces only
JSON and returns simple Java objects (String, Map<>, List<>). You could instead
return JAX-B annotated objects, then register serialization providers to support things other
than JSON, to include HTML. Looks like an example in the Jersey docs is located at:
I'm more familiar with JBoss RestEasy, but Jersey is the reference implementation I believe,
so it should be able to do the same things at the spec level.

> Convert the monitor into a real REST server
> -------------------------------------------
>                 Key: ACCUMULO-3005
>                 URL:
>             Project: Accumulo
>          Issue Type: Sub-task
>          Components: monitor
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>             Fix For: 1.7.0
>         Attachments: 0001-ACCUMULO-3005-Initial-round-of-changes-for-a-proper-.patch
> The monitor works well for what it does, but it's very much so cobbled together. HTML
is hand generated. Static state is used liberally which makes testing near impossible. View
and controller logic are tightly intertwined which also adds to the testability problem.
> I've been working on porting the functionality from the existing monitor to a proper
rest service using [dropwizard|]. It's not completely
functional yet, but it has a number of improvements of the existing monitor code.
> I thought I would post what I have already and let people give some feedback if they're
interested. Help is always welcome.

This message was sent by Atlassian JIRA

View raw message