Package org.geoserver.monitor

Examples of org.geoserver.monitor.Query


        setKVP(req, "filter", "path:EQ:/seven");
       
        Response res = new Response(req);
        resource.init(null, req, res);
       
        Query q = (Query) resource.handleObjectGet();
        List<RequestData> datas = (List<RequestData>) monitor.getDAO().getRequests(q);
       
        assertCoveredInOrder(datas, 7);
    }
View Full Code Here


        setKVP(req, "filter", "path:IN:/seven,/six,/five");
       
        Response res = new Response(req);
        resource.init(null, req, res);
       
        Query q = (Query) resource.handleObjectGet();
        List<RequestData> datas = (List<RequestData>) monitor.getDAO().getRequests(q);
       
        assertCovered(datas, 5, 6, 7);
    }
View Full Code Here

        setKVP(req, "filter", "status:EQ:WAITING");
       
        Response res = new Response(req);
        resource.init(null, req, res);
       
        Query q = (Query) resource.handleObjectGet();
        List<RequestData> datas = (List<RequestData>) monitor.getDAO().getRequests(q);
       
        assertCovered(datas, 2,6);
    }
View Full Code Here

        setKVP(req, "order", "path");
       
        Response res = new Response(req);
        resource.init(null, req, res);
       
        Query q = (Query)resource.handleObjectGet();
        List<RequestData> datas = monitor.getDAO().getRequests(q);
        assertCoveredInOrder(datas, 8, 5, 4, 9, 1, 7, 6, 10, 3, 2);
       
        setKVP(req, "order", "path;ASC");
        res = new Response(req);
View Full Code Here

        setKVP(req, "order", "startTime", "offset", "5", "count", "2");
       
        Response res = new Response(req);
        resource.init(null, req, res);
       
        Query q = (Query)resource.handleObjectGet();
        List<RequestData> datas = monitor.getDAO().getRequests(q);
        
        assertCoveredInOrder(datas, 6, 7);
    }
View Full Code Here

        setKVP(req, "live", "yes");
       
        Response res = new Response(req);
        resource.init(null, req, res);
       
        Query q = (Query) resource.handleObjectGet();;
        List<RequestData> datas = monitor.getDAO().getRequests(q);
       
        assertCovered(datas, 1, 2, 5, 6, 9, 10);
    }
View Full Code Here

    @Test
    public void testToQueryString() throws Exception {
        Date from = toDate("2010-07-23T15:56:44");
        Date to = toDate("2010-07-23T16:16:44");
       
        Query q = new Query().between(from, to);
        q.filter("service", "WFS", Comparison.EQ).and("status", "RUNNING", Comparison.EQ)
            .and("path", Arrays.asList("/foo", "/bar"), Comparison.IN);
       
        String qs = RequestResource.toQueryString(q);
        assertEquals('?', qs.charAt(0));
        qs = qs.substring(1);
View Full Code Here

TOP

Related Classes of org.geoserver.monitor.Query

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.