Package com.google.appengine.api.taskqueue

Examples of com.google.appengine.api.taskqueue.QueueStatistics


     * The dev_appserver generates random statistics.
     */
    @Test
    public void testStatsApiBasic() throws Exception {
        final Queue queue = QueueFactory.getQueue("pull-queue");
        QueueStatistics stats = queue.fetchStatistics();
        Assert.assertNotNull(stats);
        Assert.assertEquals("pull-queue", stats.getQueueName());
        Assert.assertTrue(stats.getEnforcedRate() >= 0);

        Assert.assertTrue(stats.getNumTasks() >= 0);
        Assert.assertTrue(stats.getExecutedLastMinute() >= 0);
        Assert.assertTrue(stats.getOldestEtaUsec() == null || stats.getOldestEtaUsec() >= 0);
        Assert.assertTrue(stats.getRequestsInFlight() >= 0);
    }
View Full Code Here

TOP

Related Classes of com.google.appengine.api.taskqueue.QueueStatistics

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.