Examples of AssimilateSessionImpl


Examples of tahrir.io.net.sessions.AssimilateSessionImpl

    // Check to see whether we need new connections

    // TODO: We might want to spawn multiple assimilation requests (say, up to 3)
    // in the event that we are well below minPeers to speed this up
    if (config.assimilate && peers.size() < config.minPeers) {
      final AssimilateSessionImpl as = node.sessionMgr.getOrCreateLocalSession(AssimilateSessionImpl.class);
      final TrPeerInfo ap = getPeerForAssimilation(Collections.EMPTY_SET);

      as.startAssimilation(TrUtils.noopRunnable, ap);

      // } else {
      // logger.warn("Don't know how to assimilate through already connected peers yet");
      // }
    } else if (config.topologyMaintenance) { // && !hasForwardedRecently) {
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.