Removed some unnecessary print statements

This commit is contained in:
Joshua Kissoon 2014-05-05 14:05:00 +05:30
parent 37337afc66
commit 0c4a40d9ca
6 changed files with 2 additions and 10 deletions

View File

@ -121,7 +121,6 @@ public class KadServer
if (recv != null) if (recv != null)
{ {
/* Setup the receiver to handle message response */ /* Setup the receiver to handle message response */
//System.out.println(this.localNode + " Putting Receiver for comm: " + comm + " Receiver: " + recv);
receivers.put(comm, recv); receivers.put(comm, recv);
TimerTask task = new TimeoutTask(comm, recv); TimerTask task = new TimeoutTask(comm, recv);
timer.schedule(task, this.config.responseTimeout()); timer.schedule(task, this.config.responseTimeout());
@ -210,8 +209,6 @@ public class KadServer
Message msg = messageFactory.createMessage(messCode, din); Message msg = messageFactory.createMessage(messCode, din);
din.close(); din.close();
//System.out.println(this.localNode.getNodeId() + " Message Received: [Comm: " + comm + "] " + msg);
/* Get a receiver for this message */ /* Get a receiver for this message */
Receiver receiver; Receiver receiver;
if (this.receivers.containsKey(comm)) if (this.receivers.containsKey(comm))

View File

@ -85,7 +85,6 @@ class StoredContentManager
} }
else else
{ {
System.out.println(this);
} }
return false; return false;
} }

View File

@ -51,7 +51,6 @@ public class ContentLookupReceiver implements Receiver
* Return a the K closest nodes to this content identifier * Return a the K closest nodes to this content identifier
* We create a NodeLookupReceiver and let this receiver handle this operation * We create a NodeLookupReceiver and let this receiver handle this operation
*/ */
System.out.println("We do not have this content");
NodeLookupMessage lkpMsg = new NodeLookupMessage(msg.getOrigin(), msg.getParameters().getKey()); NodeLookupMessage lkpMsg = new NodeLookupMessage(msg.getOrigin(), msg.getParameters().getKey());
new NodeLookupReceiver(server, localNode, this.config).receive(lkpMsg, comm); new NodeLookupReceiver(server, localNode, this.config).receive(lkpMsg, comm);
} }

View File

@ -14,12 +14,12 @@ public class SimpleReceiver implements Receiver
@Override @Override
public void receive(Message incoming, int conversationId) public void receive(Message incoming, int conversationId)
{ {
System.out.println("Received message: " + incoming);
} }
@Override @Override
public void timeout(int conversationId) throws IOException public void timeout(int conversationId) throws IOException
{ {
System.out.println("SimpleReceiver message timeout.");
} }
} }

View File

@ -245,7 +245,6 @@ public class ContentLookupOperation implements Operation, Receiver
/* Get the Content and check if it satisfies the required parameters */ /* Get the Content and check if it satisfies the required parameters */
StorageEntry content = msg.getContent(); StorageEntry content = msg.getContent();
System.out.println("Content Received: " + content);
this.contentFound = content; this.contentFound = content;
this.isContentFound = true; this.isContentFound = true;
} }

View File

@ -261,8 +261,6 @@ public class RoutingTable implements KadRoutingTable
{ {
int bucketId = this.getBucketId(n.getNodeId()); int bucketId = this.getBucketId(n.getNodeId());
//System.out.println(this.localNode + " Removing unresponsive node " + n);
/* Remove the contact from the bucket */ /* Remove the contact from the bucket */
this.buckets[bucketId].removeNode(n); this.buckets[bucketId].removeNode(n);
} }