Added a few utility methods

This commit is contained in:
Joshua Kissoon 2014-05-06 09:53:06 +05:30
parent 2adfc9b277
commit 64dfdda1c3

View File

@ -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
*