]> git.mxchange.org Git - quix0rs-apt-p2p.git/commit
Display DHT statistics to the HTTP user.
authorCameron Dale <camrdale@gmail.com>
Fri, 14 Mar 2008 23:40:05 +0000 (16:40 -0700)
committerCameron Dale <camrdale@gmail.com>
Fri, 14 Mar 2008 23:40:05 +0000 (16:40 -0700)
commit146f1044e3661716ec4689d3ea7e6ab4ab38ae77
tree516e37b053c98b8358f3f4531cd4aa36aeba8cdc
parent0ebb5e0abe0740bbd24675e4ac83c48f48c00b0c
Display DHT statistics to the HTTP user.

Adds 2 new interfaces to the DHT implementation:
 * DHTStats: DHT that supports gathering statistics
 * DHTStatsFactory: DHT that supports creating it's own HTTP server
apt_dht_Khashmir supports IDHTStats and formats stats for HTML.
apt_dht_Khashmir also supports IDHTStatsFactory if twisted.web2 is found.
Main script passes the DHT class to the main program.
Main script (DHT only) starts the stats factory if the DHT supports it.
Main program retrieves statistics from the DHT when asked by the HTTPServer.
apt-p2p.py
apt_p2p/HTTPServer.py
apt_p2p/apt_p2p.py
apt_p2p/interfaces.py
apt_p2p_Khashmir/DHT.py
apt_p2p_Khashmir/khashmir.py
apt_p2p_Khashmir/stats.py