Examples of fetchStatistics()


Examples of com.google.appengine.api.taskqueue.Queue.fetchStatistics()

      runWithRetries(new Callable<Void>() {
        @Override public Void call() {
          // Does not work as advertise (just check that the queue name is valid).
          // See b/13910616. Probably after the bug is fixed the check would need
          // to inspect EnforceRate for not null.
          queue.fetchStatistics();
          return null;
        }
      }, QUEUE_RETRY_PARAMS, QUEUE_EXCEPTION_HANDLER);
    } catch (RetryHelperException ex) {
      if (ex.getCause() instanceof IllegalStateException) {
View Full Code Here

Examples of com.google.appengine.api.taskqueue.Queue.fetchStatistics()

     * 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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.