Moved the receiver interface to the message/receiver package

This commit is contained in:
Joshua Kissoon 2014-04-19 20:11:10 +05:30
parent 6503c79681
commit 6978a8023b
11 changed files with 5 additions and 9 deletions

View File

@ -16,7 +16,7 @@ import java.util.TimerTask;
import kademlia.message.Message;
import kademlia.message.MessageFactory;
import kademlia.node.Node;
import kademlia.operation.Receiver;
import kademlia.message.Receiver;
/**
* The server that handles sending and receiving messages between nodes on the Kad Network

View File

@ -3,7 +3,6 @@ package kademlia.message;
import java.io.IOException;
import kademlia.core.KadServer;
import kademlia.node.Node;
import kademlia.operation.Receiver;
/**
* Receives a ConnectMessage and sends an AcknowledgeMessage as reply.

View File

@ -5,7 +5,6 @@ import kademlia.core.KadConfiguration;
import kademlia.core.KadServer;
import kademlia.dht.DHT;
import kademlia.node.Node;
import kademlia.operation.Receiver;
/**
* Responds to a ContentLookupMessage by sending a ContentMessage containing the requested content;

View File

@ -6,7 +6,6 @@ import kademlia.core.KadConfiguration;
import kademlia.core.KadServer;
import kademlia.dht.DHT;
import kademlia.node.Node;
import kademlia.operation.Receiver;
/**
* Handles creating messages and receivers

View File

@ -5,7 +5,6 @@ import java.util.List;
import kademlia.core.KadConfiguration;
import kademlia.core.KadServer;
import kademlia.node.Node;
import kademlia.operation.Receiver;
/**
* Receives a NodeLookupMessage and sends a NodeReplyMessage as reply with the K-Closest nodes to the ID sent.

View File

@ -1,7 +1,6 @@
package kademlia.operation;
package kademlia.message;
import java.io.IOException;
import kademlia.message.Message;
/**
* A receiver waits for incoming messages and perform some action when the message is received

View File

@ -1,7 +1,6 @@
package kademlia.message;
import java.io.IOException;
import kademlia.operation.Receiver;
/**
* Default receiver if none other is called

View File

@ -4,7 +4,6 @@ import java.io.IOException;
import kademlia.core.KadServer;
import kademlia.dht.DHT;
import kademlia.node.Node;
import kademlia.operation.Receiver;
/**
* Receiver for incoming StoreContentMessage

View File

@ -5,6 +5,7 @@
*/
package kademlia.operation;
import kademlia.message.Receiver;
import java.io.IOException;
import kademlia.core.KadConfiguration;
import kademlia.core.KadServer;

View File

@ -1,5 +1,6 @@
package kademlia.operation;
import kademlia.message.Receiver;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;

View File

@ -1,5 +1,6 @@
package kademlia.operation;
import kademlia.message.Receiver;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Comparator;