Package lupos.distributed.p2p.distributionstrategy

Examples of lupos.distributed.p2p.distributionstrategy.SimplePartitionDistribution


  public static PeerCreator getTomP2PNetwork(final int port) {
    final Map<String, Object> arguments = new HashMap<String, Object>();
    arguments.put(P2PNetworkCreator.P2PConfigurationConstants.cPORT, port);
    return new PeerCreator().setP2PNetwork(P2PNetworkCreator.TOM_P2P,
        arguments).setDistributionStrategy(
        new SimplePartitionDistribution());
  }
View Full Code Here


   * @return the controller of the peer
   */
  public static PeerCreator getChordlessP2PNetwork(final int port) {
    final Map<String, Object> arguments = new HashMap<String, Object>();
    arguments.put(P2PNetworkCreator.P2PConfigurationConstants.cPORT, port);
    return new PeerCreator().setP2PNetwork(P2PNetworkCreator.CHORDLESS, arguments).setDistributionStrategy(new SimplePartitionDistribution());
  }
View Full Code Here

      final int masterPort) {
    final Map<String, Object> arguments = new HashMap<String, Object>();
    arguments.put(P2PNetworkCreator.P2PConfigurationConstants.cPORT, port);
    arguments.put(P2PNetworkCreator.P2PConfigurationConstants.cMASTER_IP, masterIP);
    arguments.put(P2PNetworkCreator.P2PConfigurationConstants.cMASTER_PORT, masterPort);
    return new PeerCreator().setP2PNetwork(P2PNetworkCreator.CHORDLESS, arguments).setDistributionStrategy(new SimplePartitionDistribution());
  }
View Full Code Here

      final int masterPort) {
    final Map<String, Object> arguments = new HashMap<String, Object>();
    arguments.put(P2PNetworkCreator.P2PConfigurationConstants.cPORT, port);
    arguments.put(P2PNetworkCreator.P2PConfigurationConstants.cMASTER_IP, masterIP);
    arguments.put(P2PNetworkCreator.P2PConfigurationConstants.cMASTER_PORT, masterPort);
    return new PeerCreator().setP2PNetwork(P2PNetworkCreator.PASTRY, arguments).setDistributionStrategy(new SimplePartitionDistribution());
  }
View Full Code Here

      final int masterPort) {
    final Map<String, Object> arguments = new HashMap<String, Object>();
    arguments.put(P2PNetworkCreator.P2PConfigurationConstants.cPORT, port);
    arguments.put(P2PNetworkCreator.P2PConfigurationConstants.cMASTER_IP, masterIP);
    arguments.put(P2PNetworkCreator.P2PConfigurationConstants.cMASTER_PORT, masterPort);
    return new PeerCreator().setP2PNetwork(P2PNetworkCreator.TOM_P2P, arguments).setDistributionStrategy(new SimplePartitionDistribution());
  }
View Full Code Here

TOP

Related Classes of lupos.distributed.p2p.distributionstrategy.SimplePartitionDistribution

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.