Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 111 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# MIT License
# Copyright(c) 2020 Futurewei Cloud
#
# Permission is hereby granted,
# free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/
target/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# IntelliJ project config
*.iml

# Vpcmanager files
vpcmanager/target/
lib/target/

### Logs ###
*.log
*.gz

# Ignite
ignite/

# mac system file
.DS_Store

# vs code files
*.classpath
*.project
*.prefs
*.factorypath

# python cache
__pycache__/


# vim swap files
*.swp
82 changes: 82 additions & 0 deletions ignitewatch_test/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
ignitepopstr contains the test harness to populate a cache.

ignitewatchstr contains the test harness to use Ignite Watch feature.

ignitewatchstr should be started first and one it is ready, start ignitepopstr.

Run ignitepopstr with the following script:
=== CUT ===
user@master-node:~$ cat bin/run-ignitepopstr.sh
#! /bin/sh

if [ $# -lt 1 ]; then
echo "Need numrec [ignite address]"
exit 1
fi

NUMREC=$1

if [ -n "$2" ]; then
IP="$2"
else
IP=127.0.0.1
fi

mvn exec:java -D exec:java -D exec.mainClass=com.futurewei.work.ignitepopstr.IgnitePopStr -Dexec.args="$NUMREC $IP"
=== CUT ===


Run ignitewatchstr with the following script:
=== CUT ===
user@master-node:~$ cat bin/run-ignitewatchstr.sh
#! /bin/sh

Usage="[-r] [-v] [-t] -q num_queries [-w num_workers] [-s serverIp]"

DELDB=
VERBOSE=
TXN=
NUMQRY=0
NUMWRK=1
SRV=127.0.0.1

while [ -n "$1" ]; do
case $1 in
-r) DELDB="-r"
shift
;;
-v) VERBOSE="-v"
shift
;;
-q)
shift
NUMQRY=$1
shift
;;
-w)
shift
NUMWRK=$1
shift
;;
-s)
shift
SRV=$1
shift
;;

-t)
TXN="-t"
shift
;;
esac
done

if [ $NUMQRY -eq 0 ]; then
echo "Usage: `basename $0` $Usage"
exit 1
fi

mvn exec:java -D exec:java -D exec.mainClass=com.futurewei.work.ignitewatchstr.IgniteWatchStr -Dexec.args="$DELDB $VERBOSE $TXN -q $NUMQRY -w $NUMWRK -s $SRV"
=== CUT ===


Loading