Commit 9860ac41 authored by mohammad.salama's avatar mohammad.salama

All Working - No Web Interface - printing files number

parent 885c047e
......@@ -11,8 +11,10 @@
<component name="ChangeListManager">
<list default="true" id="b8bcd35c-99f3-44c8-a866-59f81c3c8bd0" name="Changes" comment="Working as Strings, no json, problem in coordinator address">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/SearchFiles/f (1).txt" beforeDir="false" afterPath="$PROJECT_DIR$/SearchFiles/f (1).txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/logs/app.log" beforeDir="false" afterPath="$PROJECT_DIR$/logs/app.log" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/WebSide/WebServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/WebSide/WebServer.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/org/AutoHealerAndClusterSearch/AutoHealerAndClusterSearch/TransientWorker.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/org/AutoHealerAndClusterSearch/AutoHealerAndClusterSearch/TransientWorker.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/target/classes/org/AutoHealerAndClusterSearch/AutoHealerAndClusterSearch/TransientWorker.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/org/AutoHealerAndClusterSearch/AutoHealerAndClusterSearch/TransientWorker.class" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......@@ -105,6 +107,13 @@
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="Node4" type="Application" factoryName="Application">
<option name="MAIN_CLASS_NAME" value="org.AutoHealerAndClusterSearch.AutoHealerAndClusterSearch.Application" />
<module name="Distributed-Search" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="WebClient" type="Application" factoryName="Application">
<option name="MAIN_CLASS_NAME" value="WebSide.ClientApplication" />
<module name="Distributed-Search" />
......@@ -127,6 +136,7 @@
<item itemvalue="Application.WebServer" />
<item itemvalue="Application.WebClient" />
<item itemvalue="Application.Node1" />
<item itemvalue="Application.Node4" />
<item itemvalue="Application.Node2" />
<item itemvalue="Application.Node3" />
<item itemvalue="JAR Application.Distributed-Search.jar" />
......@@ -169,21 +179,11 @@
<component name="XDebuggerManager">
<breakpoint-manager>
<breakpoints>
<line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/src/main/java/WebSide/WebServer.java</url>
<line>85</line>
<option name="timeStamp" value="22" />
</line-breakpoint>
<line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/src/main/java/GRPCConnection/GRPCClient/GRPCClient.java</url>
<line>37</line>
<option name="timeStamp" value="24" />
</line-breakpoint>
<line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/src/main/java/org/AutoHealerAndClusterSearch/AutoHealerAndClusterSearch/TransientWorker.java</url>
<line>120</line>
<option name="timeStamp" value="25" />
</line-breakpoint>
</breakpoints>
</breakpoint-manager>
</component>
......
This diff is collapsed.
......@@ -89,7 +89,10 @@ public class WebServer
{
files.add("Some Thing Went Wrong !!");
}
if (files.size() == 0)
{
files.add("NO MATCH FOUND");
}
sendResponse(files, exchange);
}
......
......@@ -128,6 +128,8 @@ public class TransientWorker
}
int startIndex = Math.min(filesOffset, fileNames.size());
int endIndex = Math.min(filesOffset + numberOfFilesToScan, fileNames.size());
System.out.println("My Share of Files : " + (endIndex-startIndex));
return fileNames.subList(startIndex, endIndex);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment