SGF-498 - Fix apache-geode build due to recent changes in Apache Geode that removed the SharedConfiguration.destroySharedConfiguration() method from the API.
This commit is contained in:
@@ -24,8 +24,10 @@ import org.springframework.util.StringUtils;
|
||||
import com.gemstone.gemfire.cache.GemFireCache;
|
||||
import com.gemstone.gemfire.cache.server.CacheServer;
|
||||
import com.gemstone.gemfire.distributed.DistributedSystem;
|
||||
import com.gemstone.gemfire.distributed.Locator;
|
||||
import com.gemstone.gemfire.distributed.internal.DistributionConfig;
|
||||
import com.gemstone.gemfire.distributed.internal.InternalDistributedSystem;
|
||||
import com.gemstone.gemfire.distributed.internal.InternalLocator;
|
||||
import com.gemstone.gemfire.internal.DistributionLocator;
|
||||
|
||||
/**
|
||||
@@ -89,4 +91,9 @@ public abstract class DistributedSystemUtils extends SpringUtils {
|
||||
return (gemfireCache != null ? (T) gemfireCache.getDistributedSystem() : null);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <T extends Locator> T getLocator() {
|
||||
return (T) InternalLocator.getLocator();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user