EMMA Coverage Report (generated Tue Oct 27 11:32:50 PDT 2009)
[all classes][net.spy.memcached.ops]

COVERAGE SUMMARY FOR SOURCE FILE [ArrayOperationQueueFactory.java]

nameclass, %method, %block, %line, %
ArrayOperationQueueFactory.java0%   (0/1)0%   (0/2)0%   (0/12)0%   (0/4)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ArrayOperationQueueFactory0%   (0/1)0%   (0/2)0%   (0/12)0%   (0/4)
ArrayOperationQueueFactory (int): void 0%   (0/1)0%   (0/6)0%   (0/3)
create (): BlockingQueue 0%   (0/1)0%   (0/6)0%   (0/1)

1package net.spy.memcached.ops;
2 
3import java.util.concurrent.ArrayBlockingQueue;
4import java.util.concurrent.BlockingQueue;
5 
6/**
7 * OperationQueueFactory that uses an ArrayBlockingQueue.
8 */
9public class ArrayOperationQueueFactory implements OperationQueueFactory {
10 
11        private final int capacity;
12 
13        /**
14         * Create an ArrayOperationQueueFactory that creates blocking queues with
15         * the given capacity.
16         *
17         * @param cap maximum size of a queue produced by this factory
18         */
19        public ArrayOperationQueueFactory(int cap) {
20                super();
21                capacity = cap;
22        }
23 
24        /* (non-Javadoc)
25         * @see net.spy.memcached.ops.OperationQueueFactory#create()
26         */
27        public BlockingQueue<Operation> create() {
28                return new ArrayBlockingQueue<Operation>(capacity);
29        }
30 
31}

[all classes][net.spy.memcached.ops]
EMMA 2.0.5312 (C) Vladimir Roubtsov