Mercurial > hg > Papers > 2018 > nozomi-master
view paper/source/IncomingTcpConnection.java @ 189:1369f653e34e default tip
fix
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 01 Mar 2018 15:04:46 +0900 |
parents | d57aa814a69a |
children |
line wrap: on
line source
while (true) { Command cmd = null; ReceiveData rData = null; CommandMessage msg = unpacker.read(CommandMessage.class); CommandType type = CommandType.getCommandTypeFromId(msg.type); switch (type) { case UPDATE: case PUT: int dataSize = unpacker.readInt(); rData = new ReceiveData(unpacker.getSerializedByteArray(dataSize), msg.compressed, msg.serialized); cmd = new Command(type, null, null, rData, 0, 0, null, null, reverseKey); lmanager.getDataSegmentKey(msg.key).runCommand(cmd); break;