Package net.tomp2p.dht

Examples of net.tomp2p.dht.StorageLayer


  }

  @Test
  public void testPutInitial() throws Exception {
    Storage storageM = createStorage();
    store(new StorageLayer(storageM));
    storageM.close();
  }
View Full Code Here


  }

  @Test
  public void testGet() throws Exception {
    Storage storageM = createStorage();
    testGet(new StorageLayer(storageM));
    storageM.close();
  }
View Full Code Here

  }

  @Test
  public void testPut() throws Exception {
    Storage storageM = createStorage();
    testPut(new StorageLayer(storageM));
    storageM.close();
  }
View Full Code Here

  }

  @Test
  public void testPutIfAbsent() throws Exception {
    Storage storageM = createStorage();
    testPutIfAbsent(new StorageLayer(storageM));
    storageM.close();
  }
View Full Code Here

  }

  @Test
  public void testRemove() throws Exception {
    Storage storageM = createStorage();
    testRemove(new StorageLayer(storageM));
    storageM.close();
  }
View Full Code Here

  }

  @Test
  public void testTTL1() throws Exception {
    Storage storageM = createStorage();
    testTTL1(new StorageLayer(storageM));
    storageM.close();
  }
View Full Code Here

  }

  @Test
  public void testTTL2() throws Exception {
    Storage storageM = createStorage();
    testTTL2(new StorageLayer(storageM));
    storageM.close();
  }
View Full Code Here

  }

  @Test
  public void testTTLLeak() throws Exception {
    Storage storageM = createStorage();
    testTTLLeak(new StorageLayer(storageM));
    Assert.assertEquals(0, storageM.subMapTimeout(Long.MAX_VALUE).size());
    storageM.close();
  }
View Full Code Here

  }

  @Test
  public void testPublicKeyDomain() throws Exception {
    Storage storageM = createStorage();
    testPublicKeyDomain(new StorageLayer(storageM));
    storageM.close();
  }
View Full Code Here

  }

  @Test
  public void testConcurrency() throws InterruptedException, IOException {
    final Storage sM = createStorage();
    final StorageLayer storageGeneric = new StorageLayer(sM);
    store(storageGeneric);
    final AtomicInteger counter = new AtomicInteger();
    final Data result1 = storageGeneric.get(key1);
    for (int i = 0; i < 10; i++) {
      new Thread(new Runnable() {
        @Override
        public void run() {
          try {
View Full Code Here

TOP

Related Classes of net.tomp2p.dht.StorageLayer

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.