From 64dfdda1c3ba63b1b3eea41b3ee51180f5cdb1e4 Mon Sep 17 00:00:00 2001 From: Joshua Kissoon Date: Tue, 6 May 2014 09:53:06 +0530 Subject: [PATCH] Added a few utility methods --- src/kademlia/KademliaNode.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/kademlia/KademliaNode.java b/src/kademlia/KademliaNode.java index 0e99038..b242701 100644 --- a/src/kademlia/KademliaNode.java +++ b/src/kademlia/KademliaNode.java @@ -437,11 +437,22 @@ public class KademliaNode return nodeStateFolder.toString(); } + /** + * @return The routing table for this node. + */ public RoutingTable getRoutingTable() { return this.routingTable; } + /** + * @return The statistician that manages all statistics + */ + public Statistician getStatistician() + { + return this.statistician; + } + /** * Creates a string containing all data about this Kademlia instance *