Examples of updateResponsibilities()


Examples of net.tomp2p.dht.StorageMemory.updateResponsibilities()

  @Test
  public void testStorageMemoryReplication6() {
    StorageMemory storageMemoryReplication = new StorageMemory();
    Number160 testLoc = Number160.createHash("test1");
    Number160 testPer = Number160.createHash("test2");
    storageMemoryReplication.updateResponsibilities(testLoc, testPer);
    storageMemoryReplication.updateResponsibilities(testLoc, testPer);
    storageMemoryReplication.removeResponsibility(testLoc);
    Assert.assertEquals(null, storageMemoryReplication.findPeerIDsForResponsibleContent(testLoc));
  }
View Full Code Here

Examples of net.tomp2p.dht.StorageMemory.updateResponsibilities()

  public void testStorageMemoryReplication6() {
    StorageMemory storageMemoryReplication = new StorageMemory();
    Number160 testLoc = Number160.createHash("test1");
    Number160 testPer = Number160.createHash("test2");
    storageMemoryReplication.updateResponsibilities(testLoc, testPer);
    storageMemoryReplication.updateResponsibilities(testLoc, testPer);
    storageMemoryReplication.removeResponsibility(testLoc);
    Assert.assertEquals(null, storageMemoryReplication.findPeerIDsForResponsibleContent(testLoc));
  }

  @Test
View Full Code Here

Examples of net.tomp2p.dht.StorageMemory.updateResponsibilities()

  public void testStorageMemoryReplication7() {
    StorageMemory storageMemoryReplication = new StorageMemory();
    Number160 testLoc = Number160.createHash("test1");
    Number160 testPer1 = Number160.createHash("test2");
    Number160 testPer2 = Number160.createHash("test3");
    storageMemoryReplication.updateResponsibilities(testLoc, testPer1);
    storageMemoryReplication.updateResponsibilities(testLoc, testPer2);
    storageMemoryReplication.removeResponsibility(testLoc);
    Assert.assertEquals(null, storageMemoryReplication.findPeerIDsForResponsibleContent(testLoc));
    Assert.assertEquals(null, storageMemoryReplication.findContentForResponsiblePeerID(testPer1));
    Assert.assertEquals(null, storageMemoryReplication.findContentForResponsiblePeerID(testPer2));
View Full Code Here

Examples of net.tomp2p.dht.StorageMemory.updateResponsibilities()

    StorageMemory storageMemoryReplication = new StorageMemory();
    Number160 testLoc = Number160.createHash("test1");
    Number160 testPer1 = Number160.createHash("test2");
    Number160 testPer2 = Number160.createHash("test3");
    storageMemoryReplication.updateResponsibilities(testLoc, testPer1);
    storageMemoryReplication.updateResponsibilities(testLoc, testPer2);
    storageMemoryReplication.removeResponsibility(testLoc);
    Assert.assertEquals(null, storageMemoryReplication.findPeerIDsForResponsibleContent(testLoc));
    Assert.assertEquals(null, storageMemoryReplication.findContentForResponsiblePeerID(testPer1));
    Assert.assertEquals(null, storageMemoryReplication.findContentForResponsiblePeerID(testPer2));
  }
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.