I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 9ae07688 authored by zzz's avatar zzz
Browse files

move dummy implementations to their own directory

parent 9a2a5151
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ import net.i2p.data.Hash;
import net.i2p.data.RouterInfo;
import net.i2p.internal.InternalClientManager;
import net.i2p.router.client.ClientManagerFacadeImpl;
import net.i2p.router.dummy.*;
import net.i2p.router.networkdb.kademlia.FloodfillNetworkDatabaseFacade;
import net.i2p.router.peermanager.PeerManagerFacadeImpl;
import net.i2p.router.peermanager.ProfileManagerImpl;
......
package net.i2p.router;
package net.i2p.router.dummy;
/*
* free (adj.): unencumbered; not under the control of others
* Written by jrandom in 2003 and released into the public domain
......@@ -14,6 +14,11 @@ import net.i2p.data.Hash;
import net.i2p.data.LeaseSet;
import net.i2p.data.i2cp.MessageId;
import net.i2p.data.i2cp.SessionConfig;
import net.i2p.router.ClientManagerFacade;
import net.i2p.router.ClientMessage;
import net.i2p.router.Job;
import net.i2p.router.RouterContext;
import net.i2p.router.TunnelInfo;
/**
* Manage all interactions with clients
......
package net.i2p.router;
package net.i2p.router.dummy;
/*
* free (adj.): unencumbered; not under the control of others
* Written by jrandom in 2003 and released into the public domain
......@@ -20,8 +20,11 @@ import net.i2p.data.DatabaseEntry;
import net.i2p.data.Hash;
import net.i2p.data.LeaseSet;
import net.i2p.data.RouterInfo;
import net.i2p.router.Job;
import net.i2p.router.NetworkDatabaseFacade;
import net.i2p.router.RouterContext;
class DummyNetworkDatabaseFacade extends NetworkDatabaseFacade {
public class DummyNetworkDatabaseFacade extends NetworkDatabaseFacade {
private Map _routers;
private RouterContext _context;
......
package net.i2p.router;
package net.i2p.router.dummy;
/*
* free (adj.): unencumbered; not under the control of others
* Written by jrandom in 2003 and released into the public domain
......@@ -13,6 +13,8 @@ import java.util.List;
import java.util.Set;
import net.i2p.data.Hash;
import net.i2p.router.PeerManagerFacade;
import net.i2p.router.PeerSelectionCriteria;
/**
* Manage peer references and keep them up to date so that when asked for peers,
......@@ -20,7 +22,7 @@ import net.i2p.data.Hash;
* includes periodically queueing up outbound messages to the peers to test them.
*
*/
class DummyPeerManagerFacade implements PeerManagerFacade {
public class DummyPeerManagerFacade implements PeerManagerFacade {
public void shutdown() {}
public void startup() {}
public void restart() {}
......
package net.i2p.router;
package net.i2p.router.dummy;
/*
* free (adj.): unencumbered; not under the control of others
* Written by jrandom in 2003 and released into the public domain
......@@ -17,13 +17,17 @@ import java.util.Set;
import net.i2p.data.Destination;
import net.i2p.data.Hash;
import net.i2p.data.TunnelId;
import net.i2p.router.ClientTunnelSettings;
import net.i2p.router.TunnelInfo;
import net.i2p.router.TunnelManagerFacade;
import net.i2p.router.TunnelPoolSettings;
import net.i2p.router.tunnel.pool.TunnelPool;
/**
* Build and maintain tunnels throughout the network.
*
*/
class DummyTunnelManagerFacade implements TunnelManagerFacade {
public class DummyTunnelManagerFacade implements TunnelManagerFacade {
public TunnelInfo getTunnelInfo(TunnelId id) { return null; }
public TunnelInfo selectInboundTunnel() { return null; }
......
<html>
<body>
<p>
Dummy versions of things for testing.
</p>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment