Initial support for an ANTLR-based Influx DB query parser

The initial grammar only understands these queries:
- list series
- select * from my_series
- select * from "312 _ strange\" name"

Two tests check queries which we expect can be parsed and cannot.

The ANTLR Maven plugin builds the lexer and parser during the
generate-sources phase.

This only a first step and the query is not ready to be merged. The goal is to be able the current regular expression based parser first. Later on (in another PR), we can expand the grammar to support more Influx language constructs.
Sounds good to me

> On Dec 12, 2014, at 9:13 AM, Thomas Segismont <notifications@github.com> wrote:
> 
> In rest-servlet/src/main/java/org/rhq/metrics/restServlet/influx/InfluxHandler.java <https://github.com/rhq-project/rhq-metrics/pull/67#discussion-diff-21745721>:
> 
> >  
> > -                    for (String name : result) {
> > -                InfluxObject obj = new InfluxObject(name);
> > -                obj.columns = new ArrayList<>(2);
> > -                obj.columns.add("time");
> > -                obj.columns.add("sequence_number");
> > -                obj.columns.add("val");
> > -                obj.points = new ArrayList<>(1);
> > -                objects.add(obj);
> > -            }
> > +    private void listSeries(final AsyncResponse asyncResponse) {
> > +        ListenableFuture<List<String>> future = ServiceKeeper.getInstance().service.listMetrics();
> Can we address the issue of the endpoint paths in a separate discussion? I can start another PR based on the previous comments.
> 
> —
> Reply to this email directly or view it on GitHub <https://github.com/rhq-project/rhq-metrics/pull/67/files#r21745721>.
>