| EMMA Coverage Report (generated Tue Oct 27 11:32:50 PDT 2009) |
|---|
| [all classes][net.spy.memcached.protocol.binary] |
| name | class, % | method, % | block, % | line, % |
|---|---|---|---|---|
| VersionOperationImpl.java | 100% (1/1) | 100% (3/3) | 100% (26/26) | 100% (6/6) |
| name | class, % | method, % | block, % | line, % |
|---|---|---|---|---|
| class VersionOperationImpl | 100% (1/1) | 100% (3/3) | 100% (26/26) | 100% (6/6) |
| VersionOperationImpl (OperationCallback): void | 100% (1/1) | 100% (6/6) | 100% (2/2) | |
| decodePayload (byte []): void | 100% (1/1) | 100% (12/12) | 100% (2/2) | |
| initialize (): void | 100% (1/1) | 100% (8/8) | 100% (2/2) |
| 1 | package net.spy.memcached.protocol.binary; |
| 2 | |
| 3 | import net.spy.memcached.ops.OperationCallback; |
| 4 | import net.spy.memcached.ops.OperationStatus; |
| 5 | import net.spy.memcached.ops.VersionOperation; |
| 6 | |
| 7 | class VersionOperationImpl extends OperationImpl implements VersionOperation { |
| 8 | |
| 9 | private static final int CMD = 11; |
| 10 | |
| 11 | public VersionOperationImpl(OperationCallback cb) { |
| 12 | super(CMD, generateOpaque(), cb); |
| 13 | } |
| 14 | |
| 15 | @Override |
| 16 | public void initialize() { |
| 17 | prepareBuffer("", 0, EMPTY_BYTES); |
| 18 | } |
| 19 | |
| 20 | @Override |
| 21 | protected void decodePayload(byte[] pl) { |
| 22 | getCallback().receivedStatus(new OperationStatus(true, new String(pl))); |
| 23 | } |
| 24 | |
| 25 | } |
| [all classes][net.spy.memcached.protocol.binary] |
| EMMA 2.0.5312 (C) Vladimir Roubtsov |