This is an automated email from the ASF dual-hosted git repository.
echobravo pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git
The following commit(s) were added to refs/heads/develop by this push:
new 805b8b7 GEODE-4842: Rebase with develop (#279)
805b8b7 is described below
commit 805b8b7c5b5baab06ebbb1a6d5587e857e43017c
Author: Michael Martell <[email protected]>
AuthorDate: Tue Apr 17 15:37:05 2018 -0700
GEODE-4842: Rebase with develop (#279)
Signed-off-by: Ryan McMahon <[email protected]>
---
clicache/integration-test/CacheHelperN.cs | 16 ++++++++--------
clicache/integration-test/ThinClientPoolTestsN.cs | 4 ++--
clicache/integration-test/ThinClientQueryTestsN.cs | 2 +-
.../ThinClientRemoteQueryExclusivenessTests.cs | 2 +-
clicache/src/PoolFactory.cpp | 2 +-
clicache/src/PoolFactory.hpp | 2 +-
examples/dotnet/AuthInitialize/Program.cs | 2 +-
examples/dotnet/PdxAutoSerializer/Program.cs | 2 +-
examples/dotnet/PutGetRemove/Program.cs | 2 +-
tests/cli/NewFwkLib/FwkTest.cs | 4 ++--
10 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/clicache/integration-test/CacheHelperN.cs
b/clicache/integration-test/CacheHelperN.cs
index 926e54b..879106e 100644
--- a/clicache/integration-test/CacheHelperN.cs
+++ b/clicache/integration-test/CacheHelperN.cs
@@ -936,7 +936,7 @@ namespace Apache.Geode.Client.UnitTests
}
poolFactory.SetSubscriptionEnabled(clientNotification);
- poolFactory.Create("__TESTPOOL__", CacheHelper.DCache);
+ poolFactory.Create("__TESTPOOL__");
region = regionFactory.SetPoolName("__TESTPOOL__").Create<TradeKey,
Object>(name);
Assert.IsNotNull(region, "IRegion<TradeKey, Object> {0} was not
created.", name);
@@ -1024,7 +1024,7 @@ namespace Apache.Geode.Client.UnitTests
fact.SetMinConnections(numConnections);
fact.SetMaxConnections(numConnections);
}
- Pool/*<TKey, TValue>*/ pool = fact.Create(name, CacheHelper.DCache);
+ Pool/*<TKey, TValue>*/ pool = fact.Create(name);
if (pool == null)
{
Util.Log("Pool creation failed");
@@ -1088,7 +1088,7 @@ namespace Apache.Geode.Client.UnitTests
{
Util.Log("No locators or servers specified for pool");
}
- Pool/*<TKey, TValue>*/ pool = fact.Create(poolName,
CacheHelper.DCache);
+ Pool/*<TKey, TValue>*/ pool = fact.Create(poolName);
if (pool == null)
{
Util.Log("Pool creation failed");
@@ -1170,7 +1170,7 @@ namespace Apache.Geode.Client.UnitTests
{
Util.Log("No locators or servers specified for pool");
}
- Pool/*<TKey, TValue>*/ pool = fact.Create(poolName,
CacheHelper.DCache);
+ Pool/*<TKey, TValue>*/ pool = fact.Create(poolName);
if (pool == null)
{
Util.Log("Pool creation failed");
@@ -1240,7 +1240,7 @@ namespace Apache.Geode.Client.UnitTests
{
Util.Log("No locators or servers specified for pool");
}
- Pool/*<TKey, TValue>*/ pool = fact.Create(poolName,
CacheHelper.DCache);
+ Pool/*<TKey, TValue>*/ pool = fact.Create(poolName);
if (pool == null)
{
Util.Log("Pool creation failed");
@@ -1306,7 +1306,7 @@ namespace Apache.Geode.Client.UnitTests
{
Util.Log("No locators or servers specified for pool");
}
- Pool/*<TKey, TValue>*/ pool = fact.Create(poolName,
CacheHelper.DCache);
+ Pool/*<TKey, TValue>*/ pool = fact.Create(poolName);
if (pool == null)
{
Util.Log("Pool creation failed");
@@ -1378,7 +1378,7 @@ namespace Apache.Geode.Client.UnitTests
{
Util.Log("No locators or servers specified for pool");
}
- Pool/*<TKey, TValue>*/ pool = fact.Create(poolName,
CacheHelper.DCache);
+ Pool/*<TKey, TValue>*/ pool = fact.Create(poolName);
if (pool == null)
{
Util.Log("Pool creation failed");
@@ -1448,7 +1448,7 @@ namespace Apache.Geode.Client.UnitTests
{
Util.Log("No locators or servers specified for pool");
}
- Pool pool = fact.Create(poolName, m_cache);
+ Pool pool = fact.Create(poolName);
if (pool == null)
{
Util.Log("Pool creation failed");
diff --git a/clicache/integration-test/ThinClientPoolTestsN.cs
b/clicache/integration-test/ThinClientPoolTestsN.cs
index f9ab051..79ba314 100644
--- a/clicache/integration-test/ThinClientPoolTestsN.cs
+++ b/clicache/integration-test/ThinClientPoolTestsN.cs
@@ -380,7 +380,7 @@ namespace Apache.Geode.Client.UnitTests
factory.AddLocator("localhost", CacheHelper.LOCATOR_PORT_1);
factory.SetPRSingleHopEnabled(false);
- Pool pool = factory.Create(poolName, CacheHelper.DCache);
+ Pool pool = factory.Create(poolName);
Assert.AreEqual(TimeSpan.FromSeconds(10000), pool.FreeConnectionTimeout,
"FreeConnectionTimeout");
Assert.AreEqual(TimeSpan.FromSeconds(1), pool.LoadConditioningInterval,
"LoadConditioningInterval");
@@ -438,7 +438,7 @@ namespace Apache.Geode.Client.UnitTests
PoolFactory factory =
CacheHelper.DCache.GetPoolManager().CreateFactory();
try
{
- factory.Create(poolName, CacheHelper.DCache);
+ factory.Create(poolName);
Assert.Fail("Did not get expected IllegalStateException");
}
catch (IllegalStateException /*excp*/)
diff --git a/clicache/integration-test/ThinClientQueryTestsN.cs
b/clicache/integration-test/ThinClientQueryTestsN.cs
index 02d9387..4c5eeb9 100644
--- a/clicache/integration-test/ThinClientQueryTestsN.cs
+++ b/clicache/integration-test/ThinClientQueryTestsN.cs
@@ -91,7 +91,7 @@ namespace Apache.Geode.Client.UnitTests
m_isPdx = isPdx;
try
{
- var poolFail =
CacheHelper.DCache.GetPoolManager().CreateFactory().Create("_TESTFAILPOOL_",
CacheHelper.DCache);
+ var poolFail =
CacheHelper.DCache.GetPoolManager().CreateFactory().Create("_TESTFAILPOOL_");
var qsFail = poolFail.GetQueryService();
var qryFail = qsFail.NewQuery<object>("select distinct * from /" +
QERegionName);
var resultsFail = qryFail.Execute();
diff --git
a/clicache/integration-test/ThinClientRemoteQueryExclusivenessTests.cs
b/clicache/integration-test/ThinClientRemoteQueryExclusivenessTests.cs
index a588bb1..a22e77d 100644
--- a/clicache/integration-test/ThinClientRemoteQueryExclusivenessTests.cs
+++ b/clicache/integration-test/ThinClientRemoteQueryExclusivenessTests.cs
@@ -89,7 +89,7 @@ namespace Apache.Geode.Client.UnitTests
m_isPdx = isPdx;
try
{
- var poolFail =
CacheHelper.DCache.GetPoolManager().CreateFactory().Create("_TESTFAILPOOL_",
CacheHelper.DCache);
+ var poolFail =
CacheHelper.DCache.GetPoolManager().CreateFactory().Create("_TESTFAILPOOL_");
var qsFail = poolFail.GetQueryService();
var qryFail = qsFail.NewQuery<object>("select distinct * from /" +
QERegionName);
var resultsFail = qryFail.Execute();
diff --git a/clicache/src/PoolFactory.cpp b/clicache/src/PoolFactory.cpp
index 0c4b762..c72da35 100644
--- a/clicache/src/PoolFactory.cpp
+++ b/clicache/src/PoolFactory.cpp
@@ -427,7 +427,7 @@ namespace Apache
}
- Pool^ PoolFactory::Create(String^ name, Cache^ cache)
+ Pool^ PoolFactory::Create(String^ name)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
diff --git a/clicache/src/PoolFactory.hpp b/clicache/src/PoolFactory.hpp
index a9c891e..f16cf54 100644
--- a/clicache/src/PoolFactory.hpp
+++ b/clicache/src/PoolFactory.hpp
@@ -391,7 +391,7 @@ namespace Apache
/// throws IllegalStateException if a pool with name already exists
/// throws IllegalStateException if a locator or server has not been
added.
/// </exception>
- Pool^ Create(String^ name, Cache^ cache);
+ Pool^ Create(String^ name);
internal:
diff --git a/examples/dotnet/AuthInitialize/Program.cs
b/examples/dotnet/AuthInitialize/Program.cs
index 200e097..91ff1c5 100644
--- a/examples/dotnet/AuthInitialize/Program.cs
+++ b/examples/dotnet/AuthInitialize/Program.cs
@@ -31,7 +31,7 @@ namespace Apache.Geode.Examples.AuthInitialize
var cache = cacheFactory.Create();
var poolFactory = cache.GetPoolFactory()
.AddLocator("localhost", 10334);
- poolFactory.Create("pool", cache);
+ poolFactory.Create("pool");
var regionFactory = cache.CreateRegionFactory(RegionShortcut.PROXY)
.SetPoolName("pool");
var region = regionFactory.Create<string, string>("region");
diff --git a/examples/dotnet/PdxAutoSerializer/Program.cs
b/examples/dotnet/PdxAutoSerializer/Program.cs
index f7f6287..2005ec0 100644
--- a/examples/dotnet/PdxAutoSerializer/Program.cs
+++ b/examples/dotnet/PdxAutoSerializer/Program.cs
@@ -34,7 +34,7 @@ namespace Apache.Geode.Examples.Serializer
var poolFactory = cache.GetPoolFactory()
.AddLocator("localhost", 10334);
- poolFactory.Create("pool", cache);
+ poolFactory.Create("pool");
var regionFactory = cache.CreateRegionFactory(RegionShortcut.PROXY)
.SetPoolName("pool");
diff --git a/examples/dotnet/PutGetRemove/Program.cs
b/examples/dotnet/PutGetRemove/Program.cs
index 07dac3d..39f4abf 100644
--- a/examples/dotnet/PutGetRemove/Program.cs
+++ b/examples/dotnet/PutGetRemove/Program.cs
@@ -30,7 +30,7 @@ namespace Apache.Geode.Examples.PutGetRemove
var poolFactory = cache.GetPoolFactory()
.AddLocator("localhost", 10334);
- poolFactory.Create("pool", cache);
+ poolFactory.Create("pool");
var regionFactory = cache.CreateRegionFactory(RegionShortcut.PROXY)
.SetPoolName("pool");
diff --git a/tests/cli/NewFwkLib/FwkTest.cs b/tests/cli/NewFwkLib/FwkTest.cs
index 8d31059..4ab34ce 100644
--- a/tests/cli/NewFwkLib/FwkTest.cs
+++ b/tests/cli/NewFwkLib/FwkTest.cs
@@ -617,7 +617,7 @@ namespace Apache.Geode.Client.FwkLib
if (CacheHelper<TKey, TVal>.DCache.GetPoolManager().Find(poolName) ==
null)
{
- Pool pool = pf.Create(poolName, CacheHelper<TKey, TVal>.DCache);
+ Pool pool = pf.Create(poolName);
FwkInfo("Pool attributes are {0}:", PoolAttributesToString(pool));
}
}
@@ -1384,7 +1384,7 @@ namespace Apache.Geode.Client.FwkLib
pf.SetSubscriptionRedundancy(redundancyLevel);
if (CacheHelper<TKey, TVal>.DCache.GetPoolManager().Find(poolName) ==
null)
{
- Pool pool = pf.Create(poolName, CacheHelper<TKey, TVal>.DCache);
+ Pool pool = pf.Create(poolName);
FwkInfo("Pool attributes are {0}:", PoolAttributesToString(pool));
}
FwkInfo("Create Pool complete with poolName= {0}", poolName);
--
To stop receiving notification emails like this one, please contact
[email protected].