geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject [50/51] [partial] geode git commit: Software Grant Agreement (SGA) from Pivotal for Apache Geode
Date Fri, 13 Jan 2017 22:46:34 GMT
http://git-wip-us.apache.org/repos/asf/geode/blob/2d4a7ecd/.clang-format
----------------------------------------------------------------------
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..54da194
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,105 @@
+---
+Language:        Cpp
+# BasedOnStyle:  Google
+AccessModifierOffset: -1
+AlignAfterOpenBracket: Align
+AlignConsecutiveAssignments: false
+AlignConsecutiveDeclarations: false
+AlignEscapedNewlinesLeft: true
+AlignOperands:   true
+AlignTrailingComments: true
+AllowAllParametersOfDeclarationOnNextLine: true
+AllowShortBlocksOnASingleLine: false
+AllowShortCaseLabelsOnASingleLine: false
+AllowShortFunctionsOnASingleLine: All
+AllowShortIfStatementsOnASingleLine: true
+AllowShortLoopsOnASingleLine: true
+AlwaysBreakAfterDefinitionReturnType: None
+AlwaysBreakAfterReturnType: None
+AlwaysBreakBeforeMultilineStrings: true
+AlwaysBreakTemplateDeclarations: true
+BinPackArguments: true
+BinPackParameters: true
+BraceWrapping:   
+  AfterClass:      false
+  AfterControlStatement: false
+  AfterEnum:       false
+  AfterFunction:   false
+  AfterNamespace:  false
+  AfterObjCDeclaration: false
+  AfterStruct:     false
+  AfterUnion:      false
+  BeforeCatch:     false
+  BeforeElse:      false
+  IndentBraces:    false
+BreakBeforeBinaryOperators: None
+BreakBeforeBraces: Attach
+BreakBeforeTernaryOperators: true
+BreakConstructorInitializersBeforeComma: false
+BreakAfterJavaFieldAnnotations: false
+BreakStringLiterals: true
+ColumnLimit:     80
+CommentPragmas:  '^ IWYU pragma:'
+ConstructorInitializerAllOnOneLineOrOnePerLine: true
+ConstructorInitializerIndentWidth: 4
+ContinuationIndentWidth: 4
+Cpp11BracedListStyle: true
+DerivePointerAlignment: true
+DisableFormat:   false
+ExperimentalAutoDetectBinPacking: false
+ForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
+#IncludeCategories: 
+#  - Regex:           '^<.*\.h>'
+#    Priority:        1
+#  - Regex:           '^<.*'
+#    Priority:        2
+#  - Regex:           '.*'
+#    Priority:        3
+IncludeIsMainRegex: '([-_](test|unittest))?$'
+IndentCaseLabels: true
+IndentWidth:     2
+IndentWrappedFunctionNames: false
+JavaScriptQuotes: Leave
+JavaScriptWrapImports: true
+KeepEmptyLinesAtTheStartOfBlocks: false
+MacroBlockBegin: "^\
+BEGIN_TEST|\
+DUNIT_TASK|\
+DUNIT_TASK_DEFINITION|\
+DUNIT_MAIN$"
+MacroBlockEnd:   "^\
+END_TEST|\
+ENDTASK|\
+END_TASK|\
+END_TASK_DEFINITION|\
+END_MAIN$"
+MaxEmptyLinesToKeep: 1
+NamespaceIndentation: None
+ObjCBlockIndentWidth: 2
+ObjCSpaceAfterProperty: false
+ObjCSpaceBeforeProtocolList: false
+PenaltyBreakBeforeFirstCallParameter: 1
+PenaltyBreakComment: 300
+PenaltyBreakFirstLessLess: 120
+PenaltyBreakString: 1000
+PenaltyExcessCharacter: 1000000
+PenaltyReturnTypeOnItsOwnLine: 200
+PointerAlignment: Left
+ReflowComments:  true
+#SortIncludes:    true
+SortIncludes:    false
+SpaceAfterCStyleCast: false
+SpaceBeforeAssignmentOperators: true
+SpaceBeforeParens: ControlStatements
+SpaceInEmptyParentheses: false
+SpacesBeforeTrailingComments: 2
+SpacesInAngles:  false
+SpacesInContainerLiterals: true
+SpacesInCStyleCastParentheses: false
+SpacesInParentheses: false
+SpacesInSquareBrackets: false
+Standard:        Auto
+TabWidth:        8
+UseTab:          Never
+...
+

http://git-wip-us.apache.org/repos/asf/geode/blob/2d4a7ecd/.clang-tidy
----------------------------------------------------------------------
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 0000000..50f19b4
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,45 @@
+---
+Checks:          'clang-diagnostic-*,clang-analyzer-*,-clang-analyzer-alpha*,-*,google-*,-google-readability-todo'
+WarningsAsErrors: ''
+HeaderFilterRegex: ''
+AnalyzeTemporaryDtors: false
+User:            jbarrett
+CheckOptions:    
+  - key:             cert-oop11-cpp.UseCERTSemantics
+    value:           '1'
+  - key:             google-build-namespaces.HeaderFileExtensions
+    value:           h,hh,hpp,hxx
+  - key:             google-global-names-in-headers.HeaderFileExtensions
+    value:           h
+  - key:             google-readability-braces-around-statements.ShortStatementLines
+    value:           '1'
+  - key:             google-readability-function-size.BranchThreshold
+    value:           '4294967295'
+  - key:             google-readability-function-size.LineThreshold
+    value:           '4294967295'
+  - key:             google-readability-function-size.StatementThreshold
+    value:           '800'
+  - key:             google-readability-namespace-comments.ShortNamespaceLines
+    value:           '10'
+  - key:             google-readability-namespace-comments.SpacesBeforeComments
+    value:           '2'
+  - key:             google-runtime-int.SignedTypePrefix
+    value:           int
+  - key:             google-runtime-int.TypeSuffix
+    value:           ''
+  - key:             google-runtime-int.UnsignedTypePrefix
+    value:           uint
+  - key:             modernize-loop-convert.MaxCopySize
+    value:           '16'
+  - key:             modernize-loop-convert.MinConfidence
+    value:           reasonable
+  - key:             modernize-loop-convert.NamingStyle
+    value:           CamelCase
+  - key:             modernize-pass-by-value.IncludeStyle
+    value:           llvm
+  - key:             modernize-replace-auto-ptr.IncludeStyle
+    value:           llvm
+  - key:             modernize-use-nullptr.NullMacros
+    value:           'NULL'
+...
+

http://git-wip-us.apache.org/repos/asf/geode/blob/2d4a7ecd/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9943eda
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+/build-*/
+
+/build/
+/.settings/
+/.cproject
+/.project

http://git-wip-us.apache.org/repos/asf/geode/blob/2d4a7ecd/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..8dada3e
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,201 @@
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "{}"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright {yyyy} {name of copyright owner}
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.

