geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject [geode] branch develop updated: GEODE-4579: Removed singleton instance
Date Sat, 17 Feb 2018 00:56:23 GMT
This is an automated email from the ASF dual-hosted git repository.

nnag pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new ba9aa36  GEODE-4579: Removed singleton instance
ba9aa36 is described below

commit ba9aa36bf31092a3c96c188e29617e484a139ba9
Author: nabarun <nnag@pivotal.io>
AuthorDate: Wed Feb 14 14:22:17 2018 -0800

    GEODE-4579: Removed singleton instance
    
    	* Removed InternalDistributedSystem.getAnyInstance() call from FindRestEnabledServersFunction
in the package org.apache.geode.internal.cache.execute.util
---
 .../internal/cache/execute/util/FindRestEnabledServersFunction.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/execute/util/FindRestEnabledServersFunction.java
b/geode-core/src/main/java/org/apache/geode/internal/cache/execute/util/FindRestEnabledServersFunction.java
index 273aad2..c5f71d3 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/execute/util/FindRestEnabledServersFunction.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/execute/util/FindRestEnabledServersFunction.java
@@ -41,7 +41,7 @@ public class FindRestEnabledServersFunction implements InternalFunction
{
   public void execute(FunctionContext context) {
     try {
       InternalCache cache = (InternalCache) context.getCache();
-      DistributionConfig config = InternalDistributedSystem.getAnyInstance().getConfig();
+      DistributionConfig config = cache.getInternalDistributedSystem().getConfig();
 
       String bindAddress = RestAgent.getBindAddressForHttpService(config);
 

-- 
To stop receiving notification emails like this one, please contact
nnag@apache.org.

Mime
View raw message