├── docs
├── api
│ ├── doclet
│ │ └── package-list
│ ├── cppcache
│ │ ├── gemFireCPPLogo.png
│ │ └── footer.html
│ ├── clicache
│ │ ├── gemFireDotNETLogo.png
│ │ └── footer.html
│ ├── native_delta_propagation.doc
│ ├── native_delta_propagation_doc.pdf
│ ├── log4j
│ │ └── package-list
│ └── c-footer.html
├── geode-native-book-cpp
│ ├── .gitignore
│ ├── master_middleman
│ │ └── source
│ │ │ ├── images
│ │ │ ├── favicon.ico
│ │ │ ├── Apache_Geode_logo_symbol.png
│ │ │ └── Apache_Geode_logo_symbol_white.png
│ │ │ ├── stylesheets
│ │ │ ├── partials
│ │ │ │ ├── _book-base-values.scss
│ │ │ │ └── _book-vars.scss
│ │ │ └── book-styles.scss
│ │ │ ├── layouts
│ │ │ ├── _title.erb
│ │ │ ├── _book-footer.erb
│ │ │ └── _local-header.erb
│ │ │ └── archive_menus
│ │ │ └── _default.erb
│ └── Gemfile
├── geode-native-book-dotnet
│ ├── .gitignore
│ ├── master_middleman
│ │ └── source
│ │ │ ├── images
│ │ │ ├── favicon.ico
│ │ │ ├── Apache_Geode_logo_symbol.png
│ │ │ └── Apache_Geode_logo_symbol_white.png
│ │ │ ├── stylesheets
│ │ │ ├── partials
│ │ │ │ ├── _book-base-values.scss
│ │ │ │ └── _book-vars.scss
│ │ │ └── book-styles.scss
│ │ │ ├── layouts
│ │ │ ├── _title.erb
│ │ │ ├── _book-footer.erb
│ │ │ └── _local-header.erb
│ │ │ └── archive_menus
│ │ │ └── _default.erb
│ └── Gemfile
├── geode-native-docs-cpp
│ └── images
│ │ ├── client-server-arch.gif
│ │ └── 7-Preserving_Data-2.gif
└── geode-native-docs-dotnet
│ ├── images
│ ├── client-server-arch.gif
│ └── 7-Preserving_Data-2.gif
│ └── preserving-data
│ └── initial-operation.html.md.erb
├── tests
├── cpp
│ ├── .clang-tidy
│ └── CMakeLists.txt
├── cli
│ ├── .clang-format
│ ├── FwkClient
│ │ └── App.config
│ ├── DUnitFramework
│ │ └── packages.config
│ ├── PdxClassLibrary
│ │ └── Person.cs
│ └── CMakeLists.txt
├── javaobject
│ ├── PdxTests
│ │ └── pdxEnumTest.java
│ └── NoopPrincipal.java
└── CMakeLists.txt
├── .lcovrc
├── ssl_keys
├── server_keys
│ ├── server_keystore.jks
│ ├── server_truststore.jks
│ ├── server_keystore_chained.jks
│ ├── server_keystore_chained.p12
│ ├── untrusted_server_keystore.jks
│ ├── untrusted_server_truststore.jks
│ └── server_truststore_chained_root.jks
└── client_keys
│ ├── client_truststore.pem
│ └── client_truststore_corrupt.pem
├── sni-test-config
├── geode-config
│ ├── truststore.jks
│ ├── truststore.p12
│ ├── locator-maeve-keystore.jks
│ ├── server-dolores-keystore.jks
│ ├── server-clementine-keystore.jks
│ ├── gemfire.properties
│ └── gfsecurity.properties
└── scripts
│ └── forever
├── cppcache
├── integration-test
│ ├── keystore
│ │ ├── publickeyfile
│ │ ├── geode1.keystore
│ │ ├── geode11.keystore
│ │ └── geode2.keystore
│ ├── .clang-tidy
│ ├── CTestCustom.cmake.in
│ ├── testThinClientMultipleCaches.cpp
│ ├── testThinClientCallbackArg.cpp
│ ├── testThinClientDistOpsSticky.cpp
│ ├── testThinClientPutGetAll.cpp
│ ├── testThinClientDistOpsNotSticky.cpp
│ ├── testThinClientFailover2.cpp
│ ├── testThinClientGatewayTest.cpp
│ ├── testThinClientFailoverRegex.cpp
│ ├── testThinClientTransactionsXA.cpp
│ ├── testThinClientDistOpsUpdateLocatorList.cpp
│ ├── testThinClientLocalCacheLoader.cpp
│ ├── testThinClientNotification.cpp
│ ├── testThinClientDurableConnect.cpp
│ ├── testThinClientFailoverInterest.cpp
│ ├── testThinClientDistOpsDontUpdateLocatorList.cpp
│ ├── testThinClientDurableReconnect.cpp
│ ├── testThinClientFailoverInterest2.cpp
│ ├── testThinClientFailover.cpp
│ ├── testThinClientDurableFailoverClientClosedRedundancy.cpp
│ ├── testThinClientDurableFailoverClientClosedNoRedundancy.cpp
│ ├── testThinClientDurableFailoverClientNotClosedRedundancy.cpp
│ ├── testThinClientTXFailover.cpp
│ ├── InitSmartHeap.cpp
│ ├── testThinClientRemoveAllLocal.cpp
│ ├── testThinClientPutAll.cpp
│ ├── testFWHelper.cpp
│ ├── resources
│ │ ├── cache.xml
│ │ └── bad_schema.xml
│ ├── testThinClientInterest3Cacheless.cpp
│ ├── testThinClientRemoveAllSequence.cpp
│ ├── testThinClientInterest3.cpp
│ ├── ClientCleanup.hpp
│ ├── testThinClientInterest1.cpp
│ └── testThinClientInterest2Pooled.cpp
├── benchmark
│ ├── main.cpp
│ └── NoopBM.cpp
├── integration
│ ├── benchmark
│ │ ├── main.cpp
│ │ └── CMakeLists.txt
│ ├── CMakeLists.txt
│ ├── test
│ │ ├── gmock_actions.hpp
│ │ └── utility
│ │ │ └── make_unique.hpp
│ └── framework
│ │ └── TestConfig.h
├── internal
│ └── CMakeLists.txt
├── README.md
├── src
│ ├── PersistenceManager.cpp
│ ├── CacheLoader.cpp
│ ├── GeodeCache.cpp
│ ├── RegionService.cpp
│ ├── UserFunctionExecutionException.cpp
│ ├── statistics
│ │ └── ProcessStats.cpp
│ ├── ConnectCounter.cpp
│ ├── CqStatusListener.cpp
│ ├── PdxSerializer.cpp
│ ├── CacheTransactionManager.cpp
│ ├── CacheableUndefined.cpp
│ ├── version.h.in
│ ├── AppDomainContext.cpp
│ ├── EntriesMap.cpp
│ ├── FunctionMacros.hpp
│ ├── CqListener.cpp
│ ├── geodeBanner.hpp
│ ├── TSSTXStateWrapper.cpp
│ ├── Region.cpp
│ ├── DiskStoreId.cpp
│ ├── util
│ │ ├── bounds.hpp
│ │ └── concurrent
│ │ │ └── spinlock_mutex.cpp
│ └── PartitionResolver.cpp
├── test
│ ├── gmock_extensions.h
│ ├── geodeBannerTest.cpp
│ ├── PartitionTest.cpp
│ ├── GatewaySenderEventCallbackArgumentTest.cpp
│ └── util
│ │ └── queueTest.cpp
└── include
│ └── geode
│ └── HashMapOfPools.hpp
├── clicache
├── .clang-format
├── test2
│ └── xunit.runner.json
├── acceptance-test
│ └── xunit.runner.json
├── integration-test2
│ ├── xunit.runner.json
│ └── Command.cs
├── src
│ ├── impl
│ │ ├── RegionImpl.cpp
│ │ ├── AppDomainContext.cpp
│ │ └── RegionImpl.hpp
│ ├── geode_includes.cpp
│ └── end_native.hpp
├── integration-test
│ ├── geode.properties.mixed
│ ├── geode.properties.nativeclient
│ ├── packages.config
│ └── cache.xml
├── test
│ ├── packages.config
│ └── Utils.hpp
└── CMakeLists.txt
├── packer
├── default.json
├── rhel
│ ├── 7
│ │ └── install-devtoolset.sh
│ ├── aws
│ │ ├── files
│ │ │ └── etc
│ │ │ │ └── cloud
│ │ │ │ └── cloud.cfg.d
│ │ │ │ └── 10_hosts.cfg
│ │ ├── setup-files.sh
│ │ └── add-user-build.sh
│ ├── cleanup.sh
│ ├── init-hosts.rc.local
│ └── install-jdk-11.sh
├── ubuntu
│ ├── cleanup.sh
│ ├── update.sh
│ ├── aws
│ │ └── add-user-build.sh
│ ├── files
│ │ ├── usr
│ │ │ └── local
│ │ │ │ └── bin
│ │ │ │ └── update-hosts.sh
│ │ └── etc
│ │ │ └── systemd
│ │ │ └── system
│ │ │ └── update-hosts.service
│ └── install-jdk-11.sh
├── linux
│ ├── aws
│ │ ├── setup-files.sh
│ │ └── wait-for-cloud-init.sh
│ ├── files
│ │ ├── usr
│ │ │ └── local
│ │ │ │ └── bin
│ │ │ │ └── update-hosts.sh
│ │ └── etc
│ │ │ └── systemd
│ │ │ └── system
│ │ │ └── update-hosts.service
│ ├── install-dotnet.sh
│ ├── setup-files.sh
│ └── install-cmake.sh
└── windows
│ ├── install-chocolatey.ps1
│ ├── disable-uac.ps1
│ └── cleanup.ps1
├── NOTICE
├── dist
└── NOTICE
├── docker
├── rhel-7
│ └── bellsoft.repo
├── rhel-8
│ └── bellsoft.repo
├── centos-7
│ └── bellsoft.repo
├── centos-8
│ └── bellsoft.repo
└── windows
│ └── README.md
├── .cpackignore
├── .gitignore
├── .ratignore
├── dependencies
├── benchmark
│ └── patches
├── doxygen
│ └── CMakeLists.txt
└── CMakeLists.txt
├── .clang-tidy
├── tools
└── gnmsg
│ ├── README.md
│ ├── interest_policy.py
│ ├── interest_type.py
│ ├── gnmsg_globals.py
│ ├── decoder_base.py
│ ├── handshake_acceptance_codes.py
│ └── connection_types.py
├── templates
└── CMakeLists.txt
├── .lgtm.yml
├── ci
├── docker
│ └── task
│ │ └── Dockerfile
├── pr
│ └── data.yml
└── release
│ └── data.yml
├── examples
├── CMakeLists.txt.in
├── cpp
│ ├── pdxserializer
│ │ └── Order.cpp
│ ├── sslputget
│ │ └── CMakeLists.txt
│ ├── transaction
│ │ ├── stopserver.ps1
│ │ └── stopserver.sh
│ ├── CMakeLists.txt.in
│ ├── functionexecution
│ │ └── stopserver.sh
│ └── putgetremove
│ │ └── stopserver.sh
└── dotnet
│ └── sslputget
│ └── CMakeLists.txt
└── cmake
├── FindClangFormat.cmake
└── ExecutableExportHeader.cmake
/docs/api/doclet/package-list:
--------------------------------------------------------------------------------
1 | com.sun.javadoc
2 |
--------------------------------------------------------------------------------
/docs/geode-native-book-cpp/.gitignore:
--------------------------------------------------------------------------------
1 | GEmfile.lock
2 | output/
3 | final_app/
4 |
--------------------------------------------------------------------------------
/tests/cpp/.clang-tidy:
--------------------------------------------------------------------------------
1 | ---
2 | InheritParentConfig: true
3 | Checks: ''
4 | ...
5 |
--------------------------------------------------------------------------------
/docs/geode-native-book-dotnet/.gitignore:
--------------------------------------------------------------------------------
1 | GEmfile.lock
2 | output/
3 | final_app/
4 |
--------------------------------------------------------------------------------
/.lcovrc:
--------------------------------------------------------------------------------
1 | # branch coverage generates lots of misses due to emitted exception code.
2 | lcov_branch_coverage=0
3 |
--------------------------------------------------------------------------------
/docs/api/cppcache/gemFireCPPLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/docs/api/cppcache/gemFireCPPLogo.png
--------------------------------------------------------------------------------
/docs/api/clicache/gemFireDotNETLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/docs/api/clicache/gemFireDotNETLogo.png
--------------------------------------------------------------------------------
/docs/api/native_delta_propagation.doc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/docs/api/native_delta_propagation.doc
--------------------------------------------------------------------------------
/docs/api/native_delta_propagation_doc.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/docs/api/native_delta_propagation_doc.pdf
--------------------------------------------------------------------------------
/ssl_keys/server_keys/server_keystore.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/ssl_keys/server_keys/server_keystore.jks
--------------------------------------------------------------------------------
/sni-test-config/geode-config/truststore.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/sni-test-config/geode-config/truststore.jks
--------------------------------------------------------------------------------
/sni-test-config/geode-config/truststore.p12:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/sni-test-config/geode-config/truststore.p12
--------------------------------------------------------------------------------
/ssl_keys/server_keys/server_truststore.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/ssl_keys/server_keys/server_truststore.jks
--------------------------------------------------------------------------------
/cppcache/integration-test/keystore/publickeyfile:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/cppcache/integration-test/keystore/publickeyfile
--------------------------------------------------------------------------------
/ssl_keys/server_keys/server_keystore_chained.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/ssl_keys/server_keys/server_keystore_chained.jks
--------------------------------------------------------------------------------
/ssl_keys/server_keys/server_keystore_chained.p12:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/ssl_keys/server_keys/server_keystore_chained.p12
--------------------------------------------------------------------------------
/cppcache/integration-test/keystore/geode1.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/cppcache/integration-test/keystore/geode1.keystore
--------------------------------------------------------------------------------
/cppcache/integration-test/keystore/geode11.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/cppcache/integration-test/keystore/geode11.keystore
--------------------------------------------------------------------------------
/cppcache/integration-test/keystore/geode2.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/cppcache/integration-test/keystore/geode2.keystore
--------------------------------------------------------------------------------
/ssl_keys/server_keys/untrusted_server_keystore.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/ssl_keys/server_keys/untrusted_server_keystore.jks
--------------------------------------------------------------------------------
/clicache/.clang-format:
--------------------------------------------------------------------------------
1 | # C++/CLI sources not supported in clang-format
2 | ---
3 | Language: Cpp
4 | DisableFormat: true
5 | SortIncludes: false
6 |
--------------------------------------------------------------------------------
/clicache/test2/xunit.runner.json:
--------------------------------------------------------------------------------
1 | {
2 | "methodDisplay": "classAndMethod",
3 | "parallelizeAssembly": true,
4 | "parallelizeTestCollections": true
5 | }
6 |
--------------------------------------------------------------------------------
/ssl_keys/server_keys/untrusted_server_truststore.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/ssl_keys/server_keys/untrusted_server_truststore.jks
--------------------------------------------------------------------------------
/tests/cli/.clang-format:
--------------------------------------------------------------------------------
1 | # C++/CLI sources not supported in clang-format
2 | ---
3 | Language: Cpp
4 | DisableFormat: true
5 | SortIncludes: false
6 |
--------------------------------------------------------------------------------
/docs/geode-native-docs-cpp/images/client-server-arch.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/docs/geode-native-docs-cpp/images/client-server-arch.gif
--------------------------------------------------------------------------------
/sni-test-config/geode-config/locator-maeve-keystore.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/sni-test-config/geode-config/locator-maeve-keystore.jks
--------------------------------------------------------------------------------
/sni-test-config/geode-config/server-dolores-keystore.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/sni-test-config/geode-config/server-dolores-keystore.jks
--------------------------------------------------------------------------------
/ssl_keys/server_keys/server_truststore_chained_root.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/ssl_keys/server_keys/server_truststore_chained_root.jks
--------------------------------------------------------------------------------
/clicache/acceptance-test/xunit.runner.json:
--------------------------------------------------------------------------------
1 | {
2 | "methodDisplay": "classAndMethod",
3 | "parallelizeAssembly": true,
4 | "parallelizeTestCollections": true
5 | }
6 |
--------------------------------------------------------------------------------
/docs/geode-native-docs-cpp/images/7-Preserving_Data-2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/docs/geode-native-docs-cpp/images/7-Preserving_Data-2.gif
--------------------------------------------------------------------------------
/docs/geode-native-docs-dotnet/images/client-server-arch.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/docs/geode-native-docs-dotnet/images/client-server-arch.gif
--------------------------------------------------------------------------------
/sni-test-config/geode-config/server-clementine-keystore.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/sni-test-config/geode-config/server-clementine-keystore.jks
--------------------------------------------------------------------------------
/clicache/integration-test2/xunit.runner.json:
--------------------------------------------------------------------------------
1 | {
2 | "methodDisplay": "classAndMethod",
3 | "parallelizeAssembly": true,
4 | "parallelizeTestCollections": true
5 | }
6 |
--------------------------------------------------------------------------------
/docs/geode-native-docs-dotnet/images/7-Preserving_Data-2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/docs/geode-native-docs-dotnet/images/7-Preserving_Data-2.gif
--------------------------------------------------------------------------------
/packer/default.json:
--------------------------------------------------------------------------------
1 | {
2 | "region": "us-west-2",
3 | "aws_region": "us-west-2",
4 | "googlecompute_project": "apachegeode-ci",
5 | "googlecompute_zone": "us-central1-c"
6 | }
7 |
--------------------------------------------------------------------------------
/docs/geode-native-book-cpp/master_middleman/source/images/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/docs/geode-native-book-cpp/master_middleman/source/images/favicon.ico
--------------------------------------------------------------------------------
/docs/geode-native-book-dotnet/master_middleman/source/images/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/docs/geode-native-book-dotnet/master_middleman/source/images/favicon.ico
--------------------------------------------------------------------------------
/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Geode Native Client
2 | Copyright 2017-2021 The Apache Software Foundation.
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/dist/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Geode Native Client
2 | Copyright 2017-2021 The Apache Software Foundation.
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/docker/rhel-7/bellsoft.repo:
--------------------------------------------------------------------------------
1 | [BellSoft]
2 | name=BellSoft Repository
3 | baseurl=https://yum.bell-sw.com
4 | enabled=1
5 | gpgcheck=1
6 | gpgkey=https://download.bell-sw.com/pki/GPG-KEY-bellsoft
7 | priority=1
8 |
--------------------------------------------------------------------------------
/docker/rhel-8/bellsoft.repo:
--------------------------------------------------------------------------------
1 | [BellSoft]
2 | name=BellSoft Repository
3 | baseurl=https://yum.bell-sw.com
4 | enabled=1
5 | gpgcheck=1
6 | gpgkey=https://download.bell-sw.com/pki/GPG-KEY-bellsoft
7 | priority=1
8 |
--------------------------------------------------------------------------------
/docker/centos-7/bellsoft.repo:
--------------------------------------------------------------------------------
1 | [BellSoft]
2 | name=BellSoft Repository
3 | baseurl=https://yum.bell-sw.com
4 | enabled=1
5 | gpgcheck=1
6 | gpgkey=https://download.bell-sw.com/pki/GPG-KEY-bellsoft
7 | priority=1
8 |
--------------------------------------------------------------------------------
/docker/centos-8/bellsoft.repo:
--------------------------------------------------------------------------------
1 | [BellSoft]
2 | name=BellSoft Repository
3 | baseurl=https://yum.bell-sw.com
4 | enabled=1
5 | gpgcheck=1
6 | gpgkey=https://download.bell-sw.com/pki/GPG-KEY-bellsoft
7 | priority=1
8 |
--------------------------------------------------------------------------------
/docs/geode-native-book-cpp/master_middleman/source/images/Apache_Geode_logo_symbol.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/docs/geode-native-book-cpp/master_middleman/source/images/Apache_Geode_logo_symbol.png
--------------------------------------------------------------------------------
/docs/geode-native-book-dotnet/master_middleman/source/images/Apache_Geode_logo_symbol.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/docs/geode-native-book-dotnet/master_middleman/source/images/Apache_Geode_logo_symbol.png
--------------------------------------------------------------------------------
/cppcache/integration-test/.clang-tidy:
--------------------------------------------------------------------------------
1 | ---
2 | InheritParentConfig: true
3 | Checks: '-google-readability-function-size'
4 | ...
5 |
6 | # google-readability-function-size
7 | # Some tests have large bodies that cause this rule to fail.
8 |
--------------------------------------------------------------------------------
/docs/geode-native-book-cpp/master_middleman/source/images/Apache_Geode_logo_symbol_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/docs/geode-native-book-cpp/master_middleman/source/images/Apache_Geode_logo_symbol_white.png
--------------------------------------------------------------------------------
/docs/geode-native-book-dotnet/master_middleman/source/images/Apache_Geode_logo_symbol_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/geode-native/HEAD/docs/geode-native-book-dotnet/master_middleman/source/images/Apache_Geode_logo_symbol_white.png
--------------------------------------------------------------------------------
/.cpackignore:
--------------------------------------------------------------------------------
1 | /\\.git/
2 | /\\.DS_Store
3 |
4 | /build-.*/
5 |
6 | /build/
7 | /\\.settings/
8 | /\\.cproject
9 | /\\.project
10 | /\\.idea/
11 | \\.vs/
12 | \\.vscode/
13 |
14 | /examples/dotnet/.*/bin/
15 | /examples/dotnet/.*/obj/
16 | \\.ruby-version
17 |
18 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /build-*/
2 |
3 | /cmake-build-*/
4 | /build/
5 | /.settings/
6 | /.cproject
7 | /.project
8 | /.idea/
9 | .vs/
10 | .vscode/
11 |
12 | /examples/dotnet/*/bin/
13 | /examples/dotnet/*/obj/
14 | .ruby-version
15 |
16 | .DS_Store
17 | .history/
18 |
19 | /tools/gnmsg/.idea/
20 | /tools/gnmsg/__pycache__/
21 |
--------------------------------------------------------------------------------
/docs/api/log4j/package-list:
--------------------------------------------------------------------------------
1 | org.apache.log4j
2 | org.apache.log4j.chainsaw
3 | org.apache.log4j.config
4 | org.apache.log4j.helpers
5 | org.apache.log4j.jdbc
6 | org.apache.log4j.jmx
7 | org.apache.log4j.lf5
8 | org.apache.log4j.net
9 | org.apache.log4j.nt
10 | org.apache.log4j.or
11 | org.apache.log4j.or.jms
12 | org.apache.log4j.or.sax
13 | org.apache.log4j.performance
14 | org.apache.log4j.spi
15 | org.apache.log4j.varia
16 | org.apache.log4j.xml
17 | org.apache.log4j.xml.examples
18 |
--------------------------------------------------------------------------------
/.ratignore:
--------------------------------------------------------------------------------
1 | # rat -E only matches filename components
2 | # All matches are anchored automatically to who string
3 |
4 | # /
5 | \.clang-format
6 | \.clang-tidy
7 | \.gitignore
8 | \.ratignore
9 | \.lgtm.yml
10 | \.lcovrc
11 | \.cpackignore
12 |
13 | # dependencies/*/
14 | patches
15 |
16 | # packer/*/
17 | .*\.cloud-init
18 | .*\.json
19 |
20 | # docs/
21 | Gemfile.lock
22 | package-list
23 | .*\.md
24 | .*\.md.erb
25 |
26 | # docker/
27 | bellsoft.repo
28 |
29 | # well known build directories
30 | build
31 | cmake-build-.*
32 |
--------------------------------------------------------------------------------
/dependencies/benchmark/patches:
--------------------------------------------------------------------------------
1 | diff -ru a/CMakeLists.txt b/CMakeLists.txt
2 | --- a/CMakeLists.txt Tue Apr 3 22:12:47 2018
3 | +++ b/CMakeLists.txt Sun May 6 00:15:34 2018
4 | @@ -120,6 +120,8 @@
5 | set(CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL "${CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL} /LTCG")
6 | set(CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "${CMAKE_EXE_LINKER_FLAGS_MINSIZEREL} /LTCG")
7 | endif()
8 | +elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "SunPro")
9 | + add_cxx_compiler_flag(-std=c++11)
10 | else()
11 | # Try and enable C++11. Don't use C++14 because it doesn't work in some
12 | # configurations.
13 |
--------------------------------------------------------------------------------
/.clang-tidy:
--------------------------------------------------------------------------------
1 | ---
2 | Checks: '-*,clang-diagnostic-*,clang-analyzer-*,-clang-analyzer-alpha*,google-*,-google-readability-todo,-google-runtime-references,-google-default-arguments'
3 | WarningsAsErrors: '*'
4 | HeaderFilterRegex: '.*'
5 | FormatStyle: file
6 | ...
7 |
8 | # Disable Checks
9 | # google-runtime-references - We have diverged from this rule due to both legacy and disagreement with the rule.
10 | # google-readability-todo - Adds current user name when fix applied.
11 |
12 | # TODO - Fix these checks
13 | # google-default-arguments
14 | # clang-analyzer-core.uninitialized.UndefReturn - Generates errors in ACE, how do we ignore?
15 | # clang-analyzer-core.UndefinedBinaryOperatorResult - Generates errors in ACE, how do we ignore?
16 |
17 |
--------------------------------------------------------------------------------
/tools/gnmsg/README.md:
--------------------------------------------------------------------------------
1 | ## Message parsing tool for geode-native (gnmsg)
2 | Given a debug-level log file from a geode-native application, this script will decode all of the Geode protocol messages it can between client and server, and print them out as a list of JSON objects.
3 |
4 | ```
5 | usage: gnmsg.py [-h] [--file [F]] [--handshake] [--messages]
6 |
7 | Parse a Gemfire NativeClient log file.
8 |
9 | optional arguments:
10 | -h, --help show this help message and exit
11 | --file [F] Data file path/name
12 | --handshake (optionally) print out handshake message details
13 | --messages (optionally) print out regular message details
14 | ```
15 |
16 | The `handshake` argument should be considered experimental at the time of this writing, since there doesn't yet exist a public version of geode-native that actually logs the handshake bytes to parse.
17 |
--------------------------------------------------------------------------------
/cppcache/integration-test/CTestCustom.cmake.in:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | # NOTHING YET
18 |
--------------------------------------------------------------------------------
/clicache/src/impl/RegionImpl.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/packer/rhel/aws/files/etc/cloud/cloud.cfg.d/10_hosts.cfg:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | manage_etc_hosts: true
17 |
--------------------------------------------------------------------------------
/docs/geode-native-book-cpp/master_middleman/source/stylesheets/partials/_book-base-values.scss:
--------------------------------------------------------------------------------
1 | //Licensed to the Apache Software Foundation (ASF) under one or more
2 | //contributor license agreements. See the NOTICE file distributed with
3 | //this work for additional information regarding copyright ownership.
4 | //The ASF licenses this file to You under the Apache License, Version 2.0
5 | //(the "License"); you may not use this file except in compliance with
6 | //the License. You may obtain a copy of the License at
7 | //
8 | //http://www.apache.org/licenses/LICENSE-2.0
9 | //
10 | //Unless required by applicable law or agreed to in writing, software
11 | //distributed under the License is distributed on an "AS IS" BASIS,
12 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13 | //express or implied. See the License for the specific language governing
14 | //permissions and limitations under the License.
15 |
--------------------------------------------------------------------------------
/docs/geode-native-book-dotnet/master_middleman/source/stylesheets/partials/_book-base-values.scss:
--------------------------------------------------------------------------------
1 | //Licensed to the Apache Software Foundation (ASF) under one or more
2 | //contributor license agreements. See the NOTICE file distributed with
3 | //this work for additional information regarding copyright ownership.
4 | //The ASF licenses this file to You under the Apache License, Version 2.0
5 | //(the "License"); you may not use this file except in compliance with
6 | //the License. You may obtain a copy of the License at
7 | //
8 | //http://www.apache.org/licenses/LICENSE-2.0
9 | //
10 | //Unless required by applicable law or agreed to in writing, software
11 | //distributed under the License is distributed on an "AS IS" BASIS,
12 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13 | //express or implied. See the License for the specific language governing
14 | //permissions and limitations under the License.
15 |
--------------------------------------------------------------------------------
/tools/gnmsg/interest_policy.py:
--------------------------------------------------------------------------------
1 | #!/usr/local/bin/python3
2 |
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | interest_policy = {
17 | 0: "NONE",
18 | 1: "KEYS",
19 | 2: "KEYS/VALUES",
20 | }
21 |
--------------------------------------------------------------------------------
/templates/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | cmake_minimum_required(VERSION 3.4)
16 |
17 | add_subdirectory(security)
--------------------------------------------------------------------------------
/packer/rhel/cleanup.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | set -x -e -o pipefail
19 |
20 | yum clean all
--------------------------------------------------------------------------------
/docs/api/c-footer.html:
--------------------------------------------------------------------------------
1 |
17 |
Apache Geode Native API Documentation
18 |
--------------------------------------------------------------------------------
/packer/ubuntu/cleanup.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | set -x -e -o pipefail
19 |
20 | apt-get autoclean
21 |
--------------------------------------------------------------------------------
/sni-test-config/scripts/forever:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one or more
5 | # contributor license agreements. See the NOTICE file distributed with
6 | # this work for additional information regarding copyright ownership.
7 | # The ASF licenses this file to You under the Apache License, Version 2.0
8 | # (the "License"); you may not use this file except in compliance with
9 | # the License. You may obtain a copy of the License at
10 | #
11 | # http://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing, software
14 | # distributed under the License is distributed on an "AS IS" BASIS,
15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 | # See the License for the specific language governing permissions and
17 | # limitations under the License.
18 | #
19 |
20 | while true; do sleep 600; done
21 |
--------------------------------------------------------------------------------
/docs/geode-native-book-cpp/Gemfile:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | source "https://rubygems.org"
19 |
20 | gem 'bookbindery'
21 |
22 |
--------------------------------------------------------------------------------
/docs/api/cppcache/footer.html:
--------------------------------------------------------------------------------
1 |
17 |
Apache Geode C++ Cache API Documentation
18 |
--------------------------------------------------------------------------------
/docs/geode-native-book-cpp/master_middleman/source/stylesheets/book-styles.scss:
--------------------------------------------------------------------------------
1 | //Licensed to the Apache Software Foundation (ASF) under one or more
2 | //contributor license agreements. See the NOTICE file distributed with
3 | //this work for additional information regarding copyright ownership.
4 | //The ASF licenses this file to You under the Apache License, Version 2.0
5 | //(the "License"); you may not use this file except in compliance with
6 | //the License. You may obtain a copy of the License at
7 | //
8 | //http://www.apache.org/licenses/LICENSE-2.0
9 | //
10 | //Unless required by applicable law or agreed to in writing, software
11 | //distributed under the License is distributed on an "AS IS" BASIS,
12 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13 | //express or implied. See the License for the specific language governing
14 | //permissions and limitations under the License.
15 |
16 | * {
17 | box-sizing: border-box;
18 | }
19 |
--------------------------------------------------------------------------------
/docs/geode-native-book-dotnet/Gemfile:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | source "https://rubygems.org"
19 |
20 | gem 'bookbindery'
21 |
22 |
--------------------------------------------------------------------------------
/cppcache/benchmark/main.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | BENCHMARK_MAIN();
21 |
--------------------------------------------------------------------------------
/docs/api/clicache/footer.html:
--------------------------------------------------------------------------------
1 |
17 |
Apache Geode C++ Cache .NET API Documentation
18 |
--------------------------------------------------------------------------------
/docs/geode-native-book-dotnet/master_middleman/source/stylesheets/book-styles.scss:
--------------------------------------------------------------------------------
1 | //Licensed to the Apache Software Foundation (ASF) under one or more
2 | //contributor license agreements. See the NOTICE file distributed with
3 | //this work for additional information regarding copyright ownership.
4 | //The ASF licenses this file to You under the Apache License, Version 2.0
5 | //(the "License"); you may not use this file except in compliance with
6 | //the License. You may obtain a copy of the License at
7 | //
8 | //http://www.apache.org/licenses/LICENSE-2.0
9 | //
10 | //Unless required by applicable law or agreed to in writing, software
11 | //distributed under the License is distributed on an "AS IS" BASIS,
12 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13 | //express or implied. See the License for the specific language governing
14 | //permissions and limitations under the License.
15 |
16 | * {
17 | box-sizing: border-box;
18 | }
19 |
--------------------------------------------------------------------------------
/cppcache/integration/benchmark/main.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | BENCHMARK_MAIN();
21 |
--------------------------------------------------------------------------------
/tools/gnmsg/interest_type.py:
--------------------------------------------------------------------------------
1 | #!/usr/local/bin/python3
2 |
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | interest_type = {
17 | 0: "KEY",
18 | 1: "REGULAR_EXPRESSION",
19 | 2: "FILTER_CLASS",
20 | 3: "OQL_QUERY",
21 | 4: "CQ"
22 | }
23 |
--------------------------------------------------------------------------------
/sni-test-config/geode-config/gemfire.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | statistic-sampling-enabled=true
19 | statistic-archive-file=statArchive.gfs
20 |
--------------------------------------------------------------------------------
/cppcache/internal/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | add_library(internal INTERFACE)
17 | target_include_directories(internal INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
18 |
--------------------------------------------------------------------------------
/packer/rhel/aws/setup-files.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | set -x -e -o pipefail
19 |
20 | cp -rv /tmp/files/* /
21 | rm -rf /tmp/files
22 |
--------------------------------------------------------------------------------
/tests/javaobject/PdxTests/pdxEnumTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package PdxTests;
19 | public enum pdxEnumTest { pdx1, pdx2, pdx3};
20 |
--------------------------------------------------------------------------------
/clicache/integration-test/geode.properties.mixed:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #cache-server-version=5.0
16 | #license-file=../../../../hidden/internal.license.nativeclientonly.zip
17 |
--------------------------------------------------------------------------------
/clicache/integration-test/geode.properties.nativeclient:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #cache-server-version=5.0
16 | #license-file=../../../../hidden/internal.license.nativeclientonly.zip
17 |
--------------------------------------------------------------------------------
/clicache/src/geode_includes.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * Precompiled headers source file.
20 | */
21 |
22 | #include "geode_includes.hpp"
23 |
--------------------------------------------------------------------------------
/.lgtm.yml:
--------------------------------------------------------------------------------
1 | extraction:
2 | cpp:
3 | configure:
4 | command:
5 | - GEODE_VERSION=1.15.0
6 | - mkdir _lgtm_build_dir
7 | - cd _lgtm_build_dir
8 | - wget -O apache-geode.tgz https://downloads.apache.org/geode/${GEODE_VERSION}/apache-geode-${GEODE_VERSION}.tgz
9 | - tar xzf apache-geode.tgz
10 | - "curl -o cmake.tgz -L $(curl -s https://api.github.com/repos/Kitware/CMake/releases | grep -P -i 'browser_download_url.*cmake-\\d+\\.\\d+\\.\\d+-linux-x86_64\\.sh' | head -n 1 | cut -d: -f 2,3 | tr -d \\\")"
11 | - bash cmake.tgz --skip-license --prefix=`pwd`
12 | - PATH="`pwd`/bin":$PATH
13 | - cmake -DGEODE_ROOT="`pwd`/apache-geode-${GEODE_VERSION}" -DCMAKE_INSTALL_PREFIX=/home/build ..
14 | - cd dependencies && cmake --build . -- -j2
15 | index:
16 | build_command:
17 | - cd _lgtm_build_dir && cmake --build . --target apache-geode -- -j 2
18 | csharp:
19 | index:
20 | buildless: true
21 |
--------------------------------------------------------------------------------
/tests/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | project(nativeclient.tests LANGUAGES NONE)
17 |
18 | add_subdirectory(cpp)
19 |
20 | if (${BUILD_CLI})
21 | add_subdirectory(cli)
22 | endif()
23 |
--------------------------------------------------------------------------------
/cppcache/integration/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | add_subdirectory(framework)
17 | add_subdirectory(test)
18 |
19 | if (BUILD_BENCHMARKS)
20 | add_subdirectory(benchmark)
21 | endif()
22 |
--------------------------------------------------------------------------------
/clicache/test/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientMultipleCaches.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientMultipleCaches.hpp"
19 | DUNIT_MAIN
20 | { run(); }
21 | END_MAIN
22 |
--------------------------------------------------------------------------------
/tests/cpp/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | project(nativeclient.tests.cpp LANGUAGES NONE)
17 |
18 | add_subdirectory(fwklib)
19 | add_subdirectory(testobject)
20 | add_subdirectory(security)
21 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientCallbackArg.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientCallbackArg.hpp"
19 | DUNIT_MAIN
20 | { runCallbackArg(); }
21 | END_MAIN
22 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientDistOpsSticky.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | #include "ThinClientDistOps.hpp"
18 |
19 | DUNIT_MAIN
20 | { runDistOpsSticky(); }
21 | END_MAIN
22 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientPutGetAll.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientPutGetAll.hpp"
19 |
20 | DUNIT_MAIN
21 | { runPutGetAll(); }
22 | END_MAIN
23 |
--------------------------------------------------------------------------------
/cppcache/README.md:
--------------------------------------------------------------------------------
1 | Contents
2 | ========
3 |
4 |
5 | ## Main sources
6 |
7 | # include/
8 | Public include header files for C++ library.
9 |
10 | # src/
11 | Sources for both static and shared C++ library.
12 |
13 | # shared/
14 | Shared library definition only. Should not contain any sources.
15 |
16 | # static/
17 | Static library definition only. Should not contain any sources.
18 |
19 |
20 | ## Test and Benchmark sources
21 |
22 | # integration/
23 | Integration syle tests, benchmarks, and common sources. These are all "modern"
24 | single process style and shoult not use any of the "legacy" multiple process
25 | framework.
26 |
27 | ## integrtion-test/
28 | Legacy integration tests written in the multiple process framework. No new tests
29 | should be added to this collections. Fixes and rewrites should be migrated to
30 | the new framework in the _integration/test_ directory metioned above.
31 |
32 | ## test/
33 | Unit style tests.
34 |
35 | ## benchmark/
36 | Unit style or micro benchmark tests.
37 |
38 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientDistOpsNotSticky.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | #include "ThinClientDistOps.hpp"
18 |
19 | DUNIT_MAIN
20 | { runDistOpsNotSticky(); }
21 | END_MAIN
22 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientFailover2.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientFailover2.hpp"
19 | DUNIT_MAIN
20 | { runThinClientFailover2(); }
21 | END_MAIN
22 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientGatewayTest.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientGatewayTest.hpp"
19 |
20 | DUNIT_MAIN
21 | { runListenerInit(); }
22 | END_MAIN
23 |
--------------------------------------------------------------------------------
/packer/linux/aws/setup-files.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | set -x -e -o pipefail
19 |
20 | cp -rv /tmp/files/* /
21 | rm -rf /tmp/files
22 |
23 | chmod +x /usr/local/bin/init-user.sh
24 |
--------------------------------------------------------------------------------
/tests/cli/FwkClient/App.config:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientFailoverRegex.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientFailoverRegex.hpp"
19 | DUNIT_MAIN
20 | { runThinClientFailOverRegex(); }
21 | END_MAIN
22 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientTransactionsXA.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientTransactionsXA.hpp"
19 |
20 | DUNIT_MAIN
21 | { runTransactionOps(); }
22 | END_MAIN
23 |
--------------------------------------------------------------------------------
/tests/cli/DUnitFramework/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientDistOpsUpdateLocatorList.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | #include "ThinClientDistOps.hpp"
18 |
19 | DUNIT_MAIN
20 | { runDistOpsUpdateLocatorList(); }
21 | END_MAIN
22 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientLocalCacheLoader.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientLocalCacheLoader.hpp"
19 |
20 | DUNIT_MAIN
21 | { runCacheLoaderTest(); }
22 | END_MAIN
23 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientNotification.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientNotification.hpp"
19 |
20 | DUNIT_MAIN
21 | { doThinClientNotification(); }
22 | END_MAIN
23 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientDurableConnect.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientDurableConnect.hpp"
19 |
20 | DUNIT_MAIN
21 | { doThinClientDurableConnect(); }
22 | END_MAIN
23 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientFailoverInterest.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientFailoverInterest.hpp"
19 | DUNIT_MAIN
20 | { runThinClientFailoverInterest(); }
21 | END_MAIN
22 |
--------------------------------------------------------------------------------
/packer/ubuntu/update.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | set -x -e -o pipefail
19 |
20 | export DEBIAN_FRONTEND=noninteractive
21 | apt update && apt-get -y autoremove && apt remove -y unattended-upgrades
22 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientDistOpsDontUpdateLocatorList.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | #include "ThinClientDistOps.hpp"
18 |
19 | DUNIT_MAIN
20 | { runDistOpsDontUpdateLocatorList(); }
21 | END_MAIN
22 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientDurableReconnect.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientDurableReconnect.hpp"
19 |
20 | DUNIT_MAIN
21 | { doThinClientDurableReconnect(); }
22 | END_MAIN
23 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientFailoverInterest2.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientFailoverInterest2.hpp"
19 | DUNIT_MAIN
20 | { runThinClientFailoverInterest2(); }
21 | END_MAIN
22 |
--------------------------------------------------------------------------------
/ci/docker/task/Dockerfile:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 |
17 | FROM alpine:3.13
18 | LABEL maintainer="Apache Geode "
19 | LABEL description="Minimal image for executing CI tasks."
20 | RUN apk add --no-cache bash git openssh-client
21 |
--------------------------------------------------------------------------------
/packer/rhel/aws/add-user-build.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | #set -x -e -o pipefail
19 |
20 | useradd build
21 |
22 | (crontab -l -u build ; echo "@reboot /etc/init-user.sh") | sort - | uniq - | crontab -u build -
23 |
--------------------------------------------------------------------------------
/examples/CMakeLists.txt.in:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | cmake_minimum_required(VERSION 3.10)
17 |
18 | project(examples LANGUAGES NONE)
19 |
20 |
21 | add_subdirectory(cpp)
22 | @DOTNET_SUB_DIRECTORY@
23 | add_subdirectory(utilities)
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/packer/linux/files/usr/local/bin/update-hosts.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | # add hostname to /etc/hosts if not set
19 | if (! getent hosts `hostname` >/dev/null); then
20 | echo `hostname -I` `hostname` >> /etc/hosts
21 | fi
22 |
--------------------------------------------------------------------------------
/packer/ubuntu/aws/add-user-build.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | #set -x -e -o pipefail
19 |
20 | useradd -m build
21 |
22 | (crontab -l -u build ; echo "@reboot /etc/init-user.sh") | sort - | uniq - | crontab -u build -
23 |
--------------------------------------------------------------------------------
/packer/ubuntu/files/usr/local/bin/update-hosts.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | # add hostname to /etc/hosts if not set
19 | if (! getent hosts `hostname` >/dev/null); then
20 | echo `hostname -I` `hostname` >> /etc/hosts
21 | fi
22 |
--------------------------------------------------------------------------------
/tools/gnmsg/gnmsg_globals.py:
--------------------------------------------------------------------------------
1 | #!/usr/local/bin/python3
2 |
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | import protocol_state
17 |
18 |
19 | # global protocol state. We need to keep track of (at least) the last client
20 | # message sent, per thread, in order to decode server responses.
21 | global_protocol_state = protocol_state.ProtocolState()
22 |
--------------------------------------------------------------------------------
/tests/cli/PdxClassLibrary/Person.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace PdxClassLibrary
23 | {
24 | public class Person
25 | {
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientFailover.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientFailover.hpp"
19 |
20 | DUNIT_MAIN
21 | {
22 | runThinClientFailover();
23 | runThinClientFailover(true);
24 | }
25 | END_MAIN
26 |
--------------------------------------------------------------------------------
/dependencies/doxygen/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | project( doxygen VERSION 1.6 LANGUAGES NONE )
17 | # used to compile documents
18 |
19 | # Not a runtime requirement, so look for existing installation.
20 | find_package(Doxygen ${PROJECT_VERSION} REQUIRED)
21 |
--------------------------------------------------------------------------------
/packer/rhel/7/install-devtoolset.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | set -x -e -o pipefail
19 |
20 | yum --enablerepo '*rhscl*' install -y devtoolset-4-gcc-c++
21 |
22 | echo "source scl_source enable devtoolset-4" > /etc/profile.d/devtoolset.sh
23 |
--------------------------------------------------------------------------------
/packer/rhel/init-hosts.rc.local:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # add hostname to /etc/hosts if not set
17 | if (! getent hosts `hostname` >/dev/null); then
18 | echo `/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'` `hostname` >> /etc/hosts
19 | fi
20 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientDurableFailoverClientClosedRedundancy.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientDurableFailover.hpp"
19 |
20 | DUNIT_MAIN
21 | { doThinClientDurableFailoverClientClosedRedundancy(); }
22 | END_MAIN
23 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientDurableFailoverClientClosedNoRedundancy.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientDurableFailover.hpp"
19 |
20 | DUNIT_MAIN
21 | { doThinClientDurableFailoverClientClosedNoRedundancy(); }
22 | END_MAIN
23 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientDurableFailoverClientNotClosedRedundancy.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientDurableFailover.hpp"
19 |
20 | DUNIT_MAIN
21 | { doThinClientDurableFailoverClientNotClosedRedundancy(); }
22 | END_MAIN
23 |
--------------------------------------------------------------------------------
/docker/windows/README.md:
--------------------------------------------------------------------------------
1 | # C++ Toolkit Version
2 | Currently we target VC toolset 14.15 which is forward compatible to 14.15+.
3 | * Build Tools Component: `Microsoft.VisualStudio.Component.VC.Tools.14.15`
4 | * Entrypoint: `vcvarsall.bat ... -vcvars_ver=14.15`
5 |
6 | We should investigate if we need to go back a few more minors to remain compatible
7 | with previous releases.
8 |
9 | # C++ SDK Version
10 | We haven't really figured out if or how to lock down the SDK version. Currently we use
11 | version 10.16299.
12 | * Build Tools Component: `Microsoft.VisualStudio.Component.Windows10SDK.16299.Desktop`
13 | * Entrypoint: `vcvarsall.bat ... 10.0.16299.0 ...`
14 |
15 | ACE library seems to be stuck on 10.16299. If we upgrade in the future we may need to
16 | unstick ACE to avoid mixing of SDKs. It is unclear is mixing SDKs is an issue.
17 |
18 | # .NET Framework
19 | We build against version 4.5.2 but require 3.5 for old NUnit 2.6.4 at runtime.
20 | * Base Image: `mcr.microsoft.com/dotnet/framework/runtime:3.5`
21 | * Build Tools Component: `Microsoft.Net.Component.4.5.2.TargetingPack`
22 |
--------------------------------------------------------------------------------
/docs/geode-native-book-cpp/master_middleman/source/layouts/_title.erb:
--------------------------------------------------------------------------------
1 |
17 | <% if current_page.data.title %>
18 | >
19 | <%= current_page.data.title %>
20 |
21 | <% end %>
22 |
--------------------------------------------------------------------------------
/docs/geode-native-book-dotnet/master_middleman/source/layouts/_title.erb:
--------------------------------------------------------------------------------
1 |
17 | <% if current_page.data.title %>
18 | >
19 | <%= current_page.data.title %>
20 |
21 | <% end %>
22 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientTXFailover.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientTXFailover.hpp"
19 |
20 | DUNIT_MAIN
21 | {
22 | runThinClientFailover();
23 | runThinClientFailover(true); // With Sticky
24 | }
25 | END_MAIN
26 |
--------------------------------------------------------------------------------
/cppcache/src/PersistenceManager.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace client {} // namespace client
23 | } // namespace geode
24 | } // namespace apache
25 |
--------------------------------------------------------------------------------
/cppcache/integration-test/InitSmartHeap.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | namespace geode_smartheap {
21 |
22 | class InitSmartHeap {
23 | public:
24 | InitSmartHeap() {}
25 |
26 | } doInit;
27 | } // namespace geode_smartheap
28 |
--------------------------------------------------------------------------------
/ci/pr/data.yml:
--------------------------------------------------------------------------------
1 | #! Licensed to the Apache Software Foundation (ASF) under one or more
2 | #! contributor license agreements. See the NOTICE file distributed with
3 | #! this work for additional information regarding copyright ownership.
4 | #! The ASF licenses this file to You under the Apache License, Version 2.0
5 | #! (the "License"); you may not use this file except in compliance with
6 | #! the License. You may obtain a copy of the License at
7 | #!
8 | #! http://www.apache.org/licenses/LICENSE-2.0
9 | #!
10 | #! Unless required by applicable law or agreed to in writing, software
11 | #! distributed under the License is distributed on an "AS IS" BASIS,
12 | #! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | #! See the License for the specific language governing permissions and
14 | #! limitations under the License.
15 |
16 | #@ load("@ytt:overlay", "overlay")
17 |
18 | #@data/values
19 | #@overlay/match-child-defaults missing_ok=True
20 | ---
21 | pipeline:
22 | variant: pr
23 |
24 | configs:
25 | #@overlay/append
26 | - name: debug
27 | config: Debug
28 |
--------------------------------------------------------------------------------
/packer/linux/install-dotnet.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | set -x -e -o pipefail
19 |
20 | curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin \
21 | --channel 3.1 \
22 | --install-dir /usr/lib/dotnet
23 |
24 | ln -s /usr/lib/dotnet/dotnet /usr/bin/dotnet
25 |
--------------------------------------------------------------------------------
/tools/gnmsg/decoder_base.py:
--------------------------------------------------------------------------------
1 | #!/usr/local/bin/python3
2 |
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | import logging
17 | import queue
18 | import sys
19 | import traceback
20 | import threading
21 |
22 |
23 | class DecoderBase:
24 | def __init__(self, output_queue):
25 | self.output_queue_ = output_queue
26 |
27 | def process_line(self, line):
28 | print("process_line")
29 |
--------------------------------------------------------------------------------
/clicache/src/end_native.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #pragma managed(pop)
19 |
20 | //#pragma pack(pop)
21 |
22 | #pragma warning(pop)
23 |
24 | #pragma pop_macro("_M_CEE")
25 | #pragma pop_macro("nullptr")
26 | #pragma pop_macro("_ALLOW_KEYWORD_MACROS")
27 |
28 | #undef __begin_native__hpp__
29 |
--------------------------------------------------------------------------------
/cppcache/src/CacheLoader.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace client {
23 |
24 | void CacheLoader::close(Region&) {}
25 |
26 | } // namespace client
27 | } // namespace geode
28 | } // namespace apache
29 |
--------------------------------------------------------------------------------
/cppcache/src/GeodeCache.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace client {
23 |
24 | GeodeCache::~GeodeCache() = default;
25 |
26 | } // namespace client
27 | } // namespace geode
28 | } // namespace apache
29 |
--------------------------------------------------------------------------------
/cppcache/test/gmock_extensions.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #pragma once
19 |
20 | #ifndef GEODE_GMOCK_EXTENSIONS_H_
21 | #define GEODE_GMOCK_EXTENSIONS_H_
22 |
23 | #include
24 |
25 | ACTION_P(ReleaseSem, sem) { sem->release(); }
26 |
27 | #endif // GEODE_GMOCK_EXTENSIONS_H_
28 |
--------------------------------------------------------------------------------
/packer/linux/setup-files.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | set -x -e -o pipefail
19 |
20 | cp -rv /tmp/files/* /
21 | rm -rf /tmp/files
22 |
23 | chmod +x /usr/local/bin/update-hosts.sh
24 |
25 | systemctl daemon-reload
26 | systemctl enable update-hosts.service
27 | systemctl start update-hosts.service
28 |
--------------------------------------------------------------------------------
/cppcache/src/RegionService.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace client {
23 |
24 | RegionService::~RegionService() = default;
25 |
26 | } // namespace client
27 | } // namespace geode
28 | } // namespace apache
29 |
--------------------------------------------------------------------------------
/tests/cli/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | add_subdirectory(DUnitFramework)
17 | add_subdirectory(FwkClient)
18 | add_subdirectory(QueryHelper)
19 | add_subdirectory(PdxClassLibrary)
20 | add_subdirectory(NewTestObject)
21 | add_subdirectory(PdxVersion1Lib)
22 | add_subdirectory(PdxVersion2Lib)
23 | add_subdirectory(SecurityUtil)
24 |
25 |
--------------------------------------------------------------------------------
/cppcache/src/UserFunctionExecutionException.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 | #include
20 |
21 | namespace apache {
22 | namespace geode {
23 | namespace client {} // namespace client
24 | } // namespace geode
25 | } // namespace apache
26 |
--------------------------------------------------------------------------------
/clicache/test/Utils.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #pragma once
19 |
20 |
21 | using namespace System;
22 |
23 | namespace cliunittests
24 | {
25 | private ref class Utils {
26 | internal:
27 | static void GCCollectAndWait() {
28 | GC::Collect();
29 | GC::WaitForPendingFinalizers();
30 | }
31 | };
32 | }
--------------------------------------------------------------------------------
/cppcache/src/statistics/ProcessStats.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | #include "ProcessStats.hpp"
18 |
19 | namespace apache {
20 | namespace geode {
21 | namespace statistics {
22 |
23 | int64_t ProcessStats::getProcessSize() { return 0; }
24 |
25 | } // namespace statistics
26 | } // namespace geode
27 | } // namespace apache
28 |
--------------------------------------------------------------------------------
/ssl_keys/client_keys/client_truststore.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIC6zCCAdOgAwIBAgIEUCOimzANBgkqhkiG9w0BAQUFADAeMQswCQYDVQQGEwJVUzEPMA0GA1UE
3 | AwwGc2VydmVyMB4XDTEyMDgwOTExNDQyN1oXDTM3MDgwMzExNDQyN1owHjELMAkGA1UEBhMCVVMx
4 | DzANBgNVBAMMBnNlcnZlcjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKe/Phwhj/V
5 | KcFrQuEcnlsWgDGYedyAYwUXItmolvyTeqPRI89H+NktE0zxsn3FjINN/ioz/LLSk6n4y68RGwg+
6 | 8/7EBnYJ/zWYnmPdFeDjzQP6B81YR2YHZH7h+FweQpSpWvo4tZEeiMskQHVMO6t8tE/rwNqcoNfa
7 | BEFUxPWm/S2q22rueS71ft1MtcGRAUr31fGuKslmoBeT8PqBavo0eVeFu4x/b0TbVg5+arJ/JcOc
8 | 0qFtSBacnY4hMs4uvTKe4yWd0g3wEEMpy5NpImew1be9nDuCnmP2jorvH4RMfNmq4bNWTJJr6sbt
9 | cCooOE7wEB20Gx69jIATxoXkzHkCAwEAAaMxMC8wHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUF
10 | BwMCMA4GA1UdDwEB/wQEAwIEsDANBgkqhkiG9w0BAQUFAAOCAQEAYEt4ia2UcU21clHqzsyg1X1R
11 | nyImw/AKg8D62U1XCdJtqE9JN1H56cijZGKKJqItEtk/ZvsKSUvvBx9tnrrtR/Tz4UZudhG6L/2R
12 | CeU2A2FXk4t0o1PhWY7aOyNfJ9Y7PRRhYuZ5gXCVGy3c+Aiemb1JUF+pwOs92OvALpv+cG6UfxU7
13 | gZ/VucKvHROFLMru6Kx0luS3SxdAcYa1XhX0OlbYtbZ+8kzfUbKUvNHFfamsHJzfVzuFENQmDNU0
14 | wtDX7OgyAhUH/UB1TSk0JFa/upODpZNwyy5OVfF4aFQJ7TH//x8vaiy1zo/V7HBhxU8yzk+GlOTD
15 | x/VMmE7x5hJakA==
16 | -----END CERTIFICATE-----
17 |
--------------------------------------------------------------------------------
/cmake/FindClangFormat.cmake:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | include(FindPackageHandleStandardArgs)
17 |
18 | find_program(ClangFormat_EXECUTABLE
19 | NAMES clang-format
20 | DOC "clang-format executable"
21 | )
22 | mark_as_advanced(ClangFormat_EXECUTABLE)
23 |
24 | find_package_handle_standard_args(ClangFormat
25 | REQUIRED_VARS ClangFormat_EXECUTABLE
26 | )
27 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientRemoveAllLocal.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientRemoveAll.hpp"
19 |
20 | DUNIT_MAIN
21 | {
22 | CALL_TASK(CreateClient1RegionsLocal);
23 | CALL_TASK(removeAllValidation);
24 | CALL_TASK(removeAllOpsLocal);
25 | CALL_TASK(CloseCache1);
26 | }
27 | END_MAIN
28 |
--------------------------------------------------------------------------------
/ssl_keys/client_keys/client_truststore_corrupt.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | NIIC6zCCAdOgAwIBAgIEUCOimzANBgkqhkiG9w0BAQUFADAeMQswCQYDVQQGEwJVUzEPMA0GA1UE
3 | AwwGc2VydmVyMB4XDTEyMDgwOTExNDQyN1oXDTM3MDgwMzExNDQyN1owHjELMAkGA1UEBhMCVVMx
4 | DzANBgNVBAMMBnNlcnZlcjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKe/Phwhj/V
5 | KcFrQuEcnlsWgDGYedyAYwUXItmolvyTeqPRI89H+NktE0zxsn3FjINN/ioz/LLSk6n4y68RGwg+
6 | 8/7EBnYJ/zWYnmPdFeDjzQP6B81YR2YHZH7h+FweQpSpWvo4tZEeiMskQHVMO6t8tE/rwNqcoNfa
7 | BEFUxPWm/S2q22rueS71ft1MtcGRAUr31fGuKslmoBeT8PqBavo0eVeFu4x/b0TbVg5+arJ/JcOc
8 | 0qFtSBacnY4hMs4uvTKe4yWd0g3wEEMpy5NpImew1be9nDuCnmP2jorvH4RMfNmq4bNWTJJr6sbt
9 | cCooOE7wEB20Gx69jIATxoXkzHkCAwEAAaMxMC8wHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUF
10 | BwMCMA4GA1UdDwEB/wQEAwIEsDANBgkqhkiG9w0BAQUFAAOCAQEAYEt4ia2UcU21clHqzsyg1X1R
11 | nyImw/AKg8D62U1XCdJtqE9JN1H56cijZGKKJqItEtk/ZvsKSUvvBx9tnrrtR/Tz4UZudhG6L/2R
12 | CeU2A2FXk4t0o1PhWY7aOyNfJ9Y7PRRhYuZ5gXCVGy3c+Aiemb1JUF+pwOs92OvALpv+cG6UfxU7
13 | gZ/VucKvHROFLMru6Kx0luS3SxdAcYa1XhX0OlbYtbZ+8kzfUbKUvNHFfamsHJzfVzuFENQmDNU0
14 | wtDX7OgyAhUH/UB1TSk0JFa/upODpZNwyy5OVfF4aFQJ7TH//x8vaiy1zo/V7HBhxU8yzk+GlOTD
15 | x/VMmE7x5hJakA==
16 | -----END CERTIFICATE-----
17 |
--------------------------------------------------------------------------------
/cppcache/src/ConnectCounter.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ConnectCounter.hpp"
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace client {
23 |
24 | ConnectCounter::ConnectCounter() {}
25 |
26 | ConnectCounter::~ConnectCounter() {}
27 | } // namespace client
28 | } // namespace geode
29 | } // namespace apache
30 |
--------------------------------------------------------------------------------
/cppcache/test/geodeBannerTest.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | #include
21 |
22 | using apache::geode::client::geodeBanner;
23 |
24 | TEST(geodeBannerTest, ValidateBanner) {
25 | EXPECT_LT(static_cast(0), geodeBanner::getBanner().size())
26 | << "Non-empty banner";
27 | }
28 |
--------------------------------------------------------------------------------
/clicache/integration-test/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/packer/linux/files/etc/systemd/system/update-hosts.service:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | [Unit]
17 | Description=Ensure an A record exists for local hostname in /etc/hosts
18 | After=network.target
19 | After=network-online.target
20 | Wants=network-online.target
21 |
22 | [Service]
23 | ExecStart=/usr/local/bin/update-hosts.sh
24 |
25 | [Install]
26 | WantedBy=multi-user.target
27 |
--------------------------------------------------------------------------------
/packer/ubuntu/files/etc/systemd/system/update-hosts.service:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | [Unit]
17 | Description=Ensure an A record exists for local hostname in /etc/hosts
18 | After=network.target
19 | After=network-online.target
20 | Wants=network-online.target
21 |
22 | [Service]
23 | ExecStart=/usr/local/bin/update-hosts.sh
24 |
25 | [Install]
26 | WantedBy=multi-user.target
27 |
--------------------------------------------------------------------------------
/packer/windows/install-chocolatey.ps1:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | $ErrorActionPreference = "Stop"
17 |
18 | write-host "Installing Chocolatey..."
19 |
20 | [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
21 | iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
22 |
23 | write-host "Installed Chocolatey."
24 |
--------------------------------------------------------------------------------
/tests/javaobject/NoopPrincipal.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package javaobject;
18 |
19 | import java.security.Principal;
20 |
21 | public class NoopPrincipal implements Principal {
22 |
23 | public static NoopPrincipal create() {
24 | return new NoopPrincipal();
25 | }
26 |
27 | public String getName() {
28 | return "";
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/ci/release/data.yml:
--------------------------------------------------------------------------------
1 | #! Licensed to the Apache Software Foundation (ASF) under one or more
2 | #! contributor license agreements. See the NOTICE file distributed with
3 | #! this work for additional information regarding copyright ownership.
4 | #! The ASF licenses this file to You under the Apache License, Version 2.0
5 | #! (the "License"); you may not use this file except in compliance with
6 | #! the License. You may obtain a copy of the License at
7 | #!
8 | #! http://www.apache.org/licenses/LICENSE-2.0
9 | #!
10 | #! Unless required by applicable law or agreed to in writing, software
11 | #! distributed under the License is distributed on an "AS IS" BASIS,
12 | #! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | #! See the License for the specific language governing permissions and
14 | #! limitations under the License.
15 |
16 | #@ load("@ytt:overlay", "overlay")
17 |
18 | #@data/values
19 | #@overlay/match-child-defaults missing_ok=True
20 | ---
21 | pipeline:
22 | variant: release
23 |
24 | configs:
25 | #@overlay/append
26 | - name: debug
27 | config: Debug
28 | #@overlay/append
29 | - name: release
30 | config: RelWithDebInfo
31 |
32 |
--------------------------------------------------------------------------------
/clicache/integration-test2/Command.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | using System;
19 | using System.Diagnostics;
20 | using System.Net;
21 | using System.IO;
22 | using System.Net.Sockets;
23 | using Xunit;
24 |
25 | public class Command
26 | {
27 | #region Public methods
28 |
29 | public Command()
30 | {
31 | }
32 |
33 | #endregion
34 | }
35 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientPutAll.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientPutAll.hpp"
19 | DUNIT_MAIN
20 | {
21 | // runPutAll( false ); // removed as pdx object doesn't work with old
22 | // endpoint
23 | // scheme
24 | runPutAll();
25 |
26 | runPutAll1();
27 |
28 | runPutAll1(false);
29 | }
30 | END_MAIN
31 |
--------------------------------------------------------------------------------
/cppcache/src/CqStatusListener.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace client {
23 |
24 | void CqStatusListener::onCqDisconnected() {}
25 | void CqStatusListener::onCqConnected() {}
26 | } // namespace client
27 | } // namespace geode
28 | } // namespace apache
29 |
--------------------------------------------------------------------------------
/packer/linux/aws/wait-for-cloud-init.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 |
19 | #set -x
20 | set -e
21 | set -o pipefail
22 |
23 | # leaves tail running but we should be restarting anyway
24 | { tail -n +1 -f /var/log/cloud-init.log /var/log/cloud-init-output.log & } | sed \
25 | -e '/Cloud-init .* finished/q' \
26 | -e '/Failed at merging in cloud config/q1'
27 |
--------------------------------------------------------------------------------
/cppcache/src/PdxSerializer.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace client {
23 |
24 | UserObjectSizer PdxSerializer::getObjectSizer(const std::string&) {
25 | return nullptr;
26 | }
27 |
28 | } // namespace client
29 | } // namespace geode
30 | } // namespace apache
31 |
--------------------------------------------------------------------------------
/cppcache/test/PartitionTest.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | #include
21 |
22 | #include "FixedPartitionAttributesImpl.hpp"
23 |
24 | using apache::geode::client::FixedPartitionAttributesImpl;
25 |
26 | TEST(PartitionTest, createFixedPartitionAttributes) {
27 | FixedPartitionAttributesImpl attributes;
28 | }
29 |
--------------------------------------------------------------------------------
/packer/ubuntu/install-jdk-11.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | set -x -e -o pipefail
19 |
20 | wget -q -O - https://download.bell-sw.com/pki/GPG-KEY-bellsoft | sudo apt-key add -
21 | echo "deb [arch=amd64] https://apt.bell-sw.com/ stable main" | sudo tee /etc/apt/sources.list.d/bellsoft.list
22 |
23 | sudo apt-get update
24 | sudo apt-get install -y bellsoft-java11
25 |
--------------------------------------------------------------------------------
/docs/geode-native-book-cpp/master_middleman/source/layouts/_book-footer.erb:
--------------------------------------------------------------------------------
1 |
17 |
21 |
24 |
--------------------------------------------------------------------------------
/docs/geode-native-book-dotnet/master_middleman/source/layouts/_book-footer.erb:
--------------------------------------------------------------------------------
1 |
17 |
21 |
24 |
--------------------------------------------------------------------------------
/packer/rhel/install-jdk-11.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | set -x -e -o pipefail
19 |
20 | cat <<'EOF' > /etc/yum.repos.d/bellsoft.repo
21 | [BellSoft]
22 | name=BellSoft Repository
23 | baseurl=https://yum.bell-sw.com
24 | enabled=1
25 | gpgcheck=1
26 | gpgkey=https://download.bell-sw.com/pki/GPG-KEY-bellsoft
27 | priority=1
28 | EOF
29 |
30 | yum install -y bellsoft-java11
31 |
--------------------------------------------------------------------------------
/examples/cpp/pdxserializer/Order.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "Order.hpp"
19 |
20 | namespace customserializer {
21 |
22 | void Order::print() {
23 | std::cout << " OrderID: " << order_id_ << std::endl
24 | << " Product Name: " << name_ << std::endl
25 | << " Quantity: " << quantity_ << std::endl;
26 | }
27 |
28 | } // namespace customserializer
--------------------------------------------------------------------------------
/tools/gnmsg/handshake_acceptance_codes.py:
--------------------------------------------------------------------------------
1 | #!/usr/local/bin/python3
2 |
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | server_handshake_reply_codes = {
17 | 21: "REPLY_SSL_ENABLED",
18 | 59: "REPLY_OK",
19 | 60: "REPLY_REFUSED",
20 | 61: "REPLY_INVALID",
21 | 62: "REPLY_AUTHENTICATION_REQUIRED",
22 | 63: "REPLY_AUTHENTICATION_FAILED",
23 | 64: "REPLY_DUPLICATE_DURABLE_CLIENT",
24 | 105: "SUCCESSFUL_SERVER_TO_CLIENT",
25 | 106: "UNSUCCESSFUL_SERVER_TO_CLIENT",
26 | }
27 |
--------------------------------------------------------------------------------
/cppcache/integration/test/gmock_actions.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #pragma once
19 |
20 | #ifndef GMOCK_ACTIONS_H_
21 | #define GMOCK_ACTIONS_H_
22 |
23 | #include
24 |
25 | ACTION_P(ReleaseSem, sem) { sem->release(); }
26 | ACTION_P(AcquireSem, sem) { sem->acquire(); }
27 | ACTION_P(CountDownLatch, latch) { latch->count_down(); }
28 |
29 | #endif // GMOCK_ACTIONS_H_
30 |
--------------------------------------------------------------------------------
/cppcache/src/CacheTransactionManager.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace client {
23 | CacheTransactionManager::CacheTransactionManager() {}
24 | CacheTransactionManager::~CacheTransactionManager() {}
25 | } // namespace client
26 | } // namespace geode
27 | } // namespace apache
28 |
--------------------------------------------------------------------------------
/cppcache/src/CacheableUndefined.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace client {
23 |
24 | void CacheableUndefined::toData(DataOutput&) const {}
25 |
26 | void CacheableUndefined::fromData(DataInput&) {}
27 |
28 | } // namespace client
29 | } // namespace geode
30 | } // namespace apache
31 |
--------------------------------------------------------------------------------
/cppcache/src/version.h.in:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | // clang-format off
19 |
20 | #define PRODUCT_VERSION "@PRODUCT_VERSION@"
21 | #define PRODUCT_BUILDDATE "@PRODUCT_BUILDDATE@"
22 | #define PRODUCT_SOURCE_REVISION "@PRODUCT_SOURCE_REVISION@"
23 | #define PRODUCT_SOURCE_REPOSITORY "@PRODUCT_SOURCE_REPOSITORY@"
24 | #define PRODUCT_VERSION_RC @PRODUCT_VERSION_RC@
25 |
26 | // clang-format on
27 |
--------------------------------------------------------------------------------
/clicache/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | add_subdirectory(src)
17 | add_subdirectory(test)
18 | add_subdirectory(test2)
19 | add_subdirectory(integration-test)
20 | add_subdirectory(integration-test2)
21 | if ((NOT ${DOCKER_PGM} MATCHES "DOCKER_NOTFOUND") AND
22 | (NOT ${DOCKERCOMPOSE_PGM} MATCHES "DOCKERCOMPOSE_NOTFOUND"))
23 | add_subdirectory(acceptance-test)
24 | endif()
25 | add_subdirectory(plugins/SQLiteCLI)
26 |
27 |
--------------------------------------------------------------------------------
/cppcache/src/AppDomainContext.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "AppDomainContext.hpp"
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace client {
23 |
24 | AppDomainContext* nullAppDomainContext() { return nullptr; }
25 |
26 | AppDomainContext::factory createAppDomainContext = &nullAppDomainContext;
27 | } // namespace client
28 | } // namespace geode
29 | } // namespace apache
30 |
--------------------------------------------------------------------------------
/sni-test-config/geode-config/gfsecurity.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | security-log-level=info
19 | security-peer-verifymember-timeout=1000
20 | ssl-keystore-password=geode
21 | ssl-truststore=/geode/config/truststore.jks
22 | ssl-truststore-password=geode
23 | ssl-require-authentication=false
24 | ssl-web-require-authentication=false
25 | ssl-enabled-components=all
26 | ssl-endpoint-identification-enabled=false
27 |
28 |
--------------------------------------------------------------------------------
/docs/geode-native-book-cpp/master_middleman/source/archive_menus/_default.erb:
--------------------------------------------------------------------------------
1 |
17 |
29 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testFWHelper.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | #include "fw_helper.hpp"
21 |
22 | /**
23 | * @brief Test a test runs.
24 | */
25 | BEGIN_TEST(TestOne)
26 | std::cout << "test 1." << std::endl;
27 | END_TEST(TestOne)
28 |
29 | /**
30 | * @brief Test a test runs.
31 | */
32 | BEGIN_TEST(TestTwo)
33 | std::cout << "test 2." << std::endl;
34 | END_TEST(TestTwo)
35 |
--------------------------------------------------------------------------------
/docs/geode-native-book-dotnet/master_middleman/source/archive_menus/_default.erb:
--------------------------------------------------------------------------------
1 |
17 |
29 |
--------------------------------------------------------------------------------
/cppcache/include/geode/HashMapOfPools.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #pragma once
19 |
20 | #include
21 | #include
22 | #include
23 |
24 | namespace apache {
25 | namespace geode {
26 | namespace client {
27 | class Pool;
28 |
29 | using HashMapOfPools = std::unordered_map>;
30 | } // namespace client
31 | } // namespace geode
32 | } // namespace apache
33 |
--------------------------------------------------------------------------------
/clicache/src/impl/AppDomainContext.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 |
19 | #include "AppDomainContext.hpp"
20 |
21 | namespace Apache
22 | {
23 | namespace Geode
24 | {
25 | namespace Client
26 | {
27 |
28 | apache::geode::client::AppDomainContext* createAppDomainContext() {
29 | return new AppDomainContext();
30 | }
31 |
32 | } // namespace Client
33 | } // namespace Geode
34 | } // namespace Apache
35 |
36 |
--------------------------------------------------------------------------------
/clicache/src/impl/RegionImpl.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #pragma once
19 |
20 |
21 | #include "../geode_defs.hpp"
22 | #include "../../../IRegion.hpp"
23 | #include "../begin_native.hpp"
24 | #include
25 | #include "../end_native.hpp"
26 |
27 |
28 | //#include "CacheableHashMap.hpp"
29 | //#include "Log.hpp"
30 | #include "../ExceptionTypes.hpp"
31 |
32 | using namespace System::Collections::Generic;
33 |
34 |
--------------------------------------------------------------------------------
/cppcache/src/EntriesMap.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "EntriesMap.hpp"
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace client {
23 |
24 | std::shared_ptr EntriesMap::getFromDisk(
25 | const std::shared_ptr&,
26 | std::shared_ptr&) const {
27 | return nullptr;
28 | }
29 |
30 | } // namespace client
31 | } // namespace geode
32 | } // namespace apache
33 |
--------------------------------------------------------------------------------
/cppcache/src/FunctionMacros.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | #pragma once
18 | #ifndef __INC_FUNCTIONMACROS__
19 | #define __INC_FUNCTIONMACROS__
20 |
21 | #define INIT_GNFN(this_class) \
22 | namespace { \
23 | const auto classname = std::string(this_class); \
24 | }
25 |
26 | #define __GNFN__ (classname + "::" + __func__).c_str()
27 |
28 | #endif // __INC_FUNCTIONMACROS__
29 |
--------------------------------------------------------------------------------
/clicache/integration-test/cache.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
19 |
20 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/cppcache/integration/benchmark/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | add_executable(cpp-integration-benchmark
17 | main.cpp
18 | RegionBM.cpp
19 | PdxTypeBM.cpp
20 | RegisterInterestBM.cpp
21 | )
22 |
23 | target_link_libraries(cpp-integration-benchmark
24 | PUBLIC
25 | apache-geode
26 | benchmark::benchmark
27 | integration-framework
28 | PRIVATE
29 | _WarningsAsError
30 | )
31 |
32 | add_clangformat(cpp-integration-benchmark)
33 |
--------------------------------------------------------------------------------
/cppcache/src/CqListener.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace client {
23 |
24 | CqListener::CqListener() {}
25 |
26 | void CqListener::onEvent(const CqEvent&) {}
27 |
28 | void CqListener::onError(const CqEvent&) {}
29 |
30 | void CqListener::close() {}
31 |
32 | } // namespace client
33 | } // namespace geode
34 | } // namespace apache
35 |
--------------------------------------------------------------------------------
/packer/linux/install-cmake.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 |
18 | set -x -e -o pipefail
19 |
20 | tmp=$(mktemp)
21 |
22 | curl -o ${tmp} -L $(curl -s https://api.github.com/repos/Kitware/CMake/releases \
23 | | grep -P -i 'browser_download_url.*cmake-\d+\.\d+\.\d+-linux-x86_64\.sh' \
24 | | head -n 1 \
25 | | cut -d : -f 2,3 \
26 | | tr -d \")
27 |
28 | bash ${tmp} --skip-license --prefix=/usr/local
29 |
30 | rm -f ${tmp}
31 |
--------------------------------------------------------------------------------
/cppcache/src/geodeBanner.hpp:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #ifndef GEODE_BANNER_H_
4 | #define GEODE_BANNER_H_
5 |
6 | /*
7 | * Licensed to the Apache Software Foundation (ASF) under one or more
8 | * contributor license agreements. See the NOTICE file distributed with
9 | * this work for additional information regarding copyright ownership.
10 | * The ASF licenses this file to You under the Apache License, Version 2.0
11 | * (the "License"); you may not use this file except in compliance with
12 | * the License. You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
23 | #include
24 |
25 | namespace apache {
26 | namespace geode {
27 | namespace client {
28 | class geodeBanner {
29 | public:
30 | static std::string getBanner();
31 | };
32 | } // namespace client
33 | } // namespace geode
34 | } // namespace apache
35 |
36 | #endif // GEODE_BANNER_H_
37 |
--------------------------------------------------------------------------------
/examples/cpp/sslputget/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | cmake_minimum_required(VERSION 3.10)
17 |
18 | project(cpp-sslputget LANGUAGES NONE)
19 |
20 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt.in ${CMAKE_CURRENT_BINARY_DIR}/CMakeLists.txt @ONLY)
21 |
22 | install(FILES
23 | ${CMAKE_CURRENT_BINARY_DIR}/CMakeLists.txt
24 | main.cpp
25 | README.md
26 | startserver.sh
27 | stopserver.sh
28 | DESTINATION examples/cpp/sslputget)
29 |
30 |
--------------------------------------------------------------------------------
/tools/gnmsg/connection_types.py:
--------------------------------------------------------------------------------
1 | #!/usr/local/bin/python3
2 |
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | from enum import Enum
17 |
18 |
19 | class ConnectionTypes(int, Enum):
20 | CLIENT_TO_SERVER = 100
21 | PRIMARY_SERVER_TO_CLIENT = 101
22 | SECONDARY_SERVER_TO_CLIENT = 102
23 |
24 |
25 | ConnectionTypeStrings = {
26 | ConnectionTypes.CLIENT_TO_SERVER: "Client to server",
27 | ConnectionTypes.PRIMARY_SERVER_TO_CLIENT: "Primary server to client",
28 | ConnectionTypes.SECONDARY_SERVER_TO_CLIENT: "Secondary server to client",
29 | }
30 |
--------------------------------------------------------------------------------
/packer/windows/disable-uac.ps1:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | $ErrorActionPreference = "Stop"
17 |
18 | Write-Host "Disabling UAC..."
19 |
20 | New-ItemProperty -Path HKLM:Software\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableLUA -PropertyType DWord -Value 0 -Force
21 | New-ItemProperty -Path HKLM:Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -PropertyType DWord -Value 0 -Force
22 |
23 | Write-Host "Disabled UAC."
24 |
--------------------------------------------------------------------------------
/cppcache/src/TSSTXStateWrapper.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "TSSTXStateWrapper.hpp"
19 |
20 | #include "TXState.hpp"
21 |
22 | namespace apache {
23 | namespace geode {
24 | namespace client {
25 |
26 | TSSTXStateWrapper::~TSSTXStateWrapper() noexcept {
27 | if (m_txState) {
28 | delete m_txState;
29 | m_txState = nullptr;
30 | }
31 | }
32 |
33 | } // namespace client
34 | } // namespace geode
35 | } // namespace apache
36 |
--------------------------------------------------------------------------------
/examples/dotnet/sslputget/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | cmake_minimum_required(VERSION 3.10)
17 |
18 | project(dotnet-sslputget LANGUAGES NONE)
19 |
20 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt.in ${CMAKE_CURRENT_BINARY_DIR}/CMakeLists.txt @ONLY)
21 |
22 | install(FILES
23 | ${CMAKE_CURRENT_BINARY_DIR}/CMakeLists.txt
24 | Program.cs
25 | README.md
26 | startserver.ps1
27 | stopserver.ps1
28 | DESTINATION examples/dotnet/sslputget)
29 |
30 |
--------------------------------------------------------------------------------
/cppcache/integration-test/resources/cache.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
19 |
20 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/cppcache/integration-test/resources/bad_schema.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
19 |
20 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/cppcache/integration/test/utility/make_unique.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #ifndef INTEGRATION_TEST_UTILITY_MAKE_UNIQUE_H
19 | #define INTEGRATION_TEST_UTILITY_MAKE_UNIQUE_H
20 |
21 | #include
22 | #include
23 |
24 | // Until we get C++14 support...
25 | template
26 | ::std::unique_ptr make_unique(Args &&... args) {
27 | return ::std::unique_ptr(new T(::std::forward(args)...));
28 | }
29 |
30 | #endif
31 |
--------------------------------------------------------------------------------
/docs/geode-native-book-cpp/master_middleman/source/stylesheets/partials/_book-vars.scss:
--------------------------------------------------------------------------------
1 | //Licensed to the Apache Software Foundation (ASF) under one or more
2 | //contributor license agreements. See the NOTICE file distributed with
3 | //this work for additional information regarding copyright ownership.
4 | //The ASF licenses this file to You under the Apache License, Version 2.0
5 | //(the "License"); you may not use this file except in compliance with
6 | //the License. You may obtain a copy of the License at
7 | //
8 | //http://www.apache.org/licenses/LICENSE-2.0
9 | //
10 | //Unless required by applicable law or agreed to in writing, software
11 | //distributed under the License is distributed on an "AS IS" BASIS,
12 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13 | //express or implied. See the License for the specific language governing
14 | //permissions and limitations under the License.
15 |
16 | $navy: #243640;
17 | $blue1: #2185c5;
18 | $blue2: #a7cae1;
19 | $bluegray1: #4b6475;
20 | $teal1: #03786D;
21 | $teal2: #00a79d;
22 |
23 | $color-accent: $teal1;
24 | $color-accent-bright: $teal2;
25 |
26 | // link colors
27 | $color-link: $blue1;
28 | $color-link-border: $blue2;
29 |
30 | $color-border-tip: $blue2;
31 |
32 | $color-bg-header: $navy;
33 | $color-bg-dark: $bluegray1;
34 |
--------------------------------------------------------------------------------
/docs/geode-native-book-dotnet/master_middleman/source/stylesheets/partials/_book-vars.scss:
--------------------------------------------------------------------------------
1 | //Licensed to the Apache Software Foundation (ASF) under one or more
2 | //contributor license agreements. See the NOTICE file distributed with
3 | //this work for additional information regarding copyright ownership.
4 | //The ASF licenses this file to You under the Apache License, Version 2.0
5 | //(the "License"); you may not use this file except in compliance with
6 | //the License. You may obtain a copy of the License at
7 | //
8 | //http://www.apache.org/licenses/LICENSE-2.0
9 | //
10 | //Unless required by applicable law or agreed to in writing, software
11 | //distributed under the License is distributed on an "AS IS" BASIS,
12 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13 | //express or implied. See the License for the specific language governing
14 | //permissions and limitations under the License.
15 |
16 | $navy: #243640;
17 | $blue1: #2185c5;
18 | $blue2: #a7cae1;
19 | $bluegray1: #4b6475;
20 | $teal1: #03786D;
21 | $teal2: #00a79d;
22 |
23 | $color-accent: $teal1;
24 | $color-accent-bright: $teal2;
25 |
26 | // link colors
27 | $color-link: $blue1;
28 | $color-link-border: $blue2;
29 |
30 | $color-border-tip: $blue2;
31 |
32 | $color-bg-header: $navy;
33 | $color-bg-dark: $bluegray1;
34 |
--------------------------------------------------------------------------------
/cppcache/src/Region.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | #include "CacheImpl.hpp"
21 |
22 | namespace apache {
23 | namespace geode {
24 | namespace client {
25 |
26 | Region::Region(CacheImpl* cacheImpl) : m_cacheImpl(cacheImpl) {}
27 |
28 | Region::~Region() noexcept = default;
29 |
30 | Cache& Region::getCache() { return *m_cacheImpl->getCache(); }
31 |
32 | } // namespace client
33 | } // namespace geode
34 | } // namespace apache
35 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientInterest3Cacheless.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientInterest3Cacheless.hpp"
19 |
20 | DUNIT_MAIN
21 | {
22 | CALL_TASK(CreateLocator1);
23 | CALL_TASK(CreateServer1_With_Locator_XML);
24 |
25 | CALL_TASK(SetupClient1_Pool_Locator);
26 |
27 | CALL_TASK(testCreatesAndUpdates);
28 | CALL_TASK(StopClient1);
29 | CALL_TASK(StopServer);
30 |
31 | CALL_TASK(CloseLocator1);
32 | }
33 | END_MAIN
34 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientRemoveAllSequence.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientRemoveAll.hpp"
19 |
20 | DUNIT_MAIN
21 | {
22 | CALL_TASK(CreateLocator1);
23 | CALL_TASK(CreateServer1_With_Locator_XML);
24 | CALL_TASK(CreateClient1Regions_Pooled_Locator_NoCaching);
25 |
26 | CALL_TASK(removeAllSequence);
27 |
28 | CALL_TASK(CloseCache1);
29 | CALL_TASK(CloseServer1);
30 | CALL_TASK(CloseLocator1);
31 | }
32 | END_MAIN
33 |
--------------------------------------------------------------------------------
/cppcache/test/GatewaySenderEventCallbackArgumentTest.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | #include "GatewaySenderEventCallbackArgument.hpp"
21 |
22 | using apache::geode::client::GatewaySenderEventCallbackArgument;
23 |
24 | TEST(GatewaySenderEventCallbackArgument, testDefaultValues) {
25 | GatewaySenderEventCallbackArgument object;
26 | EXPECT_EQ(-1, object.getOriginatingDSId());
27 | EXPECT_EQ(0, object.getRecipientDSIds().size());
28 | }
29 |
--------------------------------------------------------------------------------
/dependencies/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | cmake_minimum_required( VERSION 3.10 )
17 | project( dependencies LANGUAGES NONE )
18 |
19 | find_package(Patch REQUIRED)
20 |
21 | add_subdirectory(boost)
22 | add_subdirectory(sqlite)
23 | add_subdirectory(doxygen)
24 | add_subdirectory(gtest)
25 | add_subdirectory(benchmark)
26 | add_subdirectory(xerces-c)
27 |
28 | if (USE_RAT)
29 | add_subdirectory( rat )
30 | endif()
31 |
32 | if (WIN32)
33 | add_subdirectory( sqlite-netFx )
34 | endif()
35 |
--------------------------------------------------------------------------------
/packer/windows/cleanup.ps1:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # Remove admin ssh keys
17 | $authorized_keys_file = "${ENV:PROGRAMDATA}\ssh\administrators_authorized_keys"
18 | Remove-Item "${authorized_keys_file}" -Force -ErrorAction SilentlyContinue
19 |
20 | # Cleanup temp
21 | Get-ChildItem $env:tmp -Recurse | Remove-Item -Recurse -force -ErrorAction SilentlyContinue
22 | Get-ChildItem ([environment]::GetEnvironmentVariable("temp","machine")) -Recurse| Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
23 |
--------------------------------------------------------------------------------
/examples/cpp/transaction/stopserver.ps1:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | $GFSH_PATH = ""
17 | if (Get-Command gfsh -ErrorAction SilentlyContinue)
18 | {
19 | $GFSH_PATH = "gfsh"
20 | }
21 | else
22 | {
23 | $GFSH_PATH = "$env:GEODE_HOME\bin\gfsh.bat"
24 | }
25 |
26 | Invoke-Expression "$GFSH_PATH -e 'connect' -e 'destroy region --name=exampleRegion' -e 'stop server --name=server' -e 'stop locator --name=locator'"
27 |
28 | Remove-Item -Path locator -Recurse -Force
29 | Remove-Item -Path server -Recurse -Force
30 |
--------------------------------------------------------------------------------
/docs/geode-native-book-cpp/master_middleman/source/layouts/_local-header.erb:
--------------------------------------------------------------------------------
1 |
17 |
18 | <% if vars.local_header_img %>
19 |
20 | <% end %>
21 | <%= vars.local_header_title %>
22 |
23 | <% if vars.changelog_href %>
24 |
27 | <% end %>
28 |
--------------------------------------------------------------------------------
/docs/geode-native-book-dotnet/master_middleman/source/layouts/_local-header.erb:
--------------------------------------------------------------------------------
1 |
17 |
18 | <% if vars.local_header_img %>
19 |
20 | <% end %>
21 | <%= vars.local_header_title %>
22 |
23 | <% if vars.changelog_href %>
24 |
27 | <% end %>
28 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientInterest3.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientInterest3.hpp"
19 |
20 | DUNIT_MAIN
21 | {
22 | CALL_TASK(CreateLocator1);
23 | CALL_TASK(CreateServer1_With_Locator_XML);
24 | CALL_TASK(SetupClient1_Pool_Locator);
25 |
26 | CALL_TASK(testCreatesAndUpdates);
27 | CALL_TASK(testInvalidateAndDestroy);
28 |
29 | CALL_TASK(StopClient1);
30 | CALL_TASK(StopServer);
31 | CALL_TASK(CloseLocator1);
32 | }
33 | END_MAIN
34 |
--------------------------------------------------------------------------------
/cppcache/src/DiskStoreId.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "DiskStoreId.hpp"
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace client {
23 |
24 | std::string DiskStoreId::getHashKey() {
25 | if (m_hashCode.empty()) {
26 | m_hashCode.append(std::to_string(m_mostSig))
27 | .append("_")
28 | .append(std::to_string(m_leastSig));
29 | }
30 | return m_hashCode;
31 | }
32 |
33 | } // namespace client
34 | } // namespace geode
35 | } // namespace apache
36 |
--------------------------------------------------------------------------------
/cppcache/benchmark/NoopBM.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | #include
21 |
22 | /**
23 | * Benchmarks a no-op for comparison to other benchmarks. If your benchmark has
24 | * similar results it is possible that it has been optimized to a no-op.
25 | */
26 | void noop(benchmark::State& state) {
27 | for (auto _ : state) {
28 | }
29 | }
30 |
31 | BENCHMARK(noop)
32 | ->ThreadRange(1, std::thread::hardware_concurrency())
33 | ->UseRealTime();
34 |
--------------------------------------------------------------------------------
/examples/cpp/CMakeLists.txt.in:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | cmake_minimum_required(VERSION 3.10)
17 |
18 | project(@PRODUCT_DLL_NAME@.Cpp.Examples LANGUAGES NONE)
19 |
20 | add_subdirectory(authinitialize)
21 | add_subdirectory(continuousquery)
22 | add_subdirectory(dataserializable)
23 | add_subdirectory(functionexecution)
24 | add_subdirectory(pdxserializable)
25 | add_subdirectory(pdxserializer)
26 | add_subdirectory(putgetremove)
27 | add_subdirectory(remotequery)
28 | add_subdirectory(transaction)
29 |
30 | add_subdirectory(sslputget)
31 |
--------------------------------------------------------------------------------
/cmake/ExecutableExportHeader.cmake:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | function(GENERATE_EXEC_EXPORT_HEADER TARGET)
17 | get_property(type TARGET ${TARGET} PROPERTY TYPE)
18 | if(NOT ${type} STREQUAL "EXECUTABLE")
19 | message(WARNING "This macro can only be used with executables")
20 | return()
21 | endif()
22 |
23 | include(GenerateExportHeader)
24 |
25 | _test_compiler_hidden_visibility()
26 | _test_compiler_has_deprecated()
27 | _do_set_macro_values(${TARGET})
28 | _do_generate_export_header(${TARGET} ${ARGN})
29 | endfunction()
--------------------------------------------------------------------------------
/docs/geode-native-docs-dotnet/preserving-data/initial-operation.html.md.erb:
--------------------------------------------------------------------------------
1 | ---
2 | title: Initial Operation
3 | ---
4 |
5 |
21 |
22 | The initial startup of a durable client is similar to the startup of any other client, except that it specifically calls the `Cache.readyForEvents` method when all regions and listeners on the client are ready to process messages from the server.
23 |
24 | See [Sending the Cache Ready Message to the Server](sending-cache-ready-message.html#concept_C28D015FA85B4EE4B2F8D2DA5FCAFBFF).
25 |
26 |
27 |
--------------------------------------------------------------------------------
/cppcache/test/util/queueTest.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include
19 |
20 | #include
21 |
22 | #include "util/queue.hpp"
23 |
24 | using apache::geode::client::queue::coalesce;
25 |
26 | TEST(queueTest, coalesce) {
27 | auto queue = std::deque({1, 1, 1, 2, 3, 4});
28 |
29 | coalesce(queue, 1);
30 | EXPECT_EQ(2, queue.front());
31 | EXPECT_EQ(3, queue.size());
32 |
33 | coalesce(queue, 3);
34 | EXPECT_EQ(2, queue.front());
35 | EXPECT_EQ(3, queue.size());
36 | }
37 |
--------------------------------------------------------------------------------
/cppcache/integration-test/ClientCleanup.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #pragma once
19 |
20 | #ifndef GEODE_INTEGRATION_TEST_CLIENT_CLEANUP_H_
21 | #define GEODE_INTEGRATION_TEST_CLIENT_CLEANUP_H_
22 |
23 | #include
24 | #include
25 |
26 | class ClientCleanup {
27 | public:
28 | void trigger();
29 | void registerCallback(std::function callback);
30 |
31 | protected:
32 | std::list> callbacks_;
33 | };
34 |
35 | #endif // GEODE_INTEGRATION_TEST_CLIENT_CLEANUP_H_
36 |
--------------------------------------------------------------------------------
/cppcache/src/util/bounds.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #pragma once
19 |
20 | #ifndef GEODE_UTIL_BOUNDS_H_
21 | #define GEODE_UTIL_BOUNDS_H_
22 |
23 | #include "chrono/duration_bounds.hpp"
24 |
25 | namespace apache {
26 | namespace geode {
27 | namespace util {
28 |
29 | constexpr auto PROTOCOL_OPERATION_TIMEOUT_BOUNDS =
30 | chrono::duration::assert_bounds{};
31 |
32 | } // namespace util
33 | } // namespace geode
34 | } // namespace apache
35 |
36 | #endif // GEODE_UTIL_BOUNDS_H_
37 |
--------------------------------------------------------------------------------
/examples/cpp/functionexecution/stopserver.sh:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | #!/usr/bin/env bash
17 | GFSH_PATH=""
18 | which gfsh 2> /dev/null
19 |
20 | if [ $? -eq 0 ]; then
21 | GFSH_PATH="gfsh"
22 | else
23 | if [ "$GEODE_HOME" == "" ]; then
24 | echo "Could not find gfsh. Please set the GEODE_HOME path."
25 | echo "e.g. export GEODE_HOME="
26 | else
27 | GFSH_PATH=$GEODE_HOME/bin/gfsh
28 | fi
29 | fi
30 |
31 | $GFSH_PATH -e "connect" -e "shutdown --include-locators=true"
32 |
33 | rm -rf locator server
34 |
--------------------------------------------------------------------------------
/cppcache/src/PartitionResolver.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | #include
18 | #include
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace client {
23 |
24 | PartitionResolver::PartitionResolver() {}
25 |
26 | PartitionResolver::~PartitionResolver() {}
27 |
28 | const std::string& PartitionResolver::getName() {
29 | static std::string name = "PartitionResolver";
30 | return name;
31 | }
32 | } // namespace client
33 | } // namespace geode
34 | } // namespace apache
35 |
--------------------------------------------------------------------------------
/cppcache/src/util/concurrent/spinlock_mutex.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "spinlock_mutex.hpp"
19 |
20 | namespace apache {
21 | namespace geode {
22 | namespace util {
23 | namespace concurrent {
24 |
25 | void spinlock_mutex::lock() {
26 | while (flag.test_and_set(std::memory_order_acquire)) continue;
27 | }
28 |
29 | void spinlock_mutex::unlock() { flag.clear(std::memory_order_release); }
30 |
31 | } /* namespace concurrent */
32 | } /* namespace util */
33 | } /* namespace geode */
34 | } /* namespace apache */
35 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientInterest1.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientInterest1.hpp"
19 |
20 | DUNIT_MAIN
21 | {
22 | CALL_TASK(CreateLocator1);
23 | CALL_TASK(CreateServer1_With_Locator_XML);
24 | CALL_TASK(SetupClient1_Pool_Locator);
25 | CALL_TASK(populateServer);
26 | CALL_TASK(setupClient2_Pool_Locator);
27 | CALL_TASK(verify);
28 | CALL_TASK(StopClient1);
29 | CALL_TASK(StopClient2);
30 | CALL_TASK(StopServer);
31 | CALL_TASK(CloseLocator1);
32 | }
33 | END_MAIN
34 |
--------------------------------------------------------------------------------
/cppcache/integration/framework/TestConfig.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #pragma once
19 |
20 | #ifndef INTEGRATION_TEST_FRAMEWORK_CONFIG_H
21 | #define INTEGRATION_TEST_FRAMEWORK_CONFIG_H
22 |
23 | enum class FrameworkVariable {
24 | JavaObjectJarPath,
25 | GfShExecutable,
26 | TestCacheXmlDir,
27 | NewTestResourcesDir,
28 | TestClientSslKeysDir,
29 | TestServerSslKeysDir,
30 | TestSniConfigPath
31 | };
32 |
33 | const char *getFrameworkString(FrameworkVariable name);
34 |
35 | #endif // INTEGRATION_TEST_FRAMEWORK_CONFIG_H
36 |
--------------------------------------------------------------------------------
/cppcache/integration-test/testThinClientInterest2Pooled.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | #include "ThinClientInterest2.hpp"
19 |
20 | DUNIT_MAIN
21 | {
22 | CALL_TASK(CreateLocator1);
23 | CALL_TASK(CreateServer1_With_Locator_XML);
24 | CALL_TASK(SetupClient1_Pool_Locator);
25 | CALL_TASK(setupClient2_Pool_Locator);
26 | CALL_TASK(populateServer);
27 | CALL_TASK(verify);
28 | CALL_TASK(StopClient1);
29 | CALL_TASK(StopClient2);
30 | CALL_TASK(StopServer);
31 | CALL_TASK(CloseLocator1);
32 | }
33 | END_MAIN
34 |
--------------------------------------------------------------------------------
/examples/cpp/putgetremove/stopserver.sh:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | #!/usr/bin/env bash
17 | GFSH_PATH=""
18 | which gfsh 2> /dev/null
19 |
20 | if [ $? -eq 0 ]; then
21 | GFSH_PATH="gfsh"
22 | else
23 | if [ "$GEODE_HOME" == "" ]; then
24 | echo "Could not find gfsh. Please set the GEODE_HOME path."
25 | echo "e.g. export GEODE_HOME="
26 | else
27 | GFSH_PATH=$GEODE_HOME/bin/gfsh
28 | fi
29 | fi
30 |
31 | $GFSH_PATH -e "connect" -e "stop server --name=server" -e "stop locator --name=locator"
32 |
33 | rm -rf locator server
34 |
--------------------------------------------------------------------------------
/examples/cpp/transaction/stopserver.sh:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with
3 | # this work for additional information regarding copyright ownership.
4 | # The ASF licenses this file to You under the Apache License, Version 2.0
5 | # (the "License"); you may not use this file except in compliance with
6 | # the License. You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | #!/usr/bin/env bash
17 | GFSH_PATH=""
18 | which gfsh 2> /dev/null
19 |
20 | if [ $? -eq 0 ]; then
21 | GFSH_PATH="gfsh"
22 | else
23 | if [ "$GEODE_HOME" == "" ]; then
24 | echo "Could not find gfsh. Please set the GEODE_HOME path."
25 | echo "e.g. export GEODE_HOME="
26 | else
27 | GFSH_PATH=$GEODE_HOME/bin/gfsh
28 | fi
29 | fi
30 |
31 | $GFSH_PATH -e "connect" -e "stop server --name=server" -e "stop locator --name=locator"
32 |
33 | rm -rf locator server
34 |
--------------------------------------------------------------------------------