Package org.hive2hive.core.network

Examples of org.hive2hive.core.network.H2HStorageMemory


  }

  @Test
  public void testPutProcessSuccess() throws ClassNotFoundException, IOException, NoPeerConnectionException {
    NetworkManager putter = network.get(0);
    putter.getConnection().getPeer().getPeerBean().storage(new H2HStorageMemory());
    NetworkManager proxy = network.get(1);
    proxy.getConnection().getPeer().getPeerBean().storage(new H2HStorageMemory());

    String locationKey = proxy.getNodeId();
    String contentKey = NetworkTestUtil.randomString();
    String data = NetworkTestUtil.randomString();
View Full Code Here


  @Test
  public void testStepSuccessful() throws InterruptedException, ClassNotFoundException, IOException,
      NoPeerConnectionException {
    NetworkManager putter = network.get(0); // where the process runs
    putter.getConnection().getPeer().getPeerBean().storage(new H2HStorageMemory());
    NetworkManager proxy = network.get(1); // where the user profile is stored
    proxy.getConnection().getPeer().getPeerBean().storage(new H2HStorageMemory());

    // create the needed objects
    String userId = proxy.getNodeId();
    Locations newLocations = new Locations(userId);
    newLocations.addPeerAddress(putter.getConnection().getPeer().getPeerAddress());
View Full Code Here

TOP

Related Classes of org.hive2hive.core.network.H2HStorageMemory

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.