You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by jb...@apache.org on 2017/10/23 23:38:21 UTC
[geode-examples] branch develop updated: Removes native examples.
This is an automated email from the ASF dual-hosted git repository.
jbarrett pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-examples.git
The following commit(s) were added to refs/heads/develop by this push:
new abcff61 Removes native examples.
abcff61 is described below
commit abcff619b0345e99ab4b514e5a3525e2fcec06a8
Author: Jacob Barrett <jb...@pivotal.io>
AuthorDate: Mon Oct 23 16:33:15 2017 -0700
Removes native examples.
This reverts commit e5cec613d7cf8b49c95709f74c3767e06a0c58bc.
This reverts commit 2c69c575e31f6216fa885b9052d90adce6d7e8ae.
This reverts commit 6ae1e617b5ee11fb949e61ccf38f710809a035da.
---
.gitignore | 5 --
README.md | 4 --
.../Apache.Geode.Examples.AuthInitialize.csproj | 62 -----------------
.../ExampleAuthInitialize.cs | 31 ---------
.../Program.cs | 34 ----------
.../Apache.Geode.Examples.AuthInitialize/README.md | 24 -------
.../Apache.Geode.Examples.Cache.csproj | 77 ----------------------
.../dotnet/Apache.Geode.Examples.Cache/Program.cs | 51 --------------
.../dotnet/Apache.Geode.Examples.Cache/README.md | 22 -------
native/dotnet/Apache.Geode.Examples.sln | 33 ----------
native/dotnet/README.md | 14 ----
11 files changed, 357 deletions(-)
diff --git a/.gitignore b/.gitignore
index 616d17b..3628a92 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,8 +29,3 @@ server2
*.dat
*.rej
*.orig
-
-/native/dotnet/*/bin
-/native/dotnet/*/obj
-/native/dotnet/.vs
-
diff --git a/README.md b/README.md
index d0a097d..d463203 100644
--- a/README.md
+++ b/README.md
@@ -91,10 +91,6 @@ tutorial.
* Resource manager
* PDX Advanced
-### Native
-* C++
-* [.NET](native/dotnet/README.md)
-
### Use cases, integrations and external examples
This section has self-contained little projects that illustrate a use case or
diff --git a/native/dotnet/Apache.Geode.Examples.AuthInitialize/Apache.Geode.Examples.AuthInitialize.csproj b/native/dotnet/Apache.Geode.Examples.AuthInitialize/Apache.Geode.Examples.AuthInitialize.csproj
deleted file mode 100644
index f95ca2c..0000000
--- a/native/dotnet/Apache.Geode.Examples.AuthInitialize/Apache.Geode.Examples.AuthInitialize.csproj
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{047FC72E-F06D-4F3A-9EF3-B66FAE4B6C36}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Apache.Geode.Examples.AuthInitialize</RootNamespace>
- <AssemblyName>Apache.Geode.Examples.AuthInitialize</AssemblyName>
- <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
- <DebugSymbols>true</DebugSymbols>
- <OutputPath>bin\x64\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <DebugType>full</DebugType>
- <PlatformTarget>x64</PlatformTarget>
- <ErrorReport>prompt</ErrorReport>
- <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
- <Prefer32Bit>true</Prefer32Bit>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
- <OutputPath>bin\x64\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <Optimize>true</Optimize>
- <DebugType>pdbonly</DebugType>
- <PlatformTarget>x64</PlatformTarget>
- <ErrorReport>prompt</ErrorReport>
- <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
- <Prefer32Bit>true</Prefer32Bit>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Apache.Geode">
- <HintPath>Y:\build64\clicache\src\Debug\Apache.Geode.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="Microsoft.CSharp" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="ExampleAuthInitialize.cs" />
- <Compile Include="Program.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="README.md" />
- </ItemGroup>
- <ItemGroup>
- <Folder Include="Properties\" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\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
diff --git a/native/dotnet/Apache.Geode.Examples.AuthInitialize/ExampleAuthInitialize.cs b/native/dotnet/Apache.Geode.Examples.AuthInitialize/ExampleAuthInitialize.cs
deleted file mode 100644
index 583ac23..0000000
--- a/native/dotnet/Apache.Geode.Examples.AuthInitialize/ExampleAuthInitialize.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-using Apache.Geode.Client;
-
-namespace Apache.Geode.Examples.AuthInitialize
-{
- class ExampleAuthInitialize : IAuthInitialize
- {
- public ExampleAuthInitialize()
- {
- // TODO initialize your resources here
- Console.Out.WriteLine("ExampleAuthInitialize::ExampleAuthInitialize called");
- }
-
- public void Close()
- {
- // TODO close your resources here
- Console.Out.WriteLine("ExampleAuthInitialize::Close called");
- }
-
- public Properties<string, object> GetCredentials(Properties<string, string> props, string server)
- {
- // TODO get your username and password
- Console.Out.WriteLine("ExampleAuthInitialize::GetCredentials called");
-
- var credentials = new Properties<string, object>();
- credentials.Insert("username", "john");
- credentials.Insert("password", "secret");
- return credentials;
- }
- }
-}
diff --git a/native/dotnet/Apache.Geode.Examples.AuthInitialize/Program.cs b/native/dotnet/Apache.Geode.Examples.AuthInitialize/Program.cs
deleted file mode 100644
index 76c8772..0000000
--- a/native/dotnet/Apache.Geode.Examples.AuthInitialize/Program.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using Apache.Geode.Client;
-
-namespace Apache.Geode.Examples.AuthInitialize
-{
- class Program
- {
- static void Main(string[] args)
- {
- var cacheFactory = CacheFactory.CreateCacheFactory()
- .Set("log-level", "none")
- .SetAuthInitialize(new ExampleAuthInitialize());
-
- var cache = cacheFactory.Create();
- var poolFactory = cache.GetPoolFactory()
- .AddLocator("localhost", 10334);
- poolFactory.Create("pool", cache);
- var regionFactory = cache.CreateRegionFactory(RegionShortcut.PROXY)
- .SetPoolName("pool");
- var region = regionFactory.Create<string, string>("region");
-
- region["a"] = "1";
- region["b"] = "2";
-
- var a = region["a"];
- var b = region["b"];
-
- Console.Out.WriteLine("a = " + a);
- Console.Out.WriteLine("b = " + b);
-
- cache.Close();
- }
- }
-}
diff --git a/native/dotnet/Apache.Geode.Examples.AuthInitialize/README.md b/native/dotnet/Apache.Geode.Examples.AuthInitialize/README.md
deleted file mode 100644
index c79fc8c..0000000
--- a/native/dotnet/Apache.Geode.Examples.AuthInitialize/README.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# AuthInitialize Example
-This example shows how to create and register a custom `IAuthIntialize` authentication
-handler.
-
-## Prerequisites
-* Install [Apache Geode](https://geode.apache.org)
-* Build and install [Apache Geode Native](https://github.com/apache/geode-native)
-
-## Running
-* Start Geode Server and create region.
- ```
- gfsh>start locator --name=locator
- gfsh>start server --name=server
- gfsh>create region --name=region --type=PARTITION
- ```
-* Execute `Apache.Geode.Examples.AuthInitialize.exe`.
-
- output:
- ```
- ExampleAuthInitialize::ExampleAuthInitialize called
- ExampleAuthInitialize::GetCredentials called
- a = 1
- b = 2
- ```
diff --git a/native/dotnet/Apache.Geode.Examples.Cache/Apache.Geode.Examples.Cache.csproj b/native/dotnet/Apache.Geode.Examples.Cache/Apache.Geode.Examples.Cache.csproj
deleted file mode 100644
index b108c40..0000000
--- a/native/dotnet/Apache.Geode.Examples.Cache/Apache.Geode.Examples.Cache.csproj
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You 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.
--->
-<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{15ACFB5B-0D2C-4C38-9236-7AF01874A84F}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Apache.Geode.Examples.Cache</RootNamespace>
- <AssemblyName>Apache.Geode.Examples.Cache</AssemblyName>
- <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
- <DebugSymbols>true</DebugSymbols>
- <OutputPath>bin\x64\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <DebugType>full</DebugType>
- <PlatformTarget>x64</PlatformTarget>
- <ErrorReport>prompt</ErrorReport>
- <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
- <Prefer32Bit>true</Prefer32Bit>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
- <OutputPath>bin\x64\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <Optimize>true</Optimize>
- <DebugType>pdbonly</DebugType>
- <PlatformTarget>x64</PlatformTarget>
- <ErrorReport>prompt</ErrorReport>
- <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
- <Prefer32Bit>true</Prefer32Bit>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Apache.Geode">
- <HintPath>Y:\build64\clicache\src\Debug\Apache.Geode.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="Microsoft.CSharp" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Program.cs" />
- </ItemGroup>
- <ItemGroup>
- <Folder Include="Properties\" />
- </ItemGroup>
- <ItemGroup>
- <None Include="README.md" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\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
diff --git a/native/dotnet/Apache.Geode.Examples.Cache/Program.cs b/native/dotnet/Apache.Geode.Examples.Cache/Program.cs
deleted file mode 100644
index 90cbc3f..0000000
--- a/native/dotnet/Apache.Geode.Examples.Cache/Program.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-using System;
-using Apache.Geode.Client;
-
-namespace Apache.Geode.Examples.Cache
-{
- class Program
- {
- static void Main(string[] args)
- {
- var cacheFactory = CacheFactory.CreateCacheFactory()
- .Set("log-level", "none");
- var cache = cacheFactory.Create();
-
- var poolFactory = cache.GetPoolFactory()
- .AddLocator("localhost", 10334);
- poolFactory.Create("pool", cache);
-
- var regionFactory = cache.CreateRegionFactory(RegionShortcut.PROXY)
- .SetPoolName("pool");
- var region = regionFactory.Create<string, string>("region");
-
- region["a"] = "1";
- region["b"] = "2";
-
- var a = region["a"];
- var b = region["b"];
-
- Console.Out.WriteLine("a = " + a);
- Console.Out.WriteLine("b = " + b);
-
- cache.Close();
- }
- }
-}
diff --git a/native/dotnet/Apache.Geode.Examples.Cache/README.md b/native/dotnet/Apache.Geode.Examples.Cache/README.md
deleted file mode 100644
index cb8111f..0000000
--- a/native/dotnet/Apache.Geode.Examples.Cache/README.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# Cache Example
-This is a very simple example showing how to create a `Cache` using the `CacheFactory`,
-configure a `Pool` with a `PoolFactory`, and configure a `Region` with a `RegionFactory`.
-
-## Prerequisites
-* Install [Apache Geode](https://geode.apache.org)
-* Build and install [Apache Geode Native](https://github.com/apache/geode-native)
-
-## Running
-* Start Geode Server and create region.
- ```
- gfsh>start locator --name=locator
- gfsh>start server --name=server
- gfsh>create region --name=region --type=PARTITION
- ```
-* Execute `Apache.Geode.Examples.Cache.exe`.
-
- output:
- ```
- a = 1
- b = 2
- ```
diff --git a/native/dotnet/Apache.Geode.Examples.sln b/native/dotnet/Apache.Geode.Examples.sln
deleted file mode 100644
index 74295f0..0000000
--- a/native/dotnet/Apache.Geode.Examples.sln
+++ /dev/null
@@ -1,33 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 14
-VisualStudioVersion = 14.0.25420.1
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apache.Geode.Examples.Cache", "Apache.Geode.Examples.Cache\Apache.Geode.Examples.Cache.csproj", "{15ACFB5B-0D2C-4C38-9236-7AF01874A84F}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apache.Geode.Examples.AuthInitialize", "Apache.Geode.Examples.AuthInitialize\Apache.Geode.Examples.AuthInitialize.csproj", "{047FC72E-F06D-4F3A-9EF3-B66FAE4B6C36}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{CB7AB243-26A9-4B20-8ED9-5D35D12F9FF3}"
- ProjectSection(SolutionItems) = preProject
- README.md = README.md
- EndProjectSection
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|x64 = Debug|x64
- Release|x64 = Release|x64
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {15ACFB5B-0D2C-4C38-9236-7AF01874A84F}.Debug|x64.ActiveCfg = Debug|x64
- {15ACFB5B-0D2C-4C38-9236-7AF01874A84F}.Debug|x64.Build.0 = Debug|x64
- {15ACFB5B-0D2C-4C38-9236-7AF01874A84F}.Release|x64.ActiveCfg = Release|x64
- {15ACFB5B-0D2C-4C38-9236-7AF01874A84F}.Release|x64.Build.0 = Release|x64
- {047FC72E-F06D-4F3A-9EF3-B66FAE4B6C36}.Debug|x64.ActiveCfg = Debug|x64
- {047FC72E-F06D-4F3A-9EF3-B66FAE4B6C36}.Debug|x64.Build.0 = Debug|x64
- {047FC72E-F06D-4F3A-9EF3-B66FAE4B6C36}.Release|x64.ActiveCfg = Release|x64
- {047FC72E-F06D-4F3A-9EF3-B66FAE4B6C36}.Release|x64.Build.0 = Release|x64
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/native/dotnet/README.md b/native/dotnet/README.md
deleted file mode 100644
index 9b66b74..0000000
--- a/native/dotnet/README.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Geode Native .NET Examples
-
-## Prerequisites
-* Install [Apache Geode](https://geode.apache.org)
-* Build and install [Apache Geode Native](https://github.com/apache/geode-native)
-
-## Examples
-* [Apache.Geode.Examples.AuthInitialize](Apache.Geode.Examples.Cache/README.md)
-* [Apache.Geode.Examples.Cache](Apache.Geode.Examples.Cache/README.md)
-
-## Using
-1) Open `Apache.Geode.Examples.sln` in [Visual Studio 2015](https://www.visualstudio.com/)
-or newer.
-2) Update `Apache.Geode` reference in each project to the `Apache.Geode.dll` assembly.
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
['"commits@geode.apache.org" <co...@geode.apache.org>'].