return singleton;
}
private RoutingTable() {
root = new Node(null, new Int128(), 0, new KBucket());
maintenanceTask = new Task() {
private LookupTask lookup_new_contacts = null;
public void run() {
if (getTotalContacts() < ROUTING_TABLE_DIFICIT_CONTACTS) {
if ((lookup_new_contacts == null)||(!lookup_new_contacts.isLookupStarted())) {
Int128 fake_target = new Int128(Utils.getRandomInt128());
lookup_new_contacts = new LookupTask(RequestType.FIND_NODE, fake_target, JKadConstants.toleranceZone) {
public void lookupTimeout() {
}
public void stopLookupEvent() {