Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hpdos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SYNERG
hpdos
Commits
9aa32a56
Commit
9aa32a56
authored
Apr 21, 2021
by
NILANJAN DAW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Async mode StorageService made cache flag aware. Async Storage no more sharing stubs.
parent
d7f831b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
code/hpdos_client/app/src/main/java/HpdosClient/ClientRunner.java
...os_client/app/src/main/java/HpdosClient/ClientRunner.java
+5
-2
No files found.
code/hpdos_client/app/src/main/java/HpdosClient/ClientRunner.java
View file @
9aa32a56
...
...
@@ -47,6 +47,8 @@ public class ClientRunner {
private
int
threadCount
;
private
int
rps
;
AtomicDouble
openCount
;
private
boolean
cacheEnabled
;
public
ClientRunner
()
{
clientID
=
UUID
.
randomUUID
().
toString
();
generatedPacket
=
Collections
.
synchronizedList
(
new
ArrayList
<>());
...
...
@@ -60,6 +62,7 @@ public class ClientRunner {
this
.
rps
=
Integer
.
parseInt
((
String
)
properties
.
get
(
"app.rps"
));
this
.
threadCount
=
Integer
.
parseInt
((
String
)
properties
.
get
(
"app.thread_count"
));
runtime
=
Integer
.
parseInt
((
String
)
properties
.
get
(
"app.runtime"
));
this
.
cacheEnabled
=
properties
.
get
(
"app.cache"
).
equals
(
"1"
);
this
.
cCreate
=
Integer
.
parseInt
((
String
)
properties
.
get
(
"app.cycle_create"
));
this
.
cRead
=
Integer
.
parseInt
((
String
)
properties
.
get
(
"app.cycle_read"
));
...
...
@@ -144,7 +147,7 @@ public class ClientRunner {
public
double
runExperimentByRps
(
String
threadId
)
throws
InterruptedException
,
ExecutionException
{
String
value
=
createString
(),
updatedValue
=
createString
();
StorageService
storageService
=
new
StorageService
(
clientID
);
StorageService
storageService
=
new
StorageService
(
clientID
,
this
.
cacheEnabled
);
storageService
.
initStorage
();
this
.
seedServer
(
storageService
,
value
,
threadId
);
...
...
@@ -342,7 +345,7 @@ public class ClientRunner {
propertiesFile
=
args
[
0
];
ClientRunner
clientRunner
=
new
ClientRunner
();
System
.
out
.
println
(
clientRunner
.
getGreeting
());
StorageService
storageService
=
new
StorageService
(
clientRunner
.
clientID
);
StorageService
storageService
=
new
StorageService
(
clientRunner
.
clientID
,
clientRunner
.
cacheEnabled
);
storageService
.
initStorage
();
System
.
out
.
println
(
"storage initialised"
);
clientRunner
.
seedServer
(
storageService
,
clientRunner
.
createString
());
...
...
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