forked from I2P_Developers/i2p.i2p
move dummy implementations to their own directory
This commit is contained in:
@@ -12,6 +12,7 @@ import net.i2p.data.Hash;
|
|||||||
import net.i2p.data.RouterInfo;
|
import net.i2p.data.RouterInfo;
|
||||||
import net.i2p.internal.InternalClientManager;
|
import net.i2p.internal.InternalClientManager;
|
||||||
import net.i2p.router.client.ClientManagerFacadeImpl;
|
import net.i2p.router.client.ClientManagerFacadeImpl;
|
||||||
|
import net.i2p.router.dummy.*;
|
||||||
import net.i2p.router.networkdb.kademlia.FloodfillNetworkDatabaseFacade;
|
import net.i2p.router.networkdb.kademlia.FloodfillNetworkDatabaseFacade;
|
||||||
import net.i2p.router.peermanager.PeerManagerFacadeImpl;
|
import net.i2p.router.peermanager.PeerManagerFacadeImpl;
|
||||||
import net.i2p.router.peermanager.ProfileManagerImpl;
|
import net.i2p.router.peermanager.ProfileManagerImpl;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
package net.i2p.router;
|
package net.i2p.router.dummy;
|
||||||
/*
|
/*
|
||||||
* free (adj.): unencumbered; not under the control of others
|
* free (adj.): unencumbered; not under the control of others
|
||||||
* Written by jrandom in 2003 and released into the public domain
|
* 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.LeaseSet;
|
||||||
import net.i2p.data.i2cp.MessageId;
|
import net.i2p.data.i2cp.MessageId;
|
||||||
import net.i2p.data.i2cp.SessionConfig;
|
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
|
* Manage all interactions with clients
|
@@ -1,4 +1,4 @@
|
|||||||
package net.i2p.router;
|
package net.i2p.router.dummy;
|
||||||
/*
|
/*
|
||||||
* free (adj.): unencumbered; not under the control of others
|
* free (adj.): unencumbered; not under the control of others
|
||||||
* Written by jrandom in 2003 and released into the public domain
|
* 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.Hash;
|
||||||
import net.i2p.data.LeaseSet;
|
import net.i2p.data.LeaseSet;
|
||||||
import net.i2p.data.RouterInfo;
|
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 Map _routers;
|
||||||
private RouterContext _context;
|
private RouterContext _context;
|
||||||
|
|
@@ -1,4 +1,4 @@
|
|||||||
package net.i2p.router;
|
package net.i2p.router.dummy;
|
||||||
/*
|
/*
|
||||||
* free (adj.): unencumbered; not under the control of others
|
* free (adj.): unencumbered; not under the control of others
|
||||||
* Written by jrandom in 2003 and released into the public domain
|
* Written by jrandom in 2003 and released into the public domain
|
||||||
@@ -13,6 +13,8 @@ import java.util.List;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import net.i2p.data.Hash;
|
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,
|
* 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.
|
* 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 shutdown() {}
|
||||||
public void startup() {}
|
public void startup() {}
|
||||||
public void restart() {}
|
public void restart() {}
|
@@ -1,4 +1,4 @@
|
|||||||
package net.i2p.router;
|
package net.i2p.router.dummy;
|
||||||
/*
|
/*
|
||||||
* free (adj.): unencumbered; not under the control of others
|
* free (adj.): unencumbered; not under the control of others
|
||||||
* Written by jrandom in 2003 and released into the public domain
|
* 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.Destination;
|
||||||
import net.i2p.data.Hash;
|
import net.i2p.data.Hash;
|
||||||
import net.i2p.data.TunnelId;
|
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;
|
import net.i2p.router.tunnel.pool.TunnelPool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build and maintain tunnels throughout the network.
|
* 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 getTunnelInfo(TunnelId id) { return null; }
|
||||||
public TunnelInfo selectInboundTunnel() { return null; }
|
public TunnelInfo selectInboundTunnel() { return null; }
|
7
router/java/src/net/i2p/router/dummy/package.html
Normal file
7
router/java/src/net/i2p/router/dummy/package.html
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<p>
|
||||||
|
Dummy versions of things for testing.
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
Reference in New Issue
Block a user