|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.I2PAppContext
net.i2p.router.RouterContext
public class RouterContext
Build off the core I2P context to provide a root for a router instance to coordinate its resources. Router instances themselves should be sure to have their own RouterContext, and rooting off of it will allow multiple routers to operate in the same JVM without conflict (e.g. sessionTags wont get intermingled, nor will their netDbs, jobQueues, or bandwidth limiters).
Field Summary |
---|
Fields inherited from class net.i2p.I2PAppContext |
---|
_clockInitialized, _globalAppContext |
Constructor Summary | |
---|---|
RouterContext(Router router)
|
|
RouterContext(Router router,
java.util.Properties envProps)
|
Method Summary | |
---|---|
AdminManager |
adminManager()
Controls a basic admin interface |
FIFOBandwidthLimiter |
bandwidthLimiter()
Coordinate this router's bandwidth limits |
Calculator |
capacityCalculator()
how do we rank the capacity of profiles? |
ClientManagerFacade |
clientManager()
How are we coordinating clients for the router? |
ClientMessagePool |
clientMessagePool()
Where do we toss messages for the clients (and where do we get client messages to forward on from)? |
Clock |
clock()
The context's synchronized clock, which is kept context specific only to enable simulators to play with clock skew among different instances. |
CommSystemFacade |
commSystem()
How do we pass messages from our outNetMessagePool to another router |
(package private) static java.util.Properties |
filterProps(java.util.Properties envProps)
Unless we are explicitly disabling the timestamper, we want to use it. |
java.lang.String |
getProperty(java.lang.String propName)
Tie in the router's config as properties, as well as whatever the I2PAppContext says. |
java.lang.String |
getProperty(java.lang.String propName,
java.lang.String defaultVal)
Tie in the router's config as properties, as well as whatever the I2PAppContext says. |
protected void |
initializeClock()
|
InNetMessagePool |
inNetMessagePool()
Where do we get network messages from (aka where does the comm system dump what it reads)? |
Calculator |
integrationCalculator()
how do we rank the integration of profiles? |
Calculator |
isFailingCalculator()
how do we rank the failure of profiles? |
JobQueue |
jobQueue()
The actual driver of the router, where all jobs are enqueued and processed. |
KeyManager |
keyManager()
Coordinates the router's ElGamal and DSA keys, as well as any keys given to it by clients as part of a LeaseSet. |
static java.util.List |
listContexts()
Retrieve the list of router contexts currently instantiated in this JVM. |
MessageHistory |
messageHistory()
Tracker component for monitoring what messages are wrapped in what containers and how they proceed through the network. |
OutboundMessageRegistry |
messageRegistry()
The registry is used by outbound messages to wait for replies. |
MessageStateMonitor |
messageStateMonitor()
The monitor keeps track of inbound and outbound messages currently held in memory / queued for processing. |
MessageValidator |
messageValidator()
The router keeps track of messages it receives to prevent duplicates, as well as other criteria for "validity". |
NetworkDatabaseFacade |
netDb()
Our db cache |
Calculator |
oldSpeedCalculator()
|
OutNetMessagePool |
outNetMessagePool()
Where do we put messages that the router wants to forwards onto the network? |
PeerManagerFacade |
peerManager()
Minimal interface for selecting peers for various tasks based on given criteria. |
ProfileManager |
profileManager()
Expose a simple API for various router components to take note of particular events that a peer enacts (sends us a message, agrees to participate in a tunnel, etc). |
ProfileOrganizer |
profileOrganizer()
Organize the peers we know about into various tiers, profiling their performance and sorting them accordingly. |
Calculator |
reliabilityCalculator()
how do we rank the reliability of profiles? |
Router |
router()
what router is this context working for? |
Hash |
routerHash()
convenience method for querying the router's ident |
Shitlist |
shitlist()
who does this peer hate? |
Calculator |
speedCalculator()
how do we rank the speed of profiles? |
StatisticsManager |
statPublisher()
If the router is configured to, gather up some particularly tasty morsels regarding the stats managed and offer to publish them into the routerInfo. |
RouterThrottle |
throttle()
Component to coordinate our accepting/rejecting of requests under load |
java.lang.String |
toString()
|
TunnelDispatcher |
tunnelDispatcher()
Handle tunnel messages, as well as coordinate the gateways |
TunnelManagerFacade |
tunnelManager()
Coordinate this router's tunnels (its pools, participation, backup, etc). |
Methods inherited from class net.i2p.I2PAppContext |
---|
aes, dsa, elGamalAESEngine, elGamalEngine, getGlobalContext, getPropertyNames, hmac, hmac256, keyGenerator, logManager, namingService, petnameDb, random, routingKeyGenerator, sessionKeyManager, sha, statManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RouterContext(Router router)
public RouterContext(Router router, java.util.Properties envProps)
Method Detail |
---|
static final java.util.Properties filterProps(java.util.Properties envProps)
public static java.util.List listContexts()
public Router router()
public Hash routerHash()
public AdminManager adminManager()
public ClientManagerFacade clientManager()
public ClientMessagePool clientMessagePool()
public InNetMessagePool inNetMessagePool()
public OutNetMessagePool outNetMessagePool()
public MessageHistory messageHistory()
public OutboundMessageRegistry messageRegistry()
public MessageStateMonitor messageStateMonitor()
public NetworkDatabaseFacade netDb()
public JobQueue jobQueue()
public KeyManager keyManager()
public CommSystemFacade commSystem()
public ProfileOrganizer profileOrganizer()
public PeerManagerFacade peerManager()
public ProfileManager profileManager()
public FIFOBandwidthLimiter bandwidthLimiter()
public TunnelManagerFacade tunnelManager()
public TunnelDispatcher tunnelDispatcher()
public StatisticsManager statPublisher()
public Shitlist shitlist()
public MessageValidator messageValidator()
public RouterThrottle throttle()
public Calculator isFailingCalculator()
public Calculator integrationCalculator()
public Calculator speedCalculator()
public Calculator oldSpeedCalculator()
public Calculator reliabilityCalculator()
public Calculator capacityCalculator()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getProperty(java.lang.String propName)
getProperty
in class I2PAppContext
public java.lang.String getProperty(java.lang.String propName, java.lang.String defaultVal)
getProperty
in class I2PAppContext
public Clock clock()
clock
in class I2PAppContext
protected void initializeClock()
initializeClock
in class I2PAppContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |