Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
D
Distributes-Search
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mohammad.salama
Distributes-Search
Commits
9860ac41
Commit
9860ac41
authored
Feb 01, 2024
by
mohammad.salama
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All Working - No Web Interface - printing files number
parent
885c047e
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
98 additions
and
12 deletions
+98
-12
workspace.xml
.idea/workspace.xml
+11
-11
app.log
logs/app.log
+81
-0
WebServer.java
src/main/java/WebSide/WebServer.java
+4
-1
TransientWorker.java
...terSearch/AutoHealerAndClusterSearch/TransientWorker.java
+2
-0
TransientWorker.class
...erSearch/AutoHealerAndClusterSearch/TransientWorker.class
+0
-0
No files found.
.idea/workspace.xml
View file @
9860ac41
...
@@ -11,8 +11,10 @@
...
@@ -11,8 +11,10 @@
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"b8bcd35c-99f3-44c8-a866-59f81c3c8bd0"
name=
"Changes"
comment=
"Working as Strings, no json, problem in coordinator address"
>
<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$/.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$/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>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
@@ -105,6 +107,13 @@
...
@@ -105,6 +107,13 @@
<option
name=
"Make"
enabled=
"true"
/>
<option
name=
"Make"
enabled=
"true"
/>
</method>
</method>
</configuration>
</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"
>
<configuration
name=
"WebClient"
type=
"Application"
factoryName=
"Application"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"WebSide.ClientApplication"
/>
<option
name=
"MAIN_CLASS_NAME"
value=
"WebSide.ClientApplication"
/>
<module
name=
"Distributed-Search"
/>
<module
name=
"Distributed-Search"
/>
...
@@ -127,6 +136,7 @@
...
@@ -127,6 +136,7 @@
<item
itemvalue=
"Application.WebServer"
/>
<item
itemvalue=
"Application.WebServer"
/>
<item
itemvalue=
"Application.WebClient"
/>
<item
itemvalue=
"Application.WebClient"
/>
<item
itemvalue=
"Application.Node1"
/>
<item
itemvalue=
"Application.Node1"
/>
<item
itemvalue=
"Application.Node4"
/>
<item
itemvalue=
"Application.Node2"
/>
<item
itemvalue=
"Application.Node2"
/>
<item
itemvalue=
"Application.Node3"
/>
<item
itemvalue=
"Application.Node3"
/>
<item
itemvalue=
"JAR Application.Distributed-Search.jar"
/>
<item
itemvalue=
"JAR Application.Distributed-Search.jar"
/>
...
@@ -169,21 +179,11 @@
...
@@ -169,21 +179,11 @@
<component
name=
"XDebuggerManager"
>
<component
name=
"XDebuggerManager"
>
<breakpoint-manager>
<breakpoint-manager>
<breakpoints>
<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"
>
<line-breakpoint
enabled=
"true"
type=
"java-line"
>
<url>
file://$PROJECT_DIR$/src/main/java/GRPCConnection/GRPCClient/GRPCClient.java
</url>
<url>
file://$PROJECT_DIR$/src/main/java/GRPCConnection/GRPCClient/GRPCClient.java
</url>
<line>
37
</line>
<line>
37
</line>
<option
name=
"timeStamp"
value=
"24"
/>
<option
name=
"timeStamp"
value=
"24"
/>
</line-breakpoint>
</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>
</breakpoints>
</breakpoint-manager>
</breakpoint-manager>
</component>
</component>
...
...
logs/app.log
View file @
9860ac41
This diff is collapsed.
Click to expand it.
src/main/java/WebSide/WebServer.java
View file @
9860ac41
...
@@ -89,7 +89,10 @@ public class WebServer
...
@@ -89,7 +89,10 @@ public class WebServer
{
{
files
.
add
(
"Some Thing Went Wrong !!"
);
files
.
add
(
"Some Thing Went Wrong !!"
);
}
}
if
(
files
.
size
()
==
0
)
{
files
.
add
(
"NO MATCH FOUND"
);
}
sendResponse
(
files
,
exchange
);
sendResponse
(
files
,
exchange
);
}
}
...
...
src/main/java/org/AutoHealerAndClusterSearch/AutoHealerAndClusterSearch/TransientWorker.java
View file @
9860ac41
...
@@ -128,6 +128,8 @@ public class TransientWorker
...
@@ -128,6 +128,8 @@ public class TransientWorker
}
}
int
startIndex
=
Math
.
min
(
filesOffset
,
fileNames
.
size
());
int
startIndex
=
Math
.
min
(
filesOffset
,
fileNames
.
size
());
int
endIndex
=
Math
.
min
(
filesOffset
+
numberOfFilesToScan
,
fileNames
.
size
());
int
endIndex
=
Math
.
min
(
filesOffset
+
numberOfFilesToScan
,
fileNames
.
size
());
System
.
out
.
println
(
"My Share of Files : "
+
(
endIndex
-
startIndex
));
return
fileNames
.
subList
(
startIndex
,
endIndex
);
return
fileNames
.
subList
(
startIndex
,
endIndex
);
}
}
...
...
target/classes/org/AutoHealerAndClusterSearch/AutoHealerAndClusterSearch/TransientWorker.class
View file @
9860ac41
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment