Package net.tomp2p.message

Examples of net.tomp2p.message.KeyMapByte


            putBuilder.versionKey(Number160.ZERO);

            FutureResponse fr = smmSender.put(recv1.peerAddress(), putBuilder, cc);
            fr.awaitUninterruptibly();
            Assert.assertEquals(true, fr.isSuccess());
            KeyMapByte keys = fr.responseMessage().keyMapByte(0);
            Utils.isSameSets(keys.keysMap().keySet(), dataMap.convertToMap640().keySet());

        } finally {
            if (cc != null) {
                cc.shutdown().awaitListenersUninterruptibly();
            }
View Full Code Here


            Enum<?> status = storageLayer.updateMeta(publicKey, entry.getKey(), entry.getValue());
            result.put(entry.getKey(), (byte) status.ordinal());
          }
        }
        responseMessage.type(result.size() == dataSize ? Type.OK : Type.PARTIALLY_OK);
        responseMessage.keyMapByte(new KeyMapByte(result));
    }
View Full Code Here

            }
          
        }

        responseMessage.type(result.size() == dataSize ? Type.OK : Type.PARTIALLY_OK);
        responseMessage.keyMapByte(new KeyMapByte(result));
        return responseMessage;
    }
View Full Code Here

                entry.getKey().locationKey());
          }
    }
   
    responseMessage.type(result.size() == dataSize ? Type.OK : Type.PARTIALLY_OK);
    responseMessage.keyMapByte(new KeyMapByte(result));
  }
View Full Code Here

                    entry.getKey().locationKey());
              }
            }

        }
        responseMessage.keyMapByte(new KeyMapByte(result));
        return responseMessage;
    }
View Full Code Here

          for(Map.Entry<Number640, Byte> entry:result2.entrySet()) {
            notifyRemoveResponsibility(entry.getKey().locationKey(), PutStatus.values()[entry.getValue()]);
          }
          // make a copy, so the iterator in the codec wont conflict with
            // concurrent calls
            responseMessage.keyMapByte(new KeyMapByte(result2));
        } else {
          for(Map.Entry<Number640, Data> entry:result1.entrySet()) {
            notifyRemoveResponsibility(entry.getKey().locationKey(), PutStatus.OK);
          }
          // make a copy, so the iterator in the codec wont conflict with
View Full Code Here

TOP

Related Classes of net.tomp2p.message.KeyMapByte

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.