-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b18e56
commit a6c28c4
Showing
3 changed files
with
19 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
import java.io.File; | ||
import java.util.Map; | ||
import java.util.Scanner; | ||
import java.util.concurrent.ConcurrentHashMap; | ||
import ly.count.sdk.java.Config; | ||
import ly.count.sdk.java.Countly; | ||
import ly.count.sdk.java.internal.Device; | ||
|
@@ -49,7 +50,7 @@ static void performLargeRequestQueueSizeTest() { | |
DemoUtils.printf("Adding %d requests(events) into request Queue%n", batchSize); | ||
for (int i = 1; i < batchSize; ++i) { | ||
|
||
Map<String, Object> segment = DemoUtils.map(); | ||
Map<String, Object> segment = new ConcurrentHashMap<>(); | ||
segment.put("Time Spent", 60); | ||
segment.put("Retry Attempts", 60); | ||
|
||
|
@@ -59,10 +60,10 @@ static void performLargeRequestQueueSizeTest() { | |
DemoUtils.printf("Adding %d requests(crash) into request Queue%n", batchSize); | ||
for (int i = 1; i < batchSize; ++i) { | ||
|
||
Map<String, Object> segmentation = DemoUtils.map(); | ||
Map<String, Object> segmentation = new ConcurrentHashMap<>(); | ||
segmentation.put("signup page", "authenticate request"); | ||
|
||
Map<String, String> crashDetails = DemoUtils.mapS(); | ||
Map<String, String> crashDetails = new ConcurrentHashMap<>(); | ||
crashDetails.put("_os", "Windows 8"); | ||
crashDetails.put("_os_version", "8.202"); | ||
crashDetails.put("_logs", "main page"); | ||
|
@@ -74,7 +75,7 @@ static void performLargeRequestQueueSizeTest() { | |
for (int i = 1; i < batchSize; ++i) { | ||
|
||
// User detail | ||
Map<String, Object> userDetail = DemoUtils.map(); | ||
Map<String, Object> userDetail = new ConcurrentHashMap<>(); | ||
userDetail.put("name", "Full Name"); | ||
userDetail.put("username", "username1"); | ||
userDetail.put("email", "[email protected]"); | ||
|
@@ -93,12 +94,12 @@ static void performLargeRequestQueueSizeTest() { | |
|
||
DemoUtils.printf("Adding %d requests(sessions) into request Queue%n", batchSize); | ||
for (int i = 1; i < batchSize; ++i) { | ||
Map<String, String> metrics = DemoUtils.mapS(); | ||
Map<String, String> metrics = new ConcurrentHashMap<>(); | ||
metrics.put("_os", "MacOs"); | ||
metrics.put("_os_version", "13"); | ||
metrics.put("_app_version", "1.3"); | ||
|
||
Map<String, String> location = DemoUtils.mapS(); | ||
Map<String, String> location = new ConcurrentHashMap<>(); | ||
location.put("ip_address", "IP_ADDR"); | ||
location.put("city", "Lahore"); | ||
location.put("country_code", "PK"); | ||
|
@@ -123,7 +124,7 @@ static void performLargeEventQueueTest() { | |
DemoUtils.printf("Adding %d events into event Queue against deviceID = %s%n", 1_000_00, "device-id-" + d); | ||
for (int i = 1; i <= noOfEvents; ++i) { | ||
|
||
Map<String, Object> segment = DemoUtils.map(); | ||
Map<String, Object> segment = new ConcurrentHashMap<>(); | ||
segment.put("Time Spent", 60); | ||
segment.put("Retry Attempts", 60); | ||
|
||
|
@@ -150,7 +151,7 @@ static void recordBulkDataAndSendToServer() throws InterruptedException { | |
Thread.sleep(secondsToSleep * 1000); | ||
} else { | ||
if (remaining > 0) { | ||
Map<String, Object> segment = DemoUtils.map(); | ||
Map<String, Object> segment = new ConcurrentHashMap<>(); | ||
segment.put("Time Spent", 60); | ||
segment.put("Retry Attempts", 60); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters