Skip to content
Snippets Groups Projects
Commit 14269f01 authored by tmp1u19's avatar tmp1u19 :octopus:
Browse files

Add some new stuff to the rebalancing operation.

parent 50849405
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ public class ClientMain {
if (!uploadFolder.exists())
throw new RuntimeException("to_store folder does not exist");
// testClient(cport, timeout, downloadFolder);
testClient(cport, timeout, downloadFolder);
// example to launch a number of concurrent clients, each doing the same operations
for (int i = 0; i < 10; i++) {
......
......@@ -184,8 +184,6 @@ public class Dstore {
PrintWriter res = new PrintWriter(new OutputStreamWriter(out));
String line;
System.out.println("Entered controller req");
while((line = req.readLine()) != null) {
String[] tokens = line.split(" ");
String command = tokens[0];
......
......@@ -193,6 +193,7 @@ public class Server {
res.println("ERROR_FILE_DOES_NOT_EXIST");
} else {
// select a Dstore from there and give an appropriate error if all Dstores fail
// #TODO fix NullPointerException from here
res.println("LOAD_FROM " + fileSystem.getStore().get(filename).get(pos).getPublicPort() +
" " + fileSystem.getFileSizes().get(filename));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment