Search in sources :

Example 1 with TunnelPoolManager

use of net.i2p.router.tunnel.pool.TunnelPoolManager in project i2p.i2p by i2p.

the class RouterContext method initAll.

/**
 *  The following properties may be used to replace various parts
 *  of the context with dummy implementations for testing, by setting
 *  the property to "true":
 *<pre>
 *  i2p.dummyClientFacade
 *  i2p.dummyNetDb
 *  i2p.dummyPeerManager
 *  i2p.dummyTunnelManager
 *  i2p.vmCommSystem (transport)
 *</pre>
 */
public synchronized void initAll() {
    if (_initialized)
        throw new IllegalStateException();
    if (!getBooleanProperty("i2p.dummyClientFacade")) {
        ClientManagerFacadeImpl cmfi = new ClientManagerFacadeImpl(this);
        _clientManagerFacade = cmfi;
        _internalClientManager = cmfi;
    } else {
        _clientManagerFacade = new DummyClientManagerFacade(this);
    // internal client manager is null
    }
    _garlicMessageParser = new GarlicMessageParser(this);
    _clientMessagePool = new ClientMessagePool(this);
    _jobQueue = new JobQueue(this);
    _jobQueue.startup();
    _inNetMessagePool = new InNetMessagePool(this);
    _outNetMessagePool = new OutNetMessagePool(this);
    _messageHistory = new MessageHistory(this);
    _messageRegistry = new OutboundMessageRegistry(this);
    // _messageStateMonitor = new MessageStateMonitor(this);
    _routingKeyGenerator = new RouterKeyGenerator(this);
    if (!getBooleanProperty("i2p.dummyNetDb"))
        // new KademliaNetworkDatabaseFacade(this);
        _netDb = new FloodfillNetworkDatabaseFacade(this);
    else
        _netDb = new DummyNetworkDatabaseFacade(this);
    _keyManager = new KeyManager(this);
    if (!getBooleanProperty("i2p.vmCommSystem"))
        _commSystem = new CommSystemFacadeImpl(this);
    else
        _commSystem = new VMCommSystem(this);
    _profileOrganizer = new ProfileOrganizer(this);
    if (!getBooleanProperty("i2p.dummyPeerManager"))
        _peerManagerFacade = new PeerManagerFacadeImpl(this);
    else
        _peerManagerFacade = new DummyPeerManagerFacade();
    _profileManager = new ProfileManagerImpl(this);
    _bandwidthLimiter = new FIFOBandwidthLimiter(this);
    if (!getBooleanProperty("i2p.dummyTunnelManager"))
        _tunnelManager = new TunnelPoolManager(this);
    else
        _tunnelManager = new DummyTunnelManagerFacade();
    _tunnelDispatcher = new TunnelDispatcher(this);
    _statPublisher = new StatisticsManager(this);
    _banlist = new Banlist(this);
    _blocklist = new Blocklist(this);
    _messageValidator = new MessageValidator(this);
    _throttle = new RouterThrottleImpl(this);
    // _throttle = new RouterDoSThrottle(this);
    _appManager = new RouterAppManager(this);
    _initialized = true;
}
Also used : FIFOBandwidthLimiter(net.i2p.router.transport.FIFOBandwidthLimiter) GarlicMessageParser(net.i2p.router.message.GarlicMessageParser) TunnelPoolManager(net.i2p.router.tunnel.pool.TunnelPoolManager) ProfileManagerImpl(net.i2p.router.peermanager.ProfileManagerImpl) TunnelDispatcher(net.i2p.router.tunnel.TunnelDispatcher) PeerManagerFacadeImpl(net.i2p.router.peermanager.PeerManagerFacadeImpl) TransientSessionKeyManager(net.i2p.router.crypto.TransientSessionKeyManager) ProfileOrganizer(net.i2p.router.peermanager.ProfileOrganizer) RouterKeyGenerator(net.i2p.data.router.RouterKeyGenerator) FloodfillNetworkDatabaseFacade(net.i2p.router.networkdb.kademlia.FloodfillNetworkDatabaseFacade) RouterAppManager(net.i2p.router.startup.RouterAppManager) ClientManagerFacadeImpl(net.i2p.router.client.ClientManagerFacadeImpl) CommSystemFacadeImpl(net.i2p.router.transport.CommSystemFacadeImpl) OutboundMessageRegistry(net.i2p.router.transport.OutboundMessageRegistry)

Aggregations

RouterKeyGenerator (net.i2p.data.router.RouterKeyGenerator)1 ClientManagerFacadeImpl (net.i2p.router.client.ClientManagerFacadeImpl)1 TransientSessionKeyManager (net.i2p.router.crypto.TransientSessionKeyManager)1 GarlicMessageParser (net.i2p.router.message.GarlicMessageParser)1 FloodfillNetworkDatabaseFacade (net.i2p.router.networkdb.kademlia.FloodfillNetworkDatabaseFacade)1 PeerManagerFacadeImpl (net.i2p.router.peermanager.PeerManagerFacadeImpl)1 ProfileManagerImpl (net.i2p.router.peermanager.ProfileManagerImpl)1 ProfileOrganizer (net.i2p.router.peermanager.ProfileOrganizer)1 RouterAppManager (net.i2p.router.startup.RouterAppManager)1 CommSystemFacadeImpl (net.i2p.router.transport.CommSystemFacadeImpl)1 FIFOBandwidthLimiter (net.i2p.router.transport.FIFOBandwidthLimiter)1 OutboundMessageRegistry (net.i2p.router.transport.OutboundMessageRegistry)1 TunnelDispatcher (net.i2p.router.tunnel.TunnelDispatcher)1 TunnelPoolManager (net.i2p.router.tunnel.pool.TunnelPoolManager)1