http://git-wip-us.apache.org/repos/asf/geode/blob/2d4a7ecd/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..1203bf4
--- /dev/null
+++ b/README.md
@@ -0,0 +1,22 @@
+**[Overview](#overview)**  
+**[Building from Source](#building)**  
+**[Introduction](#started)**  
+**[Application Development](#development)**  
+
+## <a name="overview"></a>Overview
+
+Native Client is a client implementation for [Apache Geode] (http://geode.apache.org/) that does not require the Java server JARs.
+
+## <a name="building"></a>Building from Source
+
+Directions to build Native Client from source can be found in the source distribution in `src/BUILDING.md`.
+
+## <a name="started"></a>Introduction
+Please refer to the [Native Client documentation] (http://gemfire-native.docs.pivotal.io/native/introduction/native-client-intro.html) for help in getting started with Native Client.
+
+## <a name="development"></a>Application Development
+
+Native Client applications can be written in these client technologies:
+
+* [C++] (https://isocpp.org)
+* [C#] (https://msdn.microsoft.com/en-us/library/ms228593.aspx)
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/geode/blob/2d4a7ecd/bin/vcvarsall.bat
----------------------------------------------------------------------
diff --git a/bin/vcvarsall.bat b/bin/vcvarsall.bat
new file mode 100644
index 0000000..cbac70c
--- /dev/null
+++ b/bin/vcvarsall.bat
@@ -0,0 +1,7 @@
+@echo off
+
+set vs=Microsoft Visual Studio 12.0
+
+call "c:\Program Files (x86)\%vs%\VC\vcvarsall.bat" %1
+
+echo Environment setup for %vs% %1.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/geode/blob/2d4a7ecd/bin/vcvarsall.ps1
----------------------------------------------------------------------
diff --git a/bin/vcvarsall.ps1 b/bin/vcvarsall.ps1
new file mode 100644
index 0000000..d26290c
--- /dev/null
+++ b/bin/vcvarsall.ps1
@@ -0,0 +1,12 @@
+$vs = "Microsoft Visual Studio 12.0"
+$arch = $args[0]
+
+pushd "c:\Program Files (x86)\$vs\VC\"
+cmd /c "vcvarsall.bat $arch & set" |
+foreach {
+  if ($_ -match "=") {
+    $v = $_.split("="); set-item -force -path "ENV:\$($v[0])"  -value "$($v[1])"
+  }
+}
+popd
+write-host "Environment setup for $vs $arch." -ForegroundColor Yellow

http://git-wip-us.apache.org/repos/asf/geode/blob/2d4a7ecd/etc/format.vssettings
----------------------------------------------------------------------
diff --git a/etc/format.vssettings b/etc/format.vssettings
new file mode 100644
index 0000000..8720b93
--- /dev/null
+++ b/etc/format.vssettings
@@ -0,0 +1,292 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<UserSettings>
+   <ApplicationIdentity version="12.0" />
+   <ToolsOptions>
+      <ToolsOptionsCategory name="TextEditor" RegisteredName="TextEditor">
+         <ToolsOptionsSubCategory name="AllLanguages" RegisteredName="AllLanguages" PackageName="Text Management Package" />
+         <ToolsOptionsSubCategory name="C/C++" RegisteredName="C/C++" PackageName="Text Management Package">
+            <PropertyValue name="TabSize">2</PropertyValue>
+            <PropertyValue name="ShowChanges">true</PropertyValue>
+            <PropertyValue name="AutoListMembers">true</PropertyValue>
+            <PropertyValue name="ShowPreview">true</PropertyValue>
+            <PropertyValue name="ShowMarks">true</PropertyValue>
+            <PropertyValue name="IndentStyle">2</PropertyValue>
+            <PropertyValue name="ShowCaretPosition">true</PropertyValue>
+            <PropertyValue name="HideAdvancedMembers">true</PropertyValue>
+            <PropertyValue name="ShowNavigationBar">true</PropertyValue>
+            <PropertyValue name="UseMapMode">false</PropertyValue>
+            <PropertyValue name="VirtualSpace">false</PropertyValue>
+            <PropertyValue name="ShowAnnotations">true</PropertyValue>
+            <PropertyValue name="ShowVerticalScrollBar">true</PropertyValue>
+            <PropertyValue name="InsertTabs">false</PropertyValue>
+            <PropertyValue name="WordWrapGlyphs">true</PropertyValue>
+            <PropertyValue name="EnableLeftClickForURLs">true</PropertyValue>
+            <PropertyValue name="ShowErrors">true</PropertyValue>
+            <PropertyValue name="OverviewWidth">58</PropertyValue>
+            <PropertyValue name="ShowLineNumbers">false</PropertyValue>
+            <PropertyValue name="WordWrap">false</PropertyValue>
+            <PropertyValue name="IndentSize">2</PropertyValue>
+            <PropertyValue name="BraceCompletion">true</PropertyValue>
+            <PropertyValue name="ShowHorizontalScrollBar">true</PropertyValue>
+            <PropertyValue name="CutCopyBlankLines">true</PropertyValue>
+            <PropertyValue name="AutoListParams">true</PropertyValue>
+         </ToolsOptionsSubCategory>
+         <ToolsOptionsSubCategory name="C/C++ Specific" RegisteredName="C/C++ Specific" PackageName="Visual C++ Language Manager Package">
+            <PropertyValue name="SpaceAroundBinaryOperator">2</PropertyValue>
+            <PropertyValue name="SpaceAfterSemicolon">true</PropertyValue>
+            <PropertyValue name="NewlineFunctionBrace">0</PropertyValue>
+            <PropertyValue name="IndentBlockContents">true</PropertyValue>
+            <PropertyValue name="DisableAggressiveMemberList">false</PropertyValue>
+            <PropertyValue name="MaximumCachedTranslationUnits">2</PropertyValue>
+            <PropertyValue name="SpaceBeforeInitListBrace">false</PropertyValue>
+            <PropertyValue name="SpaceWithinCastParentheses">false</PropertyValue>
+            <PropertyValue name="NewlineInitListBrace">0</PropertyValue>
+            <PropertyValue name="IndentCaseContents">true</PropertyValue>
+            <PropertyValue name="RecreateDatabase">false</PropertyValue>
+            <PropertyValue name="SpaceAroundConditionalOperator">2</PropertyValue>
+            <PropertyValue name="SpaceWithinInitListBraces">true</PropertyValue>
+            <PropertyValue name="SpaceBeforeLambdaParenthesis">false</PropertyValue>
+            <PropertyValue name="NewlineEmptyFunctionCloseBrace">true</PropertyValue>
+            <PropertyValue name="DisablePreLoadNavigateToCache">false</PropertyValue>
+            <PropertyValue name="EnterOutliningModeWhenFilesOpen">true</PropertyValue>
+            <PropertyValue name="PreserveBlock">1</PropertyValue>
+            <PropertyValue name="SpaceBeforeConstructorColon">true</PropertyValue>
+            <PropertyValue name="NewlineKeywordWhile">false</PropertyValue>
+            <PropertyValue name="NewlineLambdaBrace">0</PropertyValue>
+            <PropertyValue name="DisableSharedIntelliSense">false</PropertyValue>
+            <PropertyValue name="AddSemicolonForClassTypes">true</PropertyValue>
+            <PropertyValue name="MemberListCommitCharacters">{}[]().,:;+-*/%&amp;|^!=&amp;lt;&amp;gt;?@#\</PropertyValue>
+            <PropertyValue name="DisableReferenceHighlighting">false</PropertyValue>
+            <PropertyValue name="DoNotWarnIfFallbackLocationUsed">false</PropertyValue>
+            <PropertyValue name="DisableDatabaseImplicitAutoCleanup">false</PropertyValue>
+            <PropertyValue name="SpaceBeforeFunctionParenthesis">false</PropertyValue>
+            <PropertyValue name="NewlineNamespaceBrace">0</PropertyValue>
+            <PropertyValue name="AutoFormatOnSemicolon">true</PropertyValue>
+            <PropertyValue name="AutoTuneMaximumCachedTranslationUnits">true</PropertyValue>
+            <PropertyValue name="UseForwardSlashForIncludeAutoComplete">false</PropertyValue>
+            <PropertyValue name="DisableInactiveCodeOpacity">false</PropertyValue>
+            <PropertyValue name="HighlightMatchingTokens">true</PropertyValue>
+            <PropertyValue name="DisableDatabaseUpdates">false</PropertyValue>
+            <PropertyValue name="DisableIntelliSenseUpdating">false</PropertyValue>
+            <PropertyValue name="NewlineControlBlockBrace">0</PropertyValue>
+            <PropertyValue name="IndentNamespaceContents">true</PropertyValue>
+            <PropertyValue name="CompleteSlashStar">true</PropertyValue>
+            <PropertyValue name="FallbackLocation" />
+            <PropertyValue name="DisableErrorReporting">false</PropertyValue>
+            <PropertyValue name="SpaceBeforeComma">false</PropertyValue>
+            <PropertyValue name="IndentAccessSpecifiers">false</PropertyValue>
+            <PropertyValue name="DisableBrowsingUpToDateCheck">true</PropertyValue>
+            <PropertyValue name="DisableDatabaseImplicitFiles">false</PropertyValue>
+            <PropertyValue name="SpaceAroundAssignmentOperator">2</PropertyValue>
+            <PropertyValue name="SmartMemberListCommitOnEnter">false</PropertyValue>
+            <PropertyValue name="DisableReferencesResolving">false</PropertyValue>
+            <PropertyValue name="DisableExternalDependenciesFolders">false</PropertyValue>
+            <PropertyValue name="DisableIntelliSense">false</PropertyValue>
+            <PropertyValue name="RemoveSpaceBeforeSemicolon">true</PropertyValue>
+            <PropertyValue name="SpaceBetweenEmptyLambdaBrackets">false</PropertyValue>
+            <PropertyValue name="SpaceBeforeControlBlockParenthesis">true</PropertyValue>
+            <PropertyValue name="SpaceBetweenEmptyFunctionParentheses">false</PropertyValue>
+            <PropertyValue name="PreserveParameterIndentation">false</PropertyValue>
+            <PropertyValue name="MemberListFilterInaccessible">true</PropertyValue>
+            <PropertyValue name="AutomaticOutliningOfStatementBlocks">false</PropertyValue>
+            <PropertyValue name="SpaceBeforeEmptyBracket">false</PropertyValue>
+            <PropertyValue name="SpaceWithinExpressionParentheses">false</PropertyValue>
+            <PropertyValue name="AutoFormatOnPaste">true</PropertyValue>
+            <PropertyValue name="LoggingLevel">5</PropertyValue>
+            <PropertyValue name="TrimSpaceUnaryOperator">true</PropertyValue>
+            <PropertyValue name="TrimSpaceAroundScope">true</PropertyValue>
+            <PropertyValue name="GroupBrackets">true</PropertyValue>
+            <PropertyValue name="SpaceBetweenEmptyBrackets">false</PropertyValue>
+            <PropertyValue name="SpaceWithinControlBlockParentheses">false</PropertyValue>
+            <PropertyValue name="NewlineTypeBrace">0</PropertyValue>
+            <PropertyValue name="MemberListFilterMode">3</PropertyValue>
+            <PropertyValue name="ColorizeInactiveBlocksDifferently">true</PropertyValue>
+            <PropertyValue name="SpaceAfterCastParenthesis">false</PropertyValue>
+            <PropertyValue name="RescanSolutionInterval">60</PropertyValue>
+            <PropertyValue name="AlwaysUseFallbackLocation">false</PropertyValue>
+            <PropertyValue name="DisableDatabaseAutoUpdates">false</PropertyValue>
+            <PropertyValue name="DisableSquiggles">false</PropertyValue>
+            <PropertyValue name="EnableQuickInfoToolTips">true</PropertyValue>
+            <PropertyValue name="IndentCaseBraces">false</PropertyValue>
+            <PropertyValue name="AlignParameters">false</PropertyValue>
+            <PropertyValue name="AutoFormatOnBraceCompletion">true</PropertyValue>
+            <PropertyValue name="AutoFormatOnClosingBrace">true</PropertyValue>
+            <PropertyValue name="CompleteParensInRawString">true</PropertyValue>
+            <PropertyValue name="DisableSemanticColoring">false</PropertyValue>
+            <PropertyValue name="InactiveCodeOpacityPercent">55</PropertyValue>
+            <PropertyValue name="IndentBraces">false</PropertyValue>
+            <PropertyValue name="SpaceBeforeInheritanceColon">true</PropertyValue>
+            <PropertyValue name="NewlineKeywordCatch">true</PropertyValue>
+            <PropertyValue name="NewlineKeywordElse">true</PropertyValue>
+            <PropertyValue name="IndentCaseLabels">false</PropertyValue>
+            <PropertyValue name="HideUnconfirmedReferencesResults">false</PropertyValue>
+            <PropertyValue name="AutoIndentOnTab">false</PropertyValue>
+            <PropertyValue name="SpaceWithinLambdaBrackets">false</PropertyValue>
+            <PropertyValue name="SpaceWithinBrackets">false</PropertyValue>
+            <PropertyValue name="DisableMemberListKeywords">false</PropertyValue>
+            <PropertyValue name="EnumerateCommentTasks">true</PropertyValue>
+            <PropertyValue name="AutomaticOutliningOfPragmaRegions">true</PropertyValue>
+            <PropertyValue name="SpaceAfterComma">true</PropertyValue>
+            <PropertyValue name="SpaceBetweenEmptyBraces">false</PropertyValue>
+            <PropertyValue name="IndentGotoLabels">1</PropertyValue>
+            <PropertyValue name="MemberListCommitAggressive">false</PropertyValue>
+            <PropertyValue name="DisableMemberListExpansions">false</PropertyValue>
+            <PropertyValue name="LoggingFilter">0</PropertyValue>
+            <PropertyValue name="RescanSolution">false</PropertyValue>
+            <PropertyValue name="DisableDatabase">false</PropertyValue>
+            <PropertyValue name="SpaceBeforeBracket">false</PropertyValue>
+            <PropertyValue name="SpaceWithinFunctionParentheses">false</PropertyValue>
+            <PropertyValue name="NewlineEmptyTypeCloseBrace">true</PropertyValue>
+            <PropertyValue name="DisableIncludeAutoComplete">false</PropertyValue>
+            <PropertyValue name="EnableLogging">false</PropertyValue>
+         </ToolsOptionsSubCategory>
+         <ToolsOptionsSubCategory name="CSharp" RegisteredName="CSharp" PackageName="Text Management Package">
+            <PropertyValue name="TabSize">2</PropertyValue>
+            <PropertyValue name="ShowChanges">true</PropertyValue>
+            <PropertyValue name="AutoListMembers">true</PropertyValue>
+            <PropertyValue name="ShowPreview">true</PropertyValue>
+            <PropertyValue name="ShowMarks">true</PropertyValue>
+            <PropertyValue name="IndentStyle">2</PropertyValue>
+            <PropertyValue name="ShowCaretPosition">true</PropertyValue>
+            <PropertyValue name="HideAdvancedMembers">true</PropertyValue>
+            <PropertyValue name="ShowNavigationBar">true</PropertyValue>
+            <PropertyValue name="UseMapMode">false</PropertyValue>
+            <PropertyValue name="VirtualSpace">false</PropertyValue>
+            <PropertyValue name="ShowAnnotations">true</PropertyValue>
+            <PropertyValue name="ShowVerticalScrollBar">true</PropertyValue>
+            <PropertyValue name="InsertTabs">false</PropertyValue>
+            <PropertyValue name="WordWrapGlyphs">true</PropertyValue>
+            <PropertyValue name="EnableLeftClickForURLs">true</PropertyValue>
+            <PropertyValue name="ShowErrors">true</PropertyValue>
+            <PropertyValue name="OverviewWidth">58</PropertyValue>
+            <PropertyValue name="ShowLineNumbers">false</PropertyValue>
+            <PropertyValue name="WordWrap">false</PropertyValue>
+            <PropertyValue name="IndentSize">2</PropertyValue>
+            <PropertyValue name="BraceCompletion">true</PropertyValue>
+            <PropertyValue name="ShowHorizontalScrollBar">true</PropertyValue>
+            <PropertyValue name="CutCopyBlankLines">true</PropertyValue>
+            <PropertyValue name="AutoListParams">true</PropertyValue>
+         </ToolsOptionsSubCategory>
+         <ToolsOptionsSubCategory name="CSharp-Specific" RegisteredName="CSharp-Specific" PackageName="Visual C# Language Service Package">
+            <PropertyValue name="NewLines_QueryExpression_EachClause">1</PropertyValue>
+            <PropertyValue name="Space_Normalize">0</PropertyValue>
+            <PropertyValue name="Space_AroundBinaryOperator">1</PropertyValue>
+            <PropertyValue name="Formatting_TriggerOnPaste">1</PropertyValue>
+            <PropertyValue name="UnboundItem_ExactMatches">5</PropertyValue>
+            <PropertyValue name="GenerateConstructorSmartTagEnabled">1</PropertyValue>
+            <PropertyValue name="CompleteOnSpace">1</PropertyValue>
+            <PropertyValue name="WarnWhenMembersCauseCompilerGeneratedReferences">1</PropertyValue>
+            <PropertyValue name="CollapseInactiveBlocksOnOpen">1</PropertyValue>
+            <PropertyValue name="Watson_MaxExceptionsToReport">1</PropertyValue>
+            <PropertyValue name="EditAndContinueReportEnterBreakStateFailure">1</PropertyValue>
+            <PropertyValue name="TrackMostRecentlyUsed">1</PropertyValue>
+            <PropertyValue name="FilterKeywordsContextually">1</PropertyValue>
+            <PropertyValue name="BringUpOnSpace">1</PropertyValue>
+            <PropertyValue name="Rename_Preview">1</PropertyValue>
+            <PropertyValue name="EncapsulateField_PreviewReferenceChanges">1</PropertyValue>
+            <PropertyValue name="DelayBeforeShowingErrors">1500</PropertyValue>
+            <PropertyValue name="CollapseRegionBlocksOnOpen">1</PropertyValue>
+            <PropertyValue name="NewLines_Braces_Method">1</PropertyValue>
+            <PropertyValue name="HighlightReferences">1</PropertyValue>
+            <PropertyValue name="RefactorNotifyRenameEnabled">1</PropertyValue>
+            <PropertyValue name="OnlyScanFirstTypeInFileForDesignerAttribute">0</PropertyValue>
+            <PropertyValue name="Indent_CaseLabels">1</PropertyValue>
+            <PropertyValue name="Formatting_TriggerOnBlockCompletion">1</PropertyValue>
+            <PropertyValue name="CompletionCommitCharacters">{}[]().,:;+-*/%&amp;|^!~=&amp;lt;&amp;gt;?@#'"\</PropertyValue>
+            <PropertyValue name="EditAndContinueEnabled">1</PropertyValue>
+            <PropertyValue name="InsertNewlineOnEnterWithWholeWord">0</PropertyValue>
+            <PropertyValue name="BringUpOnOverride">1</PropertyValue>
+            <PropertyValue name="CodeDefinitionWindow_DocumentationComment_IndentOffset">2</PropertyValue>
+            <PropertyValue name="Rename_Comments">0</PropertyValue>
+            <PropertyValue name="Squiggles_SemanticAnalysis">1</PropertyValue>
+            <PropertyValue name="NewLines_Braces_ControlFlow">1</PropertyValue>
+            <PropertyValue name="NewLines_Braces_AnonymousMethod">1</PropertyValue>
+            <PropertyValue name="Space_WithinOtherParentheses">0</PropertyValue>
+            <PropertyValue name="BringUpOnIdentifier">1</PropertyValue>
+            <PropertyValue name="RemoveParameters_PreviewReferenceChanges">1</PropertyValue>
+            <PropertyValue name="Wrapping_KeepStatementsOnSingleLine">1</PropertyValue>
+            <PropertyValue name="Space_AfterBasesColon">1</PropertyValue>
+            <PropertyValue name="Indent_Braces">0</PropertyValue>
+            <PropertyValue name="CompleteOnNewline">1</PropertyValue>
+            <PropertyValue name="EncapsulateField_UpdateAllReferences">0</PropertyValue>
+            <PropertyValue name="Wrapping_IgnoreSpacesAroundVariableDeclaration">0</PropertyValue>
+            <PropertyValue name="Space_WithinMethodCallParentheses">0</PropertyValue>
+            <PropertyValue name="Space_AfterCast">0</PropertyValue>
+            <PropertyValue name="Colorize">1</PropertyValue>
+            <PropertyValue name="EditAndContinueReportOpenScopeFailure">0</PropertyValue>
+            <PropertyValue name="FilterToAllowableTypes">1</PropertyValue>
+            <PropertyValue name="WarnOnBuildErrors">1</PropertyValue>
+            <PropertyValue name="SortUsings_PlaceSystemFirst">0</PropertyValue>
+            <PropertyValue name="NewLines_Braces_CollectionInitializer">0</PropertyValue>
+            <PropertyValue name="Watson_DeferSendingUntilLater">0</PropertyValue>
+            <PropertyValue name="ShowKeywords">1</PropertyValue>
+            <PropertyValue name="ShowSnippets">1</PropertyValue>
+            <PropertyValue name="BraceMatchingRectangle">1</PropertyValue>
+            <PropertyValue name="NewLines_AnonymousTypeInitializer_EachMember">1</PropertyValue>
+            <PropertyValue name="NewLines_Keywords_Catch">1</PropertyValue>
+            <PropertyValue name="NewLines_Braces_ObjectInitializer">1</PropertyValue>
+            <PropertyValue name="NewLines_Braces_ArrayInitializer">0</PropertyValue>
+            <PropertyValue name="Space_WithinExpressionParentheses">0</PropertyValue>
+            <PropertyValue name="Space_InControlFlowConstruct">1</PropertyValue>
+            <PropertyValue name="Formatting_TriggerOnStatementCompletion">1</PropertyValue>
+            <PropertyValue name="CodeDefinitionWindow_DocumentationComment_WrapLength">80</PropertyValue>
+            <PropertyValue name="NewLines_Keywords_Finally">1</PropertyValue>
+            <PropertyValue name="Space_BetweenEmptyMethodDeclarationParentheses">0</PropertyValue>
+            <PropertyValue name="Indent_UnindentLabels">1</PropertyValue>
+            <PropertyValue name="SmartTagEnabled">1</PropertyValue>
+            <PropertyValue name="SortUsings">1</PropertyValue>
+            <PropertyValue name="Rename_Strings">0</PropertyValue>
+            <PropertyValue name="NewLines_ObjectInitializer_EachMember">1</PropertyValue>
+            <PropertyValue name="NewLines_Keywords_Else">1</PropertyValue>
+            <PropertyValue name="EnableProgressDialogOnWaitForBackground">1</PropertyValue>
+            <PropertyValue name="Space_WithinMethodDeclarationParentheses">0</PropertyValue>
+            <PropertyValue name="Space_BetweenEmptyMethodCallParentheses">0</PropertyValue>
+            <PropertyValue name="Space_BeforeSemicolonsInForStatement">0</PropertyValue>
+            <PropertyValue name="Space_BeforeComma">0</PropertyValue>
+            <PropertyValue name="Space_AfterMethodCallName">0</PropertyValue>
+            <PropertyValue name="Space_AfterComma">1</PropertyValue>
+            <PropertyValue name="ExtractInterface_SelectAll">0</PropertyValue>
+            <PropertyValue name="ReorderParameters_PreviewReferenceChanges">1</PropertyValue>
+            <PropertyValue name="Wrapping_IgnoreSpacesAroundBinaryOperators">0</PropertyValue>
+            <PropertyValue name="Space_BeforeBasesColon">1</PropertyValue>
+            <PropertyValue name="Space_AfterMethodDeclarationName">0</PropertyValue>
+            <PropertyValue name="Space_AfterDot">0</PropertyValue>
+            <PropertyValue name="UnboundItemSmartTagEnabled">1</PropertyValue>
+            <PropertyValue name="AutoComment">1</PropertyValue>
+            <PropertyValue name="NewLines_Braces_Type">1</PropertyValue>
+            <PropertyValue name="Space_AfterLambdaArrow">1</PropertyValue>
+            <PropertyValue name="ImplementInterfaceSmartTagEnabled">1</PropertyValue>
+            <PropertyValue name="BringUpOnPartial">1</PropertyValue>
+            <PropertyValue name="CodeDefinitionWindow_DocumentationComment_IndentBase">1</PropertyValue>
+            <PropertyValue name="EncapsulateField_SearchInStrings">0</PropertyValue>
+            <PropertyValue name="EnterOutliningModeOnOpen">1</PropertyValue>
+            <PropertyValue name="NewLines_Braces_LambdaExpressionBody">1</PropertyValue>
+            <PropertyValue name="Space_WithinSquares">0</PropertyValue>
+            <PropertyValue name="Space_BeforeLambdaArrow">1</PropertyValue>
+            <PropertyValue name="ShowHiddenItems">0</PropertyValue>
+            <PropertyValue name="Squiggles">1</PropertyValue>
+            <PropertyValue name="NewLines_Braces_AnonymousTypeInitializer">1</PropertyValue>
+            <PropertyValue name="Space_WithinCastParentheses">0</PropertyValue>
+            <PropertyValue name="Space_AfterSemicolonsInForStatement">1</PropertyValue>
+            <PropertyValue name="Indent_CaseContents">1</PropertyValue>
+            <PropertyValue name="Indent_FlushLabelsLeft">0</PropertyValue>
+            <PropertyValue name="Watson_ReportExceptions">1</PropertyValue>
+            <PropertyValue name="GenerateStubSmartTagEnabled">1</PropertyValue>
+            <PropertyValue name="BringUpOnEventHookup">1</PropertyValue>
+            <PropertyValue name="ImplementInterface_InsertRegionTags">0</PropertyValue>
+            <PropertyValue name="Wrapping_PreserveSingleLine">1</PropertyValue>
+            <PropertyValue name="Space_BetweenEmptySquares">0</PropertyValue>
+            <PropertyValue name="Space_BeforeOpenSquare">0</PropertyValue>
+            <PropertyValue name="Space_BeforeDot">0</PropertyValue>
+            <PropertyValue name="Indent_BlockContents">1</PropertyValue>
+            <PropertyValue name="RenameSmartTagEnabled">1</PropertyValue>
+            <PropertyValue name="ColorizeBoundTypes">1</PropertyValue>
+            <PropertyValue name="RemoveUnusedUsings">1</PropertyValue>
+            <PropertyValue name="Rename_Overloads">0</PropertyValue>
+            <PropertyValue name="EncapsulateField_SearchInComments">0</PropertyValue>
+            <PropertyValue name="Refactoring_Verification_Enabled">0</PropertyValue>
+            <PropertyValue name="ProgressDialogDelaySeconds">2</PropertyValue>
+         </ToolsOptionsSubCategory>
+      </ToolsOptionsCategory>
+   </ToolsOptions>
+</UserSettings>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/geode/blob/2d4a7ecd/examples/clicache/BenchmarkHierarchicalClient/BenchmarkHierarchicalClient.cs
----------------------------------------------------------------------
diff --git a/examples/clicache/BenchmarkHierarchicalClient/BenchmarkHierarchicalClient.cs b/examples/clicache/BenchmarkHierarchicalClient/BenchmarkHierarchicalClient.cs
new file mode 100755
index 0000000..dbc4816
--- /dev/null
+++ b/examples/clicache/BenchmarkHierarchicalClient/BenchmarkHierarchicalClient.cs
@@ -0,0 +1,213 @@
+/*=========================================================================
+ * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
+ * This product is protected by U.S. and international copyright
+ * and intellectual property laws. Pivotal products are covered by
+ * more patents listed at http://www.pivotal.io/patents.
+ *=========================================================================
+ * This example measures the time it takes for a client caching operation to 
+ * return in a hierarchical cache configuration. 
+ *
+ * While this example uses a console application, it is not a requirement.
+ *
+ * Please note that this example requires that the BenchmarkHierarchicalServer
+ * be running prior to execution.  To start the BenchmarkHierarchicalServer
+ * QuickStart example, please refer to the GemFire Quickstart documentation.
+//////////////////////////////////////////////////////////////////////////////*/
+using System;
+using System.IO;
+using System.Runtime.Serialization.Formatters.Binary;
+
+using GemStone.GemFire.Cache;
+
+public class BenchmarkHierarchicalClient
+{
+  [STAThread()]
+  public static void Main()
+  {
+    /* Total number of benchmark samples to benchmark and the number of puts
+     * to make for each sample.
+    */
+    const int cnBenchmarkedSamples = 60,
+              cnOperationsPerSample = 5000;
+
+    DistributedSystem MyDistributedSystem = null;
+    Cache MyCache = null;
+
+    try
+    {
+      DateTime[] BenchmarkedItemTimes = new DateTime[cnBenchmarkedSamples];
+
+      // Determine what the serialized overhead is.
+      MemoryStream SerializedStream = new MemoryStream();
+
+      new BinaryFormatter().Serialize(SerializedStream, new byte[0]);
+
+      /* The payload size is done in this manner because we want a 1KB size,
+       * and, therefore, the overhead must be backed out of the overall length.
+      */
+      byte[] Payload = new byte[1024 - SerializedStream.Length];
+
+      SerializedStream.Close();
+
+      DateTime StartingTime;
+
+      Console.WriteLine("* Connecting to the distributed system and creating the cache.");
+
+      /* Properties can be passed to GemFire through two different mechanisms: the 
+       * Properties object as is done below or the gfcpp.properties file. The 
+       * settings passed in a Properties object take precedence over any settings
+       * in a file. This way the end-user cannot bypass any required settings.
+       * 
+       * Using a gfcpp.properties file can be useful when you want to change the 
+       * behavior of certain settings without doing a new build, test, and deploy cycle.
+       * 
+       * See gfcpp.properties for details on some of the other settings used in this 
+       * project.
+      */
+      Properties DistributedSystemProperties = new Properties();
+
+      DistributedSystemProperties.Insert("log-file", "C:/temp/benchmarkClient.log");
+      DistributedSystemProperties.Insert("log-level", "debug");
+
+      // Set the name used to identify the member of the distributed system.
+      DistributedSystemProperties.Insert("name", "BenchmarkHierarchicalClient");
+
+      /* Specify the file whose contents are used to initialize the cache when it is created.
+       * 
+       * An XML file isn't needed at all because everything can be specified in  code--much
+       * as the "license-file" property is. However, it provides a convenient way
+       * to isolate common settings that can be updated without a build/test/deploy cycle.
+      */
+      DistributedSystemProperties.Insert("cache-xml-file", "BenchmarkHierarchicalClient.xml");
+
+      /* Define where the license file is located. It is very useful to do this in
+       * code vs. the gemfire.properties file, because it allows you to access the
+       * license used by the GemFire installation (as pointed to by the GEMFIRE
+       * environment variable).
+      */
+      DistributedSystemProperties.Insert("license-file", "../../gfCppLicense.zip");
+
+      // Connect to the GemFire distributed system.
+      MyDistributedSystem = DistributedSystem.Connect("BenchmarkClient", DistributedSystemProperties);
+
+      // Create the cache. This causes the cache-xml-file to be parsed.
+      MyCache = CacheFactory.Create("BenchmarkClient", MyDistributedSystem);
+
+
+      // Get the example region which is a subregion of /root
+      Region MyExampleRegion = MyCache.GetRegion("/root/exampleRegion");
+
+      Console.WriteLine("{0}* Region, {1}, was opened in the cache.{2}",
+        Environment.NewLine, MyExampleRegion.FullPath, Environment.NewLine);
+
+      Console.WriteLine("Please wait while the benchmark tests are performed.");
+
+      StartingTime = System.DateTime.Now;
+
+      // Perform benchmark until cnBenchmarkedSamples are executed
+      for (int nCurrentBenchmarkedItem = 0; nCurrentBenchmarkedItem < cnBenchmarkedSamples; nCurrentBenchmarkedItem++)
+      {
+        for (int nOperations = 0; nOperations < cnOperationsPerSample; nOperations++)
+        {
+          /* Perform the serialization every time to more accurately 
+           * represent the normal behavior of an application.
+           * 
+           * Optimize performance by allocating memory for 1KB.
+          */
+          MyExampleRegion.Put("Key3", CacheableBytes.Create(Payload));
+
+        }
+
+        BenchmarkedItemTimes[nCurrentBenchmarkedItem] = System.DateTime.Now;
+      }
+
+      Console.WriteLine("{0}Finished benchmarking. Analyzing the results.",
+        Environment.NewLine);
+
+      long nTotalOperations = cnBenchmarkedSamples * cnOperationsPerSample;
+
+      // Calculate the total time for the benchmark.
+      TimeSpan BenchmarkTimeSpan = BenchmarkedItemTimes[cnBenchmarkedSamples - 1] - StartingTime;
+
+      // Find the best sample.
+      TimeSpan BestSampleTime = BenchmarkedItemTimes[0] - StartingTime;
+
+      for (int nCurrentSample = 1; nCurrentSample < BenchmarkedItemTimes.Length; nCurrentSample++)
+      {
+        // Evaluation the sample's time with the sample preceding it.
+        TimeSpan CurrentSampleTime = BenchmarkedItemTimes[nCurrentSample] - BenchmarkedItemTimes[nCurrentSample - 1];
+
+        if (CurrentSampleTime < BestSampleTime)
+        {
+          BestSampleTime = CurrentSampleTime;
+        }
+      }
+
+      Console.WriteLine("{0}Benchmark Statistics:", Environment.NewLine);
+      Console.WriteLine("\tNumber of Samples: {0}", cnBenchmarkedSamples);
+      Console.WriteLine("\t1KB Operations/Sample: {0}", cnOperationsPerSample);
+      Console.WriteLine("\tTotal 1KB Operations: {0}", nTotalOperations);
+      Console.WriteLine("\tTotal Time: {0:N2} seconds",
+        BenchmarkTimeSpan.TotalSeconds);
+
+      Console.WriteLine("{0}Benchmark Averages (Mean):", Environment.NewLine);
+      Console.WriteLine("\tKB/Second: {0:N2}",
+        nTotalOperations / BenchmarkTimeSpan.TotalSeconds);
+      Console.WriteLine("\tBytes/Second: {0:N2}",
+        (1024 * nTotalOperations) / BenchmarkTimeSpan.TotalSeconds);
+      Console.WriteLine("\tMilliseconds/KB: {0:N2}",
+        BenchmarkTimeSpan.TotalMilliseconds / nTotalOperations);
+      Console.WriteLine("\tNanoseconds/KB: {0}",
+        BenchmarkTimeSpan.Ticks / nTotalOperations);
+      Console.WriteLine("\tNanoseconds/Byte: {0:N2}",
+        BenchmarkTimeSpan.Ticks / (1024D * nTotalOperations));
+
+      Console.WriteLine("{0}Best Benchmark Results:", Environment.NewLine);
+      Console.WriteLine("\tKB/Second = {0:N2}",
+        cnOperationsPerSample / BestSampleTime.TotalSeconds);
+      Console.WriteLine("\tBytes/Second = {0:N2}",
+        (1024 * cnOperationsPerSample) / BestSampleTime.TotalSeconds);
+      Console.WriteLine("\tMilliseconds/KB = {0:N2}",
+        BestSampleTime.TotalMilliseconds / cnOperationsPerSample);
+      Console.WriteLine("\tNanoseconds/KB: {0}",
+        BestSampleTime.Ticks / cnOperationsPerSample);
+      Console.WriteLine("\tNanoseconds/Byte: {0:N2}",
+        BestSampleTime.Ticks / (1024D * cnOperationsPerSample));
+
+      // Keep the console active until <Enter> is pressed.
+      Console.WriteLine("{0}---[ Press <Enter> to End the Application ]---",
+        Environment.NewLine);
+      Console.ReadLine();
+    }
+    catch (Exception ThrownException)
+    {
+      Console.Error.WriteLine(ThrownException.Message);
+      Console.Error.WriteLine("---[ Press <Enter> to End the Application ]---");
+      Console.Error.WriteLine(ThrownException.StackTrace);
+      Console.ReadLine();
+    }
+    finally
+    {
+      /* While there are not any ramifications of terminating without closing the cache
+       * and disconnecting from the distributed system, it is considered a best practice
+       * to do so.
+      */
+      try
+      {
+        Console.WriteLine("Closing the cache and disconnecting.{0}",
+          Environment.NewLine);
+      }
+      catch {/* Ignore any exceptions */}
+
+      try
+      {
+        /* Close the cache. This terminates the cache and releases all the resources. 
+         * Generally speaking, after a cache is closed, any further method calls on 
+         * it or region object will throw an exception.
+        */
+        MyCache.Close();
+      }
+      catch {/* Ignore any exceptions */}
+    }
+  }
+}

http://git-wip-us.apache.org/repos/asf/geode/blob/2d4a7ecd/examples/clicache/BenchmarkHierarchicalClient/BenchmarkHierarchicalClient.csproj
----------------------------------------------------------------------
diff --git a/examples/clicache/BenchmarkHierarchicalClient/BenchmarkHierarchicalClient.csproj b/examples/clicache/BenchmarkHierarchicalClient/BenchmarkHierarchicalClient.csproj
new file mode 100755
index 0000000..8ad95cf
--- /dev/null
+++ b/examples/clicache/BenchmarkHierarchicalClient/BenchmarkHierarchicalClient.csproj
@@ -0,0 +1,87 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>8.0.50727</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{DAF42015-6FB4-4B35-A486-46BB68CB18CA}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>GemStone.GemFire.Cache.Examples</RootNamespace>
+    <AssemblyName>BenchmarkHierarchicalClient</AssemblyName>
+    <FileUpgradeFlags>
+    </FileUpgradeFlags>
+    <OldToolsVersion>2.0</OldToolsVersion>
+    <UpgradeBackupLocation>
+    </UpgradeBackupLocation>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <IntermediateOutputPath>$(OSBUILDDIR)\examples\clicache\Debug\BenchmarkHierarchicalClient\</IntermediateOutputPath>
+    <OutputPath>$(OSBUILDDIR)\examples\clicache\Debug\BenchmarkHierarchicalClient\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>    
+    <PlatformTarget>x86</PlatformTarget>
+    <NoWarn>618</NoWarn>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <IntermediateOutputPath>$(OSBUILDDIR)\examples\clicache\BenchmarkHierarchicalClient\</IntermediateOutputPath>
+    <OutputPath>$(OSBUILDDIR)\examples\clicache\BenchmarkHierarchicalClient\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <PlatformTarget>x86</PlatformTarget>
+    <NoWarn>618</NoWarn>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <IntermediateOutputPath>$(OSBUILDDIR)\examples\clicache\Debug\BenchmarkHierarchicalClient\</IntermediateOutputPath>
+    <OutputPath>$(OSBUILDDIR)\examples\clicache\Debug\BenchmarkHierarchicalClient\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <DebugType>full</DebugType>
+    <PlatformTarget>x64</PlatformTarget>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <NoWarn>618</NoWarn>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
+    <IntermediateOutputPath>$(OSBUILDDIR)\examples\clicache\BenchmarkHierarchicalClient\</IntermediateOutputPath>
+    <OutputPath>$(OSBUILDDIR)\examples\clicache\BenchmarkHierarchicalClient\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <Optimize>true</Optimize>
+    <DebugType>pdbonly</DebugType>
+    <PlatformTarget>x64</PlatformTarget>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <NoWarn>618</NoWarn>
+  </PropertyGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\..\..\vs_projects\gfclicache\gfclicache.vcproj">
+      <Project>{B274E3B1-6A09-4322-952B-8BDA712892CE}</Project>
+      <Name>gfclicache</Name>
+      <Aliases>global</Aliases>
+    </ProjectReference>
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="BenchmarkHierarchicalClient.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/geode/blob/2d4a7ecd/examples/clicache/BenchmarkHierarchicalClient/BenchmarkHierarchicalClient.xml
----------------------------------------------------------------------
diff --git a/examples/clicache/BenchmarkHierarchicalClient/BenchmarkHierarchicalClient.xml b/examples/clicache/BenchmarkHierarchicalClient/BenchmarkHierarchicalClient.xml
new file mode 100644
index 0000000..b3b5bfd
--- /dev/null
+++ b/examples/clicache/BenchmarkHierarchicalClient/BenchmarkHierarchicalClient.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" ?>
+<cache xmlns="http://geode.apache.org/schema/cache"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://geode.apache.org/schema/cache http://geode.apache.org/schema/cache/cache-1.0.xsd"
+       version="1.0">
+  <region name="root">
+    <region-attributes scope="distributed-no-ack" endpoints="localhost:40404" />
+    <region name="exampleRegion">
+      <region-attributes
+        scope="distributed-no-ack"
+        endpoints="localhost:40404"
+        client-notification="true"/>
+    </region>
+  </region>
+</cache>
+

http://git-wip-us.apache.org/repos/asf/geode/blob/2d4a7ecd/examples/clicache/BenchmarkHierarchicalClient/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/examples/clicache/BenchmarkHierarchicalClient/Properties/AssemblyInfo.cs b/examples/clicache/BenchmarkHierarchicalClient/Properties/AssemblyInfo.cs
new file mode 100755
index 0000000..9a6a245
--- /dev/null
+++ b/examples/clicache/BenchmarkHierarchicalClient/Properties/AssemblyInfo.cs
@@ -0,0 +1,33 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("BenchmarkHierarchicalClient")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("GemStone Systems, Inc.")]
+[assembly: AssemblyProduct("BenchmarkHierarchicalClient")]
+[assembly: AssemblyCopyright("Copyright © GemStone Systems, Inc. 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("bbbb604d-c503-4d0f-ab8a-346968dffd6a")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+[assembly: AssemblyVersion("9.0.0.0")]
+[assembly: AssemblyFileVersion("9.0.0.0")]

http://git-wip-us.apache.org/repos/asf/geode/blob/2d4a7ecd/examples/clicache/BenchmarkHierarchicalClient/README.html
----------------------------------------------------------------------
diff --git a/examples/clicache/BenchmarkHierarchicalClient/README.html b/examples/clicache/BenchmarkHierarchicalClient/README.html
new file mode 100755
index 0000000..a60785f
--- /dev/null
+++ b/examples/clicache/BenchmarkHierarchicalClient/README.html
@@ -0,0 +1,151 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><HTML>
+<HEAD>
+<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
+<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
+<META NAME="GENERATOR" CONTENT="Adobe FrameMaker 7.0/HTML Export Filter">
+
+<TITLE>BenchmarkHierarchicalClient: Pivotal GemFire&#174; Native Client Example</TITLE>
+
+</HEAD>
+<BODY>
+ <IMG SRC="../../../docs/PIVOTAL_GemFire_190x81.png" BORDER="0">
+ <DIV>
+   <h1 align="center"><a name="Top" id="Top"></a>BenchmarkHierarchicalClient</h1>
+   <h2 align="center">
+     Pivotal GemFire&#174; Native Client </h2>
+   <h2 align="center">C# Programming Example</h2>
+</DIV>
+
+ <DIV>
+<H2>
+<br>
+About the BenchmarkHierarchicalClient Example </H2>
+<P>The <code>BenchmarkHierarchicalClient</code> example is an interactive C# program that uses Microsoft .NET Framework 4.0 to access the GemFire C++ API for benchmarking performance between a client and a server.</P>
+<blockquote>
+  <p align="left"><em>Microsoft .NET Framework 4.0 must be installed before running this example. For information about installing the .NET Framework, see  the </em>GemFire Native Client User's Guide<em>.</em></p>
+</blockquote>
+<P><code>BenchmarkHierarchicalClient</code> measures the time it takes for a <code>put</code> operation to return in a hierarchical cache configuration. In this test, the client does the <code>put</code> and its BridgeWriter automatically forwards the <code>put</code> to the server. Consequently, the measurement includes the time required to send the data to the server.</P>
+<P>To run the server and client on separate machines, you need to modify the client configuration file, <a href="./BenchmarkHierarchicalClient.xml" target="_blank"><code>BenchmarkHierarchicalClient.xml</code></a>, changing the two occurrences of the endpoints parameter string, <code>localhost</code>, to the name of the server's machine.</P>
+ </DIV>
+
+<DIV>
+<H2>
+<a name="configuring_environment" id="configuring_environment"></a>Configuring the Environment </H2>
+<P>
+Examples that interact with a Java cache server require specific environment configurations so the Java cache server will run properly. Follow the configuration steps listed below that apply to your operating system: </P>
+</DIV>
+ <DIV>
+<ol>
+  <li>From the GemFire product installation directory, configure your environment settings by following the steps in   <code>examples/EnvSetup.html</code>.<br>
+      <br>
+  <li>Set the <code>JAVA_HOME</code> and <code>GF_JAVA_HOME</code>  environment variables to your installed Java JRE or JDK. See the Installation chapter of the   <em>GemFire User's Guide</em> for the versions of Java that are compatible with GemFire. The <code>JAVA_HOME</code> setting is for your applications, and  <code>GF_JAVA_HOME</code> is for the GemFire scripts.  You must have a compatible Java JRE or JDK installed and you must set <code>JAVA_HOME</code> and <code>GF_JAVA_HOME</code> to point to it.<br>
+      <br>
+  <li>Add <code>$JAVA_HOME/bin</code> to the start of your <code>PATH</code>. <br>
+  <br>
+  <li>Add the GemFire quickstart classes to your <code>CLASSPATH</code>. <br>
+  <blockquote>
+  <p><strong> <code><strong>set CLASSPATH=%GEMFIRE%\quickstart\classes;%CLASSPATH%</strong></code></strong></p>
+</blockquote>  
+</ol>
+<p>The following is a list of the environment configuration commands for the <code>BenchmarkHierarchicalClient</code> example. Choose the set of commands that are appropriate for your operating system. The text that you type is shown in bold.
+  These configurations only need to be performed for the sessions that invoke the Java cache server.</p>
+<p><strong>Bourne and Korn shells (sh, ksh, bash)</strong></p>
+<blockquote>
+  <p>    <code>% <strong>cd GemFireInstallDirectory</strong><br>
+    % <strong>CLASSPATH=$CLASSPATH:$GEMFIRE/quickstart/classes; export CLASSPATH</strong><br>
+    % <strong>cd $GEMFIRE/quickstart</strong><br>
+    % <strong>JAVA_HOME=&lt;installed JRE PATH&gt;; export JAVA_HOME</strong><br>
+    % <strong>GF_JAVA_HOME=$JAVA_HOME; export GF_JAVA_HOME</strong><br>
+    % <strong>PATH=$JAVA_HOME/bin:$PATH; export PATH</strong></code></p>
+</blockquote>
+<p><strong>Windows</strong></p>
+<blockquote>
+  <p><code>&gt; <strong>cd GemFireInstallDirectory</strong><br>
+&gt; <strong>set CLASSPATH=%GEMFIRE%\quickstart\classes;%CLASSPATH%</strong><br>
+&gt; <strong>cd %GEMFIRE%\quickstart</strong><br>
+&gt; <strong>set JAVA_HOME=&lt;installed JRE PATH&gt;</strong><br>
+&gt; <strong>set GF_JAVA_HOME=%JAVA_HOME%</strong><br>
+&gt; <strong>set PATH=%JAVA_HOME%\bin;%PATH%</strong> </code></p>
+</blockquote>
+</DIV>
+
+<DIV>
+<H2>
+Starting BenchmarkHierarchicalClient </H2>
+<P>
+To start the <code>BenchmarkHierarchicalClient</code> example, create a session from the GemFire product installation directory and complete the following steps.  Throughout this example, when you're prompted to enter the native client directory, replace the <code>xxxx</code> in <code>NativeClient_xxxx</code> with the actual four-digit product version number.</P>
+<P>This first session starts the Java cache server. </P>
+</DIV>
+<DIV>
+<OL>
+<LI CLASS="Numbered-1st"><p>
+Configure the session environment according to the steps listed in <a href="#configuring_environment">Configuring the Environment</a><a href="../envsetup.html" target="_blank"></a>.</p>
+</LI>
+<LI CLASS="Numbered-1st">If you have not already done so, go to the <code>%GEMFIRE%/quickstart</code> directory.</LI>
+<blockquote>
+  <p><strong> <code>cd %GEMFIRE%/quickstart</code></strong></p>
+</blockquote>
+<LI CLASS="Numbered">
+Enter this command to start the Java cache server:
+
+  <blockquote>
+   <p><strong>
+     <code>java quickstart.BenchmarkHierarchicalServer</code></strong></p>
+   </blockquote>
+ </LI>
+<LI CLASS="Numbered">
+Create another session and change its working directory to the native client <code>cli_BenchmarkHierarchicalClient</code> example directory:
+  <blockquote>
+    <p><strong><code>cd examples\cli_BenchmarkHierarchicalClient</code></strong></p>
+  </blockquote>
+  <li>
+    Start the <code>BenchmarkHierarchicalClient</code> application:</li>
+  <blockquote>
+   <p><strong>
+     <code>BenchmarkHierarchicalClient.exe</code></strong></p>
+   </blockquote>	
+</OL>
+</DIV>
+<DIV>
+<H2>
+Running the Example </H2>
+</DIV>
+<DIV>
+<P><strong>
+In the client session</strong></P>
+<blockquote>
+  <p>
+    The benchmarking tests may take several moments to finish. After the benchmarking is complete, the following statistical categories are reported in the client session:</p>
+  <blockquote class="style1">
+    <p><code>Benchmark Statistics</code></p>
+    <p><code>Benchmark Averages (Mean)</code></p>
+    <p><code>Best Benchmark Results   </code></p>
+  </blockquote>
+</blockquote>
+<blockquote>
+  <p> When you have finished reviewing the benchmarking results, press <code>Enter</code> to end the <code>BenchmarkHierarchicalClient</code> application. Next, type <strong><code>Exit</code></strong> to close the session.</p>
+</blockquote>
+<p><strong>In the server session</strong></p>
+<blockquote>
+  <p>Press <code>Enter</code> to end the cache server, then type <strong><code>Exit</code></strong> to close the session.</p>
+</blockquote>
+</DIV>
+<DIV>
+<H2>
+Changing System Parameters</H2>
+<P>
+This product ships configured to run with default system properties. If you need to run in a non-default configuration, GemFire also takes a system-level configuration file. To configure a .NET client, rename any <code>gfcpp.properties</code> file currently in the example directory, then copy <code>gfcpp.properties</code> file into your <code>cli_BenchmarkHierarchicalClient</code> directory from the <code>defaultSystem</code> directory. Edit the <code>gfcpp.properties</code> file in your <code>cli_BenchmarkHierarchicalClient</code> directory, as needed.</P>
+<P>If you also need to make a non-default configuration for the Java cache server, rename any <code>gemfire.properties</code> file currently in the <code>%GEMFIRE%/quickstart</code>, then copy <code>gemfire.properties</code> into the <code>/quickstart</code> directory from the <code>%GEMFIRE%/defaultConfigs</code> directory and edit it. For example, to change the name of the <code>cache.xml</code> file, uncomment this line and change the file name:</P>
+<P> <code>#cache-xml-file=cache.xml</code></P>
+<P>When you're done with the example, delete your edited versions of <code>gemfire.properties</code> and <code>gfcpp.properties</code>, then restore the renamed original versions to their original names so other examples can use the unedited files.<code><br>
+    <br>
+</code></P>
+</DIV>
+<a href="#Top">Top</a>
+<P>
+<br>
+<p><span class=GramE>Copyright &#169; 2005-2014 Pivotal Software, Inc. All rights reserved.  This product is protected by U.S. and international copyright and intellectual property laws. Pivotal products are covered by one or more patents listed at
+http://www.pivotal.io/patents. </p>
+</BODY>
+</HTML>
+


Mime
View raw message