diff --git a/samples/hello-world/src/main/java/org/springframework/data/gemfire/samples/helloworld/CacheLogger.java b/samples/hello-world/src/main/java/org/springframework/data/gemfire/samples/helloworld/CacheLogger.java index 0790ba5f..6528e6ef 100644 --- a/samples/hello-world/src/main/java/org/springframework/data/gemfire/samples/helloworld/CacheLogger.java +++ b/samples/hello-world/src/main/java/org/springframework/data/gemfire/samples/helloworld/CacheLogger.java @@ -19,12 +19,12 @@ package org.springframework.data.gemfire.samples.helloworld; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import com.gemstone.gemfire.cache.EntryEvent; -import com.gemstone.gemfire.cache.util.CacheListenerAdapter; +import org.apache.geode.cache.EntryEvent; +import org.apache.geode.cache.util.CacheListenerAdapter; /** * Listener that logs entry operations to the configured logger. - * + * * @author Costin Leau */ public class CacheLogger extends CacheListenerAdapter { diff --git a/samples/hello-world/src/main/java/org/springframework/data/gemfire/samples/helloworld/CommandProcessor.java b/samples/hello-world/src/main/java/org/springframework/data/gemfire/samples/helloworld/CommandProcessor.java index 7d0d5227..26830685 100644 --- a/samples/hello-world/src/main/java/org/springframework/data/gemfire/samples/helloworld/CommandProcessor.java +++ b/samples/hello-world/src/main/java/org/springframework/data/gemfire/samples/helloworld/CommandProcessor.java @@ -34,13 +34,13 @@ import org.springframework.data.gemfire.GemfireCallback; import org.springframework.data.gemfire.GemfireTemplate; import org.springframework.stereotype.Component; -import com.gemstone.gemfire.GemFireCheckedException; -import com.gemstone.gemfire.GemFireException; -import com.gemstone.gemfire.cache.Region; +import org.apache.geode.GemFireCheckedException; +import org.apache.geode.GemFireException; +import org.apache.geode.cache.Region; /** * Entity processing and interpreting shell commands. - * + * * @author Costin Leau */ @Component @@ -205,4 +205,4 @@ public class CommandProcessor { } }); } -} \ No newline at end of file +} diff --git a/samples/hello-world/src/main/java/org/springframework/data/gemfire/samples/helloworld/HelloWorld.java b/samples/hello-world/src/main/java/org/springframework/data/gemfire/samples/helloworld/HelloWorld.java index aea6598a..e51d8f59 100644 --- a/samples/hello-world/src/main/java/org/springframework/data/gemfire/samples/helloworld/HelloWorld.java +++ b/samples/hello-world/src/main/java/org/springframework/data/gemfire/samples/helloworld/HelloWorld.java @@ -24,11 +24,11 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.stereotype.Component; -import com.gemstone.gemfire.cache.Region; +import org.apache.geode.cache.Region; /** - * Main bean for interacting with the cache from the console. - * + * Main bean for interacting with the cache from the console. + * * @author Costin Leau */ @Component @@ -64,4 +64,4 @@ public class HelloWorld { throw new IllegalStateException("Cannot greet world", ex); } } -} \ No newline at end of file +} diff --git a/src/main/java/org/springframework/data/gemfire/CacheFactoryBean.java b/src/main/java/org/springframework/data/gemfire/CacheFactoryBean.java index f8aa345d..4f6733f9 100644 --- a/src/main/java/org/springframework/data/gemfire/CacheFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/CacheFactoryBean.java @@ -23,25 +23,24 @@ import java.util.List; import java.util.Map; import java.util.Properties; -import com.gemstone.gemfire.GemFireCheckedException; -import com.gemstone.gemfire.GemFireException; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheClosedException; -import com.gemstone.gemfire.cache.CacheFactory; -import com.gemstone.gemfire.cache.DynamicRegionFactory; -import com.gemstone.gemfire.cache.GemFireCache; -import com.gemstone.gemfire.cache.TransactionListener; -import com.gemstone.gemfire.cache.TransactionWriter; -import com.gemstone.gemfire.cache.util.GatewayConflictResolver; -import com.gemstone.gemfire.distributed.DistributedMember; -import com.gemstone.gemfire.distributed.DistributedSystem; -import com.gemstone.gemfire.internal.datasource.ConfigProperty; -import com.gemstone.gemfire.internal.jndi.JNDIInvoker; -import com.gemstone.gemfire.pdx.PdxSerializable; -import com.gemstone.gemfire.pdx.PdxSerializer; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.GemFireCheckedException; +import org.apache.geode.GemFireException; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheClosedException; +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.DynamicRegionFactory; +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.TransactionListener; +import org.apache.geode.cache.TransactionWriter; +import org.apache.geode.cache.util.GatewayConflictResolver; +import org.apache.geode.distributed.DistributedMember; +import org.apache.geode.distributed.DistributedSystem; +import org.apache.geode.internal.datasource.ConfigProperty; +import org.apache.geode.internal.jndi.JNDIInvoker; +import org.apache.geode.pdx.PdxSerializable; +import org.apache.geode.pdx.PdxSerializer; import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanClassLoaderAware; import org.springframework.beans.factory.BeanFactory; @@ -79,11 +78,11 @@ import org.springframework.util.ObjectUtils; * @see org.springframework.beans.factory.DisposableBean * @see org.springframework.context.Phased * @see org.springframework.dao.support.PersistenceExceptionTranslator - * @see com.gemstone.gemfire.cache.Cache - * @see com.gemstone.gemfire.cache.CacheFactory - * @see com.gemstone.gemfire.cache.GemFireCache - * @see com.gemstone.gemfire.distributed.DistributedMember - * @see com.gemstone.gemfire.distributed.DistributedSystem + * @see org.apache.geode.cache.Cache + * @see org.apache.geode.cache.CacheFactory + * @see org.apache.geode.cache.GemFireCache + * @see org.apache.geode.distributed.DistributedMember + * @see org.apache.geode.distributed.DistributedSystem */ @SuppressWarnings("unused") public class CacheFactoryBean implements BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, FactoryBean, @@ -233,7 +232,7 @@ public class CacheFactoryBean implements BeanClassLoaderAware, BeanFactoryAware, * if an existing Cache could not be found, then this method proceeds in attempting to create a new Cache instance. * * @return the resolved GemFire Cache instance. - * @see com.gemstone.gemfire.cache.Cache + * @see org.apache.geode.cache.Cache * @see #fetchCache() * @see #createFactory(java.util.Properties) * @see #prepareFactory(Object) @@ -256,9 +255,9 @@ public class CacheFactoryBean implements BeanClassLoaderAware, BeanFactoryAware, * * @param parameterized Class type extension of GemFireCache. * @return the existing GemFire Cache instance if available. - * @throws com.gemstone.gemfire.cache.CacheClosedException if an existing GemFire Cache instance does not exist. - * @see com.gemstone.gemfire.cache.GemFireCache - * @see com.gemstone.gemfire.cache.CacheFactory#getAnyInstance() + * @throws org.apache.geode.cache.CacheClosedException if an existing GemFire Cache instance does not exist. + * @see org.apache.geode.cache.GemFireCache + * @see org.apache.geode.cache.CacheFactory#getAnyInstance() */ @SuppressWarnings("unchecked") protected T fetchCache() { @@ -282,7 +281,7 @@ public class CacheFactoryBean implements BeanClassLoaderAware, BeanFactoryAware, * @param gemfireProperties a Properties object containing GemFire System properties. * @return an instance of a GemFire factory used to create a GemFire cache instance. * @see java.util.Properties - * @see com.gemstone.gemfire.cache.CacheFactory + * @see org.apache.geode.cache.CacheFactory */ protected Object createFactory(Properties gemfireProperties) { return new CacheFactory(gemfireProperties); @@ -304,7 +303,7 @@ public class CacheFactoryBean implements BeanClassLoaderAware, BeanFactoryAware, * Initialize the PDX settings on the {@link CacheFactory}. * * @param cacheFactory the GemFire {@link CacheFactory} used to configure and create a GemFire {@link Cache}. - * @see com.gemstone.gemfire.cache.CacheFactory + * @see org.apache.geode.cache.CacheFactory */ CacheFactory initializePdx(CacheFactory cacheFactory) { if (isPdxOptionsSpecified()) { @@ -348,8 +347,8 @@ public class CacheFactoryBean implements BeanClassLoaderAware, BeanFactoryAware, * @param parameterized Class type extension of GemFireCache. * @param factory the appropriate GemFire factory used to create a cache instance. * @return an instance of the GemFire cache. - * @see com.gemstone.gemfire.cache.GemFireCache - * @see com.gemstone.gemfire.cache.CacheFactory#create() + * @see org.apache.geode.cache.GemFireCache + * @see org.apache.geode.cache.CacheFactory#create() */ @SuppressWarnings("unchecked") protected T createCache(Object factory) { @@ -364,11 +363,11 @@ public class CacheFactoryBean implements BeanClassLoaderAware, BeanFactoryAware, * @param cache the GemFire Cache instance to process. * @return the GemFire Cache instance after processing. * @throws IOException if the cache.xml Resource could not be loaded and applied to the Cache instance. - * @see com.gemstone.gemfire.cache.Cache#loadCacheXml(java.io.InputStream) + * @see org.apache.geode.cache.Cache#loadCacheXml(java.io.InputStream) * @see #getCacheXml() - * @see #setHeapPercentages(com.gemstone.gemfire.cache.GemFireCache) - * @see #registerTransactionListeners(com.gemstone.gemfire.cache.GemFireCache) - * @see #registerTransactionWriter(com.gemstone.gemfire.cache.GemFireCache) + * @see #setHeapPercentages(org.apache.geode.cache.GemFireCache) + * @see #registerTransactionListeners(org.apache.geode.cache.GemFireCache) + * @see #registerTransactionWriter(org.apache.geode.cache.GemFireCache) * @see #registerJndiDataSources() */ protected T postProcess(T cache) throws IOException { @@ -768,7 +767,7 @@ public class CacheFactoryBean implements BeanClassLoaderAware, BeanFactoryAware, * Requires GemFire 7.0 or higher * @param gatewayConflictResolver defined as Object in the signature for backward * compatibility with Gemfire 6 compatibility. This must be an instance of - * {@link com.gemstone.gemfire.cache.util.GatewayConflictResolver} + * {@link org.apache.geode.cache.util.GatewayConflictResolver} */ public void setGatewayConflictResolver(Object gatewayConflictResolver) { this.gatewayConflictResolver = gatewayConflictResolver; @@ -952,7 +951,7 @@ public class CacheFactoryBean implements BeanClassLoaderAware, BeanFactoryAware, * the transaction is processed (committed, rolled back). * * @param transactionListeners the list of GemFire TransactionListeners listening for transaction events. - * @see com.gemstone.gemfire.cache.TransactionListener + * @see org.apache.geode.cache.TransactionListener */ public void setTransactionListeners(List transactionListeners) { this.transactionListeners = transactionListeners; @@ -970,7 +969,7 @@ public class CacheFactoryBean implements BeanClassLoaderAware, BeanFactoryAware, * the transaction or update an external DB before the commit. * * @param transactionWriter the GemFire TransactionWriter callback receiving transaction events. - * @see com.gemstone.gemfire.cache.TransactionWriter + * @see org.apache.geode.cache.TransactionWriter */ public void setTransactionWriter(TransactionWriter transactionWriter) { this.transactionWriter = transactionWriter; diff --git a/src/main/java/org/springframework/data/gemfire/DataPolicyConverter.java b/src/main/java/org/springframework/data/gemfire/DataPolicyConverter.java index 3e56159c..6e6cfaae 100644 --- a/src/main/java/org/springframework/data/gemfire/DataPolicyConverter.java +++ b/src/main/java/org/springframework/data/gemfire/DataPolicyConverter.java @@ -16,17 +16,16 @@ package org.springframework.data.gemfire; +import org.apache.geode.cache.DataPolicy; import org.springframework.core.convert.converter.Converter; -import com.gemstone.gemfire.cache.DataPolicy; - /** * The DataPolicyConverter class converts String values into GemFire DataPolicy enumerated values. * * @author David Turanski * @author John Blum * @see org.springframework.core.convert.converter.Converter - * @see com.gemstone.gemfire.cache.DataPolicy + * @see org.apache.geode.cache.DataPolicy */ public class DataPolicyConverter implements Converter { diff --git a/src/main/java/org/springframework/data/gemfire/DeclarableSupport.java b/src/main/java/org/springframework/data/gemfire/DeclarableSupport.java index 4c8a1688..8781043c 100644 --- a/src/main/java/org/springframework/data/gemfire/DeclarableSupport.java +++ b/src/main/java/org/springframework/data/gemfire/DeclarableSupport.java @@ -18,26 +18,25 @@ package org.springframework.data.gemfire; import java.util.Properties; +import org.apache.geode.cache.CacheCallback; +import org.apache.geode.cache.Declarable; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.access.BeanFactoryReference; -import com.gemstone.gemfire.cache.CacheCallback; -import com.gemstone.gemfire.cache.Declarable; - /** * Convenience class for Spring-aware GemFire Declarable components. Provides a reference to the current * Spring ApplicationContext, e.g. for Spring bean lookup or resource loading. - * + * * Note that in most cases, one can just declare the same components as Spring beans, through {@link RegionFactoryBean} * which gives access to the full Spring container capabilities and does not enforce the {@link Declarable} interface * to be implemented. - * + * * @author Costin Leau * @author John Blum * @see org.springframework.beans.factory.BeanFactory * @see org.springframework.beans.factory.access.BeanFactoryReference - * @see com.gemstone.gemfire.cache.CacheCallback - * @see com.gemstone.gemfire.cache.Declarable + * @see org.apache.geode.cache.CacheCallback + * @see org.apache.geode.cache.Declarable */ @SuppressWarnings("unused") public abstract class DeclarableSupport implements CacheCallback, Declarable { @@ -89,7 +88,7 @@ public abstract class DeclarableSupport implements CacheCallback, Declarable { * Initialize this Declarable object with the given Properties. * * @param props the Properties (parameters) used to initialize this Declarable. - * @see com.gemstone.gemfire.cache.Declarable#init(java.util.Properties) + * @see org.apache.geode.cache.Declarable#init(java.util.Properties) * @see java.util.Properties * @see #init(Properties) */ diff --git a/src/main/java/org/springframework/data/gemfire/DiskStoreFactoryBean.java b/src/main/java/org/springframework/data/gemfire/DiskStoreFactoryBean.java index 112c4889..b752db35 100644 --- a/src/main/java/org/springframework/data/gemfire/DiskStoreFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/DiskStoreFactoryBean.java @@ -19,6 +19,9 @@ package org.springframework.data.gemfire; import java.io.File; import java.util.List; +import org.apache.geode.cache.DiskStore; +import org.apache.geode.cache.DiskStoreFactory; +import org.apache.geode.cache.GemFireCache; import org.springframework.beans.factory.BeanNameAware; import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.InitializingBean; @@ -26,10 +29,6 @@ import org.springframework.util.Assert; import org.springframework.util.CollectionUtils; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.DiskStore; -import com.gemstone.gemfire.cache.DiskStoreFactory; -import com.gemstone.gemfire.cache.GemFireCache; - /** * FactoryBean for creating a GemFire DiskStore. * diff --git a/src/main/java/org/springframework/data/gemfire/FixedPartitionAttributesFactoryBean.java b/src/main/java/org/springframework/data/gemfire/FixedPartitionAttributesFactoryBean.java index f3f4bc94..7f392f91 100644 --- a/src/main/java/org/springframework/data/gemfire/FixedPartitionAttributesFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/FixedPartitionAttributesFactoryBean.java @@ -15,12 +15,11 @@ */ package org.springframework.data.gemfire; +import org.apache.geode.cache.FixedPartitionAttributes; import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.InitializingBean; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.FixedPartitionAttributes; - /** * @author David Turanski * @@ -54,7 +53,7 @@ public class FixedPartitionAttributesFactoryBean implements FactoryBean the Region key class type. * @param the Region value class type. * @return the GemFire Cache Region. - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region */ @SuppressWarnings("unchecked") public Region getRegion() { @@ -60,7 +59,7 @@ public class GemfireAccessor implements InitializingBean { * Sets the template GemFire Cache Region. * * @param region the GemFire Cache Region used by this template. - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region */ public void setRegion(Region region) { this.region = region; diff --git a/src/main/java/org/springframework/data/gemfire/GemfireBeanFactoryLocator.java b/src/main/java/org/springframework/data/gemfire/GemfireBeanFactoryLocator.java index f9b8bf1f..52badccd 100644 --- a/src/main/java/org/springframework/data/gemfire/GemfireBeanFactoryLocator.java +++ b/src/main/java/org/springframework/data/gemfire/GemfireBeanFactoryLocator.java @@ -36,16 +36,16 @@ import org.springframework.util.StringUtils; /** * {@link BeanFactoryLocator} used for storing Spring application context/bean factory for Gemfire - * user components (or {@link com.gemstone.gemfire.cache.Declarable}. As opposed to the "traditional" + * user components (or {@link org.apache.geode.cache.Declarable}. As opposed to the "traditional" * {@link org.springframework.beans.factory.access.SingletonBeanFactoryLocator} this implementation does * not require any configuration file; it rather assume declaration inside an application context - * (usually through {@link com.gemstone.gemfire.cache.CacheFactory} which it will store under the name - * and aliases of the bean (so the same "registry" can be used for storing multiple BeanFactories). + * (usually through {@link org.apache.geode.cache.CacheFactory} which it will store under the name + * and aliases of the bean (so the same "registry" can be used for storing multiple BeanFactories). * If there is only one BeanFactory registered then a null value can be used with {@link #setBeanName(String)}. - * + * * In most cases, one does not need to use this class directly as it is used internally - * by {@link com.gemstone.gemfire.cache.CacheFactory}. - * + * by {@link org.apache.geode.cache.CacheFactory}. + * * @author Costin Leau * @author John Blum */ diff --git a/src/main/java/org/springframework/data/gemfire/GemfireCacheUtils.java b/src/main/java/org/springframework/data/gemfire/GemfireCacheUtils.java index 7dd143de..e3aa8b2f 100644 --- a/src/main/java/org/springframework/data/gemfire/GemfireCacheUtils.java +++ b/src/main/java/org/springframework/data/gemfire/GemfireCacheUtils.java @@ -16,6 +16,54 @@ package org.springframework.data.gemfire; +import org.apache.geode.CancelException; +import org.apache.geode.CopyException; +import org.apache.geode.GemFireCacheException; +import org.apache.geode.GemFireCheckedException; +import org.apache.geode.GemFireConfigException; +import org.apache.geode.GemFireException; +import org.apache.geode.GemFireIOException; +import org.apache.geode.IncompatibleSystemException; +import org.apache.geode.InternalGemFireException; +import org.apache.geode.InvalidValueException; +import org.apache.geode.LicenseException; +import org.apache.geode.NoSystemException; +import org.apache.geode.SystemConnectException; +import org.apache.geode.SystemIsRunningException; +import org.apache.geode.UnmodifiableException; +import org.apache.geode.cache.CacheException; +import org.apache.geode.cache.CacheExistsException; +import org.apache.geode.cache.CacheLoaderException; +import org.apache.geode.cache.CacheRuntimeException; +import org.apache.geode.cache.CacheWriterException; +import org.apache.geode.cache.CacheXmlException; +import org.apache.geode.cache.CommitConflictException; +import org.apache.geode.cache.CommitIncompleteException; +import org.apache.geode.cache.DiskAccessException; +import org.apache.geode.cache.EntryDestroyedException; +import org.apache.geode.cache.EntryExistsException; +import org.apache.geode.cache.EntryNotFoundException; +import org.apache.geode.cache.FailedSynchronizationException; +import org.apache.geode.cache.OperationAbortedException; +import org.apache.geode.cache.PartitionedRegionDistributionException; +import org.apache.geode.cache.PartitionedRegionStorageException; +import org.apache.geode.cache.RegionDestroyedException; +import org.apache.geode.cache.RegionExistsException; +import org.apache.geode.cache.ResourceException; +import org.apache.geode.cache.RoleException; +import org.apache.geode.cache.StatisticsDisabledException; +import org.apache.geode.cache.SynchronizationCommitConflictException; +import org.apache.geode.cache.VersionException; +import org.apache.geode.cache.client.ServerConnectivityException; +import org.apache.geode.cache.execute.FunctionException; +import org.apache.geode.cache.query.CqClosedException; +import org.apache.geode.cache.query.IndexInvalidException; +import org.apache.geode.cache.query.IndexMaintenanceException; +import org.apache.geode.cache.query.QueryException; +import org.apache.geode.cache.query.QueryExecutionTimeoutException; +import org.apache.geode.cache.query.QueryInvalidException; +import org.apache.geode.distributed.LeaseExpiredException; +import org.apache.geode.security.GemFireSecurityException; import org.springframework.dao.DataAccessException; import org.springframework.dao.DataAccessResourceFailureException; import org.springframework.dao.DataIntegrityViolationException; @@ -28,58 +76,9 @@ import org.springframework.dao.PessimisticLockingFailureException; import org.springframework.dao.TypeMismatchDataAccessException; import org.springframework.util.ClassUtils; -import com.gemstone.gemfire.CancelException; -import com.gemstone.gemfire.CopyException; -import com.gemstone.gemfire.GemFireCacheException; -import com.gemstone.gemfire.GemFireCheckedException; -import com.gemstone.gemfire.GemFireConfigException; -import com.gemstone.gemfire.GemFireException; -import com.gemstone.gemfire.GemFireIOException; -import com.gemstone.gemfire.IncompatibleSystemException; -import com.gemstone.gemfire.InternalGemFireException; -import com.gemstone.gemfire.InvalidValueException; -import com.gemstone.gemfire.LicenseException; -import com.gemstone.gemfire.NoSystemException; -import com.gemstone.gemfire.SystemConnectException; -import com.gemstone.gemfire.SystemIsRunningException; -import com.gemstone.gemfire.UnmodifiableException; -import com.gemstone.gemfire.cache.CacheException; -import com.gemstone.gemfire.cache.CacheExistsException; -import com.gemstone.gemfire.cache.CacheLoaderException; -import com.gemstone.gemfire.cache.CacheRuntimeException; -import com.gemstone.gemfire.cache.CacheWriterException; -import com.gemstone.gemfire.cache.CacheXmlException; -import com.gemstone.gemfire.cache.CommitConflictException; -import com.gemstone.gemfire.cache.CommitIncompleteException; -import com.gemstone.gemfire.cache.DiskAccessException; -import com.gemstone.gemfire.cache.EntryDestroyedException; -import com.gemstone.gemfire.cache.EntryExistsException; -import com.gemstone.gemfire.cache.EntryNotFoundException; -import com.gemstone.gemfire.cache.FailedSynchronizationException; -import com.gemstone.gemfire.cache.OperationAbortedException; -import com.gemstone.gemfire.cache.PartitionedRegionDistributionException; -import com.gemstone.gemfire.cache.PartitionedRegionStorageException; -import com.gemstone.gemfire.cache.RegionDestroyedException; -import com.gemstone.gemfire.cache.RegionExistsException; -import com.gemstone.gemfire.cache.ResourceException; -import com.gemstone.gemfire.cache.RoleException; -import com.gemstone.gemfire.cache.StatisticsDisabledException; -import com.gemstone.gemfire.cache.SynchronizationCommitConflictException; -import com.gemstone.gemfire.cache.VersionException; -import com.gemstone.gemfire.cache.client.ServerConnectivityException; -import com.gemstone.gemfire.cache.execute.FunctionException; -import com.gemstone.gemfire.cache.query.CqClosedException; -import com.gemstone.gemfire.cache.query.IndexInvalidException; -import com.gemstone.gemfire.cache.query.IndexMaintenanceException; -import com.gemstone.gemfire.cache.query.QueryException; -import com.gemstone.gemfire.cache.query.QueryExecutionTimeoutException; -import com.gemstone.gemfire.cache.query.QueryInvalidException; -import com.gemstone.gemfire.distributed.LeaseExpiredException; -import com.gemstone.gemfire.security.GemFireSecurityException; - /** * Helper class featuring methods for GemFire Cache or Region handling. - * + * * @author Costin Leau */ public abstract class GemfireCacheUtils { @@ -90,7 +89,7 @@ public abstract class GemfireCacheUtils { Class type = null; try { - type = ClassUtils.resolveClassName("com.gemstone.gemfire.cache.query.CqInvalidException", + type = ClassUtils.resolveClassName("org.apache.geode.cache.query.CqInvalidException", GemfireCacheUtils.class.getClassLoader()); } @@ -104,7 +103,7 @@ public abstract class GemfireCacheUtils { /** * Converts the given (unchecked) Gemfire exception to an appropriate one from the * org.springframework.dao hierarchy. - * + * * @param ex Gemfire unchecked exception * @return new the corresponding DataAccessException instance */ @@ -154,7 +153,7 @@ public abstract class GemfireCacheUtils { return new GemfireIndexException((IndexMaintenanceException) ex); } if (ex instanceof OperationAbortedException) { - // treat user exceptions first + // treat user exceptions first if (ex instanceof CacheLoaderException) { return new GemfireSystemException(ex); } @@ -176,7 +175,7 @@ public abstract class GemfireCacheUtils { if (ex instanceof RegionDestroyedException) { return new InvalidDataAccessResourceUsageException(ex.getMessage(), ex); } - if (ex instanceof com.gemstone.gemfire.admin.RegionNotFoundException) { + if (ex instanceof org.apache.geode.admin.RegionNotFoundException) { return new InvalidDataAccessResourceUsageException(ex.getMessage(), ex); } if (ex instanceof ResourceException) { @@ -195,7 +194,7 @@ public abstract class GemfireCacheUtils { if (ex instanceof CopyException) { return new GemfireSystemException(ex); } - if (ex instanceof com.gemstone.gemfire.cache.EntryNotFoundInRegion) { + if (ex instanceof org.apache.geode.cache.EntryNotFoundInRegion) { return new DataRetrievalFailureException(ex.getMessage(), ex); } if (ex instanceof FunctionException) { @@ -231,7 +230,7 @@ public abstract class GemfireCacheUtils { if (ex instanceof NoSystemException) { return new GemfireSystemException(ex); } - if (ex instanceof com.gemstone.gemfire.admin.RuntimeAdminException) { + if (ex instanceof org.apache.geode.admin.RuntimeAdminException) { return new GemfireSystemException(ex); } if (ex instanceof ServerConnectivityException) { @@ -295,11 +294,11 @@ public abstract class GemfireCacheUtils { return new DataAccessResourceFailureException(ex.getMessage(), ex); } // util.version exception (seems quite similar to the exception above) - if (ex instanceof com.gemstone.gemfire.cache.util.VersionException) { + if (ex instanceof org.apache.geode.cache.util.VersionException) { return new DataAccessResourceFailureException(ex.getMessage(), ex); } // admin exception - if (ex instanceof com.gemstone.gemfire.admin.AdminException) { + if (ex instanceof org.apache.geode.admin.AdminException) { return new GemfireSystemException(ex); } // fall back diff --git a/src/main/java/org/springframework/data/gemfire/GemfireCallback.java b/src/main/java/org/springframework/data/gemfire/GemfireCallback.java index 30c9a4fc..c80702c3 100644 --- a/src/main/java/org/springframework/data/gemfire/GemfireCallback.java +++ b/src/main/java/org/springframework/data/gemfire/GemfireCallback.java @@ -16,18 +16,18 @@ package org.springframework.data.gemfire; -import com.gemstone.gemfire.GemFireCheckedException; -import com.gemstone.gemfire.GemFireException; -import com.gemstone.gemfire.cache.Region; +import org.apache.geode.GemFireCheckedException; +import org.apache.geode.GemFireException; +import org.apache.geode.cache.Region; /** * Callback interface for GemFire code. To be used with {@link GemfireTemplate}'s execution methods, often as anonymous * classes within a method implementation. A typical implementation will call Region.get/put/query to perform some - * operations on stored objects. - * + * operations on stored objects. + * * @author Costin Leau * @author John Blum - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region */ public interface GemfireCallback { @@ -40,13 +40,13 @@ public interface GemfireCallback { * * A thrown custom RuntimeException is treated as an application exception: it gets propagated to * the caller of the template. - * + * * @param region the GemFire Cache Region upon which the operation of this callback will be performed. * @return a result object, or null if no result. * @throws GemFireCheckedException for checked Exceptions occurring in GemFire. * @throws GemFireException for runtime Exceptions occurring in GemFire. * @see org.springframework.data.gemfire.GemfireTemplate - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region */ T doInGemfire(Region region) throws GemFireCheckedException, GemFireException; diff --git a/src/main/java/org/springframework/data/gemfire/GemfireCancellationException.java b/src/main/java/org/springframework/data/gemfire/GemfireCancellationException.java index c7b2aaef..ff065dee 100644 --- a/src/main/java/org/springframework/data/gemfire/GemfireCancellationException.java +++ b/src/main/java/org/springframework/data/gemfire/GemfireCancellationException.java @@ -16,13 +16,12 @@ package org.springframework.data.gemfire; +import org.apache.geode.CancelException; import org.springframework.dao.InvalidDataAccessResourceUsageException; -import com.gemstone.gemfire.CancelException; - /** * GemFire-specific class for exceptions caused by system cancellations. - * + * * @author Costin Leau */ @SuppressWarnings("serial") diff --git a/src/main/java/org/springframework/data/gemfire/GemfireIndexException.java b/src/main/java/org/springframework/data/gemfire/GemfireIndexException.java index b275452d..e3d36a80 100644 --- a/src/main/java/org/springframework/data/gemfire/GemfireIndexException.java +++ b/src/main/java/org/springframework/data/gemfire/GemfireIndexException.java @@ -16,24 +16,23 @@ package org.springframework.data.gemfire; +import org.apache.geode.cache.query.IndexCreationException; +import org.apache.geode.cache.query.IndexExistsException; +import org.apache.geode.cache.query.IndexInvalidException; +import org.apache.geode.cache.query.IndexMaintenanceException; +import org.apache.geode.cache.query.IndexNameConflictException; import org.springframework.dao.DataIntegrityViolationException; -import com.gemstone.gemfire.cache.query.IndexCreationException; -import com.gemstone.gemfire.cache.query.IndexExistsException; -import com.gemstone.gemfire.cache.query.IndexInvalidException; -import com.gemstone.gemfire.cache.query.IndexMaintenanceException; -import com.gemstone.gemfire.cache.query.IndexNameConflictException; - /** * Gemfire-specific subclass thrown on Index management. - * + * * @author Costin Leau * @author John Blum - * @see com.gemstone.gemfire.cache.query.IndexCreationException - * @see com.gemstone.gemfire.cache.query.IndexExistsException - * @see com.gemstone.gemfire.cache.query.IndexInvalidException - * @see com.gemstone.gemfire.cache.query.IndexMaintenanceException - * @see com.gemstone.gemfire.cache.query.IndexNameConflictException + * @see org.apache.geode.cache.query.IndexCreationException + * @see org.apache.geode.cache.query.IndexExistsException + * @see org.apache.geode.cache.query.IndexInvalidException + * @see org.apache.geode.cache.query.IndexMaintenanceException + * @see org.apache.geode.cache.query.IndexNameConflictException */ @SuppressWarnings({ "serial", "unused" }) public class GemfireIndexException extends DataIntegrityViolationException { diff --git a/src/main/java/org/springframework/data/gemfire/GemfireOperations.java b/src/main/java/org/springframework/data/gemfire/GemfireOperations.java index 227b8189..4a6aa479 100644 --- a/src/main/java/org/springframework/data/gemfire/GemfireOperations.java +++ b/src/main/java/org/springframework/data/gemfire/GemfireOperations.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -15,14 +15,13 @@ package org.springframework.data.gemfire; import java.util.Collection; import java.util.Map; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.query.Query; +import org.apache.geode.cache.query.QueryService; +import org.apache.geode.cache.query.SelectResults; import org.springframework.dao.DataAccessException; import org.springframework.dao.InvalidDataAccessApiUsageException; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.query.Query; -import com.gemstone.gemfire.cache.query.QueryService; -import com.gemstone.gemfire.cache.query.SelectResults; - /** * @author David Turanski * @author John Blum diff --git a/src/main/java/org/springframework/data/gemfire/GemfireQueryException.java b/src/main/java/org/springframework/data/gemfire/GemfireQueryException.java index 39290d09..8db04b97 100644 --- a/src/main/java/org/springframework/data/gemfire/GemfireQueryException.java +++ b/src/main/java/org/springframework/data/gemfire/GemfireQueryException.java @@ -16,16 +16,15 @@ package org.springframework.data.gemfire; +import org.apache.geode.cache.query.QueryException; +import org.apache.geode.cache.query.QueryExecutionTimeoutException; +import org.apache.geode.cache.query.QueryInvalidException; import org.springframework.dao.InvalidDataAccessResourceUsageException; -import com.gemstone.gemfire.cache.query.QueryException; -import com.gemstone.gemfire.cache.query.QueryExecutionTimeoutException; -import com.gemstone.gemfire.cache.query.QueryInvalidException; - /** * GemFire-specific subclass of {@link InvalidDataAccessResourceUsageException} thrown on invalid * OQL query syntax. - * + * * @author Costin Leau */ @SuppressWarnings("serial") @@ -62,4 +61,4 @@ public class GemfireQueryException extends InvalidDataAccessResourceUsageExcepti public GemfireQueryException(RuntimeException ex) { super(ex.getMessage(), ex); } -} \ No newline at end of file +} diff --git a/src/main/java/org/springframework/data/gemfire/GemfireSystemException.java b/src/main/java/org/springframework/data/gemfire/GemfireSystemException.java index 96803355..bbc4ab40 100644 --- a/src/main/java/org/springframework/data/gemfire/GemfireSystemException.java +++ b/src/main/java/org/springframework/data/gemfire/GemfireSystemException.java @@ -16,14 +16,13 @@ package org.springframework.data.gemfire; +import org.apache.geode.GemFireCheckedException; +import org.apache.geode.GemFireException; import org.springframework.dao.UncategorizedDataAccessException; -import com.gemstone.gemfire.GemFireCheckedException; -import com.gemstone.gemfire.GemFireException; - /** * GemFire-specific subclass of UncategorizedDataAccessException, for GemFire system errors that do not match any concrete org.springframework.dao exceptions. - * + * * @author Costin Leau */ @SuppressWarnings("serial") diff --git a/src/main/java/org/springframework/data/gemfire/GemfireTemplate.java b/src/main/java/org/springframework/data/gemfire/GemfireTemplate.java index cb16331d..29b0bc53 100644 --- a/src/main/java/org/springframework/data/gemfire/GemfireTemplate.java +++ b/src/main/java/org/springframework/data/gemfire/GemfireTemplate.java @@ -24,18 +24,17 @@ import java.util.Collection; import java.util.List; import java.util.Map; -import com.gemstone.gemfire.GemFireCheckedException; -import com.gemstone.gemfire.GemFireException; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.Scope; -import com.gemstone.gemfire.cache.client.ClientCache; -import com.gemstone.gemfire.cache.query.IndexInvalidException; -import com.gemstone.gemfire.cache.query.Query; -import com.gemstone.gemfire.cache.query.QueryInvalidException; -import com.gemstone.gemfire.cache.query.QueryService; -import com.gemstone.gemfire.cache.query.SelectResults; -import com.gemstone.gemfire.internal.cache.LocalRegion; - +import org.apache.geode.GemFireCheckedException; +import org.apache.geode.GemFireException; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.Scope; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.cache.query.IndexInvalidException; +import org.apache.geode.cache.query.Query; +import org.apache.geode.cache.query.QueryInvalidException; +import org.apache.geode.cache.query.QueryService; +import org.apache.geode.cache.query.SelectResults; +import org.apache.geode.internal.cache.LocalRegion; import org.springframework.dao.DataAccessException; import org.springframework.dao.InvalidDataAccessApiUsageException; import org.springframework.util.Assert; @@ -59,10 +58,10 @@ import org.springframework.util.StringUtils; * @see java.util.Map * @see org.springframework.data.gemfire.GemfireAccessor * @see org.springframework.data.gemfire.GemfireOperations - * @see com.gemstone.gemfire.cache.Region - * @see com.gemstone.gemfire.cache.query.Query - * @see com.gemstone.gemfire.cache.query.QueryService - * @see com.gemstone.gemfire.cache.query.SelectResults + * @see org.apache.geode.cache.Region + * @see org.apache.geode.cache.query.Query + * @see org.apache.geode.cache.query.QueryService + * @see org.apache.geode.cache.query.SelectResults */ @SuppressWarnings("unused") public class GemfireTemplate extends GemfireAccessor implements GemfireOperations { @@ -389,10 +388,10 @@ public class GemfireTemplate extends GemfireAccessor implements GemfireOperation * * @param region {@link Region} used to acquire the {@link QueryService}. * @return the {@link QueryService} that will perform the query. - * @see com.gemstone.gemfire.cache.Region - * @see com.gemstone.gemfire.cache.Region#getRegionService() - * @see com.gemstone.gemfire.cache.RegionService#getQueryService() - * @see com.gemstone.gemfire.cache.client.ClientCache#getLocalQueryService() + * @see org.apache.geode.cache.Region + * @see org.apache.geode.cache.Region#getRegionService() + * @see org.apache.geode.cache.RegionService#getQueryService() + * @see org.apache.geode.cache.client.ClientCache#getLocalQueryService() */ protected QueryService resolveQueryService(Region region) { return (region.getRegionService() instanceof ClientCache ? resolveClientQueryService(region) @@ -485,7 +484,7 @@ public class GemfireTemplate extends GemfireAccessor implements GemfireOperation * @param the Region value class type. * @param region the GemFire Cache Region to create a proxy for. * @return the Region proxy implementing all interfaces implemented by the passed-in Region object. - * @see com.gemstone.gemfire.cache.Region#close() + * @see org.apache.geode.cache.Region#close() * @see #execute(GemfireCallback, boolean) */ @SuppressWarnings("unchecked") @@ -500,7 +499,7 @@ public class GemfireTemplate extends GemfireAccessor implements GemfireOperation /** * InvocationHandler that suppresses close calls on GemFire Cache Regions. * - * @see com.gemstone.gemfire.cache.Region#close() + * @see org.apache.geode.cache.Region#close() * @see java.lang.reflect.InvocationHandler */ private static class RegionCloseSuppressingInvocationHandler implements InvocationHandler { diff --git a/src/main/java/org/springframework/data/gemfire/GemfireTransactionManager.java b/src/main/java/org/springframework/data/gemfire/GemfireTransactionManager.java index 8cf37f57..9cb0a818 100644 --- a/src/main/java/org/springframework/data/gemfire/GemfireTransactionManager.java +++ b/src/main/java/org/springframework/data/gemfire/GemfireTransactionManager.java @@ -16,6 +16,9 @@ package org.springframework.data.gemfire; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheTransactionManager; +import org.apache.geode.cache.Region; import org.springframework.beans.factory.InitializingBean; import org.springframework.transaction.CannotCreateTransactionException; import org.springframework.transaction.NoTransactionException; @@ -28,38 +31,34 @@ import org.springframework.transaction.support.ResourceTransactionManager; import org.springframework.transaction.support.TransactionSynchronizationManager; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheTransactionManager; -import com.gemstone.gemfire.cache.Region; - /** * Local transaction manager for GemFire Enterprise Fabric (GEF). Provides a * {@link PlatformTransactionManager} implementation for a single GemFire * {@link CacheTransactionManager}. - * + * * Binds one or multiple GemFire regions for the specified {@link Cache} to the * thread, potentially allowing for one region per cache model. - * + * *

* This local strategy is an alternative to executing cache operations within * JTA transactions. Its advantage is that is able to work in any environment, * for example a stand-alone application or a test suite. It is not able * to provide XA transactions, for example to share transactions with data * access. - * + * *

* To prevent dirty reads, by default, the cache is configured to return copies * rather then direct references for get operations. As a * workaround, one could use explicitly deep copy objects before making changes * to them to avoid unnecessary copying on every fetch. - * - * @see com.gemstone.gemfire.cache.CacheTransactionManager - * @see com.gemstone.gemfire.cache.Cache#setCopyOnRead(boolean) - * @see com.gemstone.gemfire.cache.Region#get(Object) - * @see com.gemstone.gemfire.CopyHelper#copy(Object) + * + * @see org.apache.geode.cache.CacheTransactionManager + * @see org.apache.geode.cache.Cache#setCopyOnRead(boolean) + * @see org.apache.geode.cache.Region#get(Object) + * @see org.apache.geode.CopyHelper#copy(Object) * @see #setCopyOnRead(boolean) * @see org.springframework.transaction.support.AbstractPlatformTransactionManager - * + * * @author Costin Leau */ // TODO add lenient behavior if a transaction is already started on the current @@ -80,7 +79,7 @@ public class GemfireTransactionManager extends AbstractPlatformTransactionManage /** * Creates a new GemfireTransactionManager instance. - * + * * @param cache a reference to the GemFire Cache associated with Cache transactions. */ public GemfireTransactionManager(Cache cache) { @@ -147,8 +146,8 @@ public class GemfireTransactionManager extends AbstractPlatformTransactionManage throw new NoTransactionException( "No transaction associated with the current thread; are there multiple transaction managers ?", ex); } - - catch (com.gemstone.gemfire.cache.TransactionException ex) { + + catch (org.apache.geode.cache.TransactionException ex) { throw new GemfireTransactionCommitException("Unexpected failure on commit of Cache local transaction", ex); } } @@ -189,7 +188,7 @@ public class GemfireTransactionManager extends AbstractPlatformTransactionManage /** * Returns the Cache that this instance manages local transactions for. - * + * * @return Gemfire cache */ public Cache getCache() { @@ -198,7 +197,7 @@ public class GemfireTransactionManager extends AbstractPlatformTransactionManage /** * Sets the Cache that this instance manages local transactions for. - * + * * @param cache Gemfire cache */ public void setCache(Cache cache) { @@ -229,11 +228,11 @@ public class GemfireTransactionManager extends AbstractPlatformTransactionManage * concurrent threads in the same VM, whether or not transactions are used. * * One could explicitly deep copy objects before making changes (for example - * by using {@link com.gemstone.gemfire.CopyHelper#copy(Object)} in which + * by using {@link org.apache.geode.CopyHelper#copy(Object)} in which * case this setting can be set to false. However, unless there * is a measurable performance penalty, the recommendation is to keep this * setting to true - * + * * @param copyOnRead whether copies (default) rather then direct references * will be returned on fetch operations */ @@ -243,7 +242,7 @@ public class GemfireTransactionManager extends AbstractPlatformTransactionManage /** * Indicates whether copy on read is set or not on the transaction manager. - * + * * @see #setCopyOnRead(boolean) * @return the copyOnRead */ @@ -253,7 +252,7 @@ public class GemfireTransactionManager extends AbstractPlatformTransactionManage /** * GemfireTM local transaction object. - * + * * @author Costin Leau */ private static class CacheTransactionObject { diff --git a/src/main/java/org/springframework/data/gemfire/GemfireUtils.java b/src/main/java/org/springframework/data/gemfire/GemfireUtils.java index 0162a2fe..6b8be78d 100644 --- a/src/main/java/org/springframework/data/gemfire/GemfireUtils.java +++ b/src/main/java/org/springframework/data/gemfire/GemfireUtils.java @@ -18,20 +18,19 @@ package org.springframework.data.gemfire; import java.util.concurrent.ConcurrentMap; +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.Region; import org.springframework.data.gemfire.util.CacheUtils; import org.springframework.util.ClassUtils; -import com.gemstone.gemfire.cache.CacheFactory; -import com.gemstone.gemfire.cache.Region; - /** * GemfireUtils is an abstract utility class encapsulating common functionality to access features and capabilities * of GemFire based on version and other configuration meta-data. * * @author John Blum * @see org.springframework.data.gemfire.util.DistributedSystemUtils - * @see com.gemstone.gemfire.cache.CacheFactory - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.CacheFactory + * @see org.apache.geode.cache.Region * @since 1.3.3 */ @SuppressWarnings("unused") @@ -64,8 +63,8 @@ public abstract class GemfireUtils extends CacheUtils { return isGemfireVersionGreaterThanEqualTo(7.0); } catch (NumberFormatException e) { - // NOTE the com.gemstone.gemfire.distributed.ServerLauncher class only exists in GemFire v 7.0.x or above... - return ClassUtils.isPresent("com.gemstone.gemfire.distributed.ServerLauncher", + // NOTE the org.apache.geode.distributed.ServerLauncher class only exists in GemFire v 7.0.x or above... + return ClassUtils.isPresent("org.apache.geode.distributed.ServerLauncher", Thread.currentThread().getContextClassLoader()); } } @@ -76,9 +75,9 @@ public abstract class GemfireUtils extends CacheUtils { return isGemfireVersionGreaterThanEqualTo(8.0); } catch (NumberFormatException e) { - // NOTE the com.gemstone.gemfire.management.internal.web.domain.LinkIndex class only exists + // NOTE the org.apache.geode.management.internal.web.domain.LinkIndex class only exists // in GemFire v 8.0.0 or above... - return ClassUtils.isPresent("com.gemstone.gemfire.management.internal.web.domain.LinkIndex", + return ClassUtils.isPresent("org.apache.geode.management.internal.web.domain.LinkIndex", Thread.currentThread().getContextClassLoader()); } } diff --git a/src/main/java/org/springframework/data/gemfire/IndexFactoryBean.java b/src/main/java/org/springframework/data/gemfire/IndexFactoryBean.java index a346dad8..0b8c6005 100644 --- a/src/main/java/org/springframework/data/gemfire/IndexFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/IndexFactoryBean.java @@ -18,6 +18,15 @@ package org.springframework.data.gemfire; import java.util.Collection; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionService; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.cache.query.Index; +import org.apache.geode.cache.query.IndexExistsException; +import org.apache.geode.cache.query.IndexInvalidException; +import org.apache.geode.cache.query.IndexNameConflictException; +import org.apache.geode.cache.query.IndexStatistics; +import org.apache.geode.cache.query.QueryService; import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.BeanFactoryAware; @@ -31,16 +40,6 @@ import org.springframework.util.Assert; import org.springframework.util.ObjectUtils; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionService; -import com.gemstone.gemfire.cache.client.ClientCache; -import com.gemstone.gemfire.cache.query.Index; -import com.gemstone.gemfire.cache.query.IndexExistsException; -import com.gemstone.gemfire.cache.query.IndexInvalidException; -import com.gemstone.gemfire.cache.query.IndexNameConflictException; -import com.gemstone.gemfire.cache.query.IndexStatistics; -import com.gemstone.gemfire.cache.query.QueryService; - /** * Spring FactoryBean for easy declarative creation of GemFire Indexes. * @@ -52,9 +51,9 @@ import com.gemstone.gemfire.cache.query.QueryService; * @see org.springframework.beans.factory.FactoryBean * @see org.springframework.beans.factory.InitializingBean * @see org.springframework.data.gemfire.IndexFactoryBean.IndexWrapper - * @see com.gemstone.gemfire.cache.RegionService - * @see com.gemstone.gemfire.cache.query.Index - * @see com.gemstone.gemfire.cache.query.QueryService + * @see org.apache.geode.cache.RegionService + * @see org.apache.geode.cache.query.Index + * @see org.apache.geode.cache.query.QueryService * @since 1.0.0 */ public class IndexFactoryBean implements InitializingBean, FactoryBean, BeanNameAware, BeanFactoryAware { @@ -466,7 +465,7 @@ public class IndexFactoryBean implements InitializingBean, FactoryBean, B @Override @SuppressWarnings("deprecation") - public com.gemstone.gemfire.cache.query.IndexType getType() { + public org.apache.geode.cache.query.IndexType getType() { return getIndex().getType(); } diff --git a/src/main/java/org/springframework/data/gemfire/IndexMaintenancePolicyType.java b/src/main/java/org/springframework/data/gemfire/IndexMaintenancePolicyType.java index 60fc9ab6..f2f5746b 100644 --- a/src/main/java/org/springframework/data/gemfire/IndexMaintenancePolicyType.java +++ b/src/main/java/org/springframework/data/gemfire/IndexMaintenancePolicyType.java @@ -16,16 +16,16 @@ package org.springframework.data.gemfire; -import com.gemstone.gemfire.cache.AttributesFactory; -import com.gemstone.gemfire.cache.RegionFactory; +import org.apache.geode.cache.AttributesFactory; +import org.apache.geode.cache.RegionFactory; /** * The IndexMaintenanceType enum is a enumerated type of GemFire Index maintenance update options. * * @author John Blum - * @see com.gemstone.gemfire.cache.AttributesFactory#setIndexMaintenanceSynchronous(boolean) - * @see com.gemstone.gemfire.cache.RegionAttributes#getIndexMaintenanceSynchronous() - * @see com.gemstone.gemfire.cache.RegionFactory#setIndexMaintenanceSynchronous(boolean) + * @see org.apache.geode.cache.AttributesFactory#setIndexMaintenanceSynchronous(boolean) + * @see org.apache.geode.cache.RegionAttributes#getIndexMaintenanceSynchronous() + * @see org.apache.geode.cache.RegionFactory#setIndexMaintenanceSynchronous(boolean) * @since 1.6.0 */ @SuppressWarnings("unused") @@ -61,7 +61,7 @@ public enum IndexMaintenancePolicyType { * * @param attributesFactory the AttributesFactory instance on which to set the indexMaintenanceProperty. * @throws java.lang.NullPointerException if the AttributesFactory reference is null. - * @see #setIndexMaintenance(com.gemstone.gemfire.cache.RegionFactory) + * @see #setIndexMaintenance(org.apache.geode.cache.RegionFactory) */ @SuppressWarnings("deprecation") public void setIndexMaintenance(final AttributesFactory attributesFactory) { @@ -74,7 +74,7 @@ public enum IndexMaintenancePolicyType { * * @param regionFactory the RegionFactory instance on which to set the indexMaintenanceProperty. * @throws java.lang.NullPointerException if the RegionFactory reference is null. - * @see #setIndexMaintenance(com.gemstone.gemfire.cache.AttributesFactory) + * @see #setIndexMaintenance(org.apache.geode.cache.AttributesFactory) */ public void setIndexMaintenance(final RegionFactory regionFactory) { regionFactory.setIndexMaintenanceSynchronous(equals(SYNCHRONOUS)); diff --git a/src/main/java/org/springframework/data/gemfire/IndexType.java b/src/main/java/org/springframework/data/gemfire/IndexType.java index d1a936eb..904c35d9 100644 --- a/src/main/java/org/springframework/data/gemfire/IndexType.java +++ b/src/main/java/org/springframework/data/gemfire/IndexType.java @@ -20,25 +20,25 @@ package org.springframework.data.gemfire; * The IndexType class is an enumerated type of GemFire Index Types. * * @author John Blum - * @see com.gemstone.gemfire.cache.query.IndexType + * @see org.apache.geode.cache.query.IndexType * @since 1.5.2 */ @SuppressWarnings({ "deprecation", "unused" }) public enum IndexType { - FUNCTIONAL(com.gemstone.gemfire.cache.query.IndexType.FUNCTIONAL), - HASH(com.gemstone.gemfire.cache.query.IndexType.HASH), - PRIMARY_KEY(com.gemstone.gemfire.cache.query.IndexType.PRIMARY_KEY), - KEY(com.gemstone.gemfire.cache.query.IndexType.PRIMARY_KEY); + FUNCTIONAL(org.apache.geode.cache.query.IndexType.FUNCTIONAL), + HASH(org.apache.geode.cache.query.IndexType.HASH), + PRIMARY_KEY(org.apache.geode.cache.query.IndexType.PRIMARY_KEY), + KEY(org.apache.geode.cache.query.IndexType.PRIMARY_KEY); - private final com.gemstone.gemfire.cache.query.IndexType gemfireIndexType; + private final org.apache.geode.cache.query.IndexType gemfireIndexType; /** * Constructs an instance of the IndexType enum initialized with the given GemFire IndexType. * * @param gemfireIndexType the corresponding GemFire IndexType - * @see com.gemstone.gemfire.cache.query.IndexType + * @see org.apache.geode.cache.query.IndexType */ - IndexType(final com.gemstone.gemfire.cache.query.IndexType gemfireIndexType) { + IndexType(final org.apache.geode.cache.query.IndexType gemfireIndexType) { this.gemfireIndexType = gemfireIndexType; } @@ -82,9 +82,9 @@ public enum IndexType { * @param gemfireIndexType the GemFire IndexType. * @return a IndexType matching the GemFire IndexType or null if the GemFire IndexType does not match * any IndexType in this enumeration. - * @see com.gemstone.gemfire.cache.query.IndexType + * @see org.apache.geode.cache.query.IndexType */ - public static IndexType valueOf(final com.gemstone.gemfire.cache.query.IndexType gemfireIndexType) { + public static IndexType valueOf(final org.apache.geode.cache.query.IndexType gemfireIndexType) { for (IndexType indexType : values()) { if (indexType.getGemfireIndexType().equals(gemfireIndexType)) { return indexType; @@ -115,9 +115,9 @@ public enum IndexType { * Gets the matching GemFire IndexType for this IndexType enumerated value. * * @return the matching GemFire IndexType. - * @see com.gemstone.gemfire.cache.query.IndexType + * @see org.apache.geode.cache.query.IndexType */ - public com.gemstone.gemfire.cache.query.IndexType getGemfireIndexType() { + public org.apache.geode.cache.query.IndexType getGemfireIndexType() { return gemfireIndexType; } diff --git a/src/main/java/org/springframework/data/gemfire/InterestPolicyConverter.java b/src/main/java/org/springframework/data/gemfire/InterestPolicyConverter.java index 4e038915..4b26cb1d 100644 --- a/src/main/java/org/springframework/data/gemfire/InterestPolicyConverter.java +++ b/src/main/java/org/springframework/data/gemfire/InterestPolicyConverter.java @@ -16,17 +16,16 @@ package org.springframework.data.gemfire; +import org.apache.geode.cache.InterestPolicy; import org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport; -import com.gemstone.gemfire.cache.InterestPolicy; - /** * The InterestPolicyConverter class is a Spring Converter implementation and Java PropertyEditor handling * the conversion between Strings and GemFire InterestPolicy values. * * @author John Blum * @see org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport - * @see com.gemstone.gemfire.cache.InterestPolicy + * @see org.apache.geode.cache.InterestPolicy * @since 1.6.0 */ @SuppressWarnings("unused") diff --git a/src/main/java/org/springframework/data/gemfire/InterestPolicyType.java b/src/main/java/org/springframework/data/gemfire/InterestPolicyType.java index d754e22f..21ce6658 100644 --- a/src/main/java/org/springframework/data/gemfire/InterestPolicyType.java +++ b/src/main/java/org/springframework/data/gemfire/InterestPolicyType.java @@ -15,14 +15,14 @@ */ package org.springframework.data.gemfire; -import com.gemstone.gemfire.cache.InterestPolicy; +import org.apache.geode.cache.InterestPolicy; /** * The InterestPolicyType enum is an enumeration of all the GemFire Subscription, InterestPolicy values. * * @author Lyndon Adams * @author John Blum - * @see com.gemstone.gemfire.cache.InterestPolicy + * @see org.apache.geode.cache.InterestPolicy * @since 1.3.0 */ @SuppressWarnings("unused") @@ -38,7 +38,7 @@ public enum InterestPolicyType { * Constructs an instance of the SubscriptionType enum initialized with the matching GemFire InterestPolicy. * * @param interestPolicy a GemFire InterestPolicy corresponding to this SubscriptionType. - * @see com.gemstone.gemfire.cache.InterestPolicy + * @see org.apache.geode.cache.InterestPolicy */ InterestPolicyType(final InterestPolicy interestPolicy) { this.interestPolicy = interestPolicy; @@ -50,7 +50,7 @@ public enum InterestPolicyType { * @param interestPolicyType the InterestPolicyType enum from which to extract GemFire's InterestPolicy * @return a GemFire InterestPolicy for the given InterestPolicyType enumerated value * or null if InterestPolicyType is null. - * @see com.gemstone.gemfire.cache.InterestPolicy + * @see org.apache.geode.cache.InterestPolicy */ public static InterestPolicy getInterestPolicy(final InterestPolicyType interestPolicyType) { return (interestPolicyType != null ? interestPolicyType.getInterestPolicy() : null); @@ -62,7 +62,7 @@ public enum InterestPolicyType { * @param interestPolicy the GemFire InterestPolicy used to lookup and match a SubscriptionType. * @return a SubscriptionType enumerated value matching the given GemFire InterestPolicy * or null if no matching value was found. - * @see com.gemstone.gemfire.cache.InterestPolicy + * @see org.apache.geode.cache.InterestPolicy * @see #getInterestPolicy() */ public static InterestPolicyType valueOf(final InterestPolicy interestPolicy) { @@ -98,7 +98,7 @@ public enum InterestPolicyType { * Returns the GemFire InterestPolicy corresponding to this SubscriptionType enumerated value. * * @return the GemFire InterestPolicy corresponding to this SubscriptionType. - * @see com.gemstone.gemfire.cache.InterestPolicy + * @see org.apache.geode.cache.InterestPolicy */ public InterestPolicy getInterestPolicy() { return interestPolicy; diff --git a/src/main/java/org/springframework/data/gemfire/LazyWiringDeclarableSupport.java b/src/main/java/org/springframework/data/gemfire/LazyWiringDeclarableSupport.java index 77271e7f..792667a4 100644 --- a/src/main/java/org/springframework/data/gemfire/LazyWiringDeclarableSupport.java +++ b/src/main/java/org/springframework/data/gemfire/LazyWiringDeclarableSupport.java @@ -19,6 +19,7 @@ package org.springframework.data.gemfire; import java.util.Properties; import java.util.concurrent.atomic.AtomicReference; +import org.apache.geode.cache.Declarable; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.access.BeanFactoryReference; @@ -33,8 +34,6 @@ import org.springframework.util.Assert; import org.springframework.util.ObjectUtils; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.Declarable; - /** * The LazyWiringDeclarableSupport class is an implementation of the GemFire Declarable interface that enables support * for wiring GemFire components with Spring bean dependencies defined in the Spring context. @@ -51,7 +50,7 @@ import com.gemstone.gemfire.cache.Declarable; * @see org.springframework.data.gemfire.DeclarableSupport * @see org.springframework.data.gemfire.WiringDeclarableSupport * @see org.springframework.data.gemfire.support.SpringContextBootstrappingInitializer - * @see com.gemstone.gemfire.cache.Declarable + * @see org.apache.geode.cache.Declarable * @since 1.3.4 */ @SuppressWarnings("unused") diff --git a/src/main/java/org/springframework/data/gemfire/LocalRegionFactoryBean.java b/src/main/java/org/springframework/data/gemfire/LocalRegionFactoryBean.java index 0c1446a1..bfcd20ef 100644 --- a/src/main/java/org/springframework/data/gemfire/LocalRegionFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/LocalRegionFactoryBean.java @@ -15,10 +15,9 @@ */ package org.springframework.data.gemfire; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.RegionFactory; -import com.gemstone.gemfire.cache.Scope; - +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.RegionFactory; +import org.apache.geode.cache.Scope; import org.springframework.util.Assert; /** @@ -69,15 +68,15 @@ public class LocalRegionFactoryBean extends RegionFactoryBean { /** * Resolves the Data Policy used by this "local" GemFire Region (i.e. locally Scoped; Scope.LOCAL) based on the - * enumerated value from com.gemstone.gemfire.cache.RegionShortcuts (LOCAL, LOCAL_PERSISTENT, LOCAL_HEAP_LRU, + * enumerated value from org.apache.geode.cache.RegionShortcuts (LOCAL, LOCAL_PERSISTENT, LOCAL_HEAP_LRU, * LOCAL_OVERFLOW, and LOCAL_PERSISTENT_OVERFLOW), but without consideration of the Eviction settings. * * @param regionFactory the GemFire RegionFactory used to created the Local Region. * @param persistent a boolean value indicating whether the Local Region should persist it's data. * @param dataPolicy requested Data Policy as set by the user in the Spring GemFire configuration meta-data. - * @see com.gemstone.gemfire.cache.DataPolicy - * @see com.gemstone.gemfire.cache.RegionFactory - * @see com.gemstone.gemfire.cache.RegionShortcut + * @see org.apache.geode.cache.DataPolicy + * @see org.apache.geode.cache.RegionFactory + * @see org.apache.geode.cache.RegionShortcut */ @Override protected void resolveDataPolicy(RegionFactory regionFactory, Boolean persistent, String dataPolicy) { diff --git a/src/main/java/org/springframework/data/gemfire/LookupRegionFactoryBean.java b/src/main/java/org/springframework/data/gemfire/LookupRegionFactoryBean.java index 2a57dc35..db8bff37 100644 --- a/src/main/java/org/springframework/data/gemfire/LookupRegionFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/LookupRegionFactoryBean.java @@ -16,27 +16,26 @@ package org.springframework.data.gemfire; +import org.apache.geode.cache.AttributesMutator; +import org.apache.geode.cache.CacheListener; +import org.apache.geode.cache.CacheLoader; +import org.apache.geode.cache.CacheWriter; +import org.apache.geode.cache.CustomExpiry; +import org.apache.geode.cache.EvictionAttributesMutator; +import org.apache.geode.cache.ExpirationAttributes; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.asyncqueue.AsyncEventQueue; +import org.apache.geode.cache.wan.GatewaySender; import org.springframework.util.Assert; import org.springframework.util.ObjectUtils; -import com.gemstone.gemfire.cache.AttributesMutator; -import com.gemstone.gemfire.cache.CacheListener; -import com.gemstone.gemfire.cache.CacheLoader; -import com.gemstone.gemfire.cache.CacheWriter; -import com.gemstone.gemfire.cache.CustomExpiry; -import com.gemstone.gemfire.cache.EvictionAttributesMutator; -import com.gemstone.gemfire.cache.ExpirationAttributes; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueue; -import com.gemstone.gemfire.cache.wan.GatewaySender; - /** * The LookupRegionFactoryBean class is a concrete implementation of RegionLookupFactoryBean for handling * >gfe:lookup-region/< SDG XML namespace (XSD) elements. * * @author John Blum * @see org.springframework.data.gemfire.RegionLookupFactoryBean - * @see com.gemstone.gemfire.cache.AttributesMutator + * @see org.apache.geode.cache.AttributesMutator * @since 1.6.0 */ @SuppressWarnings("unused") diff --git a/src/main/java/org/springframework/data/gemfire/PartitionAttributesFactoryBean.java b/src/main/java/org/springframework/data/gemfire/PartitionAttributesFactoryBean.java index 64bc36c1..04a9891d 100644 --- a/src/main/java/org/springframework/data/gemfire/PartitionAttributesFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/PartitionAttributesFactoryBean.java @@ -18,18 +18,17 @@ package org.springframework.data.gemfire; import java.util.List; +import org.apache.geode.cache.FixedPartitionAttributes; +import org.apache.geode.cache.PartitionAttributes; +import org.apache.geode.cache.PartitionResolver; +import org.apache.geode.cache.partition.PartitionListener; import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.InitializingBean; -import com.gemstone.gemfire.cache.FixedPartitionAttributes; -import com.gemstone.gemfire.cache.PartitionAttributes; -import com.gemstone.gemfire.cache.PartitionResolver; -import com.gemstone.gemfire.cache.partition.PartitionListener; - /** * Spring-friendly bean for creating {@link PartitionAttributes}. Eliminates the need of using * a XML 'factory-method' tag and allows the attributes properties to be set directly. - * + * * @author Costin Leau * @author David Turanski * @author John Blum @@ -37,8 +36,8 @@ import com.gemstone.gemfire.cache.partition.PartitionListener; @SuppressWarnings({ "rawtypes", "unchecked", "unused" }) public class PartitionAttributesFactoryBean implements FactoryBean, InitializingBean { - private final com.gemstone.gemfire.cache.PartitionAttributesFactory partitionAttributesFactory = - new com.gemstone.gemfire.cache.PartitionAttributesFactory(); + private final org.apache.geode.cache.PartitionAttributesFactory partitionAttributesFactory = + new org.apache.geode.cache.PartitionAttributesFactory(); private List listeners; diff --git a/src/main/java/org/springframework/data/gemfire/PartitionedRegionFactoryBean.java b/src/main/java/org/springframework/data/gemfire/PartitionedRegionFactoryBean.java index 270287ed..f8049283 100644 --- a/src/main/java/org/springframework/data/gemfire/PartitionedRegionFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/PartitionedRegionFactoryBean.java @@ -15,12 +15,11 @@ */ package org.springframework.data.gemfire; +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.RegionFactory; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.CacheFactory; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.RegionFactory; - /** * @author David Turanski * @author John Blum diff --git a/src/main/java/org/springframework/data/gemfire/RegionAttributesFactoryBean.java b/src/main/java/org/springframework/data/gemfire/RegionAttributesFactoryBean.java index 76df609f..fd23bf3b 100644 --- a/src/main/java/org/springframework/data/gemfire/RegionAttributesFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/RegionAttributesFactoryBean.java @@ -16,12 +16,11 @@ package org.springframework.data.gemfire; +import org.apache.geode.cache.AttributesFactory; +import org.apache.geode.cache.RegionAttributes; import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.InitializingBean; -import com.gemstone.gemfire.cache.AttributesFactory; -import com.gemstone.gemfire.cache.RegionAttributes; - /** * Spring-friendly bean for creating {@link RegionAttributes}. Eliminates the need of using a XML 'factory-method' tag. * @@ -29,8 +28,8 @@ import com.gemstone.gemfire.cache.RegionAttributes; * @author John Blum * @see org.springframework.beans.factory.FactoryBean * @see org.springframework.beans.factory.InitializingBean - * @see com.gemstone.gemfire.cache.AttributesFactory - * @see com.gemstone.gemfire.cache.RegionAttributes + * @see org.apache.geode.cache.AttributesFactory + * @see org.apache.geode.cache.RegionAttributes */ @SuppressWarnings({ "deprecation", "unused" }) public class RegionAttributesFactoryBean extends AttributesFactory implements FactoryBean, diff --git a/src/main/java/org/springframework/data/gemfire/RegionFactoryBean.java b/src/main/java/org/springframework/data/gemfire/RegionFactoryBean.java index a7f63f01..4dc58f81 100644 --- a/src/main/java/org/springframework/data/gemfire/RegionFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/RegionFactoryBean.java @@ -18,27 +18,26 @@ package org.springframework.data.gemfire; import java.lang.reflect.Field; -import com.gemstone.gemfire.cache.AttributesFactory; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheListener; -import com.gemstone.gemfire.cache.CacheLoader; -import com.gemstone.gemfire.cache.CacheWriter; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.EvictionAction; -import com.gemstone.gemfire.cache.GemFireCache; -import com.gemstone.gemfire.cache.PartitionAttributes; -import com.gemstone.gemfire.cache.PartitionAttributesFactory; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionAttributes; -import com.gemstone.gemfire.cache.RegionFactory; -import com.gemstone.gemfire.cache.RegionShortcut; -import com.gemstone.gemfire.cache.Scope; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueue; -import com.gemstone.gemfire.cache.wan.GatewaySender; -import com.gemstone.gemfire.internal.cache.UserSpecifiedRegionAttributes; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.AttributesFactory; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheListener; +import org.apache.geode.cache.CacheLoader; +import org.apache.geode.cache.CacheWriter; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.EvictionAction; +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.PartitionAttributes; +import org.apache.geode.cache.PartitionAttributesFactory; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionAttributes; +import org.apache.geode.cache.RegionFactory; +import org.apache.geode.cache.RegionShortcut; +import org.apache.geode.cache.Scope; +import org.apache.geode.cache.asyncqueue.AsyncEventQueue; +import org.apache.geode.cache.wan.GatewaySender; +import org.apache.geode.internal.cache.UserSpecifiedRegionAttributes; import org.springframework.beans.factory.DisposableBean; import org.springframework.context.SmartLifecycle; import org.springframework.core.io.Resource; @@ -200,10 +199,10 @@ public abstract class RegionFactoryBean extends RegionLookupFactoryBean createRegionFactory(final Cache cache) { if (shortcut != null) { @@ -229,10 +228,10 @@ public abstract class RegionFactoryBean extends RegionLookupFactoryBean extends RegionLookupFactoryBean RegionFactory mergeRegionAttributes(final RegionFactory regionFactory, @@ -347,11 +346,11 @@ public abstract class RegionFactoryBean extends RegionLookupFactoryBean extends RegionLookupFactoryBean extends RegionLookupFactoryBean extends RegionLookupFactoryBean regionFactory) { } @@ -454,7 +453,7 @@ public abstract class RegionFactoryBean extends RegionLookupFactoryBean region) { } @@ -467,9 +466,9 @@ public abstract class RegionFactoryBean extends RegionLookupFactoryBean regionFactory, Boolean persistent, DataPolicy dataPolicy) { if (dataPolicy != null) { @@ -489,8 +488,8 @@ public abstract class RegionFactoryBean extends RegionLookupFactoryBean regionFactory, Boolean persistent, String dataPolicy) { if (dataPolicy != null) { @@ -566,7 +565,7 @@ public abstract class RegionFactoryBean extends RegionLookupFactoryBean region = getRegion(); @@ -640,7 +639,7 @@ public abstract class RegionFactoryBean extends RegionLookupFactoryBean extends RegionLookupFactoryBean extends RegionLookupFactoryBean implements FactoryBean>, InitializingBean, BeanNameAware { @@ -85,7 +84,7 @@ public abstract class RegionLookupFactoryBean implements FactoryBean implements FactoryBean implements FactoryBean implements FactoryBean parent) { this.parent = parent; @@ -157,7 +156,7 @@ public abstract class RegionLookupFactoryBean implements FactoryBean getParent() { return parent; @@ -167,7 +166,7 @@ public abstract class RegionLookupFactoryBean implements FactoryBean getRegion() { return region; @@ -179,7 +178,7 @@ public abstract class RegionLookupFactoryBean implements FactoryBean, InitializingBean { @@ -48,7 +47,7 @@ public class SubscriptionAttributesFactoryBean implements FactoryBeanThis implementation first looks for a 'bean-name' property which will be used to locate a 'template' * bean definition. Autowiring will be performed, based on the settings defined in the Spring container. - * + * * @author Costin Leau * @author John Blum * @see org.springframework.beans.factory.BeanFactory @@ -39,7 +38,7 @@ import com.gemstone.gemfire.cache.Declarable; * @see org.springframework.beans.factory.wiring.BeanWiringInfo * @see org.springframework.data.gemfire.DeclarableSupport * @see org.springframework.data.gemfire.LazyWiringDeclarableSupport - * @see com.gemstone.gemfire.cache.Declarable + * @see org.apache.geode.cache.Declarable * @deprecated please use LazyWiringDeclarableSupport instead. */ @Deprecated diff --git a/src/main/java/org/springframework/data/gemfire/cache/GemfireCache.java b/src/main/java/org/springframework/data/gemfire/cache/GemfireCache.java index 2e10c1c4..ea76f87a 100644 --- a/src/main/java/org/springframework/data/gemfire/cache/GemfireCache.java +++ b/src/main/java/org/springframework/data/gemfire/cache/GemfireCache.java @@ -18,9 +18,8 @@ package org.springframework.data.gemfire.cache; import java.util.concurrent.Callable; -import com.gemstone.gemfire.cache.GemFireCache; -import com.gemstone.gemfire.cache.Region; - +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.Region; import org.springframework.cache.Cache; import org.springframework.cache.support.SimpleValueWrapper; import org.springframework.util.Assert; @@ -32,7 +31,7 @@ import org.springframework.util.Assert; * @author John Blum * @author Oliver Gierke * @see org.springframework.cache.Cache - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region */ public class GemfireCache implements Cache { @@ -44,7 +43,7 @@ public class GemfireCache implements Cache { * * @param region GemFire {@link Region} to wrap. * @return an instance of {@link GemfireCache} backed by the provided GemFire {@link Region}. - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region * @see org.springframework.cache.Cache * @see #GemfireCache(Region) */ @@ -69,7 +68,7 @@ public class GemfireCache implements Cache { * Returns the GemFire {@link Region} used as the implementation for this Spring {@link Cache}. * * @return the GemFire {@link Region} used as the implementation for this Spring {@link Cache}. - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region */ public Region getNativeCache() { return this.region; @@ -79,7 +78,7 @@ public class GemfireCache implements Cache { * Returns the name of this Spring {@link Cache}. * * @return the name of this Spring {@link Cache}. - * @see com.gemstone.gemfire.cache.Region#getName() + * @see org.apache.geode.cache.Region#getName() */ public String getName() { return getNativeCache().getName(); @@ -88,7 +87,7 @@ public class GemfireCache implements Cache { /** * Clears the entire contents of this Spring {@link Cache}. * - * @see com.gemstone.gemfire.cache.Region#clear() + * @see org.apache.geode.cache.Region#clear() */ public void clear() { getNativeCache().clear(); @@ -98,7 +97,7 @@ public class GemfireCache implements Cache { * Evicts (destroys) the entry (key/value) mapped to the given key from this Spring {@link Cache}. * * @param key key used to identify the cache entry to evict. - * @see com.gemstone.gemfire.cache.Region#destroy(Object) + * @see org.apache.geode.cache.Region#destroy(Object) */ public void evict(Object key) { getNativeCache().remove(key); @@ -111,7 +110,7 @@ public class GemfireCache implements Cache { * @param key key identifying the the value to retrieve from the cache. * @return the value cached with the given key. * @see org.springframework.cache.Cache.ValueWrapper - * @see com.gemstone.gemfire.cache.Region#get(Object) + * @see org.apache.geode.cache.Region#get(Object) */ public ValueWrapper get(Object key) { Object value = getNativeCache().get(key); @@ -127,7 +126,7 @@ public class GemfireCache implements Cache { * @param type desired {@link Class} type of the value. * @return the cache value for the given key cast to the specified {@link Class} type. * @throws IllegalStateException if the value is not null and not an instance of the desired type. - * @see com.gemstone.gemfire.cache.Region#get(Object) + * @see org.apache.geode.cache.Region#get(Object) */ @SuppressWarnings("unchecked") public T get(Object key, Class type) { @@ -186,7 +185,7 @@ public class GemfireCache implements Cache { * * @param key key used to reference the value in the cache. * @param value value to store in the cache referenced by the key. - * @see com.gemstone.gemfire.cache.Region#put(Object, Object) + * @see org.apache.geode.cache.Region#put(Object, Object) */ @SuppressWarnings("unchecked") public void put(Object key, Object value) { @@ -202,7 +201,7 @@ public class GemfireCache implements Cache { * * @return the existing value if the given key is already mapped to a value. * @see org.springframework.cache.Cache#putIfAbsent(java.lang.Object, java.lang.Object) - * @see com.gemstone.gemfire.cache.Region#putIfAbsent(Object, Object) + * @see org.apache.geode.cache.Region#putIfAbsent(Object, Object) */ @SuppressWarnings("unchecked") public ValueWrapper putIfAbsent(Object key, Object value) { diff --git a/src/main/java/org/springframework/data/gemfire/cache/GemfireCacheManager.java b/src/main/java/org/springframework/data/gemfire/cache/GemfireCacheManager.java index 14b1469a..acf11b38 100644 --- a/src/main/java/org/springframework/data/gemfire/cache/GemfireCacheManager.java +++ b/src/main/java/org/springframework/data/gemfire/cache/GemfireCacheManager.java @@ -21,9 +21,8 @@ import java.util.HashSet; import java.util.Set; import java.util.concurrent.atomic.AtomicBoolean; -import com.gemstone.gemfire.cache.GemFireCache; -import com.gemstone.gemfire.cache.Region; - +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.Region; import org.springframework.cache.Cache; import org.springframework.cache.CacheManager; import org.springframework.cache.support.AbstractCacheManager; @@ -42,15 +41,15 @@ import org.springframework.util.Assert; * @see org.springframework.cache.Cache * @see org.springframework.cache.CacheManager * @see org.springframework.cache.support.AbstractCacheManager - * @see com.gemstone.gemfire.cache.GemFireCache - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.GemFireCache + * @see org.apache.geode.cache.Region */ @SuppressWarnings("unused") public class GemfireCacheManager extends AbstractCacheManager { private final AtomicBoolean dynamic = new AtomicBoolean(true); - private com.gemstone.gemfire.cache.GemFireCache gemfireCache; + private org.apache.geode.cache.GemFireCache gemfireCache; private Set> regions; @@ -142,7 +141,7 @@ public class GemfireCacheManager extends AbstractCacheManager { * @param region GemFire {@link Region} to wrap (adapt). * @return an instance of {@link GemfireCache} initialized with the given GemFire {@link Region}. * @see GemfireCache - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region */ protected GemfireCache newGemfireCache(Region region) { return GemfireCache.wrap(region); @@ -193,9 +192,9 @@ public class GemfireCacheManager extends AbstractCacheManager { * * @param gemfireCache the GemFire cache instance used by this {@link CacheManager} * to manage Spring {@link Cache Caches}. - * @see com.gemstone.gemfire.cache.GemFireCache + * @see org.apache.geode.cache.GemFireCache */ - public void setCache(com.gemstone.gemfire.cache.GemFireCache gemfireCache) { + public void setCache(org.apache.geode.cache.GemFireCache gemfireCache) { this.gemfireCache = gemfireCache; } @@ -203,9 +202,9 @@ public class GemfireCacheManager extends AbstractCacheManager { * Returns the {@link GemFireCache} instance backing this {@link CacheManager}. * * @return the {@link GemFireCache} instance backing this {@link CacheManager}. - * @see com.gemstone.gemfire.cache.GemFireCache + * @see org.apache.geode.cache.GemFireCache */ - protected com.gemstone.gemfire.cache.GemFireCache getCache() { + protected org.apache.geode.cache.GemFireCache getCache() { return this.gemfireCache; } @@ -231,7 +230,7 @@ public class GemfireCacheManager extends AbstractCacheManager { * * @param regions {@link Set} of GemFire {@link Region Regions} used by this {@link CacheManager} * as Spring {@link Cache Caches}. - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region */ public void setRegions(Set> regions) { this.regions = regions; @@ -243,7 +242,7 @@ public class GemfireCacheManager extends AbstractCacheManager { * * @return the set of GemFire {@link Region Regions} functioning as Spring {@link Cache Caches} * in Spring's caching infrastructure - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region */ protected Set> getRegions() { return this.regions; diff --git a/src/main/java/org/springframework/data/gemfire/client/ClientCacheFactoryBean.java b/src/main/java/org/springframework/data/gemfire/client/ClientCacheFactoryBean.java index 1660c487..b84b358e 100644 --- a/src/main/java/org/springframework/data/gemfire/client/ClientCacheFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/client/ClientCacheFactoryBean.java @@ -20,15 +20,14 @@ import java.net.InetSocketAddress; import java.util.Map; import java.util.Properties; -import com.gemstone.gemfire.cache.CacheClosedException; -import com.gemstone.gemfire.cache.GemFireCache; -import com.gemstone.gemfire.cache.client.ClientCache; -import com.gemstone.gemfire.cache.client.ClientCacheFactory; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.client.PoolManager; -import com.gemstone.gemfire.distributed.DistributedSystem; -import com.gemstone.gemfire.pdx.PdxSerializer; - +import org.apache.geode.cache.CacheClosedException; +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.cache.client.ClientCacheFactory; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.client.PoolManager; +import org.apache.geode.distributed.DistributedSystem; +import org.apache.geode.pdx.PdxSerializer; import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.ListableBeanFactory; @@ -56,13 +55,13 @@ import org.springframework.util.ObjectUtils; * @see org.springframework.data.gemfire.CacheFactoryBean * @see org.springframework.data.gemfire.support.ConnectionEndpoint * @see org.springframework.data.gemfire.support.ConnectionEndpointList - * @see com.gemstone.gemfire.cache.GemFireCache - * @see com.gemstone.gemfire.cache.client.ClientCache - * @see com.gemstone.gemfire.cache.client.ClientCacheFactory - * @see com.gemstone.gemfire.cache.client.Pool - * @see com.gemstone.gemfire.cache.client.PoolManager - * @see com.gemstone.gemfire.distributed.DistributedSystem - * @see com.gemstone.gemfire.pdx.PdxSerializer + * @see org.apache.geode.cache.GemFireCache + * @see org.apache.geode.cache.client.ClientCache + * @see org.apache.geode.cache.client.ClientCacheFactory + * @see org.apache.geode.cache.client.Pool + * @see org.apache.geode.cache.client.PoolManager + * @see org.apache.geode.distributed.DistributedSystem + * @see org.apache.geode.pdx.PdxSerializer */ @SuppressWarnings("unused") public class ClientCacheFactoryBean extends CacheFactoryBean implements ApplicationListener { @@ -108,10 +107,10 @@ public class ClientCacheFactoryBean extends CacheFactoryBean implements Applicat * * @param is Class type extension of GemFireCache. * @return the existing GemFire ClientCache instance if available. - * @throws com.gemstone.gemfire.cache.CacheClosedException if an existing GemFire Cache instance does not exist. + * @throws org.apache.geode.cache.CacheClosedException if an existing GemFire Cache instance does not exist. * @throws java.lang.IllegalStateException if the GemFire cache instance is not a ClientCache. - * @see com.gemstone.gemfire.cache.GemFireCache - * @see com.gemstone.gemfire.cache.client.ClientCacheFactory#getAnyInstance() + * @see org.apache.geode.cache.GemFireCache + * @see org.apache.geode.cache.client.ClientCacheFactory#getAnyInstance() */ @Override @SuppressWarnings("unchecked") @@ -155,7 +154,7 @@ public class ClientCacheFactoryBean extends CacheFactoryBean implements Applicat * @param gemfireProperties a Properties object containing GemFire System properties. * @return an instance of a GemFire factory used to create a GemFire cache instance. * @see java.util.Properties - * @see com.gemstone.gemfire.cache.client.ClientCacheFactory + * @see org.apache.geode.cache.client.ClientCacheFactory */ @Override protected Object createFactory(Properties gemfireProperties) { @@ -180,7 +179,7 @@ public class ClientCacheFactoryBean extends CacheFactoryBean implements Applicat * * @param clientCacheFactory the GemFire {@link ClientCacheFactory} used to configure and create * a GemFire {@link ClientCache}. - * @see com.gemstone.gemfire.cache.client.ClientCacheFactory + * @see org.apache.geode.cache.client.ClientCacheFactory */ ClientCacheFactory initializePdx(ClientCacheFactory clientCacheFactory) { if (isPdxOptionsSpecified()) { @@ -214,8 +213,8 @@ public class ClientCacheFactoryBean extends CacheFactoryBean implements Applicat * * @param clientCacheFactory the GemFire {@link ClientCacheFactory} used to configure and create * a GemFire {@link ClientCache}. - * @see com.gemstone.gemfire.cache.client.ClientCacheFactory - * @see com.gemstone.gemfire.cache.client.Pool + * @see org.apache.geode.cache.client.ClientCacheFactory + * @see org.apache.geode.cache.client.Pool */ ClientCacheFactory initializePool(ClientCacheFactory clientCacheFactory) { DefaultableDelegatingPoolAdapter pool = DefaultableDelegatingPoolAdapter.from( @@ -270,8 +269,8 @@ public class ClientCacheFactoryBean extends CacheFactoryBean implements Applicat * the GemFire {@link ClientCache}. * * @return the resolved GemFire {@link Pool}. - * @see com.gemstone.gemfire.cache.client.PoolManager#find(String) - * @see com.gemstone.gemfire.cache.client.Pool + * @see org.apache.geode.cache.client.PoolManager#find(String) + * @see org.apache.geode.cache.client.Pool */ Pool resolvePool() { Pool localPool = getPool(); @@ -312,8 +311,8 @@ public class ClientCacheFactoryBean extends CacheFactoryBean implements Applicat * @param name a String indicating the name of the GemFire {@link Pool} to find. * @return a {@link Pool} instance with the given name registered in GemFire or null if no {@link Pool} * with name exists. - * @see com.gemstone.gemfire.cache.client.PoolManager#find(String) - * @see com.gemstone.gemfire.cache.client.Pool + * @see org.apache.geode.cache.client.PoolManager#find(String) + * @see org.apache.geode.cache.client.Pool */ Pool findPool(String name) { return PoolManager.find(name); @@ -325,8 +324,8 @@ public class ClientCacheFactoryBean extends CacheFactoryBean implements Applicat * @param parameterized Class type extension of {@link GemFireCache}. * @param factory the appropriate GemFire factory used to create a cache instance. * @return an instance of the GemFire cache. - * @see com.gemstone.gemfire.cache.client.ClientCacheFactory#create() - * @see com.gemstone.gemfire.cache.GemFireCache + * @see org.apache.geode.cache.client.ClientCacheFactory#create() + * @see org.apache.geode.cache.GemFireCache */ @Override @SuppressWarnings("unchecked") @@ -338,7 +337,7 @@ public class ClientCacheFactoryBean extends CacheFactoryBean implements Applicat * Inform the GemFire cluster that this client cache is ready to receive events iff the client is non-durable. * * @param event the ApplicationContextEvent fired when the ApplicationContext is refreshed. - * @see com.gemstone.gemfire.cache.client.ClientCache#readyForEvents() + * @see org.apache.geode.cache.client.ClientCache#readyForEvents() * @see #getReadyForEvents() * @see #getObject() */ diff --git a/src/main/java/org/springframework/data/gemfire/client/ClientRegionFactoryBean.java b/src/main/java/org/springframework/data/gemfire/client/ClientRegionFactoryBean.java index 3f6ff807..a55d95f6 100644 --- a/src/main/java/org/springframework/data/gemfire/client/ClientRegionFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/client/ClientRegionFactoryBean.java @@ -16,20 +16,19 @@ package org.springframework.data.gemfire.client; -import com.gemstone.gemfire.cache.CacheListener; -import com.gemstone.gemfire.cache.CacheLoader; -import com.gemstone.gemfire.cache.CacheWriter; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.GemFireCache; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionAttributes; -import com.gemstone.gemfire.cache.client.ClientCache; -import com.gemstone.gemfire.cache.client.ClientRegionFactory; -import com.gemstone.gemfire.cache.client.ClientRegionShortcut; -import com.gemstone.gemfire.cache.client.Pool; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.CacheListener; +import org.apache.geode.cache.CacheLoader; +import org.apache.geode.cache.CacheWriter; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionAttributes; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.cache.client.ClientRegionFactory; +import org.apache.geode.cache.client.ClientRegionShortcut; +import org.apache.geode.cache.client.Pool; import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.BeanFactoryAware; @@ -53,16 +52,16 @@ import org.springframework.util.StringUtils; * @see org.springframework.beans.factory.BeanFactoryAware * @see org.springframework.beans.factory.DisposableBean * @see org.springframework.data.gemfire.RegionLookupFactoryBean - * @see com.gemstone.gemfire.cache.CacheListener - * @see com.gemstone.gemfire.cache.CacheLoader - * @see com.gemstone.gemfire.cache.CacheWriter - * @see com.gemstone.gemfire.cache.DataPolicy - * @see com.gemstone.gemfire.cache.GemFireCache - * @see com.gemstone.gemfire.cache.Region - * @see com.gemstone.gemfire.cache.RegionAttributes - * @see com.gemstone.gemfire.cache.client.ClientCache - * @see com.gemstone.gemfire.cache.client.ClientRegionFactory - * @see com.gemstone.gemfire.cache.client.ClientRegionShortcut + * @see org.apache.geode.cache.CacheListener + * @see org.apache.geode.cache.CacheLoader + * @see org.apache.geode.cache.CacheWriter + * @see org.apache.geode.cache.DataPolicy + * @see org.apache.geode.cache.GemFireCache + * @see org.apache.geode.cache.Region + * @see org.apache.geode.cache.RegionAttributes + * @see org.apache.geode.cache.client.ClientCache + * @see org.apache.geode.cache.client.ClientRegionFactory + * @see org.apache.geode.cache.client.ClientRegionShortcut */ @SuppressWarnings("unused") public class ClientRegionFactoryBean extends RegionLookupFactoryBean @@ -183,7 +182,7 @@ public class ClientRegionFactoryBean extends RegionLookupFactoryBean } else { // NOTE the Data Policy validation is based on the ClientRegionShortcut initialization logic - // in com.gemstone.gemfire.internal.cache.GemFireCacheImpl.initializeClientRegionShortcuts + // in org.apache.geode.internal.cache.GemFireCacheImpl.initializeClientRegionShortcuts throw new IllegalArgumentException(String.format( "Data Policy '%1$s' is invalid for Client Regions.", this.dataPolicy)); } @@ -239,7 +238,7 @@ public class ClientRegionFactoryBean extends RegionLookupFactoryBean * configuration meta-data. * @see #isPersistent() * @see #isNotPersistent() - * @see com.gemstone.gemfire.cache.client.ClientRegionShortcut + * @see org.apache.geode.cache.client.ClientRegionShortcut */ protected void assertClientRegionShortcutAndPersistentAttributeAreCompatible(final ClientRegionShortcut resolvedShortcut) { final boolean persistentNotSpecified = (this.persistent == null); @@ -263,7 +262,7 @@ public class ClientRegionFactoryBean extends RegionLookupFactoryBean * meta-data. * @see #isPersistent() * @see #isNotPersistent() - * @see com.gemstone.gemfire.cache.DataPolicy + * @see org.apache.geode.cache.DataPolicy */ protected void assertDataPolicyAndPersistentAttributeAreCompatible(final DataPolicy resolvedDataPolicy) { if (resolvedDataPolicy.withPersistence()) { @@ -454,7 +453,7 @@ public class ClientRegionFactoryBean extends RegionLookupFactoryBean * Sets the CacheLoader used to load data local to the client's Region on cache misses. * * @param cacheLoader a GemFire CacheLoader used to load data into the client Region. - * @see com.gemstone.gemfire.cache.CacheLoader + * @see org.apache.geode.cache.CacheLoader */ public void setCacheLoader(CacheLoader cacheLoader) { this.cacheLoader = cacheLoader; @@ -464,7 +463,7 @@ public class ClientRegionFactoryBean extends RegionLookupFactoryBean * Sets the CacheWriter used to perform a synchronous write-behind when data is put into the client's Region. * * @param cacheWriter the GemFire CacheWriter used to perform synchronous write-behinds on put ops. - * @see com.gemstone.gemfire.cache.CacheWriter + * @see org.apache.geode.cache.CacheWriter */ public void setCacheWriter(CacheWriter cacheWriter) { this.cacheWriter = cacheWriter; @@ -474,7 +473,7 @@ public class ClientRegionFactoryBean extends RegionLookupFactoryBean * Sets the Data Policy. Used only when a new Region is created. * * @param dataPolicy the client Region's Data Policy. - * @see com.gemstone.gemfire.cache.DataPolicy + * @see org.apache.geode.cache.DataPolicy */ public void setDataPolicy(DataPolicy dataPolicy) { this.dataPolicy = dataPolicy; @@ -484,8 +483,8 @@ public class ClientRegionFactoryBean extends RegionLookupFactoryBean * An alternate way to set the Data Policy, using the String name of the enumerated value. * * @param dataPolicyName the enumerated value String name of the Data Policy. - * @see com.gemstone.gemfire.cache.DataPolicy - * @see #setDataPolicy(com.gemstone.gemfire.cache.DataPolicy) + * @see org.apache.geode.cache.DataPolicy + * @see #setDataPolicy(org.apache.geode.cache.DataPolicy) * @deprecated use setDataPolicy(:DataPolicy) instead. */ @Deprecated diff --git a/src/main/java/org/springframework/data/gemfire/client/ClientRegionShortcutConverter.java b/src/main/java/org/springframework/data/gemfire/client/ClientRegionShortcutConverter.java index 0ee674a2..79599e0c 100644 --- a/src/main/java/org/springframework/data/gemfire/client/ClientRegionShortcutConverter.java +++ b/src/main/java/org/springframework/data/gemfire/client/ClientRegionShortcutConverter.java @@ -16,17 +16,16 @@ package org.springframework.data.gemfire.client; +import org.apache.geode.cache.client.ClientRegionShortcut; import org.springframework.core.convert.converter.Converter; -import com.gemstone.gemfire.cache.client.ClientRegionShortcut; - /** * The ClientRegionShortcutConverter class is a Spring Converter implementation converting String value Client Region * Shortcut representations into actual GemFire ClientRegionShortcut enumerated values. * * @author John Blum * @see org.springframework.core.convert.converter.Converter - * @see com.gemstone.gemfire.cache.client.ClientRegionShortcut + * @see org.apache.geode.cache.client.ClientRegionShortcut * @since 1.3.4 */ @SuppressWarnings("unused") @@ -53,7 +52,7 @@ public class ClientRegionShortcutConverter implements Converter { @@ -40,7 +39,7 @@ public class InterestResultPolicyConverter extends AbstractPropertyEditorConvert * @see org.springframework.data.gemfire.client.InterestResultPolicyType#getInterestResultPolicy(InterestResultPolicyType) * @see org.springframework.data.gemfire.client.InterestResultPolicyType#valueOfIgnoreCase(String) * @see #assertConverted(String, Object, Class) - * @see com.gemstone.gemfire.cache.InterestResultPolicy + * @see org.apache.geode.cache.InterestResultPolicy */ @Override public InterestResultPolicy convert(final String source) { diff --git a/src/main/java/org/springframework/data/gemfire/client/InterestResultPolicyType.java b/src/main/java/org/springframework/data/gemfire/client/InterestResultPolicyType.java index 7708c5df..817ac8dd 100644 --- a/src/main/java/org/springframework/data/gemfire/client/InterestResultPolicyType.java +++ b/src/main/java/org/springframework/data/gemfire/client/InterestResultPolicyType.java @@ -16,13 +16,13 @@ package org.springframework.data.gemfire.client; -import com.gemstone.gemfire.cache.InterestResultPolicy; +import org.apache.geode.cache.InterestResultPolicy; /** * The InterestResultPolicyType enum is an enumeration of all client Register Interests (result) policy values. * * @author John Blum - * @see com.gemstone.gemfire.cache.InterestResultPolicy + * @see org.apache.geode.cache.InterestResultPolicy * @since 1.6.0 */ @SuppressWarnings("unused") diff --git a/src/main/java/org/springframework/data/gemfire/client/PoolAdapter.java b/src/main/java/org/springframework/data/gemfire/client/PoolAdapter.java index bb89d72b..18368272 100644 --- a/src/main/java/org/springframework/data/gemfire/client/PoolAdapter.java +++ b/src/main/java/org/springframework/data/gemfire/client/PoolAdapter.java @@ -20,8 +20,8 @@ package org.springframework.data.gemfire.client; import java.net.InetSocketAddress; import java.util.List; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.query.QueryService; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.query.QueryService; /** * The PoolAdapter class is an abstract, default no-op implementation of the GemFire {@link Pool} interface @@ -34,7 +34,7 @@ import com.gemstone.gemfire.cache.query.QueryService; * * @author John Blum * @see org.springframework.data.gemfire.client.PoolFactoryBean - * @see com.gemstone.gemfire.cache.client.Pool + * @see org.apache.geode.cache.client.Pool * @since 1.8.0 */ @SuppressWarnings("unused") diff --git a/src/main/java/org/springframework/data/gemfire/client/PoolFactoryBean.java b/src/main/java/org/springframework/data/gemfire/client/PoolFactoryBean.java index 7d8dc30e..a05d9430 100644 --- a/src/main/java/org/springframework/data/gemfire/client/PoolFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/client/PoolFactoryBean.java @@ -19,15 +19,14 @@ package org.springframework.data.gemfire.client; import java.net.InetSocketAddress; import java.util.List; -import com.gemstone.gemfire.cache.client.ClientCache; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.client.PoolFactory; -import com.gemstone.gemfire.cache.client.PoolManager; -import com.gemstone.gemfire.cache.query.QueryService; -import com.gemstone.gemfire.distributed.DistributedSystem; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.client.PoolFactory; +import org.apache.geode.cache.client.PoolManager; +import org.apache.geode.cache.query.QueryService; +import org.apache.geode.distributed.DistributedSystem; import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.BeanFactoryAware; @@ -58,9 +57,9 @@ import org.springframework.util.StringUtils; * @see org.springframework.beans.factory.InitializingBean * @see org.springframework.data.gemfire.support.ConnectionEndpoint * @see org.springframework.data.gemfire.support.ConnectionEndpointList - * @see com.gemstone.gemfire.cache.client.Pool - * @see com.gemstone.gemfire.cache.client.PoolFactory - * @see com.gemstone.gemfire.cache.client.PoolManager + * @see org.apache.geode.cache.client.Pool + * @see org.apache.geode.cache.client.PoolFactory + * @see org.apache.geode.cache.client.PoolManager */ @SuppressWarnings("unused") public class PoolFactoryBean implements FactoryBean, InitializingBean, DisposableBean, @@ -112,9 +111,9 @@ public class PoolFactoryBean implements FactoryBean, InitializingBean, Dis * Constructs and initializes a GemFire {@link Pool}. * * @throws Exception if the {@link Pool} creation and initialization fails. - * @see com.gemstone.gemfire.cache.client.Pool - * @see com.gemstone.gemfire.cache.client.PoolFactory - * @see com.gemstone.gemfire.cache.client.PoolManager + * @see org.apache.geode.cache.client.Pool + * @see org.apache.geode.cache.client.PoolFactory + * @see org.apache.geode.cache.client.PoolManager * @see #createPoolFactory() */ @Override @@ -207,11 +206,11 @@ public class PoolFactoryBean implements FactoryBean, InitializingBean, Dis /** * Attempts to eagerly initialize the GemFire {@link ClientCache} if not already present so that the single - * {@link com.gemstone.gemfire.distributed.DistributedSystem} will exists, which is required to create + * {@link org.apache.geode.distributed.DistributedSystem} will exists, which is required to create * a {@link Pool} instance. * * @see org.springframework.beans.factory.BeanFactory#getBean(Class) - * @see com.gemstone.gemfire.cache.client.ClientCache + * @see org.apache.geode.cache.client.ClientCache */ void eagerlyInitializeClientCacheIfNotPresent() { if (!isDistributedSystemPresent()) { @@ -225,7 +224,7 @@ public class PoolFactoryBean implements FactoryBean, InitializingBean, Dis * @return a boolean value indicating whether the single, GemFire DistributedSystem has been created already. * @see org.springframework.data.gemfire.GemfireUtils#getDistributedSystem() * @see org.springframework.data.gemfire.GemfireUtils#isConnected(DistributedSystem) - * @see com.gemstone.gemfire.distributed.DistributedSystem + * @see org.apache.geode.distributed.DistributedSystem */ boolean isDistributedSystemPresent() { return GemfireUtils.isConnected(GemfireUtils.getDistributedSystem()); @@ -236,8 +235,8 @@ public class PoolFactoryBean implements FactoryBean, InitializingBean, Dis * a GemFire {@link Pool}. * * @return a {@link PoolFactory} implementation to create a {@link Pool}. - * @see com.gemstone.gemfire.cache.client.PoolManager#createFactory() - * @see com.gemstone.gemfire.cache.client.PoolFactory + * @see org.apache.geode.cache.client.PoolManager#createFactory() + * @see org.apache.geode.cache.client.PoolFactory */ protected PoolFactory createPoolFactory() { return PoolManager.createFactory(); diff --git a/src/main/java/org/springframework/data/gemfire/client/support/DefaultableDelegatingPoolAdapter.java b/src/main/java/org/springframework/data/gemfire/client/support/DefaultableDelegatingPoolAdapter.java index d421757a..b2dc1ddd 100644 --- a/src/main/java/org/springframework/data/gemfire/client/support/DefaultableDelegatingPoolAdapter.java +++ b/src/main/java/org/springframework/data/gemfire/client/support/DefaultableDelegatingPoolAdapter.java @@ -21,9 +21,8 @@ import java.net.InetSocketAddress; import java.util.Collection; import java.util.List; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.query.QueryService; - +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.query.QueryService; import org.springframework.data.gemfire.util.SpringUtils; import org.springframework.util.Assert; @@ -32,7 +31,7 @@ import org.springframework.util.Assert; * values to be providing in the case that the Pool's setting were null. * * @author John Blum - * @see com.gemstone.gemfire.cache.client.Pool + * @see org.apache.geode.cache.client.Pool * @since 1.8.0 */ @SuppressWarnings("unused") diff --git a/src/main/java/org/springframework/data/gemfire/client/support/DelegatingPoolAdapter.java b/src/main/java/org/springframework/data/gemfire/client/support/DelegatingPoolAdapter.java index a60c621b..ecff636f 100644 --- a/src/main/java/org/springframework/data/gemfire/client/support/DelegatingPoolAdapter.java +++ b/src/main/java/org/springframework/data/gemfire/client/support/DelegatingPoolAdapter.java @@ -20,8 +20,8 @@ package org.springframework.data.gemfire.client.support; import java.net.InetSocketAddress; import java.util.List; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.query.QueryService; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.query.QueryService; /** * DelegatingPoolAdapter is an abstract implementation of GemFire's {@link Pool} interface and extension of @@ -33,7 +33,7 @@ import com.gemstone.gemfire.cache.query.QueryService; * * @author John Blum * @see FactoryDefaultsPoolAdapter - * @see com.gemstone.gemfire.cache.client.Pool + * @see org.apache.geode.cache.client.Pool * @since 1.8.0 */ @SuppressWarnings("unused") diff --git a/src/main/java/org/springframework/data/gemfire/client/support/FactoryDefaultsPoolAdapter.java b/src/main/java/org/springframework/data/gemfire/client/support/FactoryDefaultsPoolAdapter.java index 428b7953..fee33eb2 100644 --- a/src/main/java/org/springframework/data/gemfire/client/support/FactoryDefaultsPoolAdapter.java +++ b/src/main/java/org/springframework/data/gemfire/client/support/FactoryDefaultsPoolAdapter.java @@ -21,21 +21,20 @@ import java.net.InetSocketAddress; import java.util.Collections; import java.util.List; -import com.gemstone.gemfire.cache.client.PoolFactory; -import com.gemstone.gemfire.cache.query.QueryService; - +import org.apache.geode.cache.client.PoolFactory; +import org.apache.geode.cache.query.QueryService; import org.springframework.data.gemfire.GemfireUtils; import org.springframework.data.gemfire.client.PoolAdapter; /** - * FactoryDefaultsPoolAdapter is an abstract implementation of GemFire's {@link com.gemstone.gemfire.cache.client.Pool} + * FactoryDefaultsPoolAdapter is an abstract implementation of GemFire's {@link org.apache.geode.cache.client.Pool} * interface and extension of {@link PoolAdapter} providing default factory values for all configuration properties * (e.g. freeConnectionTimeout, idleTimeout, etc). * * @author John Blum * @see org.springframework.data.gemfire.client.PoolAdapter - * @see com.gemstone.gemfire.cache.client.PoolFactory - * @see com.gemstone.gemfire.cache.client.Pool + * @see org.apache.geode.cache.client.PoolFactory + * @see org.apache.geode.cache.client.Pool * @since 1.8.0 */ @SuppressWarnings("unused") diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/AbstractCacheConfiguration.java b/src/main/java/org/springframework/data/gemfire/config/annotation/AbstractCacheConfiguration.java index 53989eb6..04d8a881 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/AbstractCacheConfiguration.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/AbstractCacheConfiguration.java @@ -28,11 +28,10 @@ import java.util.Map; import java.util.Properties; import java.util.concurrent.atomic.AtomicBoolean; -import com.gemstone.gemfire.cache.TransactionListener; -import com.gemstone.gemfire.cache.TransactionWriter; -import com.gemstone.gemfire.cache.util.GatewayConflictResolver; -import com.gemstone.gemfire.pdx.PdxSerializer; - +import org.apache.geode.cache.TransactionListener; +import org.apache.geode.cache.TransactionWriter; +import org.apache.geode.cache.util.GatewayConflictResolver; +import org.apache.geode.pdx.PdxSerializer; import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanClassLoaderAware; import org.springframework.beans.factory.BeanFactory; @@ -67,8 +66,8 @@ import org.springframework.util.StringUtils; * {@link org.springframework.context.annotation.Configuration} support. * * This class encapsulates configuration settings common to both GemFire peer - * {@link com.gemstone.gemfire.cache.Cache caches} and - * {@link com.gemstone.gemfire.cache.client.ClientCache client caches}. + * {@link org.apache.geode.cache.Cache caches} and + * {@link org.apache.geode.cache.client.ClientCache client caches}. * * @author John Blum * @see org.springframework.beans.factory.BeanClassLoaderAware @@ -182,7 +181,7 @@ public abstract class AbstractCacheConfiguration implements BeanClassLoaderAware * depending on the type of configuration meta-data applied. * * Both 'mcast-port' and 'locators' are to set 0 and empty String respectively, which is necessary - * for {@link com.gemstone.gemfire.cache.client.ClientCache cache client}-based applications. These values + * for {@link org.apache.geode.cache.client.ClientCache cache client}-based applications. These values * can be changed for peer cache and cache server applications. * * Finally, GemFire's {@literal log-level} System property defaults to {@literal config}. @@ -451,7 +450,7 @@ public abstract class AbstractCacheConfiguration implements BeanClassLoaderAware } /** - * Determines whether this is a GemFire {@link com.gemstone.gemfire.cache.server.CacheServer} application, + * Determines whether this is a GemFire {@link org.apache.geode.cache.server.CacheServer} application, * which is indicated by the presence of the {@link CacheServerApplication} annotation on a Spring application * {@link org.springframework.context.annotation.Configuration @Configuration} class. * @@ -466,7 +465,7 @@ public abstract class AbstractCacheConfiguration implements BeanClassLoaderAware } /** - * Determines whether this is a GemFire {@link com.gemstone.gemfire.cache.client.ClientCache} application, + * Determines whether this is a GemFire {@link org.apache.geode.cache.client.ClientCache} application, * which is indicated by the presence of the {@link ClientCacheApplication} annotation on a Spring application * {@link org.springframework.context.annotation.Configuration @Configuration} class. * @@ -481,7 +480,7 @@ public abstract class AbstractCacheConfiguration implements BeanClassLoaderAware } /** - * Determines whether this is a GemFire peer {@link com.gemstone.gemfire.cache.Cache} application, + * Determines whether this is a GemFire peer {@link org.apache.geode.cache.Cache} application, * which is indicated by the presence of the {@link PeerCacheApplication} annotation on a Spring application * {@link org.springframework.context.annotation.Configuration @Configuration} class. * @@ -515,8 +514,8 @@ public abstract class AbstractCacheConfiguration implements BeanClassLoaderAware } /** - * Determines whether this is a GemFire {@link com.gemstone.gemfire.cache.server.CacheServer} or - * {@link com.gemstone.gemfire.cache.Cache peer cache} application, which is indicated by the presence + * Determines whether this is a GemFire {@link org.apache.geode.cache.server.CacheServer} or + * {@link org.apache.geode.cache.Cache peer cache} application, which is indicated by the presence * of either the {@link CacheServerApplication} annotation or the {@link PeerCacheApplication} annotation * on a Spring application {@link org.springframework.context.annotation.Configuration @Configuration} class. * @@ -534,8 +533,8 @@ public abstract class AbstractCacheConfiguration implements BeanClassLoaderAware } /** - * Determine whether this Spring application is a {@link com.gemstone.gemfire.cache.server.CacheServer}, - * {@link com.gemstone.gemfire.cache.client.ClientCache} or a {@link com.gemstone.gemfire.cache.Cache} application. + * Determine whether this Spring application is a {@link org.apache.geode.cache.server.CacheServer}, + * {@link org.apache.geode.cache.client.ClientCache} or a {@link org.apache.geode.cache.Cache} application. * * @param importMetadata {@link AnnotationMetadata} containing application configuration meta-data * from the class type-level annotations used to configure the Spring application. diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/AddCacheServerConfiguration.java b/src/main/java/org/springframework/data/gemfire/config/annotation/AddCacheServerConfiguration.java index d38efa0d..1b51fa0f 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/AddCacheServerConfiguration.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/AddCacheServerConfiguration.java @@ -29,7 +29,7 @@ import org.springframework.data.gemfire.server.CacheServerFactoryBean; /** * The {@link AddCacheServerConfiguration} class is a Spring {@link ImportBeanDefinitionRegistrar} that registers - * a {@link CacheServerFactoryBean} definition for the {@link com.gemstone.gemfire.cache.server.CacheServer} + * a {@link CacheServerFactoryBean} definition for the {@link org.apache.geode.cache.server.CacheServer} * configuration meta-data defined in {@link EnableCacheServer}. * * @author John Blum diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/AddPoolConfiguration.java b/src/main/java/org/springframework/data/gemfire/config/annotation/AddPoolConfiguration.java index ec9477b8..3de83bea 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/AddPoolConfiguration.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/AddPoolConfiguration.java @@ -33,7 +33,7 @@ import org.springframework.util.StringUtils; /** * The {@link AddCacheServerConfiguration} class is a Spring {@link ImportBeanDefinitionRegistrar} that registers - * a {@link PoolFactoryBean} definition for the {@link com.gemstone.gemfire.cache.client.Pool} + * a {@link PoolFactoryBean} definition for the {@link org.apache.geode.cache.client.Pool} * configuration meta-data defined in {@link EnablePool}. * * @author John Blum @@ -106,11 +106,11 @@ public class AddPoolConfiguration implements ImportBeanDefinitionRegistrar { /** * Uses the list of GemFire Locator and Server connection endpoint definitions and meta-data to configure - * the GemFire client {@link com.gemstone.gemfire.cache.client.Pool} used to communicate with the servers + * the GemFire client {@link org.apache.geode.cache.client.Pool} used to communicate with the servers * in the GemFire cluster. * * @param enablePoolAttributes {@link EnablePool} annotation containing - * {@link com.gemstone.gemfire.cache.client.Pool} Locator/Server connection endpoint meta-data. + * {@link org.apache.geode.cache.client.Pool} Locator/Server connection endpoint meta-data. * @see org.springframework.data.gemfire.config.annotation.ClientCacheApplication * @see java.util.Map */ diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/CacheServerApplication.java b/src/main/java/org/springframework/data/gemfire/config/annotation/CacheServerApplication.java index 842be303..c5ca2f78 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/CacheServerApplication.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/CacheServerApplication.java @@ -24,10 +24,9 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import com.gemstone.gemfire.cache.control.ResourceManager; -import com.gemstone.gemfire.cache.server.CacheServer; -import com.gemstone.gemfire.cache.server.ClientSubscriptionConfig; - +import org.apache.geode.cache.control.ResourceManager; +import org.apache.geode.cache.server.CacheServer; +import org.apache.geode.cache.server.ClientSubscriptionConfig; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.access.BeanFactoryLocator; import org.springframework.context.annotation.Configuration; @@ -36,18 +35,18 @@ import org.springframework.data.gemfire.server.SubscriptionEvictionPolicy; /** * The CacheServerApplication annotation enables an embedded GemFire - * {@link com.gemstone.gemfire.cache.server.CacheServer} instance in a Spring Data GemFire based application. + * {@link org.apache.geode.cache.server.CacheServer} instance in a Spring Data GemFire based application. * - * In addition, this also implies an embedded GemFire peer {@link com.gemstone.gemfire.cache.Cache} must exist + * In addition, this also implies an embedded GemFire peer {@link org.apache.geode.cache.Cache} must exist * and therefore will be configured, constructed and initialized as a Spring bean in the application context. * * @author John Blum * @see org.springframework.context.annotation.Configuration * @see org.springframework.context.annotation.Import * @see org.springframework.data.gemfire.config.annotation.CacheServerConfiguration - * @see com.gemstone.gemfire.cache.control.ResourceManager - * @see com.gemstone.gemfire.cache.server.CacheServer - * @see com.gemstone.gemfire.cache.server.ClientSubscriptionConfig + * @see org.apache.geode.cache.control.ResourceManager + * @see org.apache.geode.cache.server.CacheServer + * @see org.apache.geode.cache.server.ClientSubscriptionConfig * @since 1.9.0 */ @Target(ElementType.TYPE) @@ -69,7 +68,7 @@ public @interface CacheServerApplication { /** * Configures the ip address or host name that this cache server will listen on. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_BIND_ADDRESS + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_BIND_ADDRESS */ String bindAddress() default CacheServer.DEFAULT_BIND_ADDRESS; @@ -83,7 +82,7 @@ public @interface CacheServerApplication { /** * Configures the percentage of heap at or above which the cache is considered in danger of becoming inoperable. * - * @see com.gemstone.gemfire.cache.control.ResourceManager#DEFAULT_CRITICAL_HEAP_PERCENTAGE + * @see org.apache.geode.cache.control.ResourceManager#DEFAULT_CRITICAL_HEAP_PERCENTAGE */ float criticalHeapPercentage() default ResourceManager.DEFAULT_CRITICAL_HEAP_PERCENTAGE; @@ -100,7 +99,7 @@ public @interface CacheServerApplication { * Configures the percentage of heap at or above which the eviction should begin on Regions configured * for HeapLRU eviction. * - * @see com.gemstone.gemfire.cache.control.ResourceManager#DEFAULT_EVICTION_HEAP_PERCENTAGE + * @see org.apache.geode.cache.control.ResourceManager#DEFAULT_EVICTION_HEAP_PERCENTAGE */ float evictionHeapPercentage() default ResourceManager.DEFAULT_EVICTION_HEAP_PERCENTAGE; @@ -108,14 +107,14 @@ public @interface CacheServerApplication { * Configures the ip address or host name that server locators will tell clients that this cache server * is listening on. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_HOSTNAME_FOR_CLIENTS + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_HOSTNAME_FOR_CLIENTS */ String hostnameForClients() default CacheServer.DEFAULT_HOSTNAME_FOR_CLIENTS; /** * Configures the frequency in milliseconds to poll the load probe on this cache server. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_LOAD_POLL_INTERVAL + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_LOAD_POLL_INTERVAL */ long loadPollInterval() default CacheServer.DEFAULT_LOAD_POLL_INTERVAL; @@ -149,28 +148,28 @@ public @interface CacheServerApplication { /** * Configures the maximum allowed client connections. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_MAX_CONNECTIONS + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_MAX_CONNECTIONS */ int maxConnections() default CacheServer.DEFAULT_MAX_CONNECTIONS; /** * Configures he maximum number of messages that can be enqueued in a client-queue. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_MAXIMUM_MESSAGE_COUNT + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_MAXIMUM_MESSAGE_COUNT */ int maxMessageCount() default CacheServer.DEFAULT_MAXIMUM_MESSAGE_COUNT; /** * Configures the maximum number of threads allowed in this cache server to service client requests. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_MAX_THREADS + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_MAX_THREADS */ int maxThreads() default CacheServer.DEFAULT_MAX_THREADS; /** * Configures the maximum amount of time between client pings. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS */ int maxTimeBetweenPings() default CacheServer.DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS; @@ -185,7 +184,7 @@ public @interface CacheServerApplication { /** * Configures the time (in seconds ) after which a message in the client queue will expire. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_MESSAGE_TIME_TO_LIVE + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_MESSAGE_TIME_TO_LIVE */ int messageTimeToLive() default CacheServer.DEFAULT_MESSAGE_TIME_TO_LIVE; @@ -199,7 +198,7 @@ public @interface CacheServerApplication { /** * Configures the port on which this cache server listens for clients. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_PORT + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_PORT */ int port() default CacheServer.DEFAULT_PORT; @@ -213,14 +212,14 @@ public @interface CacheServerApplication { /** * Configures the configured buffer size of the socket connection for this CacheServer. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_SOCKET_BUFFER_SIZE + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_SOCKET_BUFFER_SIZE */ int socketBufferSize() default CacheServer.DEFAULT_SOCKET_BUFFER_SIZE; /** * Configures the capacity of the client queue. * - * @see com.gemstone.gemfire.cache.server.ClientSubscriptionConfig#DEFAULT_CAPACITY + * @see org.apache.geode.cache.server.ClientSubscriptionConfig#DEFAULT_CAPACITY */ int subscriptionCapacity() default ClientSubscriptionConfig.DEFAULT_CAPACITY; diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/CacheServerConfiguration.java b/src/main/java/org/springframework/data/gemfire/config/annotation/CacheServerConfiguration.java index da72f42f..4911928c 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/CacheServerConfiguration.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/CacheServerConfiguration.java @@ -20,12 +20,11 @@ package org.springframework.data.gemfire.config.annotation; import java.util.Map; import java.util.Set; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.InterestRegistrationListener; -import com.gemstone.gemfire.cache.server.CacheServer; -import com.gemstone.gemfire.cache.server.ClientSubscriptionConfig; -import com.gemstone.gemfire.cache.server.ServerLoadProbe; - +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.InterestRegistrationListener; +import org.apache.geode.cache.server.CacheServer; +import org.apache.geode.cache.server.ClientSubscriptionConfig; +import org.apache.geode.cache.server.ServerLoadProbe; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.type.AnnotationMetadata; @@ -42,8 +41,8 @@ import org.springframework.data.gemfire.util.SpringUtils; * @see org.springframework.context.annotation.Bean * @see org.springframework.context.annotation.Configuration * @see org.springframework.data.gemfire.config.annotation.PeerCacheConfiguration - * @see com.gemstone.gemfire.cache.Cache - * @see com.gemstone.gemfire.cache.server.CacheServer + * @see org.apache.geode.cache.Cache + * @see org.apache.geode.cache.server.CacheServer * @since 1.9.0 */ @Configuration diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/ClientCacheApplication.java b/src/main/java/org/springframework/data/gemfire/config/annotation/ClientCacheApplication.java index efe7ffec..4abcf527 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/ClientCacheApplication.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/ClientCacheApplication.java @@ -24,9 +24,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import com.gemstone.gemfire.cache.client.PoolFactory; -import com.gemstone.gemfire.cache.control.ResourceManager; - +import org.apache.geode.cache.client.PoolFactory; +import org.apache.geode.cache.control.ResourceManager; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.access.BeanFactoryLocator; import org.springframework.context.annotation.Configuration; @@ -35,14 +34,14 @@ import org.springframework.data.gemfire.GemfireUtils; /** * The {@link ClientCacheApplication} annotation enables a Spring Data GemFire based application to become - * a GemFire cache client (i.e. {@link com.gemstone.gemfire.cache.client.ClientCache}). + * a GemFire cache client (i.e. {@link org.apache.geode.cache.client.ClientCache}). * * @author John Blum * @see org.springframework.context.annotation.Configuration * @see org.springframework.context.annotation.Import * @see org.springframework.data.gemfire.config.annotation.ClientCacheConfiguration - * @see com.gemstone.gemfire.cache.client.PoolFactory - * @see com.gemstone.gemfire.cache.control.ResourceManager + * @see org.apache.geode.cache.client.PoolFactory + * @see org.apache.geode.cache.control.ResourceManager * @since 1.9.0 */ @Target(ElementType.TYPE) @@ -64,7 +63,7 @@ public @interface ClientCacheApplication { /** * Configures the percentage of heap at or above which the cache is considered in danger of becoming inoperable. * - * @see com.gemstone.gemfire.cache.control.ResourceManager#DEFAULT_CRITICAL_HEAP_PERCENTAGE + * @see org.apache.geode.cache.control.ResourceManager#DEFAULT_CRITICAL_HEAP_PERCENTAGE */ float criticalHeapPercentage() default ResourceManager.DEFAULT_CRITICAL_HEAP_PERCENTAGE; @@ -85,21 +84,21 @@ public @interface ClientCacheApplication { * Configures the percentage of heap at or above which the eviction should begin on Regions configured * for HeapLRU eviction. * - * @see com.gemstone.gemfire.cache.control.ResourceManager#DEFAULT_EVICTION_HEAP_PERCENTAGE + * @see org.apache.geode.cache.control.ResourceManager#DEFAULT_EVICTION_HEAP_PERCENTAGE */ float evictionHeapPercentage() default ResourceManager.DEFAULT_EVICTION_HEAP_PERCENTAGE; /** * Configures the free connection timeout for this pool. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_FREE_CONNECTION_TIMEOUT + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_FREE_CONNECTION_TIMEOUT */ int freeConnectionTimeout() default PoolFactory.DEFAULT_FREE_CONNECTION_TIMEOUT; /** * Configures the amount of time a connection can be idle before expiring the connection. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_IDLE_TIMEOUT + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_IDLE_TIMEOUT */ long idleTimeout() default PoolFactory.DEFAULT_IDLE_TIMEOUT; @@ -113,12 +112,12 @@ public @interface ClientCacheApplication { /** * Configures the load conditioning interval for this pool. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_LOAD_CONDITIONING_INTERVAL + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_LOAD_CONDITIONING_INTERVAL */ int loadConditioningInterval() default PoolFactory.DEFAULT_LOAD_CONDITIONING_INTERVAL; /** - * Configures the GemFire {@link com.gemstone.gemfire.distributed.Locator}s to which + * Configures the GemFire {@link org.apache.geode.distributed.Locator}s to which * this cache client will connect. */ Locator[] locators() default {}; @@ -133,21 +132,21 @@ public @interface ClientCacheApplication { /** * Configures the max number of client to server connections that the pool will create. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_MAX_CONNECTIONS + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_MAX_CONNECTIONS */ int maxConnections() default PoolFactory.DEFAULT_MAX_CONNECTIONS; /** * Configures the minimum number of connections to keep available at all times. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_MIN_CONNECTIONS + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_MIN_CONNECTIONS */ int minConnections() default PoolFactory.DEFAULT_MIN_CONNECTIONS; /** * If set to true then the created pool can be used by multiple users. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_MULTIUSER_AUTHENTICATION + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_MULTIUSER_AUTHENTICATION */ boolean multiUserAuthentication() default PoolFactory.DEFAULT_MULTIUSER_AUTHENTICATION; @@ -161,15 +160,15 @@ public @interface ClientCacheApplication { /** * Configures how often to ping servers to verify that they are still alive. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_PING_INTERVAL + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_PING_INTERVAL */ long pingInterval() default PoolFactory.DEFAULT_PING_INTERVAL; /** * By default {@code prSingleHopEnabled} is {@literal true} in which case the client is aware of the location - * of partitions on servers hosting Regions with {@link com.gemstone.gemfire.cache.DataPolicy#PARTITION}. + * of partitions on servers hosting Regions with {@link org.apache.geode.cache.DataPolicy#PARTITION}. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_PR_SINGLE_HOP_ENABLED + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_PR_SINGLE_HOP_ENABLED */ boolean prSingleHopEnabled() default PoolFactory.DEFAULT_PR_SINGLE_HOP_ENABLED; @@ -177,7 +176,7 @@ public @interface ClientCacheApplication { * Configures the number of milliseconds to wait for a response from a server before timing out the operation * and trying another server (if any are available). * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_READ_TIMEOUT + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_READ_TIMEOUT */ int readTimeout() default PoolFactory.DEFAULT_READ_TIMEOUT; @@ -191,19 +190,19 @@ public @interface ClientCacheApplication { /** * Configures the number of times to retry a request after timeout/exception. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_RETRY_ATTEMPTS + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_RETRY_ATTEMPTS */ int retryAttempts() default PoolFactory.DEFAULT_RETRY_ATTEMPTS; /** * Configures the group that all servers this pool connects to must belong to. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_SERVER_GROUP + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_SERVER_GROUP */ String serverGroup() default PoolFactory.DEFAULT_SERVER_GROUP; /** - * Configures the GemFire {@link com.gemstone.gemfire.cache.server.CacheServer}s to which + * Configures the GemFire {@link org.apache.geode.cache.server.CacheServer}s to which * this cache client will connect. */ Server[] servers() default {}; @@ -211,14 +210,14 @@ public @interface ClientCacheApplication { /** * Configures the socket buffer size for each connection made in this pool. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_SOCKET_BUFFER_SIZE + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_SOCKET_BUFFER_SIZE */ int socketBufferSize() default PoolFactory.DEFAULT_SOCKET_BUFFER_SIZE; /** * Configures how often to send client statistics to the server. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_STATISTIC_INTERVAL + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_STATISTIC_INTERVAL */ int statisticInterval() default PoolFactory.DEFAULT_STATISTIC_INTERVAL; @@ -226,14 +225,14 @@ public @interface ClientCacheApplication { * Configures the interval in milliseconds to wait before sending acknowledgements to the cache server * for events received from the server subscriptions. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_ACK_INTERVAL + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_ACK_INTERVAL */ int subscriptionAckInterval() default PoolFactory.DEFAULT_SUBSCRIPTION_ACK_INTERVAL; /** * If set to true then the created pool will have server-to-client subscriptions enabled. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_ENABLED + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_ENABLED */ boolean subscriptionEnabled() default PoolFactory.DEFAULT_SUBSCRIPTION_ENABLED; @@ -241,21 +240,21 @@ public @interface ClientCacheApplication { * Configures the messageTrackingTimeout attribute which is the time-to-live period, in milliseconds, * for subscription events the client has received from the server. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT */ int subscriptionMessageTrackingTimeout() default PoolFactory.DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT; /** * Configures the redundancy level for this pools server-to-client subscriptions. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_REDUNDANCY + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_REDUNDANCY */ int subscriptionRedundancy() default PoolFactory.DEFAULT_SUBSCRIPTION_REDUNDANCY; /** * Configures the thread local connections policy for this pool. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_THREAD_LOCAL_CONNECTIONS + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_THREAD_LOCAL_CONNECTIONS */ boolean threadLocalConnections() default PoolFactory.DEFAULT_THREAD_LOCAL_CONNECTIONS; diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/ClientCacheConfiguration.java b/src/main/java/org/springframework/data/gemfire/config/annotation/ClientCacheConfiguration.java index 6b34a0ba..4eef2f22 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/ClientCacheConfiguration.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/ClientCacheConfiguration.java @@ -34,13 +34,13 @@ import org.springframework.data.gemfire.support.ConnectionEndpointList; /** * Spring {@link Configuration} class used to configure, construct and initialize - * a GemFire {@link com.gemstone.gemfire.cache.client.ClientCache} instance in a Spring application context. + * a GemFire {@link org.apache.geode.cache.client.ClientCache} instance in a Spring application context. * * @author John Blum * @see org.springframework.context.annotation.Bean * @see org.springframework.context.annotation.Configuration * @see org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration - * @see com.gemstone.gemfire.cache.client.ClientCache + * @see org.apache.geode.cache.client.ClientCache * @since 1.0.0 */ @Configuration @@ -143,10 +143,10 @@ public class ClientCacheConfiguration extends AbstractCacheConfiguration { } /** - * Configures GemFire {@link com.gemstone.gemfire.cache.client.ClientCache} specific settings. + * Configures GemFire {@link org.apache.geode.cache.client.ClientCache} specific settings. * * @param importMetadata {@link AnnotationMetadata} containing client cache meta-data used to configure - * the GemFire {@link com.gemstone.gemfire.cache.client.ClientCache}. + * the GemFire {@link org.apache.geode.cache.client.ClientCache}. * @see org.springframework.core.type.AnnotationMetadata */ @Override @@ -186,11 +186,11 @@ public class ClientCacheConfiguration extends AbstractCacheConfiguration { /** * Uses the list of GemFire Locator and Server connection endpoint definitions and meta-data to configure - * the GemFire client {@link com.gemstone.gemfire.cache.client.Pool} used to communicate with the servers + * the GemFire client {@link org.apache.geode.cache.client.Pool} used to communicate with the servers * in the GemFire cluster. * * @param clientCacheApplicationAttributes {@link ClientCacheApplication} annotation containing - * {@link com.gemstone.gemfire.cache.client.Pool} Locator/Server connection endpoint meta-data. + * {@link org.apache.geode.cache.client.Pool} Locator/Server connection endpoint meta-data. * @see org.springframework.data.gemfire.config.annotation.ClientCacheApplication * @see java.util.Map */ diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/EnableAuth.java b/src/main/java/org/springframework/data/gemfire/config/annotation/EnableAuth.java index e486ebd2..2c7335bf 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/EnableAuth.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/EnableAuth.java @@ -24,10 +24,9 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import com.gemstone.gemfire.security.AccessControl; -import com.gemstone.gemfire.security.AuthInitialize; -import com.gemstone.gemfire.security.Authenticator; - +import org.apache.geode.security.AccessControl; +import org.apache.geode.security.AuthInitialize; +import org.apache.geode.security.Authenticator; import org.springframework.context.annotation.Import; /** @@ -36,9 +35,9 @@ import org.springframework.context.annotation.Import; * * @author John Blum * @see org.springframework.data.gemfire.config.annotation.AuthConfiguration - * @see com.gemstone.gemfire.security.AccessControl - * @see com.gemstone.gemfire.security.AuthInitialize - * @see com.gemstone.gemfire.security.Authenticator + * @see org.apache.geode.security.AccessControl + * @see org.apache.geode.security.AuthInitialize + * @see org.apache.geode.security.Authenticator * @see Authentication * @see Authorization * @since 1.9.0 diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/EnableAutoRegionLookup.java b/src/main/java/org/springframework/data/gemfire/config/annotation/EnableAutoRegionLookup.java index fac7594f..627590b2 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/EnableAutoRegionLookup.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/EnableAutoRegionLookup.java @@ -28,11 +28,11 @@ import org.springframework.context.annotation.Import; /** * The {@link EnableAutoRegionLookup} annotation configures a Spring {@link org.springframework.context.annotation.Configuration} - * annotated class with the ability to automatically look up and register GemFire {@link com.gemstone.gemfire.cache.Region Regions} + * annotated class with the ability to automatically look up and register GemFire {@link org.apache.geode.cache.Region Regions} * which may have be defined in {@literal cache.xml} or by using GemFire's Cluster Configuration Service. * * This annotation defines the {@code enabled} attribute to allow users to dynamically change the behavior - * of auto {@link com.gemstone.gemfire.cache.Region} lookup at application configuration time using either a SpEL + * of auto {@link org.apache.geode.cache.Region} lookup at application configuration time using either a SpEL * expression or a Spring property placeholder. * * @author John Blum @@ -48,11 +48,11 @@ import org.springframework.context.annotation.Import; public @interface EnableAutoRegionLookup { /** - * Attribute to indicate whether auto {@link com.gemstone.gemfire.cache.Region} lookup should be enabled; + * Attribute to indicate whether auto {@link org.apache.geode.cache.Region} lookup should be enabled; * Defaults to {@literal true}. * * This attribute accepts either a SpEL or Spring property placeholder expression so that - * auto {@link com.gemstone.gemfire.cache.Region} lookup behavior can be determined + * auto {@link org.apache.geode.cache.Region} lookup behavior can be determined * at application configuration time. */ String enabled() default "true"; diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/EnableCacheServer.java b/src/main/java/org/springframework/data/gemfire/config/annotation/EnableCacheServer.java index c7dc909a..00c92f6d 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/EnableCacheServer.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/EnableCacheServer.java @@ -24,9 +24,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import com.gemstone.gemfire.cache.server.CacheServer; -import com.gemstone.gemfire.cache.server.ClientSubscriptionConfig; - +import org.apache.geode.cache.server.CacheServer; +import org.apache.geode.cache.server.ClientSubscriptionConfig; import org.springframework.context.annotation.Import; import org.springframework.data.gemfire.server.SubscriptionEvictionPolicy; @@ -43,7 +42,7 @@ import org.springframework.data.gemfire.server.SubscriptionEvictionPolicy; * @author John Blum * @see org.springframework.data.gemfire.config.annotation.AddCacheServerConfiguration - * @see com.gemstone.gemfire.cache.server.CacheServer + * @see org.apache.geode.cache.server.CacheServer * @since 1.9.0 */ @Target(ElementType.TYPE) @@ -64,7 +63,7 @@ public @interface EnableCacheServer { /** * Configures the ip address or host name that this cache server will listen on. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_BIND_ADDRESS + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_BIND_ADDRESS */ String bindAddress() default CacheServer.DEFAULT_BIND_ADDRESS; @@ -72,70 +71,70 @@ public @interface EnableCacheServer { * Configures the ip address or host name that server locators will tell clients that this cache server * is listening on. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_HOSTNAME_FOR_CLIENTS + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_HOSTNAME_FOR_CLIENTS */ String hostnameForClients() default CacheServer.DEFAULT_HOSTNAME_FOR_CLIENTS; /** * Configures the frequency in milliseconds to poll the load probe on this cache server. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_LOAD_POLL_INTERVAL + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_LOAD_POLL_INTERVAL */ long loadPollInterval() default CacheServer.DEFAULT_LOAD_POLL_INTERVAL; /** * Configures the maximum allowed client connections. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_MAX_CONNECTIONS + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_MAX_CONNECTIONS */ int maxConnections() default CacheServer.DEFAULT_MAX_CONNECTIONS; /** * Configures he maximum number of messages that can be enqueued in a client-queue. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_MAXIMUM_MESSAGE_COUNT + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_MAXIMUM_MESSAGE_COUNT */ int maxMessageCount() default CacheServer.DEFAULT_MAXIMUM_MESSAGE_COUNT; /** * Configures the maximum number of threads allowed in this cache server to service client requests. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_MAX_THREADS + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_MAX_THREADS */ int maxThreads() default CacheServer.DEFAULT_MAX_THREADS; /** * Configures the maximum amount of time between client pings. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS */ int maxTimeBetweenPings() default CacheServer.DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS; /** * Configures the time (in seconds ) after which a message in the client queue will expire. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_MESSAGE_TIME_TO_LIVE + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_MESSAGE_TIME_TO_LIVE */ int messageTimeToLive() default CacheServer.DEFAULT_MESSAGE_TIME_TO_LIVE; /** * Configures the port on which this cache server listens for clients. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_PORT + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_PORT */ int port() default CacheServer.DEFAULT_PORT; /** * Configures the configured buffer size of the socket connection for this CacheServer. * - * @see com.gemstone.gemfire.cache.server.CacheServer#DEFAULT_SOCKET_BUFFER_SIZE + * @see org.apache.geode.cache.server.CacheServer#DEFAULT_SOCKET_BUFFER_SIZE */ int socketBufferSize() default CacheServer.DEFAULT_SOCKET_BUFFER_SIZE; /** * Configures the capacity of the client queue. * - * @see com.gemstone.gemfire.cache.server.ClientSubscriptionConfig#DEFAULT_CAPACITY + * @see org.apache.geode.cache.server.ClientSubscriptionConfig#DEFAULT_CAPACITY */ int subscriptionCapacity() default ClientSubscriptionConfig.DEFAULT_CAPACITY; diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/EnableCacheServers.java b/src/main/java/org/springframework/data/gemfire/config/annotation/EnableCacheServers.java index 0db7d480..3da0b0ed 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/EnableCacheServers.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/EnableCacheServers.java @@ -27,7 +27,7 @@ import java.lang.annotation.Target; import org.springframework.context.annotation.Import; /** - * The {@link EnableCacheServers} annotation enables 1 or more GemFire {@link com.gemstone.gemfire.cache.server.CacheServer CacheServers} + * The {@link EnableCacheServers} annotation enables 1 or more GemFire {@link org.apache.geode.cache.server.CacheServer CacheServers} * to be defined and used in a GemFire peer cache application configured with Spring (Data GemFire). * * @author John Blum @@ -44,7 +44,7 @@ import org.springframework.context.annotation.Import; public @interface EnableCacheServers { /** - * Enables the definition of multiple GemFire {@link com.gemstone.gemfire.cache.server.CacheServer CacheServers}. + * Enables the definition of multiple GemFire {@link org.apache.geode.cache.server.CacheServer CacheServers}. */ EnableCacheServer[] servers() default {}; diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/EnablePdx.java b/src/main/java/org/springframework/data/gemfire/config/annotation/EnablePdx.java index c48d4bc1..96f8a2c6 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/EnablePdx.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/EnablePdx.java @@ -59,7 +59,7 @@ public @interface EnablePdx { boolean persistent() default false; /** - * Configures the object preference to {@link com.gemstone.gemfire.pdx.PdxInstance} type or {@link Object}. + * Configures the object preference to {@link org.apache.geode.pdx.PdxInstance} type or {@link Object}. * * Default is {@literal false}. */ diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/EnablePool.java b/src/main/java/org/springframework/data/gemfire/config/annotation/EnablePool.java index c5ea6eb8..1294d60b 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/EnablePool.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/EnablePool.java @@ -24,9 +24,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.client.PoolFactory; - +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.client.PoolFactory; import org.springframework.context.annotation.Import; import org.springframework.data.gemfire.GemfireUtils; @@ -42,8 +41,8 @@ import org.springframework.data.gemfire.GemfireUtils; * * @author John Blum * @see org.springframework.data.gemfire.config.annotation.AddPoolConfiguration - * @see com.gemstone.gemfire.cache.client.Pool - * @see com.gemstone.gemfire.cache.client.PoolFactory + * @see org.apache.geode.cache.client.Pool + * @see org.apache.geode.cache.client.PoolFactory * @since 1.9.0 */ @Target(ElementType.TYPE) @@ -57,26 +56,26 @@ public @interface EnablePool { /** * Configures the free connection timeout for this pool. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_FREE_CONNECTION_TIMEOUT + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_FREE_CONNECTION_TIMEOUT */ int freeConnectionTimeout() default PoolFactory.DEFAULT_FREE_CONNECTION_TIMEOUT; /** * Configures the amount of time a connection can be idle before expiring the connection. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_IDLE_TIMEOUT + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_IDLE_TIMEOUT */ long idleTimeout() default PoolFactory.DEFAULT_IDLE_TIMEOUT; /** * Configures the load conditioning interval for this pool. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_LOAD_CONDITIONING_INTERVAL + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_LOAD_CONDITIONING_INTERVAL */ int loadConditioningInterval() default PoolFactory.DEFAULT_LOAD_CONDITIONING_INTERVAL; /** - * Configures the GemFire {@link com.gemstone.gemfire.distributed.Locator Locators} to which + * Configures the GemFire {@link org.apache.geode.distributed.Locator Locators} to which * this cache client will connect. */ Locator[] locators() default {}; @@ -92,21 +91,21 @@ public @interface EnablePool { /** * Configures the max number of client to server connections that the pool will create. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_MAX_CONNECTIONS + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_MAX_CONNECTIONS */ int maxConnections() default PoolFactory.DEFAULT_MAX_CONNECTIONS; /** * Configures the minimum number of connections to keep available at all times. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_MIN_CONNECTIONS + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_MIN_CONNECTIONS */ int minConnections() default PoolFactory.DEFAULT_MIN_CONNECTIONS; /** * If set to true then the created pool can be used by multiple users. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_MULTIUSER_AUTHENTICATION + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_MULTIUSER_AUTHENTICATION */ boolean multiUserAuthentication() default PoolFactory.DEFAULT_MULTIUSER_AUTHENTICATION; @@ -118,15 +117,15 @@ public @interface EnablePool { /** * Configures how often to ping servers to verify that they are still alive. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_PING_INTERVAL + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_PING_INTERVAL */ long pingInterval() default PoolFactory.DEFAULT_PING_INTERVAL; /** * By default {@code prSingleHopEnabled} is {@literal true} in which case the client is aware of the location - * of partitions on servers hosting Regions with {@link com.gemstone.gemfire.cache.DataPolicy#PARTITION}. + * of partitions on servers hosting Regions with {@link org.apache.geode.cache.DataPolicy#PARTITION}. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_PR_SINGLE_HOP_ENABLED + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_PR_SINGLE_HOP_ENABLED */ boolean prSingleHopEnabled() default PoolFactory.DEFAULT_PR_SINGLE_HOP_ENABLED; @@ -134,26 +133,26 @@ public @interface EnablePool { * Configures the number of milliseconds to wait for a response from a server before timing out the operation * and trying another server (if any are available). * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_READ_TIMEOUT + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_READ_TIMEOUT */ int readTimeout() default PoolFactory.DEFAULT_READ_TIMEOUT; /** * Configures the number of times to retry a request after timeout/exception. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_RETRY_ATTEMPTS + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_RETRY_ATTEMPTS */ int retryAttempts() default PoolFactory.DEFAULT_RETRY_ATTEMPTS; /** * Configures the group that all servers this pool connects to must belong to. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_SERVER_GROUP + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_SERVER_GROUP */ String serverGroup() default PoolFactory.DEFAULT_SERVER_GROUP; /** - * Configures the GemFire {@link com.gemstone.gemfire.cache.server.CacheServer CacheServers} to which + * Configures the GemFire {@link org.apache.geode.cache.server.CacheServer CacheServers} to which * this cache client will connect. */ Server[] servers() default {}; @@ -169,14 +168,14 @@ public @interface EnablePool { /** * Configures the socket buffer size for each connection made in this pool. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_SOCKET_BUFFER_SIZE + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_SOCKET_BUFFER_SIZE */ int socketBufferSize() default PoolFactory.DEFAULT_SOCKET_BUFFER_SIZE; /** * Configures how often to send client statistics to the server. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_STATISTIC_INTERVAL + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_STATISTIC_INTERVAL */ int statisticInterval() default PoolFactory.DEFAULT_STATISTIC_INTERVAL; @@ -184,14 +183,14 @@ public @interface EnablePool { * Configures the interval in milliseconds to wait before sending acknowledgements to the cache server * for events received from the server subscriptions. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_ACK_INTERVAL + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_ACK_INTERVAL */ int subscriptionAckInterval() default PoolFactory.DEFAULT_SUBSCRIPTION_ACK_INTERVAL; /** * If set to true then the created pool will have server-to-client subscriptions enabled. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_ENABLED + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_ENABLED */ boolean subscriptionEnabled() default PoolFactory.DEFAULT_SUBSCRIPTION_ENABLED; @@ -199,21 +198,21 @@ public @interface EnablePool { * Configures the messageTrackingTimeout attribute which is the time-to-live period, in milliseconds, * for subscription events the client has received from the server. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT */ int subscriptionMessageTrackingTimeout() default PoolFactory.DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT; /** * Configures the redundancy level for this pools server-to-client subscriptions. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_REDUNDANCY + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_SUBSCRIPTION_REDUNDANCY */ int subscriptionRedundancy() default PoolFactory.DEFAULT_SUBSCRIPTION_REDUNDANCY; /** * Configures the thread local connections policy for this pool. * - * @see com.gemstone.gemfire.cache.client.PoolFactory#DEFAULT_THREAD_LOCAL_CONNECTIONS + * @see org.apache.geode.cache.client.PoolFactory#DEFAULT_THREAD_LOCAL_CONNECTIONS */ boolean threadLocalConnections() default PoolFactory.DEFAULT_THREAD_LOCAL_CONNECTIONS; diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/EnablePools.java b/src/main/java/org/springframework/data/gemfire/config/annotation/EnablePools.java index 04821fa8..94054d83 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/EnablePools.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/EnablePools.java @@ -27,7 +27,7 @@ import java.lang.annotation.Target; import org.springframework.context.annotation.Import; /** - * The {@link EnablePools} annotation enables 1 or more GemFire {@link com.gemstone.gemfire.cache.client.Pool Pools} + * The {@link EnablePools} annotation enables 1 or more GemFire {@link org.apache.geode.cache.client.Pool Pools} * to be defined and used in a GemFire client cache application configured with Spring (Data GemFire). * * @author John Blum @@ -44,7 +44,7 @@ import org.springframework.context.annotation.Import; public @interface EnablePools { /** - * Enables the definition of multiple GemFire {@link com.gemstone.gemfire.cache.client.Pool Pools}. + * Enables the definition of multiple GemFire {@link org.apache.geode.cache.client.Pool Pools}. */ EnablePool[] pools() default {}; diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/PeerCacheApplication.java b/src/main/java/org/springframework/data/gemfire/config/annotation/PeerCacheApplication.java index 70fdf36f..baf874af 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/PeerCacheApplication.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/PeerCacheApplication.java @@ -24,22 +24,21 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import com.gemstone.gemfire.cache.control.ResourceManager; - +import org.apache.geode.cache.control.ResourceManager; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.access.BeanFactoryLocator; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; /** - * The {@link PeerCacheApplication} annotation enables an embedded GemFire peer {@link com.gemstone.gemfire.cache.Cache} + * The {@link PeerCacheApplication} annotation enables an embedded GemFire peer {@link org.apache.geode.cache.Cache} * instance in a Spring Data GemFire based application. * * @author John Blum * @see org.springframework.context.annotation.Configuration * @see org.springframework.context.annotation.Import * @see org.springframework.data.gemfire.config.annotation.PeerCacheConfiguration - * @see com.gemstone.gemfire.cache.control.ResourceManager + * @see org.apache.geode.cache.control.ResourceManager * @since 1.9.0 */ @Target({ ElementType.ANNOTATION_TYPE, ElementType.TYPE}) @@ -61,7 +60,7 @@ public @interface PeerCacheApplication { /** * Configures the percentage of heap at or above which the cache is considered in danger of becoming inoperable. * - * @see com.gemstone.gemfire.cache.control.ResourceManager#DEFAULT_CRITICAL_HEAP_PERCENTAGE + * @see org.apache.geode.cache.control.ResourceManager#DEFAULT_CRITICAL_HEAP_PERCENTAGE */ float criticalHeapPercentage() default ResourceManager.DEFAULT_CRITICAL_HEAP_PERCENTAGE; @@ -78,7 +77,7 @@ public @interface PeerCacheApplication { * Configures the percentage of heap at or above which the eviction should begin on Regions configured * for HeapLRU eviction. * - * @see com.gemstone.gemfire.cache.control.ResourceManager#DEFAULT_EVICTION_HEAP_PERCENTAGE + * @see org.apache.geode.cache.control.ResourceManager#DEFAULT_EVICTION_HEAP_PERCENTAGE */ float evictionHeapPercentage() default ResourceManager.DEFAULT_EVICTION_HEAP_PERCENTAGE; diff --git a/src/main/java/org/springframework/data/gemfire/config/annotation/PeerCacheConfiguration.java b/src/main/java/org/springframework/data/gemfire/config/annotation/PeerCacheConfiguration.java index 03d01803..5e8ffc85 100644 --- a/src/main/java/org/springframework/data/gemfire/config/annotation/PeerCacheConfiguration.java +++ b/src/main/java/org/springframework/data/gemfire/config/annotation/PeerCacheConfiguration.java @@ -26,13 +26,13 @@ import org.springframework.data.gemfire.CacheFactoryBean; /** * Spring {@link Configuration} class used to configure, construct and initialize - * a GemFire peer {@link com.gemstone.gemfire.cache.Cache} instance in a Spring application context. + * a GemFire peer {@link org.apache.geode.cache.Cache} instance in a Spring application context. * * @author John Blum * @see org.springframework.context.annotation.Bean * @see org.springframework.context.annotation.Configuration * @see org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration - * @see com.gemstone.gemfire.cache.Cache + * @see org.apache.geode.cache.Cache * @since 1.9.0 */ @Configuration @@ -77,10 +77,10 @@ public class PeerCacheConfiguration extends AbstractCacheConfiguration { } /** - * Configures GemFire peer {@link com.gemstone.gemfire.cache.Cache} specific settings. + * Configures GemFire peer {@link org.apache.geode.cache.Cache} specific settings. * * @param importMetadata {@link AnnotationMetadata} containing peer cache meta-data used to configure - * the GemFire peer {@link com.gemstone.gemfire.cache.Cache}. + * the GemFire peer {@link org.apache.geode.cache.Cache}. * @see org.springframework.core.type.AnnotationMetadata * @see #isCacheServerOrPeerCacheApplication(AnnotationMetadata) */ diff --git a/src/main/java/org/springframework/data/gemfire/config/support/AutoRegionLookupBeanPostProcessor.java b/src/main/java/org/springframework/data/gemfire/config/support/AutoRegionLookupBeanPostProcessor.java index fd1ab0e0..ffad4dde 100644 --- a/src/main/java/org/springframework/data/gemfire/config/support/AutoRegionLookupBeanPostProcessor.java +++ b/src/main/java/org/springframework/data/gemfire/config/support/AutoRegionLookupBeanPostProcessor.java @@ -19,9 +19,8 @@ package org.springframework.data.gemfire.config.support; import java.util.Collections; import java.util.Set; -import com.gemstone.gemfire.cache.GemFireCache; -import com.gemstone.gemfire.cache.Region; - +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.Region; import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.BeanFactoryAware; @@ -41,8 +40,8 @@ import org.springframework.util.ObjectUtils; * @see org.springframework.beans.factory.BeanFactory * @see org.springframework.beans.factory.BeanFactoryAware * @see org.springframework.beans.factory.config.BeanPostProcessor - * @see com.gemstone.gemfire.cache.GemFireCache - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.GemFireCache + * @see org.apache.geode.cache.Region * @since 1.5.0 */ public class AutoRegionLookupBeanPostProcessor implements BeanPostProcessor, BeanFactoryAware { diff --git a/src/main/java/org/springframework/data/gemfire/config/support/ClientRegionPoolBeanFactoryPostProcessor.java b/src/main/java/org/springframework/data/gemfire/config/support/ClientRegionPoolBeanFactoryPostProcessor.java index 498c0469..0ff966c5 100644 --- a/src/main/java/org/springframework/data/gemfire/config/support/ClientRegionPoolBeanFactoryPostProcessor.java +++ b/src/main/java/org/springframework/data/gemfire/config/support/ClientRegionPoolBeanFactoryPostProcessor.java @@ -31,9 +31,9 @@ import org.springframework.data.gemfire.util.SpringUtils; /** * {@link ClientRegionPoolBeanFactoryPostProcessor} is a Spring {@link BeanFactoryPostProcessor} implementation - * ensuring a proper dependency is declared between a GemFire client {@link com.gemstone.gemfire.cache.Region} - * and the GemFire client {@link com.gemstone.gemfire.cache.client.Pool} it references and uses, providing - * the GemFire client {@link com.gemstone.gemfire.cache.client.Pool} has been defined and configured with + * ensuring a proper dependency is declared between a GemFire client {@link org.apache.geode.cache.Region} + * and the GemFire client {@link org.apache.geode.cache.client.Pool} it references and uses, providing + * the GemFire client {@link org.apache.geode.cache.client.Pool} has been defined and configured with * Spring (Data GemFire) configuration meta-data (e.g. XML). * * @author John Blum diff --git a/src/main/java/org/springframework/data/gemfire/config/support/CustomEditorBeanFactoryPostProcessor.java b/src/main/java/org/springframework/data/gemfire/config/support/CustomEditorBeanFactoryPostProcessor.java index 78ad3b19..8fa65cc0 100644 --- a/src/main/java/org/springframework/data/gemfire/config/support/CustomEditorBeanFactoryPostProcessor.java +++ b/src/main/java/org/springframework/data/gemfire/config/support/CustomEditorBeanFactoryPostProcessor.java @@ -18,21 +18,16 @@ package org.springframework.data.gemfire.config.support; import java.beans.PropertyEditorSupport; -import com.gemstone.gemfire.cache.EvictionAction; -import com.gemstone.gemfire.cache.ExpirationAction; -import com.gemstone.gemfire.cache.InterestPolicy; -import com.gemstone.gemfire.cache.InterestResultPolicy; -import com.gemstone.gemfire.cache.Scope; -import com.gemstone.gemfire.cache.util.Gateway; - +import org.apache.geode.cache.EvictionAction; +import org.apache.geode.cache.ExpirationAction; +import org.apache.geode.cache.InterestPolicy; +import org.apache.geode.cache.InterestResultPolicy; +import org.apache.geode.cache.Scope; +import org.apache.geode.cache.util.Gateway; import org.springframework.beans.BeansException; import org.springframework.beans.factory.config.BeanFactoryPostProcessor; import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; import org.springframework.core.convert.converter.Converter; -import org.springframework.data.gemfire.eviction.EvictionActionConverter; -import org.springframework.data.gemfire.eviction.EvictionPolicyConverter; -import org.springframework.data.gemfire.eviction.EvictionPolicyType; -import org.springframework.data.gemfire.expiration.ExpirationActionConverter; import org.springframework.data.gemfire.IndexMaintenancePolicyConverter; import org.springframework.data.gemfire.IndexMaintenancePolicyType; import org.springframework.data.gemfire.IndexType; @@ -40,6 +35,10 @@ import org.springframework.data.gemfire.IndexTypeConverter; import org.springframework.data.gemfire.InterestPolicyConverter; import org.springframework.data.gemfire.ScopeConverter; import org.springframework.data.gemfire.client.InterestResultPolicyConverter; +import org.springframework.data.gemfire.eviction.EvictionActionConverter; +import org.springframework.data.gemfire.eviction.EvictionPolicyConverter; +import org.springframework.data.gemfire.eviction.EvictionPolicyType; +import org.springframework.data.gemfire.expiration.ExpirationActionConverter; import org.springframework.data.gemfire.server.SubscriptionEvictionPolicy; import org.springframework.data.gemfire.server.SubscriptionEvictionPolicyConverter; import org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport; diff --git a/src/main/java/org/springframework/data/gemfire/config/support/DefinedIndexesApplicationListener.java b/src/main/java/org/springframework/data/gemfire/config/support/DefinedIndexesApplicationListener.java index 6732aad9..697b22b4 100644 --- a/src/main/java/org/springframework/data/gemfire/config/support/DefinedIndexesApplicationListener.java +++ b/src/main/java/org/springframework/data/gemfire/config/support/DefinedIndexesApplicationListener.java @@ -16,11 +16,10 @@ package org.springframework.data.gemfire.config.support; -import com.gemstone.gemfire.cache.query.MultiIndexCreationException; -import com.gemstone.gemfire.cache.query.QueryService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.query.MultiIndexCreationException; +import org.apache.geode.cache.query.QueryService; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationListener; import org.springframework.context.event.ContextRefreshedEvent; @@ -28,14 +27,14 @@ import org.springframework.data.gemfire.config.xml.GemfireConstants; /** * {@link DefinedIndexesApplicationListener} is a Spring {@link ApplicationListener} used to create all - * "defined" GemFire {@link com.gemstone.gemfire.cache.query.Index Indexes} by using the {@link QueryService}, + * "defined" GemFire {@link org.apache.geode.cache.query.Index Indexes} by using the {@link QueryService}, * {@literal defineXxxIndex(..)} methods. * * @author John Blum * @see org.springframework.context.ApplicationContext * @see org.springframework.context.ApplicationListener * @see org.springframework.context.event.ContextRefreshedEvent - * @see com.gemstone.gemfire.cache.query.QueryService + * @see org.apache.geode.cache.query.QueryService * @since 1.7.0 */ public class DefinedIndexesApplicationListener implements ApplicationListener { @@ -43,13 +42,13 @@ public class DefinedIndexesApplicationListener implements ApplicationListener, InitializingBean { @@ -94,7 +93,7 @@ public class EvictionAttributesFactoryBean implements FactoryBean implements BeanFactoryAware, Custom * expiration policy. * * @param defaultExpirationAttributes expiration settings used as the default expiration policy. - * @see com.gemstone.gemfire.cache.ExpirationAttributes + * @see org.apache.geode.cache.ExpirationAttributes */ public AnnotationBasedExpiration(ExpirationAttributes defaultExpirationAttributes) { this.defaultExpirationAttributes = defaultExpirationAttributes; @@ -103,7 +102,7 @@ public class AnnotationBasedExpiration implements BeanFactoryAware, Custom * @return an AnnotationBasedExpiration instance to process Idle Timeout Expiration annotated Region Entries. * @see AnnotationBasedExpiration * @see IdleTimeoutExpiration - * @see #forIdleTimeout(com.gemstone.gemfire.cache.ExpirationAttributes) + * @see #forIdleTimeout(org.apache.geode.cache.ExpirationAttributes) */ public static AnnotationBasedExpiration forIdleTimeout() { return forIdleTimeout(null); @@ -139,7 +138,7 @@ public class AnnotationBasedExpiration implements BeanFactoryAware, Custom * @return an AnnotationBasedExpiration instance to process Time-To-Live Expiration annotated Region Entries. * @see AnnotationBasedExpiration * @see TimeToLiveExpiration - * @see #forTimeToLive(com.gemstone.gemfire.cache.ExpirationAttributes) + * @see #forTimeToLive(org.apache.geode.cache.ExpirationAttributes) */ public static AnnotationBasedExpiration forTimeToLive() { return forTimeToLive(null); @@ -228,7 +227,7 @@ public class AnnotationBasedExpiration implements BeanFactoryAware, Custom * * @param defaultExpirationAttributes expiration settings used as the default expiration policy. * @see #getDefaultExpirationAttributes() - * @see com.gemstone.gemfire.cache.ExpirationAttributes + * @see org.apache.geode.cache.ExpirationAttributes */ public void setDefaultExpirationAttributes(ExpirationAttributes defaultExpirationAttributes) { this.defaultExpirationAttributes = defaultExpirationAttributes; @@ -239,8 +238,8 @@ public class AnnotationBasedExpiration implements BeanFactoryAware, Custom * has been specified. * * @return an instance of ExpirationAttributes with expiration settings defining the default expiration policy. - * @see #setDefaultExpirationAttributes(com.gemstone.gemfire.cache.ExpirationAttributes) - * @see com.gemstone.gemfire.cache.ExpirationAttributes + * @see #setDefaultExpirationAttributes(org.apache.geode.cache.ExpirationAttributes) + * @see org.apache.geode.cache.ExpirationAttributes */ protected ExpirationAttributes getDefaultExpirationAttributes() { //return (defaultExpirationAttributes != null ? defaultExpirationAttributes : ExpirationAttributes.DEFAULT); @@ -253,7 +252,7 @@ public class AnnotationBasedExpiration implements BeanFactoryAware, Custom * * @param entry the entry to calculate the expiration for. * @return the expiration to be used, null if the Region's defaults should be used. - * @see com.gemstone.gemfire.cache.ExpirationAttributes + * @see org.apache.geode.cache.ExpirationAttributes */ @Override public ExpirationAttributes getExpiry(Region.Entry entry) { @@ -283,7 +282,7 @@ public class AnnotationBasedExpiration implements BeanFactoryAware, Custom * or the default expiration settings if the application domain object has not been annotated with custom * expiration meta-data. * @see AnnotationBasedExpiration.ExpirationMetaData - * @see com.gemstone.gemfire.cache.ExpirationAttributes + * @see org.apache.geode.cache.ExpirationAttributes * @see #getDefaultExpirationAttributes() */ protected ExpirationAttributes newExpirationAttributes(ExpirationMetaData expirationMetaData) { @@ -388,7 +387,7 @@ public class AnnotationBasedExpiration implements BeanFactoryAware, Custom * The ExpirationMetaData class encapsulates the settings constituting the expiration policy including * the expiration timeout and the action performed when expiration occurs. * - * @see com.gemstone.gemfire.cache.ExpirationAttributes + * @see org.apache.geode.cache.ExpirationAttributes */ protected static class ExpirationMetaData { diff --git a/src/main/java/org/springframework/data/gemfire/expiration/ExpirationActionConverter.java b/src/main/java/org/springframework/data/gemfire/expiration/ExpirationActionConverter.java index ec240354..05044161 100644 --- a/src/main/java/org/springframework/data/gemfire/expiration/ExpirationActionConverter.java +++ b/src/main/java/org/springframework/data/gemfire/expiration/ExpirationActionConverter.java @@ -16,8 +16,7 @@ package org.springframework.data.gemfire.expiration; -import com.gemstone.gemfire.cache.ExpirationAction; - +import org.apache.geode.cache.ExpirationAction; import org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport; /** @@ -39,7 +38,7 @@ public class ExpirationActionConverter extends AbstractPropertyEditorConverterSu * @return an GemFire ExpirationAction value for the given String. * @throws java.lang.IllegalArgumentException if the String is not a valid GemFire ExpirationAction. * @see ExpirationActionType#valueOfIgnoreCase(String) - * @see com.gemstone.gemfire.cache.ExpirationAction + * @see org.apache.geode.cache.ExpirationAction */ @Override public ExpirationAction convert(final String source) { diff --git a/src/main/java/org/springframework/data/gemfire/expiration/ExpirationActionType.java b/src/main/java/org/springframework/data/gemfire/expiration/ExpirationActionType.java index 32bf3cd6..6a2f0aae 100644 --- a/src/main/java/org/springframework/data/gemfire/expiration/ExpirationActionType.java +++ b/src/main/java/org/springframework/data/gemfire/expiration/ExpirationActionType.java @@ -16,13 +16,13 @@ package org.springframework.data.gemfire.expiration; -import com.gemstone.gemfire.cache.ExpirationAction; +import org.apache.geode.cache.ExpirationAction; /** * The ExpirationActionType enum is a enumeration of GemFire ExpirationActions on expired Cache Region entries. * * @author John Blum - * @see com.gemstone.gemfire.cache.ExpirationAction + * @see org.apache.geode.cache.ExpirationAction * @since 1.6.0 */ @SuppressWarnings("unused") @@ -40,7 +40,7 @@ public enum ExpirationActionType { * Constructs an instance of the ExpirationActionType enum initialized with the matching GemFire ExpirationAction. * * @param expirationAction the matching GemFire ExpirationAction for this enumerated value. - * @see com.gemstone.gemfire.cache.ExpirationAction + * @see org.apache.geode.cache.ExpirationAction */ ExpirationActionType(final ExpirationAction expirationAction) { this.expirationAction = expirationAction; @@ -52,7 +52,7 @@ public enum ExpirationActionType { * @param expirationActionType the ExpirationActionType enumerated value from which to extract * the corresponding GemFire ExpirationAction. * @return a GemFire ExpirationAction given the ExpirationActionType enumerated value. - * @see com.gemstone.gemfire.cache.ExpirationAction + * @see org.apache.geode.cache.ExpirationAction */ public static ExpirationAction getExpirationAction(final ExpirationActionType expirationActionType) { return (expirationActionType != null ? expirationActionType.getExpirationAction() : null); @@ -64,7 +64,7 @@ public enum ExpirationActionType { * @param expirationAction the GemFire ExpirationAction used to match the ExpirationActionType. * @return a matching ExpirationActionType enumerated value given a GemFire ExpirationAction * or null if no match was found. - * @see com.gemstone.gemfire.cache.ExpirationAction + * @see org.apache.geode.cache.ExpirationAction * @see #getExpirationAction() */ public static ExpirationActionType valueOf(final ExpirationAction expirationAction) { @@ -100,7 +100,7 @@ public enum ExpirationActionType { * Gets the matching GemFire ExpirationAction for this enumerated value. * * @return the GemFire ExpirationAction instance corresponding to this enumerated value. - * @see com.gemstone.gemfire.cache.ExpirationAction + * @see org.apache.geode.cache.ExpirationAction */ public ExpirationAction getExpirationAction() { return expirationAction; diff --git a/src/main/java/org/springframework/data/gemfire/expiration/ExpirationAttributesFactoryBean.java b/src/main/java/org/springframework/data/gemfire/expiration/ExpirationAttributesFactoryBean.java index f413dab2..46e2a94b 100644 --- a/src/main/java/org/springframework/data/gemfire/expiration/ExpirationAttributesFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/expiration/ExpirationAttributesFactoryBean.java @@ -16,9 +16,8 @@ package org.springframework.data.gemfire.expiration; -import com.gemstone.gemfire.cache.ExpirationAction; -import com.gemstone.gemfire.cache.ExpirationAttributes; - +import org.apache.geode.cache.ExpirationAction; +import org.apache.geode.cache.ExpirationAttributes; import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.InitializingBean; @@ -30,7 +29,7 @@ import org.springframework.beans.factory.InitializingBean; * @author John Blum * @see org.springframework.beans.factory.FactoryBean * @see org.springframework.beans.factory.InitializingBean - * @see com.gemstone.gemfire.cache.ExpirationAttributes + * @see org.apache.geode.cache.ExpirationAttributes * @since 1.6.0 */ @SuppressWarnings("unused") @@ -69,7 +68,7 @@ public class ExpirationAttributesFactoryBean implements FactoryBean resultSender; - + public BatchingResultSender(int batchSize, ResultSender resultSender) { Assert.notNull(resultSender, "resultSender cannot be null"); Assert.isTrue(batchSize >= 0, "batchSize must be >= 0"); this.batchSize = batchSize; this.resultSender = resultSender; } - - + + public void sendResults(Iterable result) { if (batchSize == 0) { resultSender.lastResult(result); return; - } - + } + List chunk = new ArrayList(batchSize); - + for (Iterator it = result.iterator(); it.hasNext();) { if (chunk.size() < batchSize) { chunk.add(it.next()); - } - + } + if (chunk.size() == batchSize || !it.hasNext()) { if (it.hasNext()) { resultSender.sendResult(chunk); @@ -65,19 +64,19 @@ class BatchingResultSender { } } - + public void sendArrayResults(Object result) { - + if (batchSize == 0) { resultSender.lastResult(result); return; } - - Assert.isTrue(ObjectUtils.isArray(result)); - + + Assert.isTrue(ObjectUtils.isArray(result)); + int length = Array.getLength(result); - - for (int from =0; from < length; from += batchSize) { + + for (int from =0; from < length; from += batchSize) { int to = Math.min(length,from + batchSize); Object chunk = copyOfRange(result,from, to); @@ -85,7 +84,7 @@ class BatchingResultSender { resultSender.lastResult(chunk); } else { resultSender.sendResult(chunk); - } + } } } @@ -97,10 +96,10 @@ class BatchingResultSender { * @return */ private Object copyOfRange(Object result, int from, int to) { - + Class arrayClass = result.getClass(); int size = to - from; - + if (int[].class.isAssignableFrom(arrayClass)) { int[] array = new int[size]; for(int i = 0; i < size ; ++i){ @@ -108,7 +107,7 @@ class BatchingResultSender { } return array; } - + if (float[].class.isAssignableFrom(arrayClass)) { float[] array = new float[size]; for(int i = 0; i < size ; ++i){ @@ -116,7 +115,7 @@ class BatchingResultSender { } return array; } - + if (double[].class.isAssignableFrom(arrayClass)) { double[] array = new double[size]; for(int i = 0; i < size ; ++i){ @@ -124,7 +123,7 @@ class BatchingResultSender { } return array; } - + if (boolean[].class.isAssignableFrom(arrayClass)) { boolean[] array = new boolean[size]; for(int i = 0; i < size ; ++i){ @@ -132,7 +131,7 @@ class BatchingResultSender { } return array; } - + if (byte[].class.isAssignableFrom(arrayClass)) { byte[] array = new byte[size]; for(int i = 0; i < size ; ++i){ @@ -140,7 +139,7 @@ class BatchingResultSender { } return array; } - + if (short[].class.isAssignableFrom(arrayClass)) { short[] array = new short[size]; for(int i = 0; i < size ; ++i){ @@ -148,7 +147,7 @@ class BatchingResultSender { } return array; } - + if (long[].class.isAssignableFrom(arrayClass)) { long[] array = new long[size]; for(int i = 0; i < size ; ++i){ @@ -156,7 +155,7 @@ class BatchingResultSender { } return array; } - + if (char[].class.isAssignableFrom(arrayClass)) { char[] array = new char[size]; for(int i = 0; i < size ; ++i){ @@ -164,8 +163,8 @@ class BatchingResultSender { } return array; } - + return Arrays.copyOfRange((Object[])result, from, to); - + } } diff --git a/src/main/java/org/springframework/data/gemfire/function/DefaultFunctionArgumentResolver.java b/src/main/java/org/springframework/data/gemfire/function/DefaultFunctionArgumentResolver.java index 33ca6489..03a8bb19 100644 --- a/src/main/java/org/springframework/data/gemfire/function/DefaultFunctionArgumentResolver.java +++ b/src/main/java/org/springframework/data/gemfire/function/DefaultFunctionArgumentResolver.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -14,7 +14,7 @@ package org.springframework.data.gemfire.function; import java.lang.reflect.Method; -import com.gemstone.gemfire.cache.execute.FunctionContext; +import org.apache.geode.cache.execute.FunctionContext; /** * @author David Turanski @@ -38,7 +38,7 @@ class DefaultFunctionArgumentResolver implements FunctionArgumentResolver { /* * (non-Javadoc) * - * @see org.springframework.data.gemfire.function.FunctionArgumentResolver#resolveFunctionArguments(com.gemstone.gemfire.cache.execute.FunctionContext) + * @see org.springframework.data.gemfire.function.FunctionArgumentResolver#resolveFunctionArguments(org.apache.geode.cache.execute.FunctionContext) */ @Override public Object[] resolveFunctionArguments(final FunctionContext functionContext) { diff --git a/src/main/java/org/springframework/data/gemfire/function/FunctionArgumentResolver.java b/src/main/java/org/springframework/data/gemfire/function/FunctionArgumentResolver.java index 3d9e2ce1..20b5c902 100644 --- a/src/main/java/org/springframework/data/gemfire/function/FunctionArgumentResolver.java +++ b/src/main/java/org/springframework/data/gemfire/function/FunctionArgumentResolver.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -14,7 +14,7 @@ package org.springframework.data.gemfire.function; import java.lang.reflect.Method; -import com.gemstone.gemfire.cache.execute.FunctionContext; +import org.apache.geode.cache.execute.FunctionContext; /** * The FunctionArgumentResolver interface is a Strategy Interface for resolving Function invocation arguments, @@ -22,7 +22,7 @@ import com.gemstone.gemfire.cache.execute.FunctionContext; * * @author David Turanski * @author John Blum - * @see com.gemstone.gemfire.cache.execute.FunctionContext + * @see org.apache.geode.cache.execute.FunctionContext * @since 1.3.0 */ interface FunctionArgumentResolver { diff --git a/src/main/java/org/springframework/data/gemfire/function/FunctionContextInjectingArgumentResolver.java b/src/main/java/org/springframework/data/gemfire/function/FunctionContextInjectingArgumentResolver.java index 21765272..b84bf1c9 100644 --- a/src/main/java/org/springframework/data/gemfire/function/FunctionContextInjectingArgumentResolver.java +++ b/src/main/java/org/springframework/data/gemfire/function/FunctionContextInjectingArgumentResolver.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -18,17 +18,16 @@ import java.util.Set; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.execute.FunctionContext; +import org.apache.geode.cache.execute.RegionFunctionContext; +import org.apache.geode.cache.execute.ResultSender; +import org.apache.geode.cache.partition.PartitionRegionHelper; import org.springframework.data.gemfire.function.annotation.Filter; import org.springframework.data.gemfire.function.annotation.RegionData; import org.springframework.data.gemfire.util.ArrayUtils; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.execute.FunctionContext; -import com.gemstone.gemfire.cache.execute.RegionFunctionContext; -import com.gemstone.gemfire.cache.execute.ResultSender; -import com.gemstone.gemfire.cache.partition.PartitionRegionHelper; - /** * @author David Turanski * @since 1.3.0 @@ -113,7 +112,7 @@ class FunctionContextInjectingArgumentResolver extends PdxFunctionArgumentResolv /* * (non-Javadoc) - * @see com.gemstone.gemfire.cache.execute.RegionFunctionContext + * @see org.apache.geode.cache.execute.RegionFunctionContext */ private static Region getRegionForContext(RegionFunctionContext regionFunctionContext) { Region region = regionFunctionContext.getDataSet(); diff --git a/src/main/java/org/springframework/data/gemfire/function/FunctionServiceFactoryBean.java b/src/main/java/org/springframework/data/gemfire/function/FunctionServiceFactoryBean.java index 029e0b5b..8a95cc98 100644 --- a/src/main/java/org/springframework/data/gemfire/function/FunctionServiceFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/function/FunctionServiceFactoryBean.java @@ -17,11 +17,10 @@ package org.springframework.data.gemfire.function; import java.util.List; -import com.gemstone.gemfire.cache.execute.Function; -import com.gemstone.gemfire.cache.execute.FunctionService; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.execute.Function; +import org.apache.geode.cache.execute.FunctionService; import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.InitializingBean; import org.springframework.util.CollectionUtils; @@ -33,8 +32,8 @@ import org.springframework.util.CollectionUtils; * @author John Blum * @see org.springframework.beans.factory.FactoryBean * @see org.springframework.beans.factory.InitializingBean - * @see com.gemstone.gemfire.cache.execute.Function - * @see com.gemstone.gemfire.cache.execute.FunctionService + * @see org.apache.geode.cache.execute.Function + * @see org.apache.geode.cache.execute.FunctionService */ public class FunctionServiceFactoryBean implements FactoryBean, InitializingBean { diff --git a/src/main/java/org/springframework/data/gemfire/function/GemfireFunctionUtils.java b/src/main/java/org/springframework/data/gemfire/function/GemfireFunctionUtils.java index 6ee3085f..89c2bca7 100644 --- a/src/main/java/org/springframework/data/gemfire/function/GemfireFunctionUtils.java +++ b/src/main/java/org/springframework/data/gemfire/function/GemfireFunctionUtils.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -21,11 +21,10 @@ import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.execute.FunctionService; import org.springframework.util.Assert; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.execute.FunctionService; - /** * @author David Turanski */ diff --git a/src/main/java/org/springframework/data/gemfire/function/PdxFunctionArgumentResolver.java b/src/main/java/org/springframework/data/gemfire/function/PdxFunctionArgumentResolver.java index 999b7375..12cbaa65 100644 --- a/src/main/java/org/springframework/data/gemfire/function/PdxFunctionArgumentResolver.java +++ b/src/main/java/org/springframework/data/gemfire/function/PdxFunctionArgumentResolver.java @@ -18,13 +18,12 @@ package org.springframework.data.gemfire.function; import java.lang.reflect.Method; +import org.apache.geode.cache.CacheClosedException; +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.execute.FunctionContext; +import org.apache.geode.pdx.PdxInstance; import org.springframework.util.ClassUtils; -import com.gemstone.gemfire.cache.CacheClosedException; -import com.gemstone.gemfire.cache.CacheFactory; -import com.gemstone.gemfire.cache.execute.FunctionContext; -import com.gemstone.gemfire.pdx.PdxInstance; - /** * The PdxFunctionArgumentResolver class is a Spring Data GemFire FunctionArgumentResolver that automatically resolves * PDX types when GemFire is configured with read-serialized set to true, but the application domain classes @@ -32,7 +31,7 @@ import com.gemstone.gemfire.pdx.PdxInstance; * * @author John Blum * @see org.springframework.data.gemfire.function.DefaultFunctionArgumentResolver - * @see com.gemstone.gemfire.pdx.PdxInstance + * @see org.apache.geode.pdx.PdxInstance * @since 1.5.2 */ @SuppressWarnings("unused") @@ -41,7 +40,7 @@ class PdxFunctionArgumentResolver extends DefaultFunctionArgumentResolver { /* * (non-Javadoc) * - * @see com.gemstone.gemfire.cache.execute.FunctionContext + * @see org.apache.geode.cache.execute.FunctionContext */ @Override public Object[] resolveFunctionArguments(final FunctionContext functionContext) { @@ -79,8 +78,8 @@ class PdxFunctionArgumentResolver extends DefaultFunctionArgumentResolver { /* * (non-Javadoc) * - * @see com.gemstone.gemfire.cache.Cache#getPdxSerializer() - * @see com.gemstone.gemfire.cache.CacheFactory#getAnyInstance() + * @see org.apache.geode.cache.Cache#getPdxSerializer() + * @see org.apache.geode.cache.CacheFactory#getAnyInstance() */ boolean isPdxSerializerConfigured() { try { diff --git a/src/main/java/org/springframework/data/gemfire/function/PojoFunctionWrapper.java b/src/main/java/org/springframework/data/gemfire/function/PojoFunctionWrapper.java index 607c6b76..4a975079 100644 --- a/src/main/java/org/springframework/data/gemfire/function/PojoFunctionWrapper.java +++ b/src/main/java/org/springframework/data/gemfire/function/PojoFunctionWrapper.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -16,20 +16,19 @@ import java.lang.reflect.Method; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.execute.Function; +import org.apache.geode.cache.execute.FunctionContext; +import org.apache.geode.cache.execute.ResultSender; import org.springframework.util.ObjectUtils; import org.springframework.util.ReflectionUtils; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.execute.Function; -import com.gemstone.gemfire.cache.execute.FunctionContext; -import com.gemstone.gemfire.cache.execute.ResultSender; - /** - * Invokes a POJO's given method as a Gemfire remote function. - * If the POJO has a constructor that takes a Map, and the function context is Region, the + * Invokes a POJO's given method as a Gemfire remote function. + * If the POJO has a constructor that takes a Map, and the function context is Region, the * region will be injected. The delegate class name, the method name, and the method arguments - * are part of a remote function invocation, therefore all arguments must be serializable - * or an alternate serialization method must be used. + * are part of a remote function invocation, therefore all arguments must be serializable + * or an alternate serialization method must be used. * The delegate class must be the class path of the remote cache(s) * @author David Turanski * diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/AbstractFunctionExecution.java b/src/main/java/org/springframework/data/gemfire/function/execution/AbstractFunctionExecution.java index 33c3f561..6601e550 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/AbstractFunctionExecution.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/AbstractFunctionExecution.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -19,15 +19,14 @@ import java.util.concurrent.TimeUnit; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.execute.Execution; +import org.apache.geode.cache.execute.Function; +import org.apache.geode.cache.execute.FunctionException; +import org.apache.geode.cache.execute.FunctionService; +import org.apache.geode.cache.execute.ResultCollector; import org.springframework.util.Assert; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.execute.Execution; -import com.gemstone.gemfire.cache.execute.Function; -import com.gemstone.gemfire.cache.execute.FunctionException; -import com.gemstone.gemfire.cache.execute.FunctionService; -import com.gemstone.gemfire.cache.execute.ResultCollector; - /** * Base class for * Creating a GemFire {@link Execution} using {@link FunctionService}. Protected setters support * method chaining. @@ -86,7 +85,7 @@ abstract class AbstractFunctionExecution { long getTimeout() { return timeout; } - + Iterable execute() { return execute(true); } diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/AbstractFunctionTemplate.java b/src/main/java/org/springframework/data/gemfire/function/execution/AbstractFunctionTemplate.java index 74b44f1f..b4d7c42e 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/AbstractFunctionTemplate.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/AbstractFunctionTemplate.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -14,17 +14,16 @@ package org.springframework.data.gemfire.function.execution; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; - -import com.gemstone.gemfire.cache.execute.Function; -import com.gemstone.gemfire.cache.execute.ResultCollector; +import org.apache.geode.cache.execute.Function; +import org.apache.geode.cache.execute.ResultCollector; /** * The base class for GemFire FunctionTemplates used to invoke GemFire Functions. * * @author David Turanski * @author John Blum - * @see com.gemstone.gemfire.cache.execute.Function - * @see com.gemstone.gemfire.cache.execute.ResultCollector + * @see org.apache.geode.cache.execute.Function + * @see org.apache.geode.cache.execute.ResultCollector */ abstract class AbstractFunctionTemplate implements GemfireFunctionOperations { @@ -67,7 +66,7 @@ abstract class AbstractFunctionTemplate implements GemfireFunctionOperations { protected Iterable execute(AbstractFunctionExecution execution) { return execution.setTimeout(timeout).setResultCollector(resultCollector).execute(); } - + protected Iterable execute(AbstractFunctionExecution execution, boolean returnResult) { return execution.setTimeout(timeout).setResultCollector(resultCollector).execute(returnResult); } diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/AllMembersFunctionExecution.java b/src/main/java/org/springframework/data/gemfire/function/execution/AllMembersFunctionExecution.java index af3093a5..2a4dadb0 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/AllMembersFunctionExecution.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/AllMembersFunctionExecution.java @@ -1,19 +1,19 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. */ package org.springframework.data.gemfire.function.execution; -import com.gemstone.gemfire.cache.execute.Execution; -import com.gemstone.gemfire.cache.execute.FunctionService; +import org.apache.geode.cache.execute.Execution; +import org.apache.geode.cache.execute.FunctionService; /** * A FunctionExecution wrapper for onMembers execution @@ -21,7 +21,7 @@ import com.gemstone.gemfire.cache.execute.FunctionService; * @since 1.3.0 */ class AllMembersFunctionExecution extends AbstractFunctionExecution { - + @Override protected Execution getExecution() { return FunctionService.onMembers(); diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/DefaultMemberFunctionExecution.java b/src/main/java/org/springframework/data/gemfire/function/execution/DefaultMemberFunctionExecution.java index a5b0006e..e088534c 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/DefaultMemberFunctionExecution.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/DefaultMemberFunctionExecution.java @@ -1,26 +1,26 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. */ package org.springframework.data.gemfire.function.execution; -import com.gemstone.gemfire.cache.execute.Execution; -import com.gemstone.gemfire.cache.execute.FunctionService; +import org.apache.geode.cache.execute.Execution; +import org.apache.geode.cache.execute.FunctionService; /** * @author David Turanski * */ class DefaultMemberFunctionExecution extends AbstractFunctionExecution { - + @Override protected Execution getExecution() { return FunctionService.onMember(); diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/DistributedMemberFunctionExecution.java b/src/main/java/org/springframework/data/gemfire/function/execution/DistributedMemberFunctionExecution.java index fb4c6e68..2849eb43 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/DistributedMemberFunctionExecution.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/DistributedMemberFunctionExecution.java @@ -1,42 +1,41 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. */ package org.springframework.data.gemfire.function.execution; +import org.apache.geode.cache.execute.Execution; +import org.apache.geode.cache.execute.FunctionService; +import org.apache.geode.distributed.DistributedMember; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.execute.Execution; -import com.gemstone.gemfire.cache.execute.FunctionService; -import com.gemstone.gemfire.distributed.DistributedMember; - /** * @author David Turanski * */ class DistributedMemberFunctionExecution extends AbstractFunctionExecution { - + private final DistributedMember distributedMember; /** - * + * * @param distributedMember */ public DistributedMemberFunctionExecution(DistributedMember distributedMember) { super(); Assert.notNull(distributedMember); - this.distributedMember = distributedMember; + this.distributedMember = distributedMember; } - + @Override protected Execution getExecution() { return FunctionService.onMember(this.distributedMember); diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/DistributedMembersFunctionExecution.java b/src/main/java/org/springframework/data/gemfire/function/execution/DistributedMembersFunctionExecution.java index 5970ff77..f71d0eff 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/DistributedMembersFunctionExecution.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/DistributedMembersFunctionExecution.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -14,26 +14,26 @@ package org.springframework.data.gemfire.function.execution; import java.util.Set; -import com.gemstone.gemfire.cache.execute.Execution; -import com.gemstone.gemfire.cache.execute.FunctionService; -import com.gemstone.gemfire.distributed.DistributedMember; +import org.apache.geode.cache.execute.Execution; +import org.apache.geode.cache.execute.FunctionService; +import org.apache.geode.distributed.DistributedMember; /** * @author David Turanski * */ class DistributedMembersFunctionExecution extends AbstractFunctionExecution { - + private final Set distributedMembers; /** - * + * * @param distributedMembers */ public DistributedMembersFunctionExecution(Set distributedMembers ) { super( ); - this.distributedMembers = distributedMembers; + this.distributedMembers = distributedMembers; } - + @Override protected Execution getExecution() { return FunctionService.onMembers(this.distributedMembers); diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireFunctionCallback.java b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireFunctionCallback.java index 8845f19a..6c2a132d 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireFunctionCallback.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireFunctionCallback.java @@ -1,18 +1,18 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. */ package org.springframework.data.gemfire.function.execution; -import com.gemstone.gemfire.cache.execute.Execution; +import org.apache.geode.cache.execute.Execution; /** * A callback for Gemfire Function Templates diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireFunctionOperations.java b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireFunctionOperations.java index cf74b94b..bb91a5c2 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireFunctionOperations.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireFunctionOperations.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -13,12 +13,12 @@ package org.springframework.data.gemfire.function.execution; -import com.gemstone.gemfire.cache.execute.Function; +import org.apache.geode.cache.execute.Function; /** - * + * * An interface for invoking Gemfire functions - * + * * @author David Turanski */ public interface GemfireFunctionOperations { @@ -50,7 +50,7 @@ public interface GemfireFunctionOperations { * @param function the GemFire Function object. * @param args an array of Object arguments to the Function call. * @return the first item in the ResultsCollector. - * @see com.gemstone.gemfire.cache.execute.Function + * @see org.apache.geode.cache.execute.Function */ public abstract T executeAndExtract(Function function, Object... args); @@ -73,7 +73,7 @@ public interface GemfireFunctionOperations { public void executeWithNoResult(String functionId, Object... args); /** - * Execute a GemFire Function using a native GemFire {@link com.gemstone.gemfire.cache.execute.Execution} instance. + * Execute a GemFire Function using a native GemFire {@link org.apache.geode.cache.execute.Execution} instance. * * @param type parameter specifying the result type of the Function execution. * @param callback a callback providing the execution instance. diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnMemberFunctionTemplate.java b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnMemberFunctionTemplate.java index cf81fc78..32bb30b3 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnMemberFunctionTemplate.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnMemberFunctionTemplate.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -13,34 +13,34 @@ package org.springframework.data.gemfire.function.execution; -import com.gemstone.gemfire.distributed.DistributedMember; +import org.apache.geode.distributed.DistributedMember; /** * @author David Turanski * @see org.springframework.data.gemfire.function.execution.AbstractFunctionTemplate - * @see com.gemstone.gemfire.distributed.DistributedMember + * @see org.apache.geode.distributed.DistributedMember */ public class GemfireOnMemberFunctionTemplate extends AbstractFunctionTemplate { - + private final DistributedMember distributedMember; private final String[] groups; - + public GemfireOnMemberFunctionTemplate (DistributedMember distributedMember) { this.distributedMember = distributedMember; this.groups = null; } - + public GemfireOnMemberFunctionTemplate (String[] groups) { this.distributedMember = null; this.groups = groups; } - + public GemfireOnMemberFunctionTemplate () { this.distributedMember = null; this.groups = null; } - - + + protected AbstractFunctionExecution getFunctionExecution() { if (distributedMember == null && groups == null) { return new DefaultMemberFunctionExecution(); diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnMembersFunctionTemplate.java b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnMembersFunctionTemplate.java index 8a407832..94588565 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnMembersFunctionTemplate.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnMembersFunctionTemplate.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -14,12 +14,12 @@ package org.springframework.data.gemfire.function.execution; import java.util.Set; -import com.gemstone.gemfire.distributed.DistributedMember; +import org.apache.geode.distributed.DistributedMember; /** * @author David Turanski * @see org.springframework.data.gemfire.function.execution.AbstractFunctionTemplate - * @see com.gemstone.gemfire.distributed.DistributedMember + * @see org.apache.geode.distributed.DistributedMember */ public class GemfireOnMembersFunctionTemplate extends AbstractFunctionTemplate { @@ -50,5 +50,5 @@ public class GemfireOnMembersFunctionTemplate extends AbstractFunctionTemplate return new DistributedMembersFunctionExecution(this.distributedMembers); } - + } diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnRegionFunctionTemplate.java b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnRegionFunctionTemplate.java index 04086e34..e3263fb6 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnRegionFunctionTemplate.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnRegionFunctionTemplate.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -14,11 +14,10 @@ package org.springframework.data.gemfire.function.execution; import java.util.Set; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.execute.Function; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.execute.Function; - /** * @author David Turanski * @@ -31,7 +30,7 @@ public class GemfireOnRegionFunctionTemplate extends AbstractFunctionTemplate im * Constructs an instance of the GemFireOnRegionFunctionTemplate with the given GemFire Cache Region. * * @param region the GemFire Cache Region upon which the Function will be executed. - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region */ public GemfireOnRegionFunctionTemplate(Region region) { Assert.notNull(region, "Region cannot be null"); diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnRegionOperations.java b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnRegionOperations.java index 2ea5ff60..f6ca87b3 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnRegionOperations.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnRegionOperations.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -14,7 +14,7 @@ package org.springframework.data.gemfire.function.execution; import java.util.Set; -import com.gemstone.gemfire.cache.execute.Function; +import org.apache.geode.cache.execute.Function; /** * @author David Turanski diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnServerFunctionTemplate.java b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnServerFunctionTemplate.java index 79f28b0b..5ebe4fd2 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnServerFunctionTemplate.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnServerFunctionTemplate.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -13,8 +13,8 @@ package org.springframework.data.gemfire.function.execution; -import com.gemstone.gemfire.cache.RegionService; -import com.gemstone.gemfire.cache.client.Pool; +import org.apache.geode.cache.RegionService; +import org.apache.geode.cache.client.Pool; /** * @author David Turanski @@ -29,7 +29,7 @@ public class GemfireOnServerFunctionTemplate extends AbstractFunctionTemplate { this.cache = cache; this.pool = null; } - + public GemfireOnServerFunctionTemplate(Pool pool) { this.cache = null; this.pool = pool; @@ -39,5 +39,5 @@ public class GemfireOnServerFunctionTemplate extends AbstractFunctionTemplate { protected AbstractFunctionExecution getFunctionExecution() { return (pool != null ? new PoolServerFunctionExecution(this.pool) : new ServerFunctionExecution(this.cache)); } - + } diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnServersFunctionTemplate.java b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnServersFunctionTemplate.java index d5c7942b..7f0e1a0d 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnServersFunctionTemplate.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/GemfireOnServersFunctionTemplate.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -13,29 +13,29 @@ package org.springframework.data.gemfire.function.execution; -import com.gemstone.gemfire.cache.RegionService; -import com.gemstone.gemfire.cache.client.Pool; +import org.apache.geode.cache.RegionService; +import org.apache.geode.cache.client.Pool; /** * @author David Turanski * */ public class GemfireOnServersFunctionTemplate extends AbstractFunctionTemplate { - + private final RegionService cache; private final Pool pool; - + public GemfireOnServersFunctionTemplate (RegionService cache) { this.cache = cache; this.pool = null; } - + public GemfireOnServersFunctionTemplate (Pool pool) { this.pool = pool; this.cache = null; } - + @Override protected AbstractFunctionExecution getFunctionExecution() { if (this.pool == null) { @@ -43,5 +43,5 @@ public class GemfireOnServersFunctionTemplate extends AbstractFunctionTemplate } return new PoolServersFunctionExecution(this.pool); } - + } diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/GroupMemberFunctionExecution.java b/src/main/java/org/springframework/data/gemfire/function/execution/GroupMemberFunctionExecution.java index fb1f1ef1..7fef164b 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/GroupMemberFunctionExecution.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/GroupMemberFunctionExecution.java @@ -1,31 +1,30 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. */ package org.springframework.data.gemfire.function.execution; +import org.apache.geode.cache.execute.Execution; +import org.apache.geode.cache.execute.FunctionService; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.execute.Execution; -import com.gemstone.gemfire.cache.execute.FunctionService; - /** * @author David Turanski * @author John Blum * @see org.springframework.data.gemfire.function.execution.AbstractFunctionExecution - * @see com.gemstone.gemfire.cache.execute.Execution - * @see com.gemstone.gemfire.cache.execute.FunctionService + * @see org.apache.geode.cache.execute.Execution + * @see org.apache.geode.cache.execute.FunctionService */ class GroupMemberFunctionExecution extends AbstractFunctionExecution { - + private final String[] groups; /** @@ -37,14 +36,14 @@ class GroupMemberFunctionExecution extends AbstractFunctionExecution { */ public GroupMemberFunctionExecution(final String... groups) { Assert.notEmpty(groups, "'groups' cannot be null or empty."); - this.groups = groups; + this.groups = groups; } /** * Executes the data independent Function on a single member from each of the specified groups. * * @return an Execution to execute the Function. - * @see com.gemstone.gemfire.cache.execute.FunctionService#onMember(String...) + * @see org.apache.geode.cache.execute.FunctionService#onMember(String...) */ @Override protected Execution getExecution() { diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/GroupMembersFunctionExecution.java b/src/main/java/org/springframework/data/gemfire/function/execution/GroupMembersFunctionExecution.java index 99d911fe..efc63e09 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/GroupMembersFunctionExecution.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/GroupMembersFunctionExecution.java @@ -1,31 +1,30 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. */ package org.springframework.data.gemfire.function.execution; +import org.apache.geode.cache.execute.Execution; +import org.apache.geode.cache.execute.FunctionService; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.execute.Execution; -import com.gemstone.gemfire.cache.execute.FunctionService; - /** * @author David Turanski * @author John Blum * @see org.springframework.data.gemfire.function.execution.AbstractFunctionExecution - * @see com.gemstone.gemfire.cache.execute.Execution - * @see com.gemstone.gemfire.cache.execute.FunctionService + * @see org.apache.geode.cache.execute.Execution + * @see org.apache.geode.cache.execute.FunctionService */ class GroupMembersFunctionExecution extends AbstractFunctionExecution { - + private final String[] groups; /** @@ -36,14 +35,14 @@ class GroupMembersFunctionExecution extends AbstractFunctionExecution { */ public GroupMembersFunctionExecution(final String... groups) { Assert.notEmpty(groups, "'groups' cannot be null or empty."); - this.groups = groups; + this.groups = groups; } /** * Executes the data independent Function on all members from each of the specified groups. * * @return an Execution to execute the Function. - * @see com.gemstone.gemfire.cache.execute.FunctionService#onMembers(String...) + * @see org.apache.geode.cache.execute.FunctionService#onMembers(String...) */ @Override protected Execution getExecution() { diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/PoolServerFunctionExecution.java b/src/main/java/org/springframework/data/gemfire/function/execution/PoolServerFunctionExecution.java index e5f75161..1e749b20 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/PoolServerFunctionExecution.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/PoolServerFunctionExecution.java @@ -1,36 +1,35 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. */ package org.springframework.data.gemfire.function.execution; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.client.PoolManager; +import org.apache.geode.cache.execute.Execution; +import org.apache.geode.cache.execute.FunctionService; import org.springframework.beans.factory.InitializingBean; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.client.PoolManager; -import com.gemstone.gemfire.cache.execute.Execution; -import com.gemstone.gemfire.cache.execute.FunctionService; - /** * Creates a GemFire {@link Execution} using {code}FunctionService.onServer(Pool pool){code} * @author David Turanski * */ class PoolServerFunctionExecution extends AbstractFunctionExecution implements InitializingBean { - + private Pool pool; private String poolname; - + /** * @param pool the {@link Pool} @@ -40,15 +39,15 @@ class PoolServerFunctionExecution extends AbstractFunctionExecution implements I Assert.notNull(pool, "pool cannot be null"); this.pool = pool; } - + public PoolServerFunctionExecution(String poolname) { super(); Assert.notNull(poolname, "pool name cannot be null"); this.poolname = poolname; - + } - - + + @Override protected Execution getExecution() { return FunctionService.onServer(this.pool); @@ -62,6 +61,6 @@ class PoolServerFunctionExecution extends AbstractFunctionExecution implements I public void afterPropertiesSet() throws Exception { this.pool = PoolManager.find(poolname); Assert.notNull(pool," pool " + poolname+ " does not exist"); - + } } diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/PoolServersFunctionExecution.java b/src/main/java/org/springframework/data/gemfire/function/execution/PoolServersFunctionExecution.java index 7c223eff..ac5b5415 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/PoolServersFunctionExecution.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/PoolServersFunctionExecution.java @@ -1,30 +1,29 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. */ package org.springframework.data.gemfire.function.execution; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.execute.Execution; +import org.apache.geode.cache.execute.FunctionService; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.execute.Execution; -import com.gemstone.gemfire.cache.execute.FunctionService; - /** * Creates a GemFire {@link Execution} using {code}FunctionService.onServers(Pool pool){code} * @author David Turanski * */ class PoolServersFunctionExecution extends AbstractFunctionExecution { - + private final Pool pool; @@ -36,7 +35,7 @@ class PoolServersFunctionExecution extends AbstractFunctionExecution { Assert.notNull(pool, "pool cannot be null"); this.pool = pool; } - + @Override protected Execution getExecution() { return FunctionService.onServers(this.pool); diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/RegionFunctionExecution.java b/src/main/java/org/springframework/data/gemfire/function/execution/RegionFunctionExecution.java index e198c396..8aadc39e 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/RegionFunctionExecution.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/RegionFunctionExecution.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -14,33 +14,32 @@ package org.springframework.data.gemfire.function.execution; import java.util.Set; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.execute.Execution; +import org.apache.geode.cache.execute.FunctionService; import org.springframework.util.CollectionUtils; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.execute.Execution; -import com.gemstone.gemfire.cache.execute.FunctionService; - /** - * Creates a GemFire {@link Execution} using {code}FunctionService.onRegion(Region region){code} + * Creates a GemFire {@link Execution} using {code}FunctionService.onRegion(Region region){code} * @author David Turanski - * + * */ class RegionFunctionExecution extends AbstractFunctionExecution { private final Region region; private volatile Set keys; - + public RegionFunctionExecution(Region region) { super(); this.region = region; } - + public RegionFunctionExecution setKeys(Set keys) { this.keys = keys; return this; } - + protected Set getKeys() { return this.keys; } diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/ServerFunctionExecution.java b/src/main/java/org/springframework/data/gemfire/function/execution/ServerFunctionExecution.java index 4a8314d1..e529c6f6 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/ServerFunctionExecution.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/ServerFunctionExecution.java @@ -1,23 +1,22 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. */ package org.springframework.data.gemfire.function.execution; +import org.apache.geode.cache.RegionService; +import org.apache.geode.cache.execute.Execution; +import org.apache.geode.cache.execute.FunctionService; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.RegionService; -import com.gemstone.gemfire.cache.execute.Execution; -import com.gemstone.gemfire.cache.execute.FunctionService; - /** * Creates a GemFire {@link Execution} using {code}FunctionService.onServer(RegionService regionService){code} * @author David Turanski @@ -29,7 +28,7 @@ class ServerFunctionExecution extends AbstractFunctionExecution { public ServerFunctionExecution(RegionService regionService) { Assert.notNull(regionService, "RegionService must not be null"); - this.regionService = regionService; + this.regionService = regionService; } @Override diff --git a/src/main/java/org/springframework/data/gemfire/function/execution/ServersFunctionExecution.java b/src/main/java/org/springframework/data/gemfire/function/execution/ServersFunctionExecution.java index 638ed619..cf6104d3 100644 --- a/src/main/java/org/springframework/data/gemfire/function/execution/ServersFunctionExecution.java +++ b/src/main/java/org/springframework/data/gemfire/function/execution/ServersFunctionExecution.java @@ -1,35 +1,34 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. */ package org.springframework.data.gemfire.function.execution; +import org.apache.geode.cache.RegionService; +import org.apache.geode.cache.execute.Execution; +import org.apache.geode.cache.execute.FunctionService; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.RegionService; -import com.gemstone.gemfire.cache.execute.Execution; -import com.gemstone.gemfire.cache.execute.FunctionService; - /** * Creates a GemFire {@link Execution} using {code}FunctionService.onServers(RegionService regionService){code} * @author David Turanski * */ class ServersFunctionExecution extends AbstractFunctionExecution { - + private final RegionService regionService; /** - * + * * @param regionService e.g., Cache,Client, or GemFireCache * @param function * @param args @@ -37,7 +36,7 @@ class ServersFunctionExecution extends AbstractFunctionExecution { public ServersFunctionExecution(RegionService regionService ) { super(); Assert.notNull(regionService,"regionService cannot be null"); - this.regionService = regionService; + this.regionService = regionService; } @Override diff --git a/src/main/java/org/springframework/data/gemfire/listener/ContinuousQueryDefinition.java b/src/main/java/org/springframework/data/gemfire/listener/ContinuousQueryDefinition.java index 3bc61af9..72c56f08 100644 --- a/src/main/java/org/springframework/data/gemfire/listener/ContinuousQueryDefinition.java +++ b/src/main/java/org/springframework/data/gemfire/listener/ContinuousQueryDefinition.java @@ -16,15 +16,14 @@ package org.springframework.data.gemfire.listener; +import org.apache.geode.cache.query.CqQuery; import org.springframework.beans.factory.InitializingBean; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.query.CqQuery; - /** * Basic holder class for defining an {@link CqQuery}. Useful for configuring GemFire {@link CqQuery}s by mean of * XML or using JavaBeans. - * + * * @author Costin Leau * @author John Blum * @see org.springframework.beans.factory.InitializingBean diff --git a/src/main/java/org/springframework/data/gemfire/listener/ContinuousQueryListener.java b/src/main/java/org/springframework/data/gemfire/listener/ContinuousQueryListener.java index 610f7caa..ce6b7845 100644 --- a/src/main/java/org/springframework/data/gemfire/listener/ContinuousQueryListener.java +++ b/src/main/java/org/springframework/data/gemfire/listener/ContinuousQueryListener.java @@ -16,11 +16,11 @@ package org.springframework.data.gemfire.listener; -import com.gemstone.gemfire.cache.query.CqEvent; +import org.apache.geode.cache.query.CqEvent; /** * Continuous Query (CQ) listener listening for events and notifications by a GemFire Continuous Query (CQ). - * + * * @author Costin Leau * @author John Blum */ @@ -30,7 +30,7 @@ public interface ContinuousQueryListener { * Action performed by the listener when notified of a CQ event. * * @param event the event from the CQ. - * @see com.gemstone.gemfire.cache.query.CqEvent + * @see org.apache.geode.cache.query.CqEvent */ void onEvent(CqEvent event); diff --git a/src/main/java/org/springframework/data/gemfire/listener/ContinuousQueryListenerContainer.java b/src/main/java/org/springframework/data/gemfire/listener/ContinuousQueryListenerContainer.java index 07675dda..874c726a 100644 --- a/src/main/java/org/springframework/data/gemfire/listener/ContinuousQueryListenerContainer.java +++ b/src/main/java/org/springframework/data/gemfire/listener/ContinuousQueryListenerContainer.java @@ -24,6 +24,16 @@ import java.util.concurrent.Executor; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.RegionService; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.client.PoolManager; +import org.apache.geode.cache.query.CqAttributes; +import org.apache.geode.cache.query.CqAttributesFactory; +import org.apache.geode.cache.query.CqEvent; +import org.apache.geode.cache.query.CqListener; +import org.apache.geode.cache.query.CqQuery; +import org.apache.geode.cache.query.QueryException; +import org.apache.geode.cache.query.QueryService; import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.BeanFactoryAware; @@ -43,17 +53,6 @@ import org.springframework.util.ClassUtils; import org.springframework.util.ErrorHandler; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.RegionService; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.client.PoolManager; -import com.gemstone.gemfire.cache.query.CqAttributes; -import com.gemstone.gemfire.cache.query.CqAttributesFactory; -import com.gemstone.gemfire.cache.query.CqEvent; -import com.gemstone.gemfire.cache.query.CqListener; -import com.gemstone.gemfire.cache.query.CqQuery; -import com.gemstone.gemfire.cache.query.QueryException; -import com.gemstone.gemfire.cache.query.QueryService; - /** * Container providing asynchronous behaviour for GemFire continuous queries. * @@ -65,13 +64,13 @@ import com.gemstone.gemfire.cache.query.QueryService; * @see org.springframework.context.SmartLifecycle * @see org.springframework.core.task.SimpleAsyncTaskExecutor * @see org.springframework.core.task.TaskExecutor - * @see com.gemstone.gemfire.cache.RegionService - * @see com.gemstone.gemfire.cache.client.Pool - * @see com.gemstone.gemfire.cache.client.PoolManager - * @see com.gemstone.gemfire.cache.query.CqEvent - * @see com.gemstone.gemfire.cache.query.CqListener - * @see com.gemstone.gemfire.cache.query.CqQuery - * @see com.gemstone.gemfire.cache.query.QueryService + * @see org.apache.geode.cache.RegionService + * @see org.apache.geode.cache.client.Pool + * @see org.apache.geode.cache.client.PoolManager + * @see org.apache.geode.cache.query.CqEvent + * @see org.apache.geode.cache.query.CqListener + * @see org.apache.geode.cache.query.CqQuery + * @see org.apache.geode.cache.query.QueryService */ @SuppressWarnings("unused") public class ContinuousQueryListenerContainer implements BeanFactoryAware, BeanNameAware, @@ -354,7 +353,7 @@ public class ContinuousQueryListenerContainer implements BeanFactoryAware, BeanN * Set the underlying RegionService (GemFire Cache) used for registering Queries. * * @param cache the RegionService (GemFire Cache) used for registering Queries. - * @see com.gemstone.gemfire.cache.RegionService + * @see org.apache.geode.cache.RegionService */ public void setCache(RegionService cache) { setQueryService(cache.getQueryService()); @@ -413,7 +412,7 @@ public class ContinuousQueryListenerContainer implements BeanFactoryAware, BeanN * Set the GemFire QueryService used by this container to create ContinuousQueries (CQ). * * @param service the GemFire QueryService object used by the container to create ContinuousQueries (CQ). - * @see com.gemstone.gemfire.cache.query.QueryService + * @see org.apache.geode.cache.query.QueryService */ public void setQueryService(QueryService service) { this.queryService = service; diff --git a/src/main/java/org/springframework/data/gemfire/listener/adapter/ContinuousQueryListenerAdapter.java b/src/main/java/org/springframework/data/gemfire/listener/adapter/ContinuousQueryListenerAdapter.java index 907d3074..dcb6d40f 100644 --- a/src/main/java/org/springframework/data/gemfire/listener/adapter/ContinuousQueryListenerAdapter.java +++ b/src/main/java/org/springframework/data/gemfire/listener/adapter/ContinuousQueryListenerAdapter.java @@ -24,6 +24,9 @@ import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.Operation; +import org.apache.geode.cache.query.CqEvent; +import org.apache.geode.cache.query.CqQuery; import org.springframework.dao.DataAccessException; import org.springframework.dao.InvalidDataAccessApiUsageException; import org.springframework.data.gemfire.listener.ContinuousQueryListener; @@ -33,16 +36,12 @@ import org.springframework.util.ReflectionUtils; import org.springframework.util.ReflectionUtils.MethodCallback; import org.springframework.util.ReflectionUtils.MethodFilter; -import com.gemstone.gemfire.cache.Operation; -import com.gemstone.gemfire.cache.query.CqEvent; -import com.gemstone.gemfire.cache.query.CqQuery; - /** * Event listener adapter that delegates the handling of messages to target * listener methods via reflection, with flexible event type conversion. * Allows listener methods to operate on event content types, completely * independent from the GemFire API. - * + * *

Modeled as much as possible after the JMS MessageListenerAdapter in * Spring Framework. * @@ -93,7 +92,7 @@ public class ContinuousQueryListenerAdapter implements ContinuousQueryListener { /** * Create a new {@link ContinuousQueryListenerAdapter} for the given delegate. - * + * * @param delegate the delegate object */ public ContinuousQueryListenerAdapter(Object delegate) { @@ -106,7 +105,7 @@ public class ContinuousQueryListenerAdapter implements ContinuousQueryListener { *

If no explicit delegate object has been specified, listener * methods are expected to present on this adapter instance, that is, * on a custom subclass of this adapter, defining listener methods. - * + * * @param delegate delegate object */ public void setDelegate(Object delegate) { @@ -117,7 +116,7 @@ public class ContinuousQueryListenerAdapter implements ContinuousQueryListener { /** * Returns the target object to delegate event listening to. - * + * * @return event listening delegation */ public Object getDelegate() { @@ -150,7 +149,7 @@ public class ContinuousQueryListenerAdapter implements ContinuousQueryListener { *

Delegates the event to the target listener method, with appropriate * conversion of the event argument. In case of an exception, the * {@link #handleListenerException(Throwable)} method will be invoked. - * + * * @param event the incoming GemFire event * @see #handleListenerException */ diff --git a/src/main/java/org/springframework/data/gemfire/mapping/GemfirePropertyValueProvider.java b/src/main/java/org/springframework/data/gemfire/mapping/GemfirePropertyValueProvider.java index 76d022c5..69170035 100644 --- a/src/main/java/org/springframework/data/gemfire/mapping/GemfirePropertyValueProvider.java +++ b/src/main/java/org/springframework/data/gemfire/mapping/GemfirePropertyValueProvider.java @@ -15,14 +15,13 @@ */ package org.springframework.data.gemfire.mapping; +import org.apache.geode.pdx.PdxReader; import org.springframework.data.mapping.model.PropertyValueProvider; import org.springframework.util.Assert; -import com.gemstone.gemfire.pdx.PdxReader; - /** * {@link PropertyValueProvider} to read property values from a {@link PdxReader}. - * + * * @author Oliver Gierke * @author David Turanski */ @@ -32,7 +31,7 @@ class GemfirePropertyValueProvider implements PropertyValueProvider T getPropertyValue(GemfirePersistentProperty property) { return (T) reader.readField(property.getName()); } -} \ No newline at end of file +} diff --git a/src/main/java/org/springframework/data/gemfire/mapping/MappingPdxSerializer.java b/src/main/java/org/springframework/data/gemfire/mapping/MappingPdxSerializer.java index 60e5a2ae..0035b15b 100644 --- a/src/main/java/org/springframework/data/gemfire/mapping/MappingPdxSerializer.java +++ b/src/main/java/org/springframework/data/gemfire/mapping/MappingPdxSerializer.java @@ -18,12 +18,11 @@ package org.springframework.data.gemfire.mapping; import java.util.Collections; import java.util.Map; -import com.gemstone.gemfire.pdx.PdxReader; -import com.gemstone.gemfire.pdx.PdxSerializer; -import com.gemstone.gemfire.pdx.PdxWriter; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.pdx.PdxReader; +import org.apache.geode.pdx.PdxSerializer; +import org.apache.geode.pdx.PdxWriter; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; @@ -55,9 +54,9 @@ import org.springframework.util.Assert; * @see org.springframework.data.mapping.PersistentPropertyAccessor * @see org.springframework.data.mapping.model.PersistentEntityParameterValueProvider * @see org.springframework.data.mapping.model.SpELContext - * @see com.gemstone.gemfire.pdx.PdxReader - * @see com.gemstone.gemfire.pdx.PdxSerializer - * @see com.gemstone.gemfire.pdx.PdxWriter + * @see org.apache.geode.pdx.PdxReader + * @see org.apache.geode.pdx.PdxSerializer + * @see org.apache.geode.pdx.PdxWriter */ public class MappingPdxSerializer implements PdxSerializer, ApplicationContextAware { @@ -285,7 +284,7 @@ public class MappingPdxSerializer implements PdxSerializer, ApplicationContextAw * @return a "custom" PdxSerializer for the given class type or null if no custom PdxSerializer * for the given class type was registered. * @see #getCustomSerializers() - * @see com.gemstone.gemfire.pdx.PdxSerializer + * @see org.apache.geode.pdx.PdxSerializer */ protected PdxSerializer getCustomSerializer(Class type) { return getCustomSerializers().get(type); diff --git a/src/main/java/org/springframework/data/gemfire/mapping/PdxReaderPropertyAccessor.java b/src/main/java/org/springframework/data/gemfire/mapping/PdxReaderPropertyAccessor.java index 4e52e7b9..7f91dc5c 100644 --- a/src/main/java/org/springframework/data/gemfire/mapping/PdxReaderPropertyAccessor.java +++ b/src/main/java/org/springframework/data/gemfire/mapping/PdxReaderPropertyAccessor.java @@ -15,22 +15,21 @@ */ package org.springframework.data.gemfire.mapping; +import org.apache.geode.pdx.PdxReader; import org.springframework.expression.EvaluationContext; import org.springframework.expression.PropertyAccessor; import org.springframework.expression.TypedValue; -import com.gemstone.gemfire.pdx.PdxReader; - /** * {@link PropertyAccessor} to read values from a {@link PdxReader}. - * + * * @author Oliver Gierke */ enum PdxReaderPropertyAccessor implements PropertyAccessor { INSTANCE; - /* + /* * (non-Javadoc) * @see org.springframework.expression.PropertyAccessor#getSpecificTargetClasses() */ @@ -39,7 +38,7 @@ enum PdxReaderPropertyAccessor implements PropertyAccessor { return new Class[] { PdxReader.class }; } - /* + /* * (non-Javadoc) * @see org.springframework.expression.PropertyAccessor#canRead(org.springframework.expression.EvaluationContext, java.lang.Object, java.lang.String) */ @@ -48,7 +47,7 @@ enum PdxReaderPropertyAccessor implements PropertyAccessor { return ((PdxReader) target).hasField(name); } - /* + /* * (non-Javadoc) * @see org.springframework.expression.PropertyAccessor#read(org.springframework.expression.EvaluationContext, java.lang.Object, java.lang.String) */ @@ -58,7 +57,7 @@ enum PdxReaderPropertyAccessor implements PropertyAccessor { return object == null ? TypedValue.NULL : new TypedValue(object); } - /* + /* * (non-Javadoc) * @see org.springframework.expression.PropertyAccessor#canWrite(org.springframework.expression.EvaluationContext, java.lang.Object, java.lang.String) */ @@ -67,7 +66,7 @@ enum PdxReaderPropertyAccessor implements PropertyAccessor { return false; } - /* + /* * (non-Javadoc) * @see org.springframework.expression.PropertyAccessor#write(org.springframework.expression.EvaluationContext, java.lang.Object, java.lang.String, java.lang.Object) */ @@ -75,4 +74,4 @@ enum PdxReaderPropertyAccessor implements PropertyAccessor { public void write(EvaluationContext context, Object target, String name, Object newValue) { throw new UnsupportedOperationException(); } -} \ No newline at end of file +} diff --git a/src/main/java/org/springframework/data/gemfire/mapping/Region.java b/src/main/java/org/springframework/data/gemfire/mapping/Region.java index cedeae80..fd40881a 100644 --- a/src/main/java/org/springframework/data/gemfire/mapping/Region.java +++ b/src/main/java/org/springframework/data/gemfire/mapping/Region.java @@ -24,7 +24,7 @@ import java.lang.annotation.Target; /** * Annotation to define the region an entity will be stored in. - * + * * @author Oliver Gierke */ @Inherited @@ -34,7 +34,7 @@ import java.lang.annotation.Target; public @interface Region { /** - * The name, or fully-qualified bean name of the {@link com.gemstone.gemfire.cache.Region} the entity + * The name, or fully-qualified bean name of the {@link org.apache.geode.cache.Region} the entity * shall be stored in (e.g. "Users", or "/Local/Admin/Users"). * * @return the name or qualified path of the Region the entity shall be persisted in. diff --git a/src/main/java/org/springframework/data/gemfire/mapping/Regions.java b/src/main/java/org/springframework/data/gemfire/mapping/Regions.java index 659c0af5..96da48a0 100644 --- a/src/main/java/org/springframework/data/gemfire/mapping/Regions.java +++ b/src/main/java/org/springframework/data/gemfire/mapping/Regions.java @@ -21,11 +21,10 @@ import java.util.HashMap; import java.util.Iterator; import java.util.Map; +import org.apache.geode.cache.Region; import org.springframework.data.mapping.context.MappingContext; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.Region; - /** * Simple value object to abstract access to regions by name and mapped type. * diff --git a/src/main/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryBean.java b/src/main/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryBean.java index 4a52f876..5c4e4475 100644 --- a/src/main/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryBean.java @@ -22,17 +22,17 @@ import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.HashSet; import java.util.Set; + import javax.enterprise.context.spi.CreationalContext; import javax.enterprise.inject.spi.Bean; import javax.enterprise.inject.spi.BeanManager; +import org.apache.geode.cache.Region; import org.springframework.data.gemfire.mapping.GemfireMappingContext; import org.springframework.data.gemfire.repository.support.GemfireRepositoryFactory; import org.springframework.data.repository.cdi.CdiRepositoryBean; import org.springframework.data.repository.config.CustomRepositoryImplementationDetector; -import com.gemstone.gemfire.cache.Region; - /** * A CDI-based bean that represents a GemFire Repository. * @@ -45,7 +45,7 @@ import com.gemstone.gemfire.cache.Region; * @see org.springframework.data.gemfire.repository.support.GemfireRepositoryFactory * @see org.springframework.data.repository.cdi.CdiRepositoryBean * @see org.springframework.data.repository.config.CustomRepositoryImplementationDetector - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region * @since 1.8.0 */ class GemfireRepositoryBean extends CdiRepositoryBean { diff --git a/src/main/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryExtension.java b/src/main/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryExtension.java index 3978ccff..1ce13308 100644 --- a/src/main/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryExtension.java +++ b/src/main/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryExtension.java @@ -24,20 +24,20 @@ import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; + import javax.enterprise.event.Observes; import javax.enterprise.inject.spi.AfterBeanDiscovery; import javax.enterprise.inject.spi.Bean; import javax.enterprise.inject.spi.BeanManager; import javax.enterprise.inject.spi.ProcessBean; +import org.apache.geode.cache.Region; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.data.gemfire.mapping.GemfireMappingContext; import org.springframework.data.repository.cdi.CdiRepositoryBean; import org.springframework.data.repository.cdi.CdiRepositoryExtensionSupport; -import com.gemstone.gemfire.cache.Region; - /** * The GemfireRepositoryExtension class... * diff --git a/src/main/java/org/springframework/data/gemfire/repository/query/GemfireEntityInformation.java b/src/main/java/org/springframework/data/gemfire/repository/query/GemfireEntityInformation.java index 2b043f95..0fdc90e3 100644 --- a/src/main/java/org/springframework/data/gemfire/repository/query/GemfireEntityInformation.java +++ b/src/main/java/org/springframework/data/gemfire/repository/query/GemfireEntityInformation.java @@ -17,20 +17,19 @@ package org.springframework.data.gemfire.repository.query; import java.io.Serializable; +import org.apache.geode.cache.Region; import org.springframework.data.repository.core.EntityInformation; -import com.gemstone.gemfire.cache.Region; - /** * {@link EntityInformation} to capture Gemfire specific information. - * + * * @author Oliver Gierke */ public interface GemfireEntityInformation extends EntityInformation { /** * Returns the name of the {@link Region} the entity is held in. - * + * * @return the name of the {@link Region} the entity is held in. */ String getRegionName(); diff --git a/src/main/java/org/springframework/data/gemfire/repository/query/QueryBuilder.java b/src/main/java/org/springframework/data/gemfire/repository/query/QueryBuilder.java index df8a0d1a..13e50c30 100644 --- a/src/main/java/org/springframework/data/gemfire/repository/query/QueryBuilder.java +++ b/src/main/java/org/springframework/data/gemfire/repository/query/QueryBuilder.java @@ -61,11 +61,11 @@ class QueryBuilder { /** * Constructs an instance of {@link QueryBuilder} with the given {@link GemfirePersistentEntity} - * and {@link PartTree} that determines the GemFire {@link com.gemstone.gemfire.cache.Region} + * and {@link PartTree} that determines the GemFire {@link org.apache.geode.cache.Region} * to query and whether the query should capture unique results. * * @param entity {@link GemfirePersistentEntity} used to determine the GemFire - * {@link com.gemstone.gemfire.cache.Region} to query. + * {@link org.apache.geode.cache.Region} to query. * @param tree {@link PartTree} containing parts of the OQL Query for determining things * like uniqueness. * @see org.springframework.data.gemfire.mapping.GemfirePersistentEntity diff --git a/src/main/java/org/springframework/data/gemfire/repository/query/QueryString.java b/src/main/java/org/springframework/data/gemfire/repository/query/QueryString.java index 628bfdf2..cb7adb84 100644 --- a/src/main/java/org/springframework/data/gemfire/repository/query/QueryString.java +++ b/src/main/java/org/springframework/data/gemfire/repository/query/QueryString.java @@ -21,8 +21,7 @@ import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; -import com.gemstone.gemfire.cache.Region; - +import org.apache.geode.cache.Region; import org.springframework.data.domain.Sort; import org.springframework.data.gemfire.repository.query.support.OqlKeyword; import org.springframework.util.Assert; @@ -132,7 +131,7 @@ public class QueryString { * @param region the GemFire Region in which to query; must not be {@literal null}. * @return a Query String with the FROM clause in the OQL statement evaluated and replaced with * the fully-qualified Region to query. - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region */ @SuppressWarnings("unused") public QueryString forRegion(Class domainClass, Region region) { diff --git a/src/main/java/org/springframework/data/gemfire/repository/query/StringBasedGemfireRepositoryQuery.java b/src/main/java/org/springframework/data/gemfire/repository/query/StringBasedGemfireRepositoryQuery.java index 523e205e..28491606 100644 --- a/src/main/java/org/springframework/data/gemfire/repository/query/StringBasedGemfireRepositoryQuery.java +++ b/src/main/java/org/springframework/data/gemfire/repository/query/StringBasedGemfireRepositoryQuery.java @@ -18,6 +18,7 @@ package org.springframework.data.gemfire.repository.query; import java.util.Collection; import java.util.Collections; +import org.apache.geode.cache.query.SelectResults; import org.springframework.dao.IncorrectResultSizeDataAccessException; import org.springframework.data.gemfire.GemfireTemplate; import org.springframework.data.repository.query.ParametersParameterAccessor; @@ -26,8 +27,6 @@ import org.springframework.util.Assert; import org.springframework.util.CollectionUtils; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.query.SelectResults; - /** * {@link GemfireRepositoryQuery} using plain {@link String} based OQL queries. *

@@ -183,7 +182,7 @@ public class StringBasedGemfireRepositoryQuery extends GemfireRepositoryQuery { * @see java.util.Arrays#asList(Object[]) * @see java.util.Collection * @see org.springframework.util.CollectionUtils#arrayToList(Object) - * @see com.gemstone.gemfire.cache.query.SelectResults + * @see org.apache.geode.cache.query.SelectResults */ Collection toCollection(final Object source) { if (source instanceof SelectResults) { diff --git a/src/main/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactory.java b/src/main/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactory.java index 10bad37d..6e855e3a 100644 --- a/src/main/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactory.java +++ b/src/main/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactory.java @@ -19,8 +19,7 @@ package org.springframework.data.gemfire.repository.support; import java.io.Serializable; import java.lang.reflect.Method; -import com.gemstone.gemfire.cache.Region; - +import org.apache.geode.cache.Region; import org.springframework.data.gemfire.GemfireTemplate; import org.springframework.data.gemfire.mapping.GemfirePersistentEntity; import org.springframework.data.gemfire.mapping.GemfirePersistentProperty; diff --git a/src/main/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryBean.java b/src/main/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryBean.java index 09ae7927..704891fa 100644 --- a/src/main/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryBean.java @@ -20,6 +20,7 @@ import java.io.Serializable; import java.util.Collection; import java.util.Collections; +import org.apache.geode.cache.Region; import org.springframework.beans.BeansException; import org.springframework.beans.factory.FactoryBean; import org.springframework.context.ApplicationContext; @@ -32,11 +33,9 @@ import org.springframework.data.repository.core.support.RepositoryFactoryBeanSup import org.springframework.data.repository.core.support.RepositoryFactorySupport; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.Region; - /** * {@link FactoryBean} adapter for {@link GemfireRepositoryFactory}. - * + * * @author Oliver Gierke * @author John Blum * @see org.springframework.beans.factory.FactoryBean @@ -49,7 +48,7 @@ import com.gemstone.gemfire.cache.Region; * @see org.springframework.data.repository.Repository * @see org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport * @see org.springframework.data.repository.core.support.RepositoryFactorySupport - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region */ public class GemfireRepositoryFactoryBean, S, ID extends Serializable> extends RepositoryFactoryBeanSupport implements ApplicationContextAware { @@ -57,7 +56,7 @@ public class GemfireRepositoryFactoryBean, S, ID ext private Iterable> regions; private MappingContext, GemfirePersistentProperty> mappingContext; - + /** * Sets a reference to the Spring {@link ApplicationContext} in which this object runs. * @@ -71,10 +70,10 @@ public class GemfireRepositoryFactoryBean, S, ID ext Collection regions = applicationContext.getBeansOfType(Region.class).values(); this.regions = (Iterable) Collections.unmodifiableCollection(regions); } - + /** * Configures the {@link MappingContext} used to perform domain object type to store mappings. - * + * * @param mappingContext the {@link MappingContext} to set. * @see org.springframework.data.gemfire.mapping.GemfireMappingContext * @see org.springframework.data.mapping.context.MappingContext @@ -117,8 +116,8 @@ public class GemfireRepositoryFactoryBean, S, ID ext protected RepositoryFactorySupport createRepositoryFactory() { return new GemfireRepositoryFactory(getRegions(), getGemfireMappingContext()); } - - /* + + /* * (non-Javadoc) * @see org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport#afterPropertiesSet() */ diff --git a/src/main/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepository.java b/src/main/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepository.java index 3764baff..6659fae8 100644 --- a/src/main/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepository.java +++ b/src/main/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepository.java @@ -22,6 +22,11 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheTransactionManager; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.query.SelectResults; import org.springframework.data.domain.Sort; import org.springframework.data.gemfire.GemfireCallback; import org.springframework.data.gemfire.GemfireTemplate; @@ -31,12 +36,6 @@ import org.springframework.data.gemfire.repository.query.QueryString; import org.springframework.data.repository.core.EntityInformation; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheTransactionManager; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.query.SelectResults; - /** * Basic Repository implementation for GemFire. * @@ -46,8 +45,8 @@ import com.gemstone.gemfire.cache.query.SelectResults; * @see java.io.Serializable * @see org.springframework.data.gemfire.GemfireTemplate * @see org.springframework.data.gemfire.repository.GemfireRepository - * @see com.gemstone.gemfire.cache.Cache - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Cache + * @see org.apache.geode.cache.Region */ public class SimpleGemfireRepository implements GemfireRepository { @@ -222,8 +221,8 @@ public class SimpleGemfireRepository implements Gemf /* * (non-Javadoc) * - * @see com.gemstone.gemfire.cache.Region#getAttributes() - * @see com.gemstone.gemfire.cache.RegionAttributes#getDataPolicy() + * @see org.apache.geode.cache.Region#getAttributes() + * @see org.apache.geode.cache.RegionAttributes#getDataPolicy() */ boolean isPartitioned(final Region region) { return (region != null && region.getAttributes() != null @@ -233,7 +232,7 @@ public class SimpleGemfireRepository implements Gemf /* * (non-Javadoc) * - * @see com.gemstone.gemfire.cache.DataPolicy#withPartitioning() + * @see org.apache.geode.cache.DataPolicy#withPartitioning() */ boolean isPartitioned(final DataPolicy dataPolicy) { return (dataPolicy != null && dataPolicy.withPartitioning()); @@ -242,8 +241,8 @@ public class SimpleGemfireRepository implements Gemf /* * (non-Javadoc) * - * @see com.gemstone.gemfire.cache.Region#getRegionService() - * @see com.gemstone.gemfire.cache.Cache#getCacheTransactionManager() + * @see org.apache.geode.cache.Region#getRegionService() + * @see org.apache.geode.cache.Cache#getCacheTransactionManager() */ boolean isTransactionPresent(final Region region) { return (region.getRegionService() instanceof Cache @@ -253,7 +252,7 @@ public class SimpleGemfireRepository implements Gemf /* * (non-Javadoc) * - * @see com.gemstone.gemfire.cache.CacheTransactionManager#exists() + * @see org.apache.geode.cache.CacheTransactionManager#exists() */ boolean isTransactionPresent(final CacheTransactionManager cacheTransactionManager) { return (cacheTransactionManager != null && cacheTransactionManager.exists()); diff --git a/src/main/java/org/springframework/data/gemfire/serialization/AsmInstantiatorGenerator.java b/src/main/java/org/springframework/data/gemfire/serialization/AsmInstantiatorGenerator.java index 0eeaa4a2..d1f108f7 100644 --- a/src/main/java/org/springframework/data/gemfire/serialization/AsmInstantiatorGenerator.java +++ b/src/main/java/org/springframework/data/gemfire/serialization/AsmInstantiatorGenerator.java @@ -25,6 +25,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.atomic.AtomicLong; +import org.apache.geode.DataSerializable; +import org.apache.geode.Instantiator; import org.springframework.asm.ClassWriter; import org.springframework.asm.FieldVisitor; import org.springframework.asm.MethodVisitor; @@ -33,14 +35,11 @@ import org.springframework.asm.Type; import org.springframework.beans.BeanUtils; import org.springframework.util.Assert; -import com.gemstone.gemfire.DataSerializable; -import com.gemstone.gemfire.Instantiator; - /** * ASM based {@link InstantiatorGenerator} implementation. This class relies on ASM 2.x package * repacked by Spring framework to minimize the number of dependencies and avoid any versioning * confusion. - * + * * @author Costin Leau */ public class AsmInstantiatorGenerator implements InstantiatorGenerator, Opcodes { @@ -109,7 +108,7 @@ public class AsmInstantiatorGenerator implements InstantiatorGenerator, Opcodes /** * Returns an instance of the custom instantiator created for the given class. - * + * * @param clazz * @param classId * @return @@ -123,7 +122,7 @@ public class AsmInstantiatorGenerator implements InstantiatorGenerator, Opcodes /** * Does basic sanity checks to make sure the constructor can be properly invoked by our generated * class. - * + * * @param clazz */ private void validateClass(Class clazz) { @@ -140,12 +139,12 @@ public class AsmInstantiatorGenerator implements InstantiatorGenerator, Opcodes /** * Generates a new Instantiator class for the given custom class. - * + * * The generated class has the following definition: - * + * *

 	 * package org.springframework.data.gemfire.serialization;
-	 * 
+	 *
 	 * public class <T>Instantiator$SyntheticCounter extends Instantiator implements Serializable {
 	 *
 	 *  private static final Class<T> clazz = T.class;
@@ -154,7 +153,7 @@ public class AsmInstantiatorGenerator implements InstantiatorGenerator, Opcodes
 	 *  public DateInstantiator() {
 	 *     this(clazz, classId);
 	 *  }
-	 *	
+	 *
 	 *  public DateInstantiator(Class c, int classId) {
 	 *     super(c, classId);
 	 *  }
@@ -164,7 +163,7 @@ public class AsmInstantiatorGenerator implements InstantiatorGenerator, Opcodes
 	 *  }
 	 * }
 	 * 
- * + * * @param clazz * @return */ @@ -250,4 +249,4 @@ public class AsmInstantiatorGenerator implements InstantiatorGenerator, Opcodes return cw.toByteArray(); } -} \ No newline at end of file +} diff --git a/src/main/java/org/springframework/data/gemfire/serialization/EnumSerializer.java b/src/main/java/org/springframework/data/gemfire/serialization/EnumSerializer.java index f0ea08f8..b2055394 100644 --- a/src/main/java/org/springframework/data/gemfire/serialization/EnumSerializer.java +++ b/src/main/java/org/springframework/data/gemfire/serialization/EnumSerializer.java @@ -23,13 +23,13 @@ import java.io.Serializable; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; -import com.gemstone.gemfire.DataSerializer; -import com.gemstone.gemfire.internal.InternalDataSerializer; +import org.apache.geode.DataSerializer; +import org.apache.geode.internal.InternalDataSerializer; /** * Generic Serializer for JDK Enums. The class needs to be registered only once - custom enums * will be then understood by the converter by calling {@link #addEnum(Class)}. - * + * * @author Costin Leau */ public class EnumSerializer extends DataSerializer implements Serializable { @@ -92,10 +92,10 @@ public class EnumSerializer extends DataSerializer implements Serializable { /** * Sets the id for this serializer. Default is 1024; - * + * * @param id the id to set */ public void setId(int id) { this.id = id; } -} \ No newline at end of file +} diff --git a/src/main/java/org/springframework/data/gemfire/serialization/InstantiatorFactoryBean.java b/src/main/java/org/springframework/data/gemfire/serialization/InstantiatorFactoryBean.java index 55dda504..34057906 100644 --- a/src/main/java/org/springframework/data/gemfire/serialization/InstantiatorFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/serialization/InstantiatorFactoryBean.java @@ -21,21 +21,20 @@ import java.util.Collection; import java.util.Map; import java.util.Map.Entry; +import org.apache.geode.DataSerializable; +import org.apache.geode.Instantiator; import org.springframework.beans.factory.BeanClassLoaderAware; import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.InitializingBean; import org.springframework.util.Assert; -import com.gemstone.gemfire.DataSerializable; -import com.gemstone.gemfire.Instantiator; - /** * {@link FactoryBean} that eases registration of custom {@link Instantiator} through - * {@link InstantiatorGenerator}s, inside the Spring container. - * + * {@link InstantiatorGenerator}s, inside the Spring container. + * * By default, the returns {@link Instantiator}s (created through {@link AsmInstantiatorGenerator} if a custom * generator is not specified) are registered at startup with GemFire. - * + * * @author Costin Leau */ public class InstantiatorFactoryBean implements BeanClassLoaderAware, FactoryBean>, @@ -91,7 +90,7 @@ public class InstantiatorFactoryBean implements BeanClassLoaderAware, FactoryBea /** * Sets the custom types and associated user ids for generating the {@link Instantiator}s. - * + * * @param types map containing as keys the custom types and values the associated user ids. */ public void setCustomTypes(Map, Integer> types) { @@ -100,7 +99,7 @@ public class InstantiatorFactoryBean implements BeanClassLoaderAware, FactoryBea /** * Sets the generator to use for creating {@link Instantiator}s. - * + * * @param generator the generator to set */ public void setGenerator(InstantiatorGenerator generator) { @@ -110,7 +109,7 @@ public class InstantiatorFactoryBean implements BeanClassLoaderAware, FactoryBea /** * Sets the auto-registration of this {@link Instantiator} during the container startup. * Default is true, meaning the registration will occur once this factory is initialized. - * + * * @see Instantiator#register(Instantiator) * @param autoRegister the autoRegister to set */ @@ -122,11 +121,11 @@ public class InstantiatorFactoryBean implements BeanClassLoaderAware, FactoryBea /** * Sets the distribution of the region of this {@link Instantiator} during the container startup. * Default is false, meaning the registration will not be distributed to other clients. - * + * * @see Instantiator#register(Instantiator, boolean) * @param distribute whether the registration is distributable or not */ public void setDistribute(boolean distribute) { this.distribute = distribute; } -} \ No newline at end of file +} diff --git a/src/main/java/org/springframework/data/gemfire/serialization/InstantiatorGenerator.java b/src/main/java/org/springframework/data/gemfire/serialization/InstantiatorGenerator.java index 21aefb99..28b75988 100644 --- a/src/main/java/org/springframework/data/gemfire/serialization/InstantiatorGenerator.java +++ b/src/main/java/org/springframework/data/gemfire/serialization/InstantiatorGenerator.java @@ -16,13 +16,13 @@ package org.springframework.data.gemfire.serialization; -import com.gemstone.gemfire.DataSerializable; -import com.gemstone.gemfire.Instantiator; +import org.apache.geode.DataSerializable; +import org.apache.geode.Instantiator; /** * Factory that generates {@link Instantiator} classes to improve instantiation of * custom types. - * + * * @author Costin Leau */ public interface InstantiatorGenerator { @@ -30,7 +30,7 @@ public interface InstantiatorGenerator { /** * Returns a (potentially new) Instantiator that optimizes the instantiation of the given types. * - * @param clazz class produced by the instantiator + * @param clazz class produced by the instantiator * @param classId instantiator class id * @return an instantiator optimized for the given type. */ diff --git a/src/main/java/org/springframework/data/gemfire/serialization/WiringInstantiator.java b/src/main/java/org/springframework/data/gemfire/serialization/WiringInstantiator.java index 71c1d92b..d2525d6f 100644 --- a/src/main/java/org/springframework/data/gemfire/serialization/WiringInstantiator.java +++ b/src/main/java/org/springframework/data/gemfire/serialization/WiringInstantiator.java @@ -16,6 +16,8 @@ package org.springframework.data.gemfire.serialization; +import org.apache.geode.DataSerializable; +import org.apache.geode.Instantiator; import org.springframework.beans.BeanUtils; import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanFactory; @@ -24,23 +26,20 @@ import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.wiring.BeanConfigurerSupport; -import com.gemstone.gemfire.DataSerializable; -import com.gemstone.gemfire.Instantiator; - /** * Instantiator that performs instance wiring using the Spring IoC container, allowing common properties * to be injected before the object is hydrated/deserialized. The newly created instances can be configured * either by relying on an existing bean definition (which acts as a template) or by providing an embedded * configuration through annotations. - * + * * Can reuse existing instantiators to optimize instance creation. If one is not provided, it will fallback * to reflection invocation. - * + * * By default, on initialization, the class will register itself as an {@link Instantiator} through - * {@link #register(Instantiator)}. This behaviour can be disabled through {@link #setAutoRegister(boolean)}. + * {@link #register(Instantiator)}. This behaviour can be disabled through {@link #setAutoRegister(boolean)}. * Additionally, the instantiator registration is not distributed by default, to allow the application context * to be reused. This can be changed through {@link #setDistribute(boolean)}. - * + * * @see org.springframework.beans.factory.wiring.BeanConfigurerSupport * @see org.springframework.beans.factory.wiring.BeanWiringInfoResolver * @see org.springframework.beans.factory.annotation.Autowired @@ -108,8 +107,8 @@ public class WiringInstantiator extends Instantiator implements BeanFactoryAware /** * Sets the manager responsible for configuring the newly created instances. - * The given configurer needs to be configured and initialized before-hand. - * + * The given configurer needs to be configured and initialized before-hand. + * * @param configurer the configurer to set */ public void setConfigurer(BeanConfigurerSupport configurer) { @@ -119,7 +118,7 @@ public class WiringInstantiator extends Instantiator implements BeanFactoryAware /** * Sets the auto-registration of this {@link Instantiator} during the container startup. * Default is true, meaning the registration will occur once this factory is initialized. - * + * * @see #register(Instantiator) * @param autoRegister the autoRegister to set */ @@ -130,7 +129,7 @@ public class WiringInstantiator extends Instantiator implements BeanFactoryAware /** * Sets the distribution of the region of this {@link Instantiator} during the container startup. * Default is false, meaning the registration will not be distributed to other clients. - * + * * @see #register(Instantiator, boolean) * @param distribute whether the registration is distributable or not */ diff --git a/src/main/java/org/springframework/data/gemfire/server/CacheServerFactoryBean.java b/src/main/java/org/springframework/data/gemfire/server/CacheServerFactoryBean.java index 261ccbf8..53f638e0 100644 --- a/src/main/java/org/springframework/data/gemfire/server/CacheServerFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/server/CacheServerFactoryBean.java @@ -19,12 +19,11 @@ import java.io.IOException; import java.util.Collections; import java.util.Set; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.InterestRegistrationListener; -import com.gemstone.gemfire.cache.server.CacheServer; -import com.gemstone.gemfire.cache.server.ClientSubscriptionConfig; -import com.gemstone.gemfire.cache.server.ServerLoadProbe; - +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.InterestRegistrationListener; +import org.apache.geode.cache.server.CacheServer; +import org.apache.geode.cache.server.ClientSubscriptionConfig; +import org.apache.geode.cache.server.ServerLoadProbe; import org.springframework.beans.factory.BeanInitializationException; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.FactoryBean; diff --git a/src/main/java/org/springframework/data/gemfire/server/SubscriptionEvictionPolicy.java b/src/main/java/org/springframework/data/gemfire/server/SubscriptionEvictionPolicy.java index 236823a7..eee097a9 100644 --- a/src/main/java/org/springframework/data/gemfire/server/SubscriptionEvictionPolicy.java +++ b/src/main/java/org/springframework/data/gemfire/server/SubscriptionEvictionPolicy.java @@ -16,12 +16,12 @@ package org.springframework.data.gemfire.server; -import com.gemstone.gemfire.cache.server.CacheServer; -import com.gemstone.gemfire.cache.server.ClientSubscriptionConfig; +import org.apache.geode.cache.server.CacheServer; +import org.apache.geode.cache.server.ClientSubscriptionConfig; /** * Enumeration of the various client subscription policies for {@link CacheServer}. - * + * * @author Costin Leau * @author John Blum * @since 1.1.0 @@ -62,7 +62,7 @@ public enum SubscriptionEvictionPolicy { * @param config a GemFire ClientSubscriptionConfig object holding the configuration setting and meta-data * about the client's subscription configuration. * @return the ClientSubscriptionConfig object. - * @see com.gemstone.gemfire.cache.server.ClientSubscriptionConfig#setEvictionPolicy(String) + * @see org.apache.geode.cache.server.ClientSubscriptionConfig#setEvictionPolicy(String) */ public ClientSubscriptionConfig setEvictionPolicy(final ClientSubscriptionConfig config) { if (config != null) { diff --git a/src/main/java/org/springframework/data/gemfire/server/package-info.java b/src/main/java/org/springframework/data/gemfire/server/package-info.java index 457f4f8a..1002d5b0 100644 --- a/src/main/java/org/springframework/data/gemfire/server/package-info.java +++ b/src/main/java/org/springframework/data/gemfire/server/package-info.java @@ -1,5 +1,5 @@ /** - * Support package for GemFire {@link com.gemstone.gemfire.cache.server.CacheServer}. + * Support package for GemFire {@link org.apache.geode.cache.server.CacheServer}. * */ -package org.springframework.data.gemfire.server; \ No newline at end of file +package org.springframework.data.gemfire.server; diff --git a/src/main/java/org/springframework/data/gemfire/snapshot/SnapshotServiceFactoryBean.java b/src/main/java/org/springframework/data/gemfire/snapshot/SnapshotServiceFactoryBean.java index c2c3a92f..eab53042 100644 --- a/src/main/java/org/springframework/data/gemfire/snapshot/SnapshotServiceFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/snapshot/SnapshotServiceFactoryBean.java @@ -16,7 +16,7 @@ package org.springframework.data.gemfire.snapshot; -import static com.gemstone.gemfire.cache.snapshot.SnapshotOptions.SnapshotFormat; +import static org.apache.geode.cache.snapshot.SnapshotOptions.SnapshotFormat; import static org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBean.SnapshotServiceAdapter; import java.io.Closeable; @@ -34,6 +34,12 @@ import java.util.zip.ZipFile; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.snapshot.CacheSnapshotService; +import org.apache.geode.cache.snapshot.RegionSnapshotService; +import org.apache.geode.cache.snapshot.SnapshotFilter; +import org.apache.geode.cache.snapshot.SnapshotOptions; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.InitializingBean; @@ -46,13 +52,6 @@ import org.springframework.util.FileCopyUtils; import org.springframework.util.ObjectUtils; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.snapshot.CacheSnapshotService; -import com.gemstone.gemfire.cache.snapshot.RegionSnapshotService; -import com.gemstone.gemfire.cache.snapshot.SnapshotFilter; -import com.gemstone.gemfire.cache.snapshot.SnapshotOptions; - /** * The SnapshotServiceFactoryBean class is a Spring FactoryBean used to configure and create an instance * of an appropriate GemFire Snapshot Service to perform data import and exports. A CacheSnapshotService is created @@ -64,8 +63,8 @@ import com.gemstone.gemfire.cache.snapshot.SnapshotOptions; * @see org.springframework.beans.factory.InitializingBean * @see org.springframework.context.ApplicationListener * @see org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBean.SnapshotServiceAdapter - * @see com.gemstone.gemfire.cache.snapshot.CacheSnapshotService - * @see com.gemstone.gemfire.cache.snapshot.RegionSnapshotService + * @see org.apache.geode.cache.snapshot.CacheSnapshotService + * @see org.apache.geode.cache.snapshot.RegionSnapshotService * @since 1.7.0 */ @SuppressWarnings("unused") @@ -106,7 +105,7 @@ public class SnapshotServiceFactoryBean implements FactoryBean implements FactoryBean implements FactoryBean region) { @@ -184,7 +183,7 @@ public class SnapshotServiceFactoryBean implements FactoryBean getRegion() { @@ -291,7 +290,7 @@ public class SnapshotServiceFactoryBean implements FactoryBean wrap(CacheSnapshotService cacheSnapshotService) { return new CacheSnapshotServiceAdapter(cacheSnapshotService); @@ -305,7 +304,7 @@ public class SnapshotServiceFactoryBean implements FactoryBean wrap(RegionSnapshotService regionSnapshotService) { return new RegionSnapshotServiceAdapter(regionSnapshotService); diff --git a/src/main/java/org/springframework/data/gemfire/snapshot/event/SnapshotApplicationEvent.java b/src/main/java/org/springframework/data/gemfire/snapshot/event/SnapshotApplicationEvent.java index 7bfd8e85..d7b7e147 100644 --- a/src/main/java/org/springframework/data/gemfire/snapshot/event/SnapshotApplicationEvent.java +++ b/src/main/java/org/springframework/data/gemfire/snapshot/event/SnapshotApplicationEvent.java @@ -18,18 +18,17 @@ package org.springframework.data.gemfire.snapshot.event; import static org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBean.SnapshotMetadata; +import org.apache.geode.cache.Region; import org.springframework.context.ApplicationEvent; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.Region; - /** * The SnapshotApplicationEvent class is a Spring ApplicationEvent signaling a GemFire Cache or Region snapshot event, * used to trigger a snapshot to occur. * * @author John Blum * @see org.springframework.context.ApplicationEvent - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region * @since 1.7.0 */ @SuppressWarnings("unused") @@ -70,7 +69,7 @@ public abstract class SnapshotApplicationEvent extends ApplicationEvent { * Gets the absolute pathname of the Region in GemFire for which the snapshot will be taken. * * @return a String indicating the absolute pathname of the Region. - * @see com.gemstone.gemfire.cache.Region#getFullPath() + * @see org.apache.geode.cache.Region#getFullPath() */ public String getRegionPath() { return regionPath; @@ -111,7 +110,7 @@ public abstract class SnapshotApplicationEvent extends ApplicationEvent { * * @param region the Region being evaluated as the subject of this event. * @return a boolean value indicating whether this event has been targeted for the specified Region - * @see com.gemstone.gemfire.cache.Region#getFullPath() + * @see org.apache.geode.cache.Region#getFullPath() * @see #getRegionPath() * @see #matches(String) */ diff --git a/src/main/java/org/springframework/data/gemfire/snapshot/filter/ComposableSnapshotFilter.java b/src/main/java/org/springframework/data/gemfire/snapshot/filter/ComposableSnapshotFilter.java index 67a85c3e..0819beab 100644 --- a/src/main/java/org/springframework/data/gemfire/snapshot/filter/ComposableSnapshotFilter.java +++ b/src/main/java/org/springframework/data/gemfire/snapshot/filter/ComposableSnapshotFilter.java @@ -18,14 +18,14 @@ package org.springframework.data.gemfire.snapshot.filter; import java.util.Map; -import com.gemstone.gemfire.cache.snapshot.SnapshotFilter; +import org.apache.geode.cache.snapshot.SnapshotFilter; /** * The ComposableSnapshotFilter class is a GemFire SnapshotFilter implementation of the Composition design pattern * allowing 2 or more SnapshotFilters to be combined by logical AND and OR operators acting as a single SnapshotFilter. * * @author John Blum - * @see com.gemstone.gemfire.cache.snapshot.SnapshotFilter + * @see org.apache.geode.cache.snapshot.SnapshotFilter * @since 1.7.0 */ @SuppressWarnings("unused") @@ -66,7 +66,7 @@ public class ComposableSnapshotFilter implements SnapshotFilter { * @param rightOperand the operator used to combine the resulting boolean expressions * from the evaluation of the operands. * @see ComposableSnapshotFilter.Operator - * @see com.gemstone.gemfire.cache.snapshot.SnapshotFilter + * @see org.apache.geode.cache.snapshot.SnapshotFilter */ private ComposableSnapshotFilter(SnapshotFilter leftOperand, Operator operator, SnapshotFilter rightOperand) { this.leftOperand = leftOperand; @@ -90,7 +90,7 @@ public class ComposableSnapshotFilter implements SnapshotFilter { * using the Operator. * @return a SnapshotFilter implementation composed of the SnapshotFilters using the specified Operator. * @see ComposableSnapshotFilter.Operator - * @see com.gemstone.gemfire.cache.snapshot.SnapshotFilter + * @see org.apache.geode.cache.snapshot.SnapshotFilter */ protected static SnapshotFilter compose(Operator operator, SnapshotFilter... snapshotFilters) { SnapshotFilter composedSnapshotFilter = null; @@ -112,7 +112,7 @@ public class ComposableSnapshotFilter implements SnapshotFilter { * using the AND Operator. * @return a SnapshotFilter implementation composed of the SnapshotFilters using the AND Operator. * @see ComposableSnapshotFilter.Operator#AND - * @see com.gemstone.gemfire.cache.snapshot.SnapshotFilter + * @see org.apache.geode.cache.snapshot.SnapshotFilter */ public static SnapshotFilter and(SnapshotFilter... snapshotFilters) { return compose(Operator.AND, snapshotFilters); @@ -127,7 +127,7 @@ public class ComposableSnapshotFilter implements SnapshotFilter { * using the OR Operator. * @return a SnapshotFilter implementation composed of the SnapshotFilters using the OR Operator. * @see ComposableSnapshotFilter.Operator#OR - * @see com.gemstone.gemfire.cache.snapshot.SnapshotFilter + * @see org.apache.geode.cache.snapshot.SnapshotFilter */ public static SnapshotFilter or(SnapshotFilter... snapshotFilters) { return compose(Operator.OR, snapshotFilters); @@ -139,7 +139,7 @@ public class ComposableSnapshotFilter implements SnapshotFilter { * @param entry the Map.Entry to evaluate. * @return a boolean value indicating whether this composed SnapshotFilter accepts the Map Entry. * @see ComposableSnapshotFilter.Operator - * @see com.gemstone.gemfire.cache.snapshot.SnapshotFilter#accept(Map.Entry) + * @see org.apache.geode.cache.snapshot.SnapshotFilter#accept(Map.Entry) * @see java.util.Map.Entry */ @Override diff --git a/src/main/java/org/springframework/data/gemfire/support/CallableCacheLoaderAdapter.java b/src/main/java/org/springframework/data/gemfire/support/CallableCacheLoaderAdapter.java index 324236eb..0e184fae 100644 --- a/src/main/java/org/springframework/data/gemfire/support/CallableCacheLoaderAdapter.java +++ b/src/main/java/org/springframework/data/gemfire/support/CallableCacheLoaderAdapter.java @@ -19,14 +19,13 @@ package org.springframework.data.gemfire.support; import java.util.concurrent.Callable; +import org.apache.geode.cache.CacheLoader; +import org.apache.geode.cache.CacheLoaderException; +import org.apache.geode.cache.LoaderHelper; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.TimeoutException; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.CacheLoader; -import com.gemstone.gemfire.cache.CacheLoaderException; -import com.gemstone.gemfire.cache.LoaderHelper; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.TimeoutException; - /** * The CallableCacheLoaderAdapter class is a {@link Callable} and GemFire {@link CacheLoader} implementation that * adapts the {@link Callable} interface into an instance of the {@link CacheLoader} interface. This class is useful @@ -35,9 +34,9 @@ import com.gemstone.gemfire.cache.TimeoutException; * * @author John Blum * @see java.util.concurrent.Callable - * @see com.gemstone.gemfire.cache.CacheLoader - * @see com.gemstone.gemfire.cache.LoaderHelper - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.CacheLoader + * @see org.apache.geode.cache.LoaderHelper + * @see org.apache.geode.cache.Region * @since 1.0.0 */ @SuppressWarnings("unused") @@ -56,7 +55,7 @@ public class CallableCacheLoaderAdapter implements Callable, CacheLoade * * @param delegate the {@link CacheLoader} delegated to by this adapter. * @see #CallableCacheLoaderAdapter(CacheLoader, Object, Region, Object) - * @see com.gemstone.gemfire.cache.CacheLoader + * @see org.apache.geode.cache.CacheLoader */ public CallableCacheLoaderAdapter(CacheLoader delegate) { this(delegate, null, null, null); @@ -71,8 +70,8 @@ public class CallableCacheLoaderAdapter implements Callable, CacheLoade * @param key the key for which the value will be loaded. * @param region the {@link Region} in which the entry (key/value) belongs. * @see #CallableCacheLoaderAdapter(CacheLoader, Object, Region, Object) - * @see com.gemstone.gemfire.cache.CacheLoader - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.CacheLoader + * @see org.apache.geode.cache.Region */ public CallableCacheLoaderAdapter(CacheLoader delegate, K key, Region region) { this(delegate, key, region, null); @@ -89,8 +88,8 @@ public class CallableCacheLoaderAdapter implements Callable, CacheLoade * @param region the {@link Region} in which the entry (key/value) belongs. * @param argument the Object argument used with the {@link CacheLoader} delegate. * @see #CallableCacheLoaderAdapter(CacheLoader, Object, Region, Object) - * @see com.gemstone.gemfire.cache.CacheLoader - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.CacheLoader + * @see org.apache.geode.cache.Region */ public CallableCacheLoaderAdapter(CacheLoader delegate, K key, Region region, Object argument) { Assert.notNull(delegate, "CacheLoader must not be null"); @@ -113,7 +112,7 @@ public class CallableCacheLoaderAdapter implements Callable, CacheLoade * The {@link CacheLoader} delegate used to actually load the cache value for the specified key. * * @return a reference to the actual {@link CacheLoader} used when loading the cache value for the specified key. - * @see com.gemstone.gemfire.cache.CacheLoader + * @see org.apache.geode.cache.CacheLoader */ protected CacheLoader getCacheLoader() { return cacheLoader; @@ -132,7 +131,7 @@ public class CallableCacheLoaderAdapter implements Callable, CacheLoade * Returns the Region to which the entry (key/value) belongs. * * @return the Region to which the entry belongs. - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region */ protected Region getRegion() { return region; @@ -190,8 +189,8 @@ public class CallableCacheLoaderAdapter implements Callable, CacheLoade * @throws CacheLoaderException if an error occurs during the load operation. This exception, or any other * Exception thrown by this method will be propagated back to the application from the * {@link Region#get(Object)} method. - * @see com.gemstone.gemfire.cache.CacheLoader#load(LoaderHelper) - * @see com.gemstone.gemfire.cache.LoaderHelper + * @see org.apache.geode.cache.CacheLoader#load(LoaderHelper) + * @see org.apache.geode.cache.LoaderHelper * @see #getCacheLoader() */ public V load(LoaderHelper loaderHelper) throws CacheLoaderException { diff --git a/src/main/java/org/springframework/data/gemfire/support/GemfireDaoSupport.java b/src/main/java/org/springframework/data/gemfire/support/GemfireDaoSupport.java index 1c5ee859..df0aeae9 100644 --- a/src/main/java/org/springframework/data/gemfire/support/GemfireDaoSupport.java +++ b/src/main/java/org/springframework/data/gemfire/support/GemfireDaoSupport.java @@ -16,24 +16,23 @@ package org.springframework.data.gemfire.support; +import org.apache.geode.cache.Region; import org.springframework.dao.support.DaoSupport; import org.springframework.data.gemfire.GemfireOperations; import org.springframework.data.gemfire.GemfireTemplate; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.Region; - /** * Convenient super class for GemFire data access objects. Intended for - * GemfireTemplate usage. - * - *

Requires a Region to be set, providing a GemfireTemplate based on it to subclasses. + * GemfireTemplate usage. + * + *

Requires a Region to be set, providing a GemfireTemplate based on it to subclasses. * Can alternatively be initialized directly via a GemfireTemplate, to reuse the latter's * settings. * - *

This class will create its own GemfireTemplate if an Region reference is passed in. + *

This class will create its own GemfireTemplate if an Region reference is passed in. * A custom GemfireTemplate instance can be used through overriding createGemfireTemplate. - * + * * @author Costin Leau * @author John Blum * @see org.springframework.dao.support.DaoSupport @@ -47,8 +46,8 @@ public class GemfireDaoSupport extends DaoSupport { * an instance of the GemfireTemplate for the given Region. * * @param region the GemFire Cache Region upon which this DAO operates. - * @see com.gemstone.gemfire.cache.Region - * @see #createGemfireTemplate(com.gemstone.gemfire.cache.Region) + * @see org.apache.geode.cache.Region + * @see #createGemfireTemplate(org.apache.geode.cache.Region) */ public void setRegion(Region region) { this.gemfireTemplate = createGemfireTemplate(region); @@ -84,7 +83,7 @@ public class GemfireDaoSupport extends DaoSupport { * * @param region the GemFire Cache Region for which the GemfireTemplate is created. * @return a new GemfireTemplate instance configured with the given GemFire Cache Region. - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region * @see #setRegion */ protected GemfireOperations createGemfireTemplate(Region region) { diff --git a/src/main/java/org/springframework/data/gemfire/support/JSONRegionAdvice.java b/src/main/java/org/springframework/data/gemfire/support/JSONRegionAdvice.java index 4c64db39..3944cace 100644 --- a/src/main/java/org/springframework/data/gemfire/support/JSONRegionAdvice.java +++ b/src/main/java/org/springframework/data/gemfire/support/JSONRegionAdvice.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -21,21 +21,21 @@ import java.util.List; import java.util.Map; import java.util.Map.Entry; +import com.fasterxml.jackson.databind.ObjectMapper; + import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.query.SelectResults; +import org.apache.geode.cache.query.internal.ResultsBag; +import org.apache.geode.pdx.JSONFormatter; +import org.apache.geode.pdx.PdxInstance; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.springframework.data.gemfire.GemfireTemplate; import org.springframework.util.CollectionUtils; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.query.SelectResults; -import com.gemstone.gemfire.cache.query.internal.ResultsBag; -import com.gemstone.gemfire.pdx.JSONFormatter; -import com.gemstone.gemfire.pdx.PdxInstance; - /** * @author David Turanski */ @@ -91,10 +91,10 @@ public class JSONRegionAdvice { this.prettyPrint = prettyPrint; } - @Around("execution(* com.gemstone.gemfire.cache.Region.put(..)) || " - + "execution(* com.gemstone.gemfire.cache.Region.create(..)) ||" - + "execution(* com.gemstone.gemfire.cache.Region.putIfAbsent(..)) ||" - + "execution(* com.gemstone.gemfire.cache.Region.replace(..))") + @Around("execution(* org.apache.geode.cache.Region.put(..)) || " + + "execution(* org.apache.geode.cache.Region.create(..)) ||" + + "execution(* org.apache.geode.cache.Region.putIfAbsent(..)) ||" + + "execution(* org.apache.geode.cache.Region.replace(..))") public Object put(ProceedingJoinPoint pjp) { boolean JSONRegion = isIncludedSONRegion(pjp.getTarget()); Object returnValue = null; @@ -119,7 +119,7 @@ public class JSONRegionAdvice { return returnValue; } - @Around("execution(* com.gemstone.gemfire.cache.Region.putAll(..))") + @Around("execution(* org.apache.geode.cache.Region.putAll(..))") public Object putAll(ProceedingJoinPoint pjp) { boolean JSONRegion = isIncludedSONRegion(pjp.getTarget()); Object returnValue = null; @@ -146,9 +146,9 @@ public class JSONRegionAdvice { return returnValue; } - @Around("execution(* com.gemstone.gemfire.cache.Region.get(..)) " - + "|| execution(* com.gemstone.gemfire.cache.Region.selectValue(..))" - + "|| execution(* com.gemstone.gemfire.cache.Region.remove(..))") + @Around("execution(* org.apache.geode.cache.Region.get(..)) " + + "|| execution(* org.apache.geode.cache.Region.selectValue(..))" + + "|| execution(* org.apache.geode.cache.Region.remove(..))") public Object get(ProceedingJoinPoint pjp) { Object returnValue = null; @@ -170,7 +170,7 @@ public class JSONRegionAdvice { } @SuppressWarnings("unchecked") - @Around("execution(* com.gemstone.gemfire.cache.Region.getAll(..))") + @Around("execution(* org.apache.geode.cache.Region.getAll(..))") public Map getAll(ProceedingJoinPoint pjp) { Map result = null; @@ -195,7 +195,7 @@ public class JSONRegionAdvice { } @SuppressWarnings("unchecked") - @Around("execution(* com.gemstone.gemfire.cache.Region.values(..))") + @Around("execution(* org.apache.geode.cache.Region.values(..))") public Collection values(ProceedingJoinPoint pjp) { Collection result = null; diff --git a/src/main/java/org/springframework/data/gemfire/support/ListRegionsOnServerFunction.java b/src/main/java/org/springframework/data/gemfire/support/ListRegionsOnServerFunction.java index b3015838..ad3e06b9 100644 --- a/src/main/java/org/springframework/data/gemfire/support/ListRegionsOnServerFunction.java +++ b/src/main/java/org/springframework/data/gemfire/support/ListRegionsOnServerFunction.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -15,11 +15,11 @@ package org.springframework.data.gemfire.support; import java.util.ArrayList; import java.util.List; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheFactory; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.execute.Function; -import com.gemstone.gemfire.cache.execute.FunctionContext; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.execute.Function; +import org.apache.geode.cache.execute.FunctionContext; /** * ListRegionsOnServerFunction is a GemFire Function class that returns a List of names for all Regions @@ -27,7 +27,7 @@ import com.gemstone.gemfire.cache.execute.FunctionContext; * * @author David Turanski * @author John Blum - * @see com.gemstone.gemfire.cache.execute.Function + * @see org.apache.geode.cache.execute.Function */ @SuppressWarnings("serial") public class ListRegionsOnServerFunction implements Function { @@ -38,7 +38,7 @@ public class ListRegionsOnServerFunction implements Function { /* * (non-Javadoc) - * @see com.gemstone.gemfire.cache.execute.Function#execute(com.gemstone.gemfire.cache.execute.FunctionContext) + * @see org.apache.geode.cache.execute.Function#execute(org.apache.geode.cache.execute.FunctionContext) */ @Override public void execute(FunctionContext functionContext) { @@ -58,7 +58,7 @@ public class ListRegionsOnServerFunction implements Function { /* * (non-Javadoc) - * @see com.gemstone.gemfire.cache.execute.Function#getId() + * @see org.apache.geode.cache.execute.Function#getId() */ @Override public String getId() { @@ -67,7 +67,7 @@ public class ListRegionsOnServerFunction implements Function { /* * (non-Javadoc) - * @see com.gemstone.gemfire.cache.execute.Function#hasResult() + * @see org.apache.geode.cache.execute.Function#hasResult() */ @Override public boolean hasResult() { @@ -76,7 +76,7 @@ public class ListRegionsOnServerFunction implements Function { /* * (non-Javadoc) - * @see com.gemstone.gemfire.cache.execute.Function#isHA() + * @see org.apache.geode.cache.execute.Function#isHA() */ @Override public boolean isHA() { @@ -85,7 +85,7 @@ public class ListRegionsOnServerFunction implements Function { /* * (non-Javadoc) - * @see com.gemstone.gemfire.cache.execute.Function#optimizeForWrite() + * @see org.apache.geode.cache.execute.Function#optimizeForWrite() */ @Override public boolean optimizeForWrite() { diff --git a/src/main/java/org/springframework/data/gemfire/support/SpringContextBootstrappingInitializer.java b/src/main/java/org/springframework/data/gemfire/support/SpringContextBootstrappingInitializer.java index a3b9b52f..7a544a44 100644 --- a/src/main/java/org/springframework/data/gemfire/support/SpringContextBootstrappingInitializer.java +++ b/src/main/java/org/springframework/data/gemfire/support/SpringContextBootstrappingInitializer.java @@ -25,6 +25,7 @@ import java.util.concurrent.atomic.AtomicReference; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.Declarable; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextException; import org.springframework.context.ApplicationListener; @@ -42,8 +43,6 @@ import org.springframework.util.Assert; import org.springframework.util.ObjectUtils; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.Declarable; - /** * The SpringContextBootstrappingInitializer class is a GemFire configuration initializer used to bootstrap a Spring * ApplicationContext inside a GemFire Server JVM-based process. This enables a GemFire Cache Server resources to be @@ -59,7 +58,7 @@ import com.gemstone.gemfire.cache.Declarable; * @see org.springframework.context.event.ApplicationContextEvent * @see org.springframework.context.event.ApplicationEventMulticaster * @see org.springframework.context.support.ClassPathXmlApplicationContext - * @see com.gemstone.gemfire.cache.Declarable + * @see org.apache.geode.cache.Declarable * @link http://gemfire.docs.pivotal.io/latest/userguide/index.html#basic_config/the_cache/setting_cache_initializer.html * @link https://jira.springsource.org/browse/SGF-248 * @since 1.4.0 diff --git a/src/main/java/org/springframework/data/gemfire/util/CacheUtils.java b/src/main/java/org/springframework/data/gemfire/util/CacheUtils.java index 17c681ab..7e2a554a 100644 --- a/src/main/java/org/springframework/data/gemfire/util/CacheUtils.java +++ b/src/main/java/org/springframework/data/gemfire/util/CacheUtils.java @@ -17,31 +17,30 @@ package org.springframework.data.gemfire.util; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheClosedException; +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.cache.client.ClientCacheFactory; +import org.apache.geode.distributed.DistributedSystem; +import org.apache.geode.internal.cache.GemFireCacheImpl; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheClosedException; -import com.gemstone.gemfire.cache.CacheFactory; -import com.gemstone.gemfire.cache.GemFireCache; -import com.gemstone.gemfire.cache.client.ClientCache; -import com.gemstone.gemfire.cache.client.ClientCacheFactory; -import com.gemstone.gemfire.distributed.DistributedSystem; -import com.gemstone.gemfire.internal.cache.GemFireCacheImpl; - /** * CacheUtils is an abstract utility class encapsulating common operations for working with GemFire Cache * and ClientCache instances. * * @author John Blum * @see org.springframework.data.gemfire.util.DistributedSystemUtils - * @see com.gemstone.gemfire.cache.Cache - * @see com.gemstone.gemfire.cache.CacheFactory - * @see com.gemstone.gemfire.cache.GemFireCache - * @see com.gemstone.gemfire.cache.Region - * @see com.gemstone.gemfire.cache.client.ClientCache - * @see com.gemstone.gemfire.cache.client.ClientCacheFactory - * @see com.gemstone.gemfire.distributed.DistributedSystem - * @see com.gemstone.gemfire.internal.cache.GemFireCacheImpl + * @see org.apache.geode.cache.Cache + * @see org.apache.geode.cache.CacheFactory + * @see org.apache.geode.cache.GemFireCache + * @see org.apache.geode.cache.Region + * @see org.apache.geode.cache.client.ClientCache + * @see org.apache.geode.cache.client.ClientCacheFactory + * @see org.apache.geode.distributed.DistributedSystem + * @see org.apache.geode.internal.cache.GemFireCacheImpl * @since 1.8.0 */ @SuppressWarnings("unused") diff --git a/src/main/java/org/springframework/data/gemfire/util/DistributedSystemUtils.java b/src/main/java/org/springframework/data/gemfire/util/DistributedSystemUtils.java index 2fb4183e..4318bf2a 100644 --- a/src/main/java/org/springframework/data/gemfire/util/DistributedSystemUtils.java +++ b/src/main/java/org/springframework/data/gemfire/util/DistributedSystemUtils.java @@ -18,13 +18,12 @@ package org.springframework.data.gemfire.util; import java.util.Properties; -import com.gemstone.gemfire.cache.GemFireCache; -import com.gemstone.gemfire.cache.server.CacheServer; -import com.gemstone.gemfire.distributed.DistributedSystem; -import com.gemstone.gemfire.distributed.internal.DistributionConfig; -import com.gemstone.gemfire.distributed.internal.InternalDistributedSystem; -import com.gemstone.gemfire.internal.DistributionLocator; - +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.server.CacheServer; +import org.apache.geode.distributed.DistributedSystem; +import org.apache.geode.distributed.internal.DistributionConfig; +import org.apache.geode.distributed.internal.InternalDistributedSystem; +import org.apache.geode.internal.DistributionLocator; import org.springframework.util.Assert; import org.springframework.util.StringUtils; @@ -32,11 +31,11 @@ import org.springframework.util.StringUtils; * DistributedSystemUtils is an abstract utility class for working with the GemFire DistributedSystem. * * @author John Blum - * @see com.gemstone.gemfire.cache.GemFireCache - * @see com.gemstone.gemfire.distributed.DistributedSystem - * @see com.gemstone.gemfire.distributed.internal.DistributionConfig - * @see com.gemstone.gemfire.distributed.internal.InternalDistributedSystem - * @see com.gemstone.gemfire.internal.DistributionLocator + * @see org.apache.geode.cache.GemFireCache + * @see org.apache.geode.distributed.DistributedSystem + * @see org.apache.geode.distributed.internal.DistributionConfig + * @see org.apache.geode.distributed.internal.InternalDistributedSystem + * @see org.apache.geode.internal.DistributionLocator * @since 1.7.0 */ @SuppressWarnings("unused") diff --git a/src/main/java/org/springframework/data/gemfire/wan/AbstractWANComponentFactoryBean.java b/src/main/java/org/springframework/data/gemfire/wan/AbstractWANComponentFactoryBean.java index edfab517..1e9561a8 100644 --- a/src/main/java/org/springframework/data/gemfire/wan/AbstractWANComponentFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/wan/AbstractWANComponentFactoryBean.java @@ -20,6 +20,7 @@ import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.geode.cache.Cache; import org.springframework.beans.factory.BeanNameAware; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.FactoryBean; @@ -27,8 +28,6 @@ import org.springframework.beans.factory.InitializingBean; import org.springframework.util.Assert; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.Cache; - /** * Base class for GemFire WAN Gateway component factory beans. * diff --git a/src/main/java/org/springframework/data/gemfire/wan/AsyncEventQueueFactoryBean.java b/src/main/java/org/springframework/data/gemfire/wan/AsyncEventQueueFactoryBean.java index a848dbb6..e3dc62f3 100644 --- a/src/main/java/org/springframework/data/gemfire/wan/AsyncEventQueueFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/wan/AsyncEventQueueFactoryBean.java @@ -15,18 +15,17 @@ */ package org.springframework.data.gemfire.wan; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheClosedException; +import org.apache.geode.cache.asyncqueue.AsyncEventListener; +import org.apache.geode.cache.asyncqueue.AsyncEventQueue; +import org.apache.geode.cache.asyncqueue.AsyncEventQueueFactory; +import org.apache.geode.cache.util.Gateway; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheClosedException; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventListener; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueue; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueueFactory; -import com.gemstone.gemfire.cache.util.Gateway; - /** * FactoryBean for creating GemFire {@link AsyncEventQueue}s. - * + * * @author David Turanski * @author John Blum */ @@ -52,9 +51,9 @@ public class AsyncEventQueueFactoryBean extends AbstractWANComponentFactoryBean< /** * Constructs an instance of the AsyncEventQueueFactoryBean for creating an GemFire AsyncEventQueue. - * + * * @param cache the GemFire Cache reference. - * @see #AsyncEventQueueFactoryBean(com.gemstone.gemfire.cache.Cache, com.gemstone.gemfire.cache.asyncqueue.AsyncEventListener) + * @see #AsyncEventQueueFactoryBean(org.apache.geode.cache.Cache, org.apache.geode.cache.asyncqueue.AsyncEventListener) */ public AsyncEventQueueFactoryBean(final Cache cache) { this(cache, null); @@ -62,7 +61,7 @@ public class AsyncEventQueueFactoryBean extends AbstractWANComponentFactoryBean< /** * Constructs an instance of the AsyncEventQueueFactoryBean for creating an GemFire AsyncEventQueue. - * + * * @param cache the GemFire Cache reference. * @param asyncEventListener required {@link AsyncEventListener} */ diff --git a/src/main/java/org/springframework/data/gemfire/wan/GatewayHubFactoryBean.java b/src/main/java/org/springframework/data/gemfire/wan/GatewayHubFactoryBean.java index 3af695ab..8fffd9ce 100644 --- a/src/main/java/org/springframework/data/gemfire/wan/GatewayHubFactoryBean.java +++ b/src/main/java/org/springframework/data/gemfire/wan/GatewayHubFactoryBean.java @@ -19,27 +19,26 @@ import java.io.IOException; import java.util.Collections; import java.util.List; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.util.Gateway; +import org.apache.geode.cache.util.GatewayEventListener; +import org.apache.geode.cache.util.GatewayHub; +import org.apache.geode.cache.util.GatewayQueueAttributes; import org.springframework.data.gemfire.wan.GatewayProxy.GatewayQueue; import org.springframework.util.Assert; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.util.Gateway; -import com.gemstone.gemfire.cache.util.GatewayEventListener; -import com.gemstone.gemfire.cache.util.GatewayHub; -import com.gemstone.gemfire.cache.util.GatewayQueueAttributes; - /** * FactoryBean for creating a GemFire {@link GatewayHub} (deprecated in Gemfire 7). * * @author David Turanski * @author John Blum * @see org.springframework.data.gemfire.wan.AbstractWANComponentFactoryBean - * @see com.gemstone.gemfire.cache.Cache - * @see com.gemstone.gemfire.cache.util.Gateway - * @see com.gemstone.gemfire.cache.util.GatewayHub - * @see com.gemstone.gemfire.cache.util.GatewayEventListener - * @see com.gemstone.gemfire.cache.util.GatewayQueueAttributes + * @see org.apache.geode.cache.Cache + * @see org.apache.geode.cache.util.Gateway + * @see org.apache.geode.cache.util.GatewayHub + * @see org.apache.geode.cache.util.GatewayEventListener + * @see org.apache.geode.cache.util.GatewayQueueAttributes */ @SuppressWarnings({"deprecation", "unused" }) public class GatewayHubFactoryBean extends AbstractWANComponentFactoryBean { @@ -64,7 +63,7 @@ public class GatewayHubFactoryBean extends AbstractWANComponentFactoryBean - + - + @@ -82,22 +82,22 @@ While copies imply additional work for every fetch operation, direct references across concurrent threads in the same VM, whether or not transactions are used. ]]> - - + + - + - + @@ -107,12 +107,12 @@ The name of the bean referred by this declaration. If no reference exists, use a - + - + @@ -136,17 +136,17 @@ The name of the region definition. If no specified, it will have the value of th The name of the bean defining the GemFire cache (by default 'gemfire-cache'). ]]> - - - - + + + + - - + @@ -168,12 +168,12 @@ other thread for accessing the region and not waiting for it to complete its tas Inner bean definition of the cache listener. ]]> - + @@ -186,19 +186,19 @@ use inner bean declarations. Disk storage configuration for the defined region. ]]> - + @@ -206,7 +206,7 @@ Note: Persistence for partitioned regions is supported only from GemFire 6.5 onw @@ -239,26 +239,26 @@ Default is false, meaning statistics are disabled. - + - - + - - + @@ -276,18 +276,18 @@ arbitrarily pick one. - + - + - + @@ -330,7 +330,7 @@ The action to take when performing eviction. - + - + @@ -351,13 +351,13 @@ in different members, for high availability in case of an application failure. - - + @@ -424,14 +424,14 @@ Note: This setting must be the same in all processes using the region. @@ -456,7 +456,7 @@ The delay in milliseconds that new members will wait before satisfying redundanc - + @@ -466,7 +466,7 @@ Entity computing sizes for objects stored into the grid. ]]> - + @@ -508,7 +508,7 @@ performed. - + @@ -516,21 +516,21 @@ performed. - + @@ -540,14 +540,14 @@ reclaim memory. @@ -561,7 +561,7 @@ Indicates whether the writing to the disk si synchronous or not. Default is fals ]]> - + - - + @@ -194,12 +194,12 @@ The name of the bean referred by this declaration. If no reference exists, use a - + - + @@ -223,17 +223,17 @@ The name of the region definition. If no specified, it will have the value of th The name of the bean defining the GemFire cache (by default 'gemfire-cache'). ]]> - - - - + + + + - - + @@ -255,12 +255,12 @@ other thread for accessing the region and not waiting for it to complete its tas Inner bean definition of the cache listener. ]]> - + @@ -273,19 +273,19 @@ use inner bean declarations. Disk storage configuration for the defined region. ]]> - + @@ -293,7 +293,7 @@ Note: Persistence for partitioned regions is supported only from GemFire 6.5 onw @@ -326,26 +326,26 @@ Default is false, meaning statistics are disabled. - + - - + - - + - + - + - + - + @@ -446,7 +446,7 @@ The action to take when performing eviction. - + - + @@ -467,13 +467,13 @@ in different members, for high availability in case of an application failure. - - + @@ -540,14 +540,14 @@ Note: This setting must be the same in all processes using the region. @@ -572,12 +572,12 @@ The delay in milliseconds that new members will wait before satisfying redundanc - + @@ -587,7 +587,7 @@ The amount of time before the expiration action takes place. Defaults to zero (w @@ -616,7 +616,7 @@ When the region or cached object expires, it is destroyed locally only. Not supp - + @@ -626,7 +626,7 @@ Entity computing sizes for objects stored into the grid. ]]> - + @@ -668,7 +668,7 @@ performed. - + @@ -676,21 +676,21 @@ performed. - + @@ -700,14 +700,14 @@ reclaim memory. @@ -721,7 +721,7 @@ Indicates whether the writing to the disk si synchronous or not. Default is fals ]]> - + - - - + @@ -2307,12 +2307,12 @@ A gateway sender gateway definition (requires Gemfire 7.0 or later) - + @@ -2460,12 +2460,12 @@ Specifies the maximum memory in MB to allocate for the queue - - + @@ -2529,12 +2529,12 @@ The id of the cache - default is gemfireCache - - + @@ -2543,12 +2543,12 @@ An async event queue definition (requires Gemfire 7.0 or later) maxOccurs="1"> - + @@ -2685,13 +2685,13 @@ The id of the cache - default is gemfireCache - - + @@ -2744,13 +2744,13 @@ Scope also determines whether to allow remote invocation of some of the region + type="org.apache.geode.cache.wan.GatewayTransportFilter" /> @@ -2936,13 +2936,13 @@ Deprecated as of Gemfire 7 maxOccurs="1"> + type="org.apache.geode.cache.util.GatewayEventListener" /> diff --git a/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.4.xsd b/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.4.xsd index 670ea4a1..4357f8fc 100644 --- a/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.4.xsd +++ b/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.4.xsd @@ -24,7 +24,7 @@ minOccurs="0" maxOccurs="unbounded"> @@ -33,7 +33,7 @@ and may be nested or referenced. minOccurs="0" maxOccurs="1"> @@ -42,14 +42,14 @@ and may be nested or referenced. maxOccurs="1"> + type="org.apache.geode.cache.util.GatewayConflictResolver" /> @@ -218,21 +218,21 @@ do not need to pay the cost of preserving the unread fields since you will never @@ -263,7 +263,7 @@ Defines a GemFire Cache instance used for creating or retrieving 'regions'. ]]> - + @@ -321,7 +321,7 @@ Defines a GemFire Client Cache instance used for creating or retrieving 'regions ]]> - + @@ -411,7 +411,7 @@ Defines a lookup Subregion ]]> - + @@ -437,7 +437,7 @@ The name of the region definition.]]> - + @@ -450,7 +450,7 @@ The name of the region definition.]]> - - + @@ -515,7 +515,7 @@ Time to live configuration for the region entries. Default: no expiration. - + - + - - + @@ -743,7 +743,7 @@ The cache loader definition for this region. A cache loader allows data to be pl - - + @@ -972,7 +972,7 @@ up to date copy of the data. ]]> - + @@ -1105,7 +1105,7 @@ Defines a GemFire local region instance. Each local region is scoped only to the ]]> - + @@ -1212,7 +1212,7 @@ in different members, for high availability in case of an application failure. ]]> - + @@ -1222,13 +1222,13 @@ in different members, for high availability in case of an application failure. - - + @@ -1237,14 +1237,14 @@ colocate data based on custom criterias (such as colocating trades by month and minOccurs="0" maxOccurs="1"> + type="org.apache.geode.cache.partition.PartitionListener" /> @@ -1253,7 +1253,7 @@ is created or any bucket in a partitioned region becomes primary maxOccurs="unbounded"> @@ -1262,7 +1262,7 @@ is created or any bucket in a partitioned region becomes primary use="required"> @@ -1271,7 +1271,7 @@ Specifies the fixed partition name default="true"> @@ -1279,7 +1279,7 @@ Specifies if this member is primary for this partition @@ -1524,7 +1524,7 @@ Entity computing sizes for objects stored into the grid. ]]> - + @@ -1634,7 +1634,7 @@ Note: the directory must already exist. ]]> - + @@ -1739,7 +1739,7 @@ which it receives its data. The client can hold some data locally or forward all ]]> - + @@ -1748,19 +1748,19 @@ which it receives its data. The client can hold some data locally or forward all - - + - - + @@ -1994,7 +1994,7 @@ Note that in order to instantiate a pool, a GemFire cache needs to be already st ]]> - + @@ -2060,7 +2060,7 @@ Note: In order to instantiate a cacheserver, a GemFire cache needs to be avaialb ]]> - + @@ -2168,7 +2168,7 @@ A reference (by name) to the GemFire Cache bean. Default is "gemfireCache". ]]> - + @@ -2269,7 +2269,7 @@ Defines a GemFire index. ]]> - + @@ -2401,12 +2401,12 @@ Specifies the data type if other than java.lang.String. - - + @@ -2414,12 +2414,12 @@ A gateway sender gateway definition (requires Gemfire 7.0 or later) - + @@ -2572,12 +2572,12 @@ Specifies whether persistence is enabled: true or false(default) - - + @@ -2655,12 +2655,12 @@ Specifies the socket buffer size in bytes - - + @@ -2669,12 +2669,12 @@ An async event queue definition (requires Gemfire 7.0 or later) maxOccurs="1"> - + @@ -2811,13 +2811,13 @@ The id of the cache - default is gemfireCache - - + @@ -2870,13 +2870,13 @@ Scope also determines whether to allow remote invocation of some of the region + type="org.apache.geode.cache.wan.GatewayTransportFilter" /> @@ -3061,13 +3061,13 @@ Deprecated as of Gemfire 7 maxOccurs="1"> + type="org.apache.geode.cache.util.GatewayEventListener" /> diff --git a/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.5.xsd b/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.5.xsd index 14078602..f64eab62 100644 --- a/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.5.xsd +++ b/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.5.xsd @@ -25,7 +25,7 @@ minOccurs="0" maxOccurs="unbounded"> @@ -34,7 +34,7 @@ and may be nested or referenced. minOccurs="0" maxOccurs="1"> @@ -43,14 +43,14 @@ and may be nested or referenced. maxOccurs="1"> + type="org.apache.geode.cache.util.GatewayConflictResolver" /> @@ -176,21 +176,21 @@ or copies of the objects (true). @@ -255,7 +255,7 @@ Defines a GemFire Cache instance used for creating or retrieving 'regions'. ]]> - + @@ -312,7 +312,7 @@ Defines a GemFire Client Cache instance used for creating or retrieving 'regions ]]> - + @@ -412,7 +412,7 @@ Defines a lookup Subregion ]]> - + @@ -451,7 +451,7 @@ The name of the region definition. - + @@ -477,7 +477,7 @@ The name of the region definition.]]> - - + @@ -542,7 +542,7 @@ Time to live configuration for the region entries. Default: no expiration. - + - + - - + - - + @@ -907,7 +907,7 @@ Defines a template for creating multiple GemFire Regions that all share a common ]]> - + @@ -985,7 +985,7 @@ up-to-date copy of the data. ]]> - + @@ -1114,7 +1114,7 @@ Defines a template for creating multiple GemFire REPLICATE Regions that all shar ]]> - + @@ -1133,7 +1133,7 @@ in different members, for high availability in case of an application failure. ]]> - + @@ -1142,13 +1142,13 @@ in different members, for high availability in case of an application failure. - - + @@ -1156,13 +1156,13 @@ colocate data based on custom criterias (such as colocating trades by month and - + @@ -1189,7 +1189,7 @@ use inner bean declarations. @@ -1198,7 +1198,7 @@ use inner bean declarations. use="required"> @@ -1207,7 +1207,7 @@ Specifies the fixed partition name default="true"> @@ -1215,7 +1215,7 @@ Specifies if this member is primary for this partition @@ -1394,7 +1394,7 @@ Defines a template for creating multiple GemFire PARTITION Regions that all shar ]]> - + @@ -1410,7 +1410,7 @@ Defines a GemFire Local Region instance. Each Local Region is scoped only to the ]]> - + @@ -1511,7 +1511,7 @@ Defines a template for creating multiple GemFire Local Regions that all share a ]]> - + @@ -1593,7 +1593,7 @@ Entity computing sizes for objects stored into the grid. ]]> - + @@ -1703,7 +1703,7 @@ Note: the directory must already exist. ]]> - + @@ -1808,7 +1808,7 @@ which it receives its data. The client can hold some data locally or forward all ]]> - + @@ -1817,19 +1817,19 @@ which it receives its data. The client can hold some data locally or forward all - - + - - + @@ -2006,7 +2006,7 @@ Defines a template for creating multiple GemFire Client Regions that all share a ]]> - + @@ -2084,7 +2084,7 @@ Note that in order to instantiate a pool, a GemFire cache needs to be already st ]]> - + @@ -2150,7 +2150,7 @@ Note: In order to instantiate a cacheserver, a GemFire cache needs to be avaialb ]]> - + @@ -2258,7 +2258,7 @@ A reference (by name) to the GemFire Cache bean. Default is "gemfireCache". ]]> - + @@ -2359,7 +2359,7 @@ Defines a GemFire index. ]]> - + @@ -2491,12 +2491,12 @@ Specifies the data type if other than java.lang.String. - - + @@ -2504,12 +2504,12 @@ A gateway sender gateway definition (requires Gemfire 7.0 or later) - + @@ -2662,12 +2662,12 @@ Specifies whether persistence is enabled: true or false(default) - - + @@ -2745,12 +2745,12 @@ Specifies the socket buffer size in bytes - - + @@ -2759,12 +2759,12 @@ An async event queue definition (requires Gemfire 7.0 or later) maxOccurs="1"> - + @@ -2901,13 +2901,13 @@ The id of the cache - default is gemfireCache - - + @@ -2960,13 +2960,13 @@ Scope also determines whether to allow remote invocation of some of the region + type="org.apache.geode.cache.wan.GatewayTransportFilter" /> @@ -3146,12 +3146,12 @@ Deprecated as of Gemfire 7 - + diff --git a/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.6.xsd b/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.6.xsd index 4047f523..34177469 100644 --- a/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.6.xsd +++ b/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.6.xsd @@ -24,7 +24,7 @@ @@ -32,7 +32,7 @@ and may be nested or referenced. @@ -40,14 +40,14 @@ and may be nested or referenced. + type="org.apache.geode.cache.util.GatewayConflictResolver" /> @@ -170,21 +170,21 @@ or copies of the objects (true). @@ -249,7 +249,7 @@ Defines a GemFire Cache instance used for creating or retrieving 'regions'. ]]> - + @@ -342,7 +342,7 @@ Defines a GemFire Client Cache instance used for creating or retrieving 'regions ]]> - + @@ -447,7 +447,7 @@ Defines a lookup Subregion ]]> - + @@ -486,7 +486,7 @@ The name of the region definition. - + @@ -511,7 +511,7 @@ The name of the region definition.]]> - - + @@ -547,13 +547,13 @@ use inner bean declarations. - - + @@ -584,7 +584,7 @@ Time to live configuration for the region entries. Default: no expiration. - + - + - - + - - + @@ -942,7 +942,7 @@ Defines a template for creating multiple GemFire Regions that all share a common ]]> - + @@ -1020,7 +1020,7 @@ up-to-date copy of the data. ]]> - + @@ -1156,7 +1156,7 @@ Defines a template for creating multiple GemFire REPLICATE Regions that all shar ]]> - + @@ -1175,7 +1175,7 @@ in different members, for high availability in case of an application failure. ]]> - + @@ -1184,13 +1184,13 @@ in different members, for high availability in case of an application failure. - - + @@ -1198,13 +1198,13 @@ colocate data based on custom criterias (such as colocating trades by month and - + @@ -1231,7 +1231,7 @@ use inner bean declarations. @@ -1240,7 +1240,7 @@ use inner bean declarations. use="required"> @@ -1249,7 +1249,7 @@ Specifies the fixed partition name default="true"> @@ -1257,7 +1257,7 @@ Specifies if this member is primary for this partition @@ -1441,7 +1441,7 @@ Defines a template for creating multiple GemFire PARTITION Regions that all shar ]]> - + @@ -1457,7 +1457,7 @@ Defines a GemFire Local Region instance. Each Local Region is scoped only to the ]]> - + @@ -1563,7 +1563,7 @@ Defines a template for creating multiple GemFire Local Regions that all share a ]]> - + @@ -1619,7 +1619,7 @@ Entity computing sizes for objects stored into the grid. ]]> - + @@ -1657,7 +1657,7 @@ Note: the directory must already exist. ]]> - + @@ -1783,7 +1783,7 @@ which it receives its data. The client can hold some data locally or forward all ]]> - + @@ -1792,19 +1792,19 @@ which it receives its data. The client can hold some data locally or forward all - - + - - + @@ -1984,7 +1984,7 @@ Defines a template for creating multiple GemFire Client Regions that all share a ]]> - + @@ -2052,7 +2052,7 @@ Note that in order to instantiate a pool, a GemFire cache needs to be already st ]]> - + @@ -2113,7 +2113,7 @@ Note: In order to instantiate a cacheserver, a GemFire cache needs to be avaialb ]]> - + @@ -2211,7 +2211,7 @@ A reference (by name) to the GemFire Cache bean. Default is "gemfireCache". ]]> - + @@ -2312,7 +2312,7 @@ Defines a GemFire index. ]]> - + @@ -2440,12 +2440,12 @@ Specifies the data type if other than java.lang.String. - - + @@ -2610,12 +2610,12 @@ Boolean value that determines whether GemFire persists the Gateway Queue or Asyn - - + @@ -2693,12 +2693,12 @@ Specifies the socket buffer size in bytes - - + @@ -2706,12 +2706,12 @@ An async event queue definition (requires Gemfire 7.0 or later) - + @@ -2803,13 +2803,13 @@ The id of the cache - default is gemfireCache - - + @@ -2847,12 +2847,12 @@ The id of the function service (optional) - - + @@ -2877,12 +2877,12 @@ Used for convenience. If no reference exists, use inner bean declarations. - - + @@ -2907,12 +2907,12 @@ Used for convenience. If no reference exists, use inner bean declarations. - - + @@ -3092,12 +3092,12 @@ Deprecated as of Gemfire 7 - + diff --git a/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.7.xsd b/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.7.xsd index 946220a3..3bb605b9 100644 --- a/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.7.xsd +++ b/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.7.xsd @@ -24,7 +24,7 @@ @@ -32,7 +32,7 @@ and may be nested or referenced. @@ -40,14 +40,14 @@ and may be nested or referenced. + type="org.apache.geode.cache.util.GatewayConflictResolver" /> @@ -170,21 +170,21 @@ or copies of the objects (true). @@ -249,7 +249,7 @@ Defines a GemFire Cache instance used for creating or retrieving 'regions'. ]]> - + @@ -342,7 +342,7 @@ Defines a GemFire Client Cache instance used for creating or retrieving 'regions ]]> - + @@ -447,7 +447,7 @@ Defines a lookup Subregion ]]> - + @@ -456,7 +456,7 @@ Defines a lookup Subregion - - + @@ -492,19 +492,19 @@ use inner bean declarations. - - + - - + @@ -544,7 +544,7 @@ Time to live configuration for the region entries. Default: no expiration. - + - + - + @@ -678,7 +678,7 @@ The name of the region definition.]]> - - + @@ -714,13 +714,13 @@ use inner bean declarations. - - + @@ -751,7 +751,7 @@ Time to live configuration for the region entries. Default: no expiration. - + - + - - + - - + @@ -1108,7 +1108,7 @@ Defines a template for creating multiple GemFire Regions that all share a common ]]> - + @@ -1186,7 +1186,7 @@ up-to-date copy of the data. ]]> - + @@ -1322,7 +1322,7 @@ Defines a template for creating multiple GemFire REPLICATE Regions that all shar ]]> - + @@ -1341,7 +1341,7 @@ in different members, for high availability in case of an application failure. ]]> - + @@ -1350,13 +1350,13 @@ in different members, for high availability in case of an application failure. - - + @@ -1364,13 +1364,13 @@ colocate data based on custom criterias (such as colocating trades by month and - + @@ -1397,7 +1397,7 @@ use inner bean declarations. @@ -1406,7 +1406,7 @@ use inner bean declarations. use="required"> @@ -1415,7 +1415,7 @@ Specifies the fixed partition name default="true"> @@ -1423,7 +1423,7 @@ Specifies if this member is primary for this partition @@ -1607,7 +1607,7 @@ Defines a template for creating multiple GemFire PARTITION Regions that all shar ]]> - + @@ -1623,7 +1623,7 @@ Defines a GemFire Local Region instance. Each Local Region is scoped only to the ]]> - + @@ -1729,7 +1729,7 @@ Defines a template for creating multiple GemFire Local Regions that all share a ]]> - + @@ -1785,7 +1785,7 @@ Entity computing sizes for objects stored into the grid. ]]> - + @@ -1823,7 +1823,7 @@ Note: the directory must already exist. ]]> - + @@ -1949,7 +1949,7 @@ which it receives its data. The client can hold some data locally or forward all ]]> - + @@ -1958,19 +1958,19 @@ which it receives its data. The client can hold some data locally or forward all - - + - - + @@ -2150,7 +2150,7 @@ Defines a template for creating multiple GemFire Client Regions that all share a ]]> - + @@ -2218,7 +2218,7 @@ Note that in order to instantiate a pool, a GemFire cache needs to be already st ]]> - + @@ -2279,7 +2279,7 @@ Note: In order to instantiate a cacheserver, a GemFire cache needs to be avaialb ]]> - + @@ -2377,7 +2377,7 @@ A reference (by name) to the GemFire Cache bean. Default is "gemfireCache". ]]> - + @@ -2478,7 +2478,7 @@ Defines a GemFire index. ]]> - + @@ -2614,12 +2614,12 @@ Specifies the data type if other than java.lang.String. - - + @@ -2784,12 +2784,12 @@ Boolean value that determines whether GemFire persists the Gateway Queue or Asyn - - + @@ -2867,12 +2867,12 @@ Specifies the socket buffer size in bytes - - + @@ -2880,12 +2880,12 @@ An async event queue definition (requires Gemfire 7.0 or later) - + @@ -2977,13 +2977,13 @@ The id of the cache - default is gemfireCache - - + @@ -3021,12 +3021,12 @@ The id of the function service (optional) - - + @@ -3051,12 +3051,12 @@ Used for convenience. If no reference exists, use inner bean declarations. - - + @@ -3081,12 +3081,12 @@ Used for convenience. If no reference exists, use inner bean declarations. - - + @@ -3270,12 +3270,12 @@ Deprecated as of Gemfire 7 - + diff --git a/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.8.xsd b/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.8.xsd index b4339809..dc7f83ad 100644 --- a/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.8.xsd +++ b/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.8.xsd @@ -24,7 +24,7 @@ @@ -32,7 +32,7 @@ and may be nested or referenced. @@ -40,14 +40,14 @@ and may be nested or referenced. + type="org.apache.geode.cache.util.GatewayConflictResolver" /> @@ -162,21 +162,21 @@ or copies of the objects (true). @@ -241,7 +241,7 @@ Defines a GemFire Cache instance used for creating or retrieving 'regions'. ]]> - + @@ -334,7 +334,7 @@ Defines a GemFire Client Cache instance used for creating or retrieving 'regions ]]> - + @@ -460,7 +460,7 @@ Defines a lookup Subregion ]]> - + @@ -469,7 +469,7 @@ Defines a lookup Subregion - - + @@ -505,19 +505,19 @@ use inner bean declarations. - - + - - + @@ -557,7 +557,7 @@ Time to live configuration for the region entries. Default: no expiration. - + - + - + @@ -691,7 +691,7 @@ The name of the region definition.]]> - - + @@ -727,13 +727,13 @@ use inner bean declarations. - - + @@ -764,7 +764,7 @@ Time to live configuration for the region entries. Default: no expiration. - + - + - - + - - + @@ -1121,7 +1121,7 @@ Defines a template for creating multiple GemFire Regions that all share a common ]]> - + @@ -1199,7 +1199,7 @@ up-to-date copy of the data. ]]> - + @@ -1335,7 +1335,7 @@ Defines a template for creating multiple GemFire REPLICATE Regions that all shar ]]> - + @@ -1354,7 +1354,7 @@ in different members, for high availability in case of an application failure. ]]> - + @@ -1363,13 +1363,13 @@ in different members, for high availability in case of an application failure. - - + @@ -1377,13 +1377,13 @@ colocate data based on custom criterias (such as colocating trades by month and - + @@ -1410,7 +1410,7 @@ use inner bean declarations. @@ -1419,7 +1419,7 @@ use inner bean declarations. use="required"> @@ -1428,7 +1428,7 @@ Specifies the fixed partition name default="true"> @@ -1436,7 +1436,7 @@ Specifies if this member is primary for this partition @@ -1620,7 +1620,7 @@ Defines a template for creating multiple GemFire PARTITION Regions that all shar ]]> - + @@ -1636,7 +1636,7 @@ Defines a GemFire Local Region instance. Each Local Region is scoped only to the ]]> - + @@ -1742,7 +1742,7 @@ Defines a template for creating multiple GemFire Local Regions that all share a ]]> - + @@ -1798,7 +1798,7 @@ Entity computing sizes for objects stored into the grid. ]]> - + @@ -1836,7 +1836,7 @@ Note: the directory must already exist. ]]> - + @@ -1962,7 +1962,7 @@ which it receives its data. The client can hold some data locally or forward all ]]> - + @@ -1971,19 +1971,19 @@ which it receives its data. The client can hold some data locally or forward all - - + - - + @@ -2163,7 +2163,7 @@ Defines a template for creating multiple GemFire Client Regions that all share a ]]> - + @@ -2176,7 +2176,7 @@ Defines a GemFire Client Region ]]> - + @@ -2242,7 +2242,7 @@ Note that in order to instantiate a pool, a GemFire cache needs to be already st ]]> - + @@ -2303,7 +2303,7 @@ Note: In order to instantiate a cacheserver, a GemFire cache needs to be avaialb ]]> - + @@ -2401,7 +2401,7 @@ A reference (by name) to the GemFire Cache bean. Default is "gemfireCache". ]]> - + @@ -2502,7 +2502,7 @@ Defines a GemFire index. ]]> - + @@ -2638,12 +2638,12 @@ Specifies the data type if other than java.lang.String. - - + @@ -2808,12 +2808,12 @@ Boolean value that determines whether GemFire persists the Gateway Queue or Asyn - - + @@ -2891,12 +2891,12 @@ Specifies the socket buffer size in bytes - - + @@ -2904,12 +2904,12 @@ An async event queue definition (requires Gemfire 7.0 or later) - + @@ -3001,13 +3001,13 @@ The id of the cache - default is gemfireCache - - + @@ -3045,12 +3045,12 @@ The id of the function service (optional) - - + @@ -3075,12 +3075,12 @@ Used for convenience. If no reference exists, use inner bean declarations. - - + @@ -3105,12 +3105,12 @@ Used for convenience. If no reference exists, use inner bean declarations. - - + @@ -3294,12 +3294,12 @@ Deprecated as of Gemfire 7 - + diff --git a/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.9.xsd b/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.9.xsd index 5b599ba4..fbd304a3 100644 --- a/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.9.xsd +++ b/src/main/resources/org/springframework/data/gemfire/config/spring-gemfire-1.9.xsd @@ -24,7 +24,7 @@ @@ -32,7 +32,7 @@ and may be nested or referenced. @@ -40,14 +40,14 @@ and may be nested or referenced. + type="org.apache.geode.cache.util.GatewayConflictResolver" /> @@ -162,21 +162,21 @@ or copies of the objects (true). @@ -241,7 +241,7 @@ Defines a GemFire Cache instance used for creating or retrieving 'regions'. ]]> - + @@ -334,7 +334,7 @@ Defines a GemFire Client Cache instance used for creating or retrieving 'regions ]]> - + @@ -460,7 +460,7 @@ Defines a lookup Subregion ]]> - + @@ -469,7 +469,7 @@ Defines a lookup Subregion - - + @@ -505,19 +505,19 @@ use inner bean declarations. - - + - - + @@ -557,7 +557,7 @@ Time to live configuration for the region entries. Default: no expiration. - + - + - + @@ -691,7 +691,7 @@ The name of the region definition.]]> - - + @@ -727,13 +727,13 @@ use inner bean declarations. - - + @@ -764,7 +764,7 @@ Time to live configuration for the region entries. Default: no expiration. - + - + - - + - - + @@ -1121,7 +1121,7 @@ Defines a template for creating multiple GemFire Regions that all share a common ]]> - + @@ -1199,7 +1199,7 @@ up-to-date copy of the data. ]]> - + @@ -1335,7 +1335,7 @@ Defines a template for creating multiple GemFire REPLICATE Regions that all shar ]]> - + @@ -1354,7 +1354,7 @@ in different members, for high availability in case of an application failure. ]]> - + @@ -1363,13 +1363,13 @@ in different members, for high availability in case of an application failure. - - + @@ -1377,13 +1377,13 @@ colocate data based on custom criterias (such as colocating trades by month and - + @@ -1410,7 +1410,7 @@ use inner bean declarations. @@ -1419,7 +1419,7 @@ use inner bean declarations. use="required"> @@ -1428,7 +1428,7 @@ Specifies the fixed partition name default="true"> @@ -1436,7 +1436,7 @@ Specifies if this member is primary for this partition @@ -1620,7 +1620,7 @@ Defines a template for creating multiple GemFire PARTITION Regions that all shar ]]> - + @@ -1636,7 +1636,7 @@ Defines a GemFire Local Region instance. Each Local Region is scoped only to the ]]> - + @@ -1742,7 +1742,7 @@ Defines a template for creating multiple GemFire Local Regions that all share a ]]> - + @@ -1798,7 +1798,7 @@ Entity computing sizes for objects stored into the grid. ]]> - + @@ -1836,7 +1836,7 @@ Note: the directory must already exist. ]]> - + @@ -1962,7 +1962,7 @@ which it receives its data. The client can hold some data locally or forward all ]]> - + @@ -1971,19 +1971,19 @@ which it receives its data. The client can hold some data locally or forward all - - + - - + @@ -2163,7 +2163,7 @@ Defines a template for creating multiple GemFire Client Regions that all share a ]]> - + @@ -2176,7 +2176,7 @@ Defines a GemFire Client Region ]]> - + @@ -2242,7 +2242,7 @@ Note that in order to instantiate a pool, a GemFire cache needs to be already st ]]> - + @@ -2303,7 +2303,7 @@ Note: In order to instantiate a cacheserver, a GemFire cache needs to be avaialb ]]> - + @@ -2401,7 +2401,7 @@ A reference (by name) to the GemFire Cache bean. Default is "gemfireCache". ]]> - + @@ -2502,7 +2502,7 @@ Defines a GemFire index. ]]> - + @@ -2638,12 +2638,12 @@ Specifies the data type if other than java.lang.String. - - + @@ -2808,12 +2808,12 @@ Boolean value that determines whether GemFire persists the Gateway Queue or Asyn - - + @@ -2891,12 +2891,12 @@ Specifies the socket buffer size in bytes - - + @@ -2904,12 +2904,12 @@ An async event queue definition (requires Gemfire 7.0 or later) - + @@ -3001,13 +3001,13 @@ The id of the cache - default is gemfireCache - - + @@ -3045,12 +3045,12 @@ The id of the function service (optional) - - + @@ -3075,12 +3075,12 @@ Used for convenience. If no reference exists, use inner bean declarations. - - + @@ -3105,12 +3105,12 @@ Used for convenience. If no reference exists, use inner bean declarations. - - + @@ -3294,12 +3294,12 @@ Deprecated as of Gemfire 7 - + diff --git a/src/test/java/org/springframework/data/gemfire/AutoRegionLookupDao.java b/src/test/java/org/springframework/data/gemfire/AutoRegionLookupDao.java index d8cf7b8c..29972b2f 100644 --- a/src/test/java/org/springframework/data/gemfire/AutoRegionLookupDao.java +++ b/src/test/java/org/springframework/data/gemfire/AutoRegionLookupDao.java @@ -22,13 +22,12 @@ import static org.junit.Assert.assertNotNull; import javax.annotation.Resource; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.Region; import org.springframework.context.annotation.DependsOn; import org.springframework.dao.support.DaoSupport; import org.springframework.stereotype.Repository; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.Region; - /** * The AutoRegionLookupDao class is a Data Access Object (DAO) encapsulating references to several GemFire Cache Regions * defined in native GemFire cache.xml and registered as beans in the Spring context using Spring Data GemFire's @@ -38,7 +37,7 @@ import com.gemstone.gemfire.cache.Region; * @author John Blum * @see org.springframework.dao.support.DaoSupport * @see org.springframework.stereotype.Repository - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region * @since 1.5.0 */ /* diff --git a/src/test/java/org/springframework/data/gemfire/AutoRegionLookupWithAutowiringIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/AutoRegionLookupWithAutowiringIntegrationTests.java index dc2ac114..6dcd840f 100644 --- a/src/test/java/org/springframework/data/gemfire/AutoRegionLookupWithAutowiringIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/AutoRegionLookupWithAutowiringIntegrationTests.java @@ -22,6 +22,8 @@ import static org.junit.Assert.assertNotNull; import javax.annotation.Resource; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.Region; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -29,9 +31,6 @@ import org.springframework.stereotype.Component; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.Region; - /** * The AutoRegionLookupWithAutowiringIntegrationTests class is a test suite class testing the behavior of * Spring Data GemFire's auto Region lookup functionality when combined with Spring's component auto-wiring capabilities. diff --git a/src/test/java/org/springframework/data/gemfire/CacheAutoReconnectIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/CacheAutoReconnectIntegrationTests.java index 73f617b5..f8b35c9b 100644 --- a/src/test/java/org/springframework/data/gemfire/CacheAutoReconnectIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/CacheAutoReconnectIntegrationTests.java @@ -23,14 +23,13 @@ import static org.junit.Assume.assumeNotNull; import java.io.File; +import org.apache.geode.cache.Cache; import org.junit.After; import org.junit.Test; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.data.gemfire.config.xml.GemfireConstants; -import com.gemstone.gemfire.cache.Cache; - /** * The CacheAutoReconnectIntegrationTests class is a tests suite of test cases testing Spring Data GemFire's support * of GemFire's Auto-Reconnect functionality release in 8.0. diff --git a/src/test/java/org/springframework/data/gemfire/CacheClusterConfigurationIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/CacheClusterConfigurationIntegrationTest.java index a802a7a5..075b85d7 100644 --- a/src/test/java/org/springframework/data/gemfire/CacheClusterConfigurationIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/CacheClusterConfigurationIntegrationTest.java @@ -28,6 +28,9 @@ import java.util.Collections; import java.util.List; import java.util.concurrent.TimeUnit; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.Scope; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Ignore; @@ -52,10 +55,6 @@ import org.springframework.data.gemfire.test.support.ZipUtils; import org.springframework.util.FileSystemUtils; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.Scope; - /** * The CacheClusterConfigurationIntegrationTest class is a test suite of test cases testing the integration of * Spring Data GemFire with GemFire 8's new shared, persistent, cluster configuration service. diff --git a/src/test/java/org/springframework/data/gemfire/CacheFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/CacheFactoryBeanTest.java index 5a3da1ac..52f90e7b 100644 --- a/src/test/java/org/springframework/data/gemfire/CacheFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/CacheFactoryBeanTest.java @@ -46,6 +46,19 @@ import java.util.Collections; import java.util.Properties; import java.util.concurrent.atomic.AtomicBoolean; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheClosedException; +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.CacheTransactionManager; +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.TransactionListener; +import org.apache.geode.cache.TransactionWriter; +import org.apache.geode.cache.control.ResourceManager; +import org.apache.geode.cache.util.GatewayConflictResolver; +import org.apache.geode.distributed.DistributedMember; +import org.apache.geode.distributed.DistributedSystem; +import org.apache.geode.distributed.Role; +import org.apache.geode.pdx.PdxSerializer; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; @@ -54,20 +67,6 @@ import org.springframework.beans.factory.access.BeanFactoryReference; import org.springframework.core.io.Resource; import org.springframework.data.util.ReflectionUtils; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheClosedException; -import com.gemstone.gemfire.cache.CacheFactory; -import com.gemstone.gemfire.cache.CacheTransactionManager; -import com.gemstone.gemfire.cache.GemFireCache; -import com.gemstone.gemfire.cache.TransactionListener; -import com.gemstone.gemfire.cache.TransactionWriter; -import com.gemstone.gemfire.cache.control.ResourceManager; -import com.gemstone.gemfire.cache.util.GatewayConflictResolver; -import com.gemstone.gemfire.distributed.DistributedMember; -import com.gemstone.gemfire.distributed.DistributedSystem; -import com.gemstone.gemfire.distributed.Role; -import com.gemstone.gemfire.pdx.PdxSerializer; - /** * The CacheFactoryBeanTest class is a test suite of test cases testing the contract and functionality * of the CacheFactoryBean class. @@ -78,7 +77,7 @@ import com.gemstone.gemfire.pdx.PdxSerializer; * @see org.junit.rules.ExpectedException * @see org.mockito.Mockito * @see org.springframework.data.gemfire.CacheFactoryBean - * @see com.gemstone.gemfire.cache.Cache + * @see org.apache.geode.cache.Cache * @since 1.7.0 */ public class CacheFactoryBeanTest { diff --git a/src/test/java/org/springframework/data/gemfire/CacheIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/CacheIntegrationTest.java index b7877f55..fde9d288 100644 --- a/src/test/java/org/springframework/data/gemfire/CacheIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/CacheIntegrationTest.java @@ -18,6 +18,7 @@ package org.springframework.data.gemfire; import static org.junit.Assert.assertEquals; +import org.apache.geode.cache.Cache; import org.junit.After; import org.junit.Test; import org.junit.runner.RunWith; @@ -26,14 +27,12 @@ import org.springframework.context.ApplicationContext; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Cache; - /** * Integration test trying various basic configurations of GemFire through * Spring. - * + * * Made abstract to avoid multiple caches running at the same time. - * + * * @author Costin Leau * @author John Blum */ @@ -68,7 +67,7 @@ public class CacheIntegrationTest { public void testCacheWithXml() throws Exception { ctx.getBean("cache-with-xml", Cache.class); } - + @After public void tearDown() { if (cache!=null) cache.close(); diff --git a/src/test/java/org/springframework/data/gemfire/CacheServerIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/CacheServerIntegrationTest.java index c084b989..c3a17d11 100644 --- a/src/test/java/org/springframework/data/gemfire/CacheServerIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/CacheServerIntegrationTest.java @@ -21,8 +21,10 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.File; + import javax.annotation.Resource; +import org.apache.geode.cache.server.CacheServer; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; @@ -30,8 +32,6 @@ import org.junit.runner.RunWith; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.server.CacheServer; - /** * The CacheServerIntegrationTest class is a test suite of test cases testing the functionality of GemFire Cache Servers * configured using the Spring Data GemFire XML namespace. diff --git a/src/test/java/org/springframework/data/gemfire/ColocatedRegionIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/ColocatedRegionIntegrationTest.java index 50b71e14..627f7cda 100644 --- a/src/test/java/org/springframework/data/gemfire/ColocatedRegionIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/ColocatedRegionIntegrationTest.java @@ -21,13 +21,12 @@ import static org.junit.Assert.assertNotNull; import javax.annotation.Resource; +import org.apache.geode.cache.Region; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Region; - /** * The ColocatedRegionIntegrationTest class is a test suite class containing test cases for JIRA issue SGF-195, * concerning colocated Regions in GemFire. diff --git a/src/test/java/org/springframework/data/gemfire/DataPolicyConverterTest.java b/src/test/java/org/springframework/data/gemfire/DataPolicyConverterTest.java index 21ca8f88..1c97406b 100644 --- a/src/test/java/org/springframework/data/gemfire/DataPolicyConverterTest.java +++ b/src/test/java/org/springframework/data/gemfire/DataPolicyConverterTest.java @@ -19,10 +19,9 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; +import org.apache.geode.cache.DataPolicy; import org.junit.Test; -import com.gemstone.gemfire.cache.DataPolicy; - /** * @author David Turanski * @author John Blum diff --git a/src/test/java/org/springframework/data/gemfire/DeclarableSupportTest.java b/src/test/java/org/springframework/data/gemfire/DeclarableSupportTest.java index ee2100c5..f02fda8d 100644 --- a/src/test/java/org/springframework/data/gemfire/DeclarableSupportTest.java +++ b/src/test/java/org/springframework/data/gemfire/DeclarableSupportTest.java @@ -20,6 +20,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertSame; +import org.apache.geode.cache.Cache; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.BeanFactory; @@ -27,12 +28,10 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Cache; - /** - * Integration test for declarable support (and GEF bean factory locator). - * + * Integration test for declarable support (and GEF bean factory locator). + * * @author Costin Leau */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/src/test/java/org/springframework/data/gemfire/DiskStoreBeanUsingPropertyPlaceholdersIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/DiskStoreBeanUsingPropertyPlaceholdersIntegrationTest.java index 4a89e79c..fbffbc24 100644 --- a/src/test/java/org/springframework/data/gemfire/DiskStoreBeanUsingPropertyPlaceholdersIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/DiskStoreBeanUsingPropertyPlaceholdersIntegrationTest.java @@ -20,8 +20,10 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import java.util.Map; + import javax.annotation.Resource; +import org.apache.geode.cache.DiskStore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -29,8 +31,6 @@ import org.springframework.data.gemfire.test.GemfireTestApplicationContextInitia import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.DiskStore; - /** * The DiskStoreBeanUsingPropertyPlaceholdersIntegrationTest class is a test suite of integration tests testing the use * of Spring PropertyPlaceholders to configure and initialize a Disk Store bean's properties using property placeholders @@ -42,7 +42,7 @@ import com.gemstone.gemfire.cache.DiskStore; * @see org.springframework.data.gemfire.DiskStoreFactoryBean * @see org.springframework.data.gemfire.test.GemfireTestApplicationContextInitializer * @see org.springframework.test.context.junit4.SpringJUnit4ClassRunner - * @see com.gemstone.gemfire.cache.DiskStore + * @see org.apache.geode.cache.DiskStore * @link https://jira.springsource.org/browse/SGF-249 * @since 1.3.4 */ diff --git a/src/test/java/org/springframework/data/gemfire/GemfireTemplateIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/GemfireTemplateIntegrationTests.java index 5ed49180..a35bdfac 100644 --- a/src/test/java/org/springframework/data/gemfire/GemfireTemplateIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/GemfireTemplateIntegrationTests.java @@ -30,10 +30,9 @@ import java.util.Properties; import javax.annotation.Resource; -import com.gemstone.gemfire.cache.GemFireCache; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.query.SelectResults; - +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.query.SelectResults; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; diff --git a/src/test/java/org/springframework/data/gemfire/GemfireTemplateQueriesOnGroupedPooledClientCacheRegionsIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/GemfireTemplateQueriesOnGroupedPooledClientCacheRegionsIntegrationTests.java index d638cf49..57143d5b 100644 --- a/src/test/java/org/springframework/data/gemfire/GemfireTemplateQueriesOnGroupedPooledClientCacheRegionsIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/GemfireTemplateQueriesOnGroupedPooledClientCacheRegionsIntegrationTests.java @@ -27,11 +27,10 @@ import java.util.concurrent.TimeUnit; import javax.annotation.PostConstruct; import javax.annotation.Resource; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.GemFireCache; -import com.gemstone.gemfire.cache.client.ClientRegionShortcut; -import com.gemstone.gemfire.cache.client.Pool; - +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.client.ClientRegionShortcut; +import org.apache.geode.cache.client.Pool; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; @@ -71,7 +70,7 @@ import lombok.RequiredArgsConstructor; * garner high frequency access. * * Spring Data GemFire's {@link GemfireTemplate} should intelligently employ the right - * {@link com.gemstone.gemfire.cache.query.QueryService} configured with the {@link Region Region's} {@link Pool} + * {@link org.apache.geode.cache.query.QueryService} configured with the {@link Region Region's} {@link Pool} * meta-data when executing the query in order to ensure the right servers containing the {@link Region Region's} * with the data of interest are targeted. * @@ -306,7 +305,7 @@ public class GemfireTemplateQueriesOnGroupedPooledClientCacheRegionsIntegrationT static class GemFireCacheServerOneConfiguration extends AbstractGemFireCacheServerConfiguration { @Resource(name = "Cats") - private com.gemstone.gemfire.cache.Region cats; + private org.apache.geode.cache.Region cats; Cat save(Cat cat) { cats.put(cat.getName(), cat); @@ -359,7 +358,7 @@ public class GemfireTemplateQueriesOnGroupedPooledClientCacheRegionsIntegrationT static class GemFireCacheServerTwoConfiguration extends AbstractGemFireCacheServerConfiguration { @Resource(name = "Dogs") - private com.gemstone.gemfire.cache.Region dogs; + private org.apache.geode.cache.Region dogs; Dog save(Dog dog) { dogs.put(dog.getName(), dog); diff --git a/src/test/java/org/springframework/data/gemfire/GemfireTemplateUnitTests.java b/src/test/java/org/springframework/data/gemfire/GemfireTemplateUnitTests.java index 452b7654..1cf9013a 100644 --- a/src/test/java/org/springframework/data/gemfire/GemfireTemplateUnitTests.java +++ b/src/test/java/org/springframework/data/gemfire/GemfireTemplateUnitTests.java @@ -34,17 +34,16 @@ import java.util.Arrays; import java.util.Collections; import java.util.concurrent.atomic.AtomicBoolean; -import com.gemstone.gemfire.GemFireCheckedException; -import com.gemstone.gemfire.GemFireException; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionAttributes; -import com.gemstone.gemfire.cache.RegionService; -import com.gemstone.gemfire.cache.Scope; -import com.gemstone.gemfire.cache.client.ClientCache; -import com.gemstone.gemfire.cache.query.Query; -import com.gemstone.gemfire.cache.query.QueryService; -import com.gemstone.gemfire.cache.query.SelectResults; - +import org.apache.geode.GemFireCheckedException; +import org.apache.geode.GemFireException; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionAttributes; +import org.apache.geode.cache.RegionService; +import org.apache.geode.cache.Scope; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.cache.query.Query; +import org.apache.geode.cache.query.QueryService; +import org.apache.geode.cache.query.SelectResults; import org.junit.Before; import org.junit.Rule; import org.junit.Test; diff --git a/src/test/java/org/springframework/data/gemfire/GemfireUtilsTest.java b/src/test/java/org/springframework/data/gemfire/GemfireUtilsTest.java index 298b3ede..1990ef2e 100644 --- a/src/test/java/org/springframework/data/gemfire/GemfireUtilsTest.java +++ b/src/test/java/org/springframework/data/gemfire/GemfireUtilsTest.java @@ -29,13 +29,12 @@ import static org.mockito.Mockito.when; import java.util.Properties; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.distributed.DistributedSystem; +import org.apache.geode.internal.GemFireVersion; import org.junit.Test; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.client.ClientCache; -import com.gemstone.gemfire.distributed.DistributedSystem; -import com.gemstone.gemfire.internal.GemFireVersion; - /** * The GemfireUtilsTest class is a test suite of test cases testing the contract and functionality of the GemfireUtils * abstract utility class. @@ -138,7 +137,7 @@ public class GemfireUtilsTest { verifyZeroInteractions(mockClientCache); } - // NOTE implementation is based on a GemFire internal class... com.gemstone.gemfire.internal.GemFireVersion. + // NOTE implementation is based on a GemFire internal class... org.apache.geode.internal.GemFireVersion. protected int getGemFireVersion() { try { String gemfireVersion = GemFireVersion.getGemFireVersion(); diff --git a/src/test/java/org/springframework/data/gemfire/GenericRegionFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/GenericRegionFactoryBeanTest.java index b9491eb5..73f3482b 100644 --- a/src/test/java/org/springframework/data/gemfire/GenericRegionFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/GenericRegionFactoryBeanTest.java @@ -19,16 +19,15 @@ package org.springframework.data.gemfire; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.Scope; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheFactory; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.Scope; - /** * The GenericRegionFactoryBeanTest class is a test suite of test cases testing the contract and functionality * of the GenericRegionFactoryBean class. @@ -39,7 +38,7 @@ import com.gemstone.gemfire.cache.Scope; */ public class GenericRegionFactoryBeanTest { - // as defined in the com.gemstone.gemfire.internal.cache.AbstractRegion class + // as defined in the org.apache.geode.internal.cache.AbstractRegion class private static final Scope DEFAULT_SCOPE = Scope.DISTRIBUTED_NO_ACK; private static Region defaultRegion; diff --git a/src/test/java/org/springframework/data/gemfire/IndexConflictsIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/IndexConflictsIntegrationTest.java index 4b385729..1602db3e 100644 --- a/src/test/java/org/springframework/data/gemfire/IndexConflictsIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/IndexConflictsIntegrationTest.java @@ -27,6 +27,9 @@ import static org.junit.Assert.assertThat; import java.util.Properties; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.query.Index; +import org.apache.geode.cache.query.IndexExistsException; import org.junit.Before; import org.junit.Test; import org.springframework.beans.factory.BeanCreationException; @@ -39,10 +42,6 @@ import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.DependsOn; import org.springframework.context.annotation.Import; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.query.Index; -import com.gemstone.gemfire.cache.query.IndexExistsException; - /** * The IndexConflictsIntegrationTest class... * diff --git a/src/test/java/org/springframework/data/gemfire/IndexFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/IndexFactoryBeanTest.java index 5bc28f02..159326d2 100644 --- a/src/test/java/org/springframework/data/gemfire/IndexFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/IndexFactoryBeanTest.java @@ -49,6 +49,14 @@ import java.util.List; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.cache.query.Index; +import org.apache.geode.cache.query.IndexExistsException; +import org.apache.geode.cache.query.IndexInvalidException; +import org.apache.geode.cache.query.IndexNameConflictException; +import org.apache.geode.cache.query.IndexStatistics; +import org.apache.geode.cache.query.QueryService; import org.junit.After; import org.junit.Rule; import org.junit.Test; @@ -60,15 +68,6 @@ import org.springframework.beans.factory.config.ConfigurableBeanFactory; import org.springframework.data.gemfire.config.xml.GemfireConstants; import org.springframework.data.util.ReflectionUtils; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.client.ClientCache; -import com.gemstone.gemfire.cache.query.Index; -import com.gemstone.gemfire.cache.query.IndexExistsException; -import com.gemstone.gemfire.cache.query.IndexInvalidException; -import com.gemstone.gemfire.cache.query.IndexNameConflictException; -import com.gemstone.gemfire.cache.query.IndexStatistics; -import com.gemstone.gemfire.cache.query.QueryService; - /** * The IndexFactoryBeanTest class is a test suite of test cases testing the contract and functionality * of the IndexFactoryBean class. @@ -76,10 +75,10 @@ import com.gemstone.gemfire.cache.query.QueryService; * @author John Blum * @see org.junit.Test * @see org.springframework.data.gemfire.IndexFactoryBean - * @see com.gemstone.gemfire.cache.Cache - * @see com.gemstone.gemfire.cache.client.ClientCache - * @see com.gemstone.gemfire.cache.query.Index - * @see com.gemstone.gemfire.cache.query.QueryService + * @see org.apache.geode.cache.Cache + * @see org.apache.geode.cache.client.ClientCache + * @see org.apache.geode.cache.query.Index + * @see org.apache.geode.cache.query.QueryService * @since 1.5.2 */ public class IndexFactoryBeanTest { @@ -1021,7 +1020,7 @@ public class IndexFactoryBeanTest { when(mockIndex.getName()).thenReturn("MockIndex"); when(mockIndex.getProjectionAttributes()).thenReturn("id"); when(mockIndex.getStatistics()).thenReturn(mockIndexStats); - when(mockIndex.getType()).thenReturn(com.gemstone.gemfire.cache.query.IndexType.HASH); + when(mockIndex.getType()).thenReturn(org.apache.geode.cache.query.IndexType.HASH); when(mockQueryService.getIndexes()).thenReturn(Collections.singletonList(mockIndex)); IndexFactoryBean.IndexWrapper indexWrapper = new IndexFactoryBean.IndexWrapper(mockQueryService, "MockIndex"); @@ -1041,7 +1040,7 @@ public class IndexFactoryBeanTest { assertEquals("MockIndex", indexWrapper.getName()); assertEquals("id", indexWrapper.getProjectionAttributes()); assertSame(mockIndexStats, indexWrapper.getStatistics()); - assertEquals(com.gemstone.gemfire.cache.query.IndexType.HASH, indexWrapper.getType()); + assertEquals(org.apache.geode.cache.query.IndexType.HASH, indexWrapper.getType()); Index sameIndex = indexWrapper.getIndex(); diff --git a/src/test/java/org/springframework/data/gemfire/IndexMaintenancePolicyTypeTest.java b/src/test/java/org/springframework/data/gemfire/IndexMaintenancePolicyTypeTest.java index 38bc2e92..5cca4530 100644 --- a/src/test/java/org/springframework/data/gemfire/IndexMaintenancePolicyTypeTest.java +++ b/src/test/java/org/springframework/data/gemfire/IndexMaintenancePolicyTypeTest.java @@ -23,11 +23,10 @@ import static org.mockito.Matchers.eq; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; +import org.apache.geode.cache.AttributesFactory; +import org.apache.geode.cache.RegionFactory; import org.junit.Test; -import com.gemstone.gemfire.cache.AttributesFactory; -import com.gemstone.gemfire.cache.RegionFactory; - /** * The IndexMaintenanceTypeTest class is a test suite of test cases testing the contract and functionality of the * IndexMaintenanceType enum type. diff --git a/src/test/java/org/springframework/data/gemfire/IndexTypeTest.java b/src/test/java/org/springframework/data/gemfire/IndexTypeTest.java index cf6949d9..edf25443 100644 --- a/src/test/java/org/springframework/data/gemfire/IndexTypeTest.java +++ b/src/test/java/org/springframework/data/gemfire/IndexTypeTest.java @@ -37,22 +37,22 @@ public class IndexTypeTest { @Test public void testGetGemfireIndexType() { - assertEquals(com.gemstone.gemfire.cache.query.IndexType.FUNCTIONAL, IndexType.FUNCTIONAL.getGemfireIndexType()); - assertEquals(com.gemstone.gemfire.cache.query.IndexType.HASH, IndexType.HASH.getGemfireIndexType()); - assertEquals(com.gemstone.gemfire.cache.query.IndexType.PRIMARY_KEY, IndexType.KEY.getGemfireIndexType()); - assertEquals(com.gemstone.gemfire.cache.query.IndexType.PRIMARY_KEY, IndexType.PRIMARY_KEY.getGemfireIndexType()); + assertEquals(org.apache.geode.cache.query.IndexType.FUNCTIONAL, IndexType.FUNCTIONAL.getGemfireIndexType()); + assertEquals(org.apache.geode.cache.query.IndexType.HASH, IndexType.HASH.getGemfireIndexType()); + assertEquals(org.apache.geode.cache.query.IndexType.PRIMARY_KEY, IndexType.KEY.getGemfireIndexType()); + assertEquals(org.apache.geode.cache.query.IndexType.PRIMARY_KEY, IndexType.PRIMARY_KEY.getGemfireIndexType()); } @Test public void testValueOf() { - assertEquals(IndexType.FUNCTIONAL, IndexType.valueOf(com.gemstone.gemfire.cache.query.IndexType.FUNCTIONAL)); - assertEquals(IndexType.HASH, IndexType.valueOf(com.gemstone.gemfire.cache.query.IndexType.HASH)); - assertEquals(IndexType.PRIMARY_KEY, IndexType.valueOf(com.gemstone.gemfire.cache.query.IndexType.PRIMARY_KEY)); + assertEquals(IndexType.FUNCTIONAL, IndexType.valueOf(org.apache.geode.cache.query.IndexType.FUNCTIONAL)); + assertEquals(IndexType.HASH, IndexType.valueOf(org.apache.geode.cache.query.IndexType.HASH)); + assertEquals(IndexType.PRIMARY_KEY, IndexType.valueOf(org.apache.geode.cache.query.IndexType.PRIMARY_KEY)); } @Test public void testValueOfWithNull() { - assertNull(IndexType.valueOf((com.gemstone.gemfire.cache.query.IndexType) null)); + assertNull(IndexType.valueOf((org.apache.geode.cache.query.IndexType) null)); } @Test diff --git a/src/test/java/org/springframework/data/gemfire/Init.java b/src/test/java/org/springframework/data/gemfire/Init.java index 02cd847f..678c9137 100644 --- a/src/test/java/org/springframework/data/gemfire/Init.java +++ b/src/test/java/org/springframework/data/gemfire/Init.java @@ -16,18 +16,17 @@ package org.springframework.data.gemfire; +import org.apache.geode.cache.server.CacheServer; import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.BeanFactoryAware; import org.springframework.beans.factory.InitializingBean; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.server.CacheServer; - /** - * Simple bean used to check initialization order - * + * Simple bean used to check initialization order + * * @author Costin Leau */ public class Init implements InitializingBean, BeanFactoryAware { diff --git a/src/test/java/org/springframework/data/gemfire/InterestPolicyConverterUnitTests.java b/src/test/java/org/springframework/data/gemfire/InterestPolicyConverterUnitTests.java index 61d7b6ea..14a43ac6 100644 --- a/src/test/java/org/springframework/data/gemfire/InterestPolicyConverterUnitTests.java +++ b/src/test/java/org/springframework/data/gemfire/InterestPolicyConverterUnitTests.java @@ -20,8 +20,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.nullValue; -import com.gemstone.gemfire.cache.InterestPolicy; - +import org.apache.geode.cache.InterestPolicy; import org.junit.After; import org.junit.Rule; import org.junit.Test; @@ -33,7 +32,7 @@ import org.junit.rules.ExpectedException; * @author John Blum * @see org.junit.Test * @see org.springframework.data.gemfire.InterestPolicyConverter - * @see com.gemstone.gemfire.cache.InterestPolicy + * @see org.apache.geode.cache.InterestPolicy * @since 1.6.0 */ public class InterestPolicyConverterUnitTests { diff --git a/src/test/java/org/springframework/data/gemfire/InterestPolicyTypeTest.java b/src/test/java/org/springframework/data/gemfire/InterestPolicyTypeTest.java index 524a7cf7..bdadabb4 100644 --- a/src/test/java/org/springframework/data/gemfire/InterestPolicyTypeTest.java +++ b/src/test/java/org/springframework/data/gemfire/InterestPolicyTypeTest.java @@ -21,10 +21,9 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertSame; +import org.apache.geode.cache.InterestPolicy; import org.junit.Test; -import com.gemstone.gemfire.cache.InterestPolicy; - /** * The InterestPolicyTypeTest class is a test suite of test cases testing the contract and functionality * of the InterestPolicyType enum. @@ -32,7 +31,7 @@ import com.gemstone.gemfire.cache.InterestPolicy; * @author John Blum * @see org.junit.Test * @see org.springframework.data.gemfire.InterestPolicyType - * @see com.gemstone.gemfire.cache.InterestPolicy + * @see org.apache.geode.cache.InterestPolicy * @since 1.6.0 */ public class InterestPolicyTypeTest { diff --git a/src/test/java/org/springframework/data/gemfire/LazyWiringDeclarableSupportFunctionBasedIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/LazyWiringDeclarableSupportFunctionBasedIntegrationTest.java index 24cf388d..ac1892ac 100644 --- a/src/test/java/org/springframework/data/gemfire/LazyWiringDeclarableSupportFunctionBasedIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/LazyWiringDeclarableSupportFunctionBasedIntegrationTest.java @@ -22,6 +22,9 @@ import static org.junit.Assert.assertThat; import java.util.Properties; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.execute.Function; +import org.apache.geode.cache.execute.FunctionContext; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -32,10 +35,6 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.util.Assert; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.execute.Function; -import com.gemstone.gemfire.cache.execute.FunctionContext; - /** * The LazyWiringDeclarableSupportFunctionBasedIntegrationTest class is a test suite of test cases testing the contract * and functionality of a GemFire Function implementing LazyWiringDeclarableSupport, defined using native GemFire diff --git a/src/test/java/org/springframework/data/gemfire/LazyWiringDeclarableSupportIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/LazyWiringDeclarableSupportIntegrationTest.java index 8712edcd..9f504636 100644 --- a/src/test/java/org/springframework/data/gemfire/LazyWiringDeclarableSupportIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/LazyWiringDeclarableSupportIntegrationTest.java @@ -22,6 +22,7 @@ import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import java.util.Properties; + import javax.sql.DataSource; import org.junit.Test; diff --git a/src/test/java/org/springframework/data/gemfire/LocalRegionFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/LocalRegionFactoryBeanTest.java index 5c6e5662..93fc6f28 100644 --- a/src/test/java/org/springframework/data/gemfire/LocalRegionFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/LocalRegionFactoryBeanTest.java @@ -23,14 +23,13 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionFactory; +import org.apache.geode.cache.RegionShortcut; import org.junit.Test; import org.springframework.data.gemfire.support.AbstractRegionFactoryBeanTest; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionFactory; -import com.gemstone.gemfire.cache.RegionShortcut; - /** * The PartitionedRegionFactoryBeanTest class is a test suite of test cases testing the component functionality * and correct behavior of the PartitionedRegionFactoryBean class. diff --git a/src/test/java/org/springframework/data/gemfire/LookupRegionFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/LookupRegionFactoryBeanTest.java index e222727c..7b6ebab7 100644 --- a/src/test/java/org/springframework/data/gemfire/LookupRegionFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/LookupRegionFactoryBeanTest.java @@ -27,21 +27,20 @@ import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; +import org.apache.geode.cache.AttributesMutator; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheListener; +import org.apache.geode.cache.CacheLoader; +import org.apache.geode.cache.CacheWriter; +import org.apache.geode.cache.CustomExpiry; +import org.apache.geode.cache.EvictionAttributesMutator; +import org.apache.geode.cache.ExpirationAttributes; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionAttributes; +import org.apache.geode.cache.asyncqueue.AsyncEventQueue; +import org.apache.geode.cache.wan.GatewaySender; import org.junit.Test; -import com.gemstone.gemfire.cache.AttributesMutator; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheListener; -import com.gemstone.gemfire.cache.CacheLoader; -import com.gemstone.gemfire.cache.CacheWriter; -import com.gemstone.gemfire.cache.CustomExpiry; -import com.gemstone.gemfire.cache.EvictionAttributesMutator; -import com.gemstone.gemfire.cache.ExpirationAttributes; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionAttributes; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueue; -import com.gemstone.gemfire.cache.wan.GatewaySender; - /** * The LookupRegionFactoryBeanTest class is a test suite of test cases testing the contract and functionality * of the LookupRegionFactoryBean class. @@ -50,10 +49,10 @@ import com.gemstone.gemfire.cache.wan.GatewaySender; * @see org.junit.Test * @see org.mockito.Mockito * @see org.springframework.data.gemfire.LookupRegionFactoryBean - * @see com.gemstone.gemfire.cache.AttributesMutator - * @see com.gemstone.gemfire.cache.Cache - * @see com.gemstone.gemfire.cache.EvictionAttributesMutator - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.AttributesMutator + * @see org.apache.geode.cache.Cache + * @see org.apache.geode.cache.EvictionAttributesMutator + * @see org.apache.geode.cache.Region * @since 1.7.0 */ public class LookupRegionFactoryBeanTest { diff --git a/src/test/java/org/springframework/data/gemfire/LookupRegionMutationIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/LookupRegionMutationIntegrationTest.java index 68e8bc23..811e8e87 100644 --- a/src/test/java/org/springframework/data/gemfire/LookupRegionMutationIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/LookupRegionMutationIntegrationTest.java @@ -24,8 +24,28 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; + import javax.annotation.Resource; +import org.apache.geode.cache.CacheListener; +import org.apache.geode.cache.CacheLoader; +import org.apache.geode.cache.CacheLoaderException; +import org.apache.geode.cache.CacheWriter; +import org.apache.geode.cache.CacheWriterException; +import org.apache.geode.cache.CustomExpiry; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.EntryEvent; +import org.apache.geode.cache.EvictionAction; +import org.apache.geode.cache.EvictionAlgorithm; +import org.apache.geode.cache.EvictionAttributes; +import org.apache.geode.cache.ExpirationAction; +import org.apache.geode.cache.ExpirationAttributes; +import org.apache.geode.cache.LoaderHelper; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionEvent; +import org.apache.geode.cache.asyncqueue.AsyncEvent; +import org.apache.geode.cache.asyncqueue.AsyncEventListener; +import org.apache.geode.cache.util.CacheListenerAdapter; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.BeanNameAware; @@ -33,26 +53,6 @@ import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.CacheListener; -import com.gemstone.gemfire.cache.CacheLoader; -import com.gemstone.gemfire.cache.CacheLoaderException; -import com.gemstone.gemfire.cache.CacheWriter; -import com.gemstone.gemfire.cache.CacheWriterException; -import com.gemstone.gemfire.cache.CustomExpiry; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.EntryEvent; -import com.gemstone.gemfire.cache.EvictionAction; -import com.gemstone.gemfire.cache.EvictionAlgorithm; -import com.gemstone.gemfire.cache.EvictionAttributes; -import com.gemstone.gemfire.cache.ExpirationAction; -import com.gemstone.gemfire.cache.ExpirationAttributes; -import com.gemstone.gemfire.cache.LoaderHelper; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionEvent; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEvent; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventListener; -import com.gemstone.gemfire.cache.util.CacheListenerAdapter; - /** * The LookupRegionMutationIntegrationTest class is a test suite of test cases testing the contract and integrated * functionality between natively-defined GemFire Cache Regions and SDG's Region lookup functionality combined with diff --git a/src/test/java/org/springframework/data/gemfire/LookupSubRegionTest.java b/src/test/java/org/springframework/data/gemfire/LookupSubRegionTest.java index d2c3ca24..1bffe78d 100644 --- a/src/test/java/org/springframework/data/gemfire/LookupSubRegionTest.java +++ b/src/test/java/org/springframework/data/gemfire/LookupSubRegionTest.java @@ -20,6 +20,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; +import org.apache.geode.cache.Region; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -27,8 +28,6 @@ import org.springframework.context.ApplicationContext; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Region; - /** * The LookupSubRegionTest class is a test suite of test cases testing the contract and functionality of Region lookups * using Spring Data GemFire configuration and GemFire native cache.xml. @@ -38,7 +37,7 @@ import com.gemstone.gemfire.cache.Region; * @see org.springframework.context.ApplicationContext * @see org.springframework.test.context.ContextConfiguration * @see org.springframework.test.context.junit4.SpringJUnit4ClassRunner - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region * @since 1.3.3 * @since 7.0.1 (GemFire) */ diff --git a/src/test/java/org/springframework/data/gemfire/PartitionAttributesFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/PartitionAttributesFactoryBeanTest.java index 4d3133f5..9349d6ee 100644 --- a/src/test/java/org/springframework/data/gemfire/PartitionAttributesFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/PartitionAttributesFactoryBeanTest.java @@ -21,11 +21,10 @@ import static org.junit.Assert.assertNotNull; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; +import org.apache.geode.cache.PartitionAttributes; +import org.apache.geode.cache.PartitionResolver; import org.junit.Test; -import com.gemstone.gemfire.cache.PartitionAttributes; -import com.gemstone.gemfire.cache.PartitionResolver; - /** * The PartitionAttributesFactoryBeanTest class is test suite of test cases testing the contract and functionality of * the PartitionAttributesFactoryBean class. diff --git a/src/test/java/org/springframework/data/gemfire/PartitionedRegionFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/PartitionedRegionFactoryBeanTest.java index 0d520b86..d3dbf70f 100644 --- a/src/test/java/org/springframework/data/gemfire/PartitionedRegionFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/PartitionedRegionFactoryBeanTest.java @@ -22,11 +22,10 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.RegionFactory; import org.junit.Test; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.RegionFactory; - /** * The PartitionedRegionFactoryBeanTest class is a test suite of test cases testing the component functionality * and correct behavior of the PartitionedRegionFactoryBean class. @@ -35,8 +34,8 @@ import com.gemstone.gemfire.cache.RegionFactory; * @see org.junit.Test * @see org.mockito.Mockito * @see org.springframework.data.gemfire.PartitionedRegionFactoryBean - * @see com.gemstone.gemfire.cache.DataPolicy - * @see com.gemstone.gemfire.cache.RegionFactory + * @see org.apache.geode.cache.DataPolicy + * @see org.apache.geode.cache.RegionFactory * @since 1.3.3 */ @SuppressWarnings("unchecked") diff --git a/src/test/java/org/springframework/data/gemfire/PdxDiskStoreIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/PdxDiskStoreIntegrationTest.java index d6c38673..f0f3ea46 100644 --- a/src/test/java/org/springframework/data/gemfire/PdxDiskStoreIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/PdxDiskStoreIntegrationTest.java @@ -22,8 +22,10 @@ import static org.junit.Assert.assertTrue; import java.io.File; import java.io.Serializable; + import javax.annotation.Resource; +import org.apache.geode.cache.Region; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; @@ -34,8 +36,6 @@ import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.Region; - /** * The PdxDiskStoreTest class is a test suite containing tests to reproduce the issue in JIRA SGF-197. * diff --git a/src/test/java/org/springframework/data/gemfire/RegionDataPolicyShortcutsIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/RegionDataPolicyShortcutsIntegrationTest.java index 31b943ff..f4aa5db4 100644 --- a/src/test/java/org/springframework/data/gemfire/RegionDataPolicyShortcutsIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/RegionDataPolicyShortcutsIntegrationTest.java @@ -23,16 +23,15 @@ import static org.junit.Assert.assertTrue; import javax.annotation.Resource; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.EvictionAction; +import org.apache.geode.cache.EvictionAlgorithm; +import org.apache.geode.cache.Region; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.EvictionAction; -import com.gemstone.gemfire.cache.EvictionAlgorithm; -import com.gemstone.gemfire.cache.Region; - /** * The RegionShortcutsIntegrationTest class is a test suite of test cases testing the use of RegionShortcuts in the * Spring Data GemFire XML Namespace! @@ -42,7 +41,7 @@ import com.gemstone.gemfire.cache.Region; * @see org.junit.runner.RunWith * @see org.springframework.test.context.ContextConfiguration * @see org.springframework.test.context.junit4.SpringJUnit4ClassRunner - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region * @since 1.4.0 */ @ContextConfiguration("region-datapolicy-shortcuts.xml") diff --git a/src/test/java/org/springframework/data/gemfire/RegionFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/RegionFactoryBeanTest.java index 9c037df9..163ac1d2 100644 --- a/src/test/java/org/springframework/data/gemfire/RegionFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/RegionFactoryBeanTest.java @@ -34,21 +34,20 @@ import static org.mockito.Mockito.when; import java.util.concurrent.atomic.AtomicBoolean; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CustomExpiry; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.EvictionAttributes; -import com.gemstone.gemfire.cache.ExpirationAction; -import com.gemstone.gemfire.cache.ExpirationAttributes; -import com.gemstone.gemfire.cache.MembershipAttributes; -import com.gemstone.gemfire.cache.PartitionAttributes; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionAttributes; -import com.gemstone.gemfire.cache.RegionFactory; -import com.gemstone.gemfire.cache.RegionShortcut; -import com.gemstone.gemfire.cache.SubscriptionAttributes; -import com.gemstone.gemfire.internal.cache.GemFireCacheImpl; - +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CustomExpiry; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.EvictionAttributes; +import org.apache.geode.cache.ExpirationAction; +import org.apache.geode.cache.ExpirationAttributes; +import org.apache.geode.cache.MembershipAttributes; +import org.apache.geode.cache.PartitionAttributes; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionAttributes; +import org.apache.geode.cache.RegionFactory; +import org.apache.geode.cache.RegionShortcut; +import org.apache.geode.cache.SubscriptionAttributes; +import org.apache.geode.internal.cache.GemFireCacheImpl; import org.junit.After; import org.junit.Test; import org.springframework.data.gemfire.support.AbstractRegionFactoryBeanTest; @@ -61,13 +60,13 @@ import org.springframework.data.gemfire.util.ArrayUtils; * @author David Turanski * @author John Blum * @see org.springframework.data.gemfire.RegionFactoryBean - * @see com.gemstone.gemfire.cache.Cache - * @see com.gemstone.gemfire.cache.DataPolicy - * @see com.gemstone.gemfire.cache.PartitionAttributes - * @see com.gemstone.gemfire.cache.Region - * @see com.gemstone.gemfire.cache.RegionAttributes - * @see com.gemstone.gemfire.cache.RegionFactory - * @see com.gemstone.gemfire.cache.RegionShortcut + * @see org.apache.geode.cache.Cache + * @see org.apache.geode.cache.DataPolicy + * @see org.apache.geode.cache.PartitionAttributes + * @see org.apache.geode.cache.Region + * @see org.apache.geode.cache.RegionAttributes + * @see org.apache.geode.cache.RegionFactory + * @see org.apache.geode.cache.RegionShortcut */ @SuppressWarnings("unchecked") public class RegionFactoryBeanTest extends AbstractRegionFactoryBeanTest { diff --git a/src/test/java/org/springframework/data/gemfire/RegionLookupIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/RegionLookupIntegrationTests.java index bf1d107c..46eb283f 100644 --- a/src/test/java/org/springframework/data/gemfire/RegionLookupIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/RegionLookupIntegrationTests.java @@ -22,16 +22,15 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionExistsException; +import org.apache.geode.cache.Scope; import org.junit.Test; import org.springframework.beans.factory.BeanCreationException; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionExistsException; -import com.gemstone.gemfire.cache.Scope; - /** * The RegionLookupIntegrationTests class is a test suite of test cases testing the lookup functionality for various * peer Region types. @@ -40,7 +39,7 @@ import com.gemstone.gemfire.cache.Scope; * @see org.junit.Test * @see org.springframework.context.ConfigurableApplicationContext * @see org.springframework.data.gemfire.fork.SpringCacheServerProcess - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region * @since 1.4.0 * @link https://jira.spring.io/browse/SGF-204 */ diff --git a/src/test/java/org/springframework/data/gemfire/RegionShortcutConverterTest.java b/src/test/java/org/springframework/data/gemfire/RegionShortcutConverterTest.java index a15c4140..cf00b10a 100644 --- a/src/test/java/org/springframework/data/gemfire/RegionShortcutConverterTest.java +++ b/src/test/java/org/springframework/data/gemfire/RegionShortcutConverterTest.java @@ -18,10 +18,9 @@ package org.springframework.data.gemfire; import static org.junit.Assert.assertEquals; +import org.apache.geode.cache.RegionShortcut; import org.junit.Test; -import com.gemstone.gemfire.cache.RegionShortcut; - /** * The RegionShortcutConverterTest class is a test suite of test cases testing the contract and functionality of the * RegionShortcutConverter class @@ -29,7 +28,7 @@ import com.gemstone.gemfire.cache.RegionShortcut; * @author John Blum * @see org.junit.Test * @see org.springframework.data.gemfire.RegionShortcutConverter - * @see com.gemstone.gemfire.cache.RegionShortcut + * @see org.apache.geode.cache.RegionShortcut * @since 1.3.4 */ public class RegionShortcutConverterTest { diff --git a/src/test/java/org/springframework/data/gemfire/RegionShortcutWrapperTest.java b/src/test/java/org/springframework/data/gemfire/RegionShortcutWrapperTest.java index a64bbe0d..280d33d5 100644 --- a/src/test/java/org/springframework/data/gemfire/RegionShortcutWrapperTest.java +++ b/src/test/java/org/springframework/data/gemfire/RegionShortcutWrapperTest.java @@ -21,8 +21,7 @@ import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; -import com.gemstone.gemfire.cache.RegionShortcut; - +import org.apache.geode.cache.RegionShortcut; import org.junit.Test; /** @@ -32,7 +31,7 @@ import org.junit.Test; * @author John Blum * @see org.junit.Test * @see RegionShortcutWrapper - * @see com.gemstone.gemfire.cache.RegionShortcut + * @see org.apache.geode.cache.RegionShortcut * @since 1.4.0 */ public class RegionShortcutWrapperTest { diff --git a/src/test/java/org/springframework/data/gemfire/ReplicatedRegionFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/ReplicatedRegionFactoryBeanTest.java index 5a61d879..fb1332c5 100644 --- a/src/test/java/org/springframework/data/gemfire/ReplicatedRegionFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/ReplicatedRegionFactoryBeanTest.java @@ -22,11 +22,10 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.RegionFactory; import org.junit.Test; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.RegionFactory; - /** * The ReplicatedRegionFactoryBeanTest class is a test suite of test cases testing the component functionality * and correct behavior of the ReplicatedRegionFactoryBean class. @@ -35,8 +34,8 @@ import com.gemstone.gemfire.cache.RegionFactory; * @see org.junit.Test * @see org.mockito.Mockito * @see org.springframework.data.gemfire.ReplicatedRegionFactoryBean - * @see com.gemstone.gemfire.cache.DataPolicy - * @see com.gemstone.gemfire.cache.RegionFactory + * @see org.apache.geode.cache.DataPolicy + * @see org.apache.geode.cache.RegionFactory * @since 1.3.3 */ @SuppressWarnings("unchecked") diff --git a/src/test/java/org/springframework/data/gemfire/ScopeConverterUnitTests.java b/src/test/java/org/springframework/data/gemfire/ScopeConverterUnitTests.java index 0a24be73..aeaf8d60 100644 --- a/src/test/java/org/springframework/data/gemfire/ScopeConverterUnitTests.java +++ b/src/test/java/org/springframework/data/gemfire/ScopeConverterUnitTests.java @@ -20,8 +20,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.nullValue; -import com.gemstone.gemfire.cache.Scope; - +import org.apache.geode.cache.Scope; import org.junit.After; import org.junit.Rule; import org.junit.Test; @@ -33,7 +32,7 @@ import org.junit.rules.ExpectedException; * @author John Blum * @see org.junit.Test * @see org.springframework.data.gemfire.ScopeConverter - * @see com.gemstone.gemfire.cache.Scope + * @see org.apache.geode.cache.Scope * @since 1.6.0 */ public class ScopeConverterUnitTests { diff --git a/src/test/java/org/springframework/data/gemfire/ScopeTypeTest.java b/src/test/java/org/springframework/data/gemfire/ScopeTypeTest.java index 05c45053..2eb88036 100644 --- a/src/test/java/org/springframework/data/gemfire/ScopeTypeTest.java +++ b/src/test/java/org/springframework/data/gemfire/ScopeTypeTest.java @@ -21,17 +21,16 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertSame; +import org.apache.geode.cache.Scope; import org.junit.Test; -import com.gemstone.gemfire.cache.Scope; - /** * The ScopeTypeTest class is a test suite of test cases testing the contract and functionality of the ScopeType enum. * * @author John Blum * @see org.junit.Test * @see org.springframework.data.gemfire.ScopeType - * @see com.gemstone.gemfire.cache.Scope + * @see org.apache.geode.cache.Scope * @since 1.6.0 */ public class ScopeTypeTest { diff --git a/src/test/java/org/springframework/data/gemfire/SimpleCacheListener.java b/src/test/java/org/springframework/data/gemfire/SimpleCacheListener.java index 14717664..e9b30ef7 100644 --- a/src/test/java/org/springframework/data/gemfire/SimpleCacheListener.java +++ b/src/test/java/org/springframework/data/gemfire/SimpleCacheListener.java @@ -16,7 +16,7 @@ package org.springframework.data.gemfire; -import com.gemstone.gemfire.cache.util.CacheListenerAdapter; +import org.apache.geode.cache.util.CacheListenerAdapter; /** * @author Costin Leau diff --git a/src/test/java/org/springframework/data/gemfire/SimpleCacheLoader.java b/src/test/java/org/springframework/data/gemfire/SimpleCacheLoader.java index 23202f1b..3365ea95 100644 --- a/src/test/java/org/springframework/data/gemfire/SimpleCacheLoader.java +++ b/src/test/java/org/springframework/data/gemfire/SimpleCacheLoader.java @@ -16,9 +16,9 @@ package org.springframework.data.gemfire; -import com.gemstone.gemfire.cache.CacheLoader; -import com.gemstone.gemfire.cache.CacheLoaderException; -import com.gemstone.gemfire.cache.LoaderHelper; +import org.apache.geode.cache.CacheLoader; +import org.apache.geode.cache.CacheLoaderException; +import org.apache.geode.cache.LoaderHelper; /** * @author Costin Leau diff --git a/src/test/java/org/springframework/data/gemfire/SimpleCacheWriter.java b/src/test/java/org/springframework/data/gemfire/SimpleCacheWriter.java index 345b90fc..4dd088d6 100644 --- a/src/test/java/org/springframework/data/gemfire/SimpleCacheWriter.java +++ b/src/test/java/org/springframework/data/gemfire/SimpleCacheWriter.java @@ -16,7 +16,7 @@ package org.springframework.data.gemfire; -import com.gemstone.gemfire.cache.util.CacheWriterAdapter; +import org.apache.geode.cache.util.CacheWriterAdapter; /** * @author Costin Leau diff --git a/src/test/java/org/springframework/data/gemfire/SimpleObjectSizer.java b/src/test/java/org/springframework/data/gemfire/SimpleObjectSizer.java index cd9da6ce..392b1d0e 100644 --- a/src/test/java/org/springframework/data/gemfire/SimpleObjectSizer.java +++ b/src/test/java/org/springframework/data/gemfire/SimpleObjectSizer.java @@ -16,7 +16,7 @@ package org.springframework.data.gemfire; -import com.gemstone.gemfire.cache.util.ObjectSizer; +import org.apache.geode.cache.util.ObjectSizer; /** * @author Costin Leau diff --git a/src/test/java/org/springframework/data/gemfire/SimplePartitionResolver.java b/src/test/java/org/springframework/data/gemfire/SimplePartitionResolver.java index 833cdb00..db7c824c 100644 --- a/src/test/java/org/springframework/data/gemfire/SimplePartitionResolver.java +++ b/src/test/java/org/springframework/data/gemfire/SimplePartitionResolver.java @@ -18,8 +18,8 @@ package org.springframework.data.gemfire; import java.io.Serializable; -import com.gemstone.gemfire.cache.EntryOperation; -import com.gemstone.gemfire.cache.PartitionResolver; +import org.apache.geode.cache.EntryOperation; +import org.apache.geode.cache.PartitionResolver; /** * @author Costin Leau diff --git a/src/test/java/org/springframework/data/gemfire/SubRegionIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/SubRegionIntegrationTest.java index d9840cd0..b2513079 100644 --- a/src/test/java/org/springframework/data/gemfire/SubRegionIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/SubRegionIntegrationTest.java @@ -24,6 +24,18 @@ import static org.junit.Assert.assertTrue; import javax.annotation.Resource; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.EvictionAction; +import org.apache.geode.cache.EvictionAttributes; +import org.apache.geode.cache.InterestPolicy; +import org.apache.geode.cache.LossAction; +import org.apache.geode.cache.MembershipAttributes; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionAttributes; +import org.apache.geode.cache.ResumptionAction; +import org.apache.geode.cache.Scope; +import org.apache.geode.cache.SubscriptionAttributes; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -31,19 +43,6 @@ import org.springframework.data.gemfire.test.GemfireTestApplicationContextInitia import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.EvictionAction; -import com.gemstone.gemfire.cache.EvictionAttributes; -import com.gemstone.gemfire.cache.InterestPolicy; -import com.gemstone.gemfire.cache.LossAction; -import com.gemstone.gemfire.cache.MembershipAttributes; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionAttributes; -import com.gemstone.gemfire.cache.ResumptionAction; -import com.gemstone.gemfire.cache.Scope; -import com.gemstone.gemfire.cache.SubscriptionAttributes; - /** * The SubRegionIntegrationTest class is a test suite of test cases testing the functionality of SubRegions in GemFire * configured with Spring Data GemFire's XML namespace configuration meta-data. This test class tests a complex diff --git a/src/test/java/org/springframework/data/gemfire/SubscriptionAttributesFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/SubscriptionAttributesFactoryBeanTest.java index cd17c080..c4ac6bf8 100644 --- a/src/test/java/org/springframework/data/gemfire/SubscriptionAttributesFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/SubscriptionAttributesFactoryBeanTest.java @@ -20,11 +20,10 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; +import org.apache.geode.cache.InterestPolicy; +import org.apache.geode.cache.SubscriptionAttributes; import org.junit.Test; -import com.gemstone.gemfire.cache.InterestPolicy; -import com.gemstone.gemfire.cache.SubscriptionAttributes; - /** * The SubscriptionAttributesFactoryBeanTest class is a test suite of test cases testing the contract and functionality * of the SubscriptionAttributesFactoryBean class. diff --git a/src/test/java/org/springframework/data/gemfire/TxIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/TxIntegrationTest.java index 5bc1c5eb..17a596d7 100644 --- a/src/test/java/org/springframework/data/gemfire/TxIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/TxIntegrationTest.java @@ -20,6 +20,7 @@ import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.util.Map; + import javax.annotation.Resource; import org.junit.Test; @@ -33,7 +34,7 @@ import org.springframework.transaction.annotation.Transactional; /** * Simple TX integration test. - * + * * @author Costin Leau */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/src/test/java/org/springframework/data/gemfire/UserObject.java b/src/test/java/org/springframework/data/gemfire/UserObject.java index 7180b614..9aea9a8f 100644 --- a/src/test/java/org/springframework/data/gemfire/UserObject.java +++ b/src/test/java/org/springframework/data/gemfire/UserObject.java @@ -16,13 +16,13 @@ package org.springframework.data.gemfire; -import com.gemstone.gemfire.cache.CacheLoader; -import com.gemstone.gemfire.cache.CacheLoaderException; -import com.gemstone.gemfire.cache.LoaderHelper; +import org.apache.geode.cache.CacheLoader; +import org.apache.geode.cache.CacheLoaderException; +import org.apache.geode.cache.LoaderHelper; /** * User object used for testing Spring wiring. - * + * * @author Costin Leau */ @SuppressWarnings("rawtypes") @@ -71,4 +71,4 @@ public class UserObject extends WiringDeclarableSupport implements CacheLoader { public void setProp2(Object prop2) { this.prop2 = prop2; } -} \ No newline at end of file +} diff --git a/src/test/java/org/springframework/data/gemfire/cache/CachingWithGemFireIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/cache/CachingWithGemFireIntegrationTest.java index b42be55e..f6f324ba 100644 --- a/src/test/java/org/springframework/data/gemfire/cache/CachingWithGemFireIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/cache/CachingWithGemFireIntegrationTest.java @@ -26,8 +26,7 @@ import java.util.Map; import javax.annotation.PostConstruct; import javax.annotation.Resource; -import com.gemstone.gemfire.cache.Region; - +import org.apache.geode.cache.Region; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; diff --git a/src/test/java/org/springframework/data/gemfire/cache/CompoundCachePutCacheEvictIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/cache/CompoundCachePutCacheEvictIntegrationTests.java index 76de0b71..d1a00b57 100644 --- a/src/test/java/org/springframework/data/gemfire/cache/CompoundCachePutCacheEvictIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/cache/CompoundCachePutCacheEvictIntegrationTests.java @@ -26,8 +26,7 @@ import java.util.concurrent.atomic.AtomicBoolean; import javax.annotation.Resource; -import com.gemstone.gemfire.cache.GemFireCache; - +import org.apache.geode.cache.GemFireCache; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -86,7 +85,7 @@ public class CompoundCachePutCacheEvictIntegrationTests { private PeopleService peopleService; @Resource(name = "People") - private com.gemstone.gemfire.cache.Region peopleRegion; + private org.apache.geode.cache.Region peopleRegion; protected void assertNoPeopleInDepartment(Department department) { assertPeopleInDepartment(department); @@ -154,7 +153,7 @@ public class CompoundCachePutCacheEvictIntegrationTests { GemfireCacheManager cacheManager(GemFireCache gemfireCache) { GemfireCacheManager cacheManager = new GemfireCacheManager() { @Override protected org.springframework.cache.Cache decorateCache(org.springframework.cache.Cache cache) { - return new GemfireCache((com.gemstone.gemfire.cache.Region) cache.getNativeCache()) { + return new GemfireCache((org.apache.geode.cache.Region) cache.getNativeCache()) { @Override public void evict(Object key) { getNativeCache().remove(key); } diff --git a/src/test/java/org/springframework/data/gemfire/cache/GemfireCacheIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/cache/GemfireCacheIntegrationTests.java index bafeacd1..632d9d49 100644 --- a/src/test/java/org/springframework/data/gemfire/cache/GemfireCacheIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/cache/GemfireCacheIntegrationTests.java @@ -26,9 +26,8 @@ import java.util.concurrent.atomic.AtomicBoolean; import edu.umd.cs.mtc.MultithreadedTestCase; import edu.umd.cs.mtc.TestFramework; -import com.gemstone.gemfire.cache.CacheFactory; -import com.gemstone.gemfire.cache.Region; - +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.Region; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; @@ -46,7 +45,7 @@ import org.springframework.data.gemfire.support.AbstractNativeCacheTests; * @see edu.umd.cs.mtc.MultithreadedTestCase * @see edu.umd.cs.mtc.TestFramework * @see org.springframework.cache.Cache - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region */ public class GemfireCacheIntegrationTests extends AbstractNativeCacheTests> { @@ -67,7 +66,7 @@ public class GemfireCacheIntegrationTests extends AbstractNativeCacheTests result = new ArrayList(); for (int i = 0; i< 100; i++) { result.add(i); @@ -62,21 +61,21 @@ public class BatchingResultSenderTest { brs.sendArrayResults(result.toArray(new Integer[100])); } else { brs.sendResults(result); - } - + } + assertEquals(100,resultSender.getResults().size()); - + for(int i=0; i< 100; i++) { assertEquals(i,resultSender.getResults().get(i)); } - + } - + public static abstract class AbstractTestResultSender implements ResultSender { private List results = new ArrayList(); - + /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.execute.ResultSender#lastResult(java.lang.Object) + * @see org.apache.geode.cache.execute.ResultSender#lastResult(java.lang.Object) */ @Override public void lastResult(Object arg0) { @@ -87,37 +86,37 @@ public class BatchingResultSenderTest { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.execute.ResultSender#sendException(java.lang.Throwable) + * @see org.apache.geode.cache.execute.ResultSender#sendException(java.lang.Throwable) */ @Override public void sendException(Throwable arg0) { fail(); - + } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.execute.ResultSender#sendResult(java.lang.Object) + * @see org.apache.geode.cache.execute.ResultSender#sendResult(java.lang.Object) */ @Override public void sendResult(Object arg0) { if (arg0 == null) { return; } - addResults(arg0, results); + addResults(arg0, results); } - + protected abstract void addResults(Object item, List results); - + public List getResults() { return this.results; } - - + + } - + public static class TestArrayResultSender extends AbstractTestResultSender { - - protected void addResults(Object arg0, List results) { + + protected void addResults(Object arg0, List results) { assertTrue(arg0.getClass().isArray()); Object[] array = (Object[]) arg0; for (Object obj: array) { @@ -125,7 +124,7 @@ public class BatchingResultSenderTest { } } } - + public static class TestListResultSender extends AbstractTestResultSender { protected void addResults(Object arg0, List results) { if (arg0 == null) { @@ -134,6 +133,6 @@ public class BatchingResultSenderTest { assertTrue(arg0 instanceof Collection); Collection list = (Collection) arg0; results.addAll(list); - } + } } } diff --git a/src/test/java/org/springframework/data/gemfire/function/ClientCacheFunctionExecutionWithPdxIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/function/ClientCacheFunctionExecutionWithPdxIntegrationTest.java index f5c93f4e..824f2c21 100644 --- a/src/test/java/org/springframework/data/gemfire/function/ClientCacheFunctionExecutionWithPdxIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/function/ClientCacheFunctionExecutionWithPdxIntegrationTest.java @@ -26,6 +26,13 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.pdx.PdxInstance; +import org.apache.geode.pdx.PdxInstanceFactory; +import org.apache.geode.pdx.PdxReader; +import org.apache.geode.pdx.PdxSerializer; +import org.apache.geode.pdx.PdxWriter; +import org.apache.geode.pdx.internal.PdxInstanceEnum; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; @@ -41,14 +48,6 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.util.Assert; import org.springframework.util.ObjectUtils; -import com.gemstone.gemfire.cache.client.ClientCache; -import com.gemstone.gemfire.pdx.PdxInstance; -import com.gemstone.gemfire.pdx.PdxInstanceFactory; -import com.gemstone.gemfire.pdx.PdxReader; -import com.gemstone.gemfire.pdx.PdxSerializer; -import com.gemstone.gemfire.pdx.PdxWriter; -import com.gemstone.gemfire.pdx.internal.PdxInstanceEnum; - /** * The ClientCacheFunctionExecutionWithPdxIntegrationTest class is a test suite of test cases testing Spring Data * GemFire's Function annotation support and interaction between a GemFire client and server Cache @@ -62,10 +61,10 @@ import com.gemstone.gemfire.pdx.internal.PdxInstanceEnum; * @see org.springframework.data.gemfire.function.sample.ApplicationDomainFunctionExecutions * @see org.springframework.test.context.ContextConfiguration * @see org.springframework.test.context.junit4.SpringJUnit4ClassRunner - * @see com.gemstone.gemfire.cache.client.ClientCache - * @see com.gemstone.gemfire.pdx.PdxInstance - * @see com.gemstone.gemfire.pdx.PdxSerializer - * @see com.gemstone.gemfire.pdx.internal.PdxInstanceEnum + * @see org.apache.geode.cache.client.ClientCache + * @see org.apache.geode.pdx.PdxInstance + * @see org.apache.geode.pdx.PdxSerializer + * @see org.apache.geode.pdx.internal.PdxInstanceEnum * @since 1.5.2 */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/src/test/java/org/springframework/data/gemfire/function/ExceptionThrowingFunctionExecutionIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/function/ExceptionThrowingFunctionExecutionIntegrationTest.java index 8a36feee..2b49ac18 100644 --- a/src/test/java/org/springframework/data/gemfire/function/ExceptionThrowingFunctionExecutionIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/function/ExceptionThrowingFunctionExecutionIntegrationTest.java @@ -25,6 +25,9 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.TimeUnit; +import org.apache.geode.cache.execute.FunctionAdapter; +import org.apache.geode.cache.execute.FunctionContext; +import org.apache.geode.cache.execute.FunctionException; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Rule; @@ -42,10 +45,6 @@ import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.execute.FunctionAdapter; -import com.gemstone.gemfire.cache.execute.FunctionContext; -import com.gemstone.gemfire.cache.execute.FunctionException; - /** * The ExceptionThrowingFunctionExecutionIntegrationTest class is a test suite of test cases testing the invocation * of a GemFire Function using Spring Data GemFire Function Execution Annotation support when that Function throws diff --git a/src/test/java/org/springframework/data/gemfire/function/FunctionArgumentResolverTest.java b/src/test/java/org/springframework/data/gemfire/function/FunctionArgumentResolverTest.java index e809e26d..c1ab0e2e 100644 --- a/src/test/java/org/springframework/data/gemfire/function/FunctionArgumentResolverTest.java +++ b/src/test/java/org/springframework/data/gemfire/function/FunctionArgumentResolverTest.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -24,15 +24,14 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.execute.FunctionContext; +import org.apache.geode.cache.execute.RegionFunctionContext; +import org.apache.geode.cache.execute.ResultSender; import org.junit.Test; import org.springframework.data.gemfire.function.annotation.Filter; import org.springframework.data.gemfire.function.annotation.RegionData; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.execute.FunctionContext; -import com.gemstone.gemfire.cache.execute.RegionFunctionContext; -import com.gemstone.gemfire.cache.execute.ResultSender; - /** * @author David Turanski * @author John Blum diff --git a/src/test/java/org/springframework/data/gemfire/function/PdxFunctionArgumentResolverTest.java b/src/test/java/org/springframework/data/gemfire/function/PdxFunctionArgumentResolverTest.java index 31b9a387..07940be8 100644 --- a/src/test/java/org/springframework/data/gemfire/function/PdxFunctionArgumentResolverTest.java +++ b/src/test/java/org/springframework/data/gemfire/function/PdxFunctionArgumentResolverTest.java @@ -26,24 +26,23 @@ import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.execute.FunctionContext; +import org.apache.geode.internal.cache.GemFireCacheImpl; +import org.apache.geode.pdx.PdxInstance; +import org.apache.geode.pdx.PdxInstanceFactory; +import org.apache.geode.pdx.PdxReader; +import org.apache.geode.pdx.PdxSerializer; +import org.apache.geode.pdx.PdxWriter; +import org.apache.geode.pdx.internal.PdxInstanceEnum; +import org.apache.geode.pdx.internal.PdxInstanceFactoryImpl; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import org.springframework.util.Assert; import org.springframework.util.ObjectUtils; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheFactory; -import com.gemstone.gemfire.cache.execute.FunctionContext; -import com.gemstone.gemfire.internal.cache.GemFireCacheImpl; -import com.gemstone.gemfire.pdx.PdxInstance; -import com.gemstone.gemfire.pdx.PdxInstanceFactory; -import com.gemstone.gemfire.pdx.PdxReader; -import com.gemstone.gemfire.pdx.PdxSerializer; -import com.gemstone.gemfire.pdx.PdxWriter; -import com.gemstone.gemfire.pdx.internal.PdxInstanceEnum; -import com.gemstone.gemfire.pdx.internal.PdxInstanceFactoryImpl; - /** * The PdxFunctionArgumentResolverTest class is a test suite of test cases testing the contract and functionality * of the PdxFunctionArgumentResolver class. @@ -52,11 +51,11 @@ import com.gemstone.gemfire.pdx.internal.PdxInstanceFactoryImpl; * @see org.junit.Test * @see org.mockito.Mockito * @see org.springframework.data.gemfire.function.PdxFunctionArgumentResolver - * @see com.gemstone.gemfire.cache.Cache - * @see com.gemstone.gemfire.cache.execute.FunctionContext - * @see com.gemstone.gemfire.pdx.PdxInstance - * @see com.gemstone.gemfire.pdx.PdxSerializer - * @see com.gemstone.gemfire.pdx.internal.PdxInstanceEnum + * @see org.apache.geode.cache.Cache + * @see org.apache.geode.cache.execute.FunctionContext + * @see org.apache.geode.pdx.PdxInstance + * @see org.apache.geode.pdx.PdxSerializer + * @see org.apache.geode.pdx.internal.PdxInstanceEnum * @since 1.5.2 */ @SuppressWarnings("unused") diff --git a/src/test/java/org/springframework/data/gemfire/function/config/AnnotationDrivenFunctionsTest.java b/src/test/java/org/springframework/data/gemfire/function/config/AnnotationDrivenFunctionsTest.java index fc8d9d21..31a6cb33 100644 --- a/src/test/java/org/springframework/data/gemfire/function/config/AnnotationDrivenFunctionsTest.java +++ b/src/test/java/org/springframework/data/gemfire/function/config/AnnotationDrivenFunctionsTest.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -19,6 +19,8 @@ import java.util.List; import java.util.Map; import java.util.Set; +import org.apache.geode.cache.execute.Function; +import org.apache.geode.cache.execute.FunctionService; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -30,9 +32,6 @@ import org.springframework.stereotype.Component; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.execute.Function; -import com.gemstone.gemfire.cache.execute.FunctionService; - /** * @author David Turanski * diff --git a/src/test/java/org/springframework/data/gemfire/function/config/FunctionExecutionClientCacheTests.java b/src/test/java/org/springframework/data/gemfire/function/config/FunctionExecutionClientCacheTests.java index d8aea8df..38bdbdf1 100644 --- a/src/test/java/org/springframework/data/gemfire/function/config/FunctionExecutionClientCacheTests.java +++ b/src/test/java/org/springframework/data/gemfire/function/config/FunctionExecutionClientCacheTests.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -17,6 +17,12 @@ import static org.junit.Assert.assertTrue; import java.util.concurrent.TimeUnit; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.execute.FunctionException; +import org.apache.geode.cache.execute.ResultCollector; +import org.apache.geode.distributed.DistributedMember; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -28,13 +34,6 @@ import org.springframework.data.gemfire.function.execution.GemfireOnServerFuncti import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.client.ClientCache; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.execute.FunctionException; -import com.gemstone.gemfire.cache.execute.ResultCollector; -import com.gemstone.gemfire.distributed.DistributedMember; - /** * @author David Turanski * @@ -81,28 +80,28 @@ class TestClientCacheConfig { class MyResultCollector implements ResultCollector { /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.execute.ResultCollector#addResult(com.gemstone.gemfire.distributed.DistributedMember, java.lang.Object) + * @see org.apache.geode.cache.execute.ResultCollector#addResult(org.apache.geode.distributed.DistributedMember, java.lang.Object) */ @Override public void addResult(DistributedMember arg0, Object arg1) { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.execute.ResultCollector#clearResults() + * @see org.apache.geode.cache.execute.ResultCollector#clearResults() */ @Override public void clearResults() { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.execute.ResultCollector#endResults() + * @see org.apache.geode.cache.execute.ResultCollector#endResults() */ @Override public void endResults() { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.execute.ResultCollector#getResult() + * @see org.apache.geode.cache.execute.ResultCollector#getResult() */ @Override public Object getResult() throws FunctionException { @@ -110,7 +109,7 @@ class MyResultCollector implements ResultCollector { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.execute.ResultCollector#getResult(long, java.util.concurrent.TimeUnit) + * @see org.apache.geode.cache.execute.ResultCollector#getResult(long, java.util.concurrent.TimeUnit) */ @Override public Object getResult(long arg0, TimeUnit arg1) throws FunctionException, InterruptedException { diff --git a/src/test/java/org/springframework/data/gemfire/function/config/FunctionExecutionIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/function/config/FunctionExecutionIntegrationTests.java index ec11fd97..5a5f8e82 100644 --- a/src/test/java/org/springframework/data/gemfire/function/config/FunctionExecutionIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/function/config/FunctionExecutionIntegrationTests.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -15,6 +15,7 @@ package org.springframework.data.gemfire.function.config; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertSame; +import org.apache.geode.cache.Region; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -29,8 +30,6 @@ import org.springframework.data.gemfire.test.GemfireTestApplicationContextInitia import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Region; - /** * @author David Turanski * diff --git a/src/test/java/org/springframework/data/gemfire/function/config/XmlConfiguredFunctionExecutionIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/function/config/XmlConfiguredFunctionExecutionIntegrationTests.java index c8fbc1dd..5c188f1a 100644 --- a/src/test/java/org/springframework/data/gemfire/function/config/XmlConfiguredFunctionExecutionIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/function/config/XmlConfiguredFunctionExecutionIntegrationTests.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -15,6 +15,7 @@ package org.springframework.data.gemfire.function.config; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertSame; +import org.apache.geode.cache.Region; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -27,8 +28,6 @@ import org.springframework.data.gemfire.test.GemfireTestApplicationContextInitia import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Region; - /** * @author David Turanski * diff --git a/src/test/java/org/springframework/data/gemfire/function/execution/AbstractFunctionExecutionTest.java b/src/test/java/org/springframework/data/gemfire/function/execution/AbstractFunctionExecutionTest.java index 1bc1f988..d39da9f5 100644 --- a/src/test/java/org/springframework/data/gemfire/function/execution/AbstractFunctionExecutionTest.java +++ b/src/test/java/org/springframework/data/gemfire/function/execution/AbstractFunctionExecutionTest.java @@ -37,6 +37,10 @@ import java.util.List; import java.util.Set; import java.util.concurrent.TimeUnit; +import org.apache.geode.cache.execute.Execution; +import org.apache.geode.cache.execute.Function; +import org.apache.geode.cache.execute.FunctionException; +import org.apache.geode.cache.execute.ResultCollector; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; @@ -44,11 +48,6 @@ import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; -import com.gemstone.gemfire.cache.execute.Execution; -import com.gemstone.gemfire.cache.execute.Function; -import com.gemstone.gemfire.cache.execute.FunctionException; -import com.gemstone.gemfire.cache.execute.ResultCollector; - /** * The AbstractFunctionExecutionTest class is a test suite of test cases testing the contract and functionality * of the AbstractFunctionExecution class. @@ -59,7 +58,7 @@ import com.gemstone.gemfire.cache.execute.ResultCollector; * @see org.mockito.Mockito * @see org.mockito.runners.MockitoJUnitRunner * @see org.springframework.data.gemfire.function.execution.AbstractFunctionExecution - * @see com.gemstone.gemfire.cache.execute.Execution + * @see org.apache.geode.cache.execute.Execution * @since 1.7.0 */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/gemfire/function/execution/AbstractFunctionTemplateTest.java b/src/test/java/org/springframework/data/gemfire/function/execution/AbstractFunctionTemplateTest.java index 644db3d7..7a462a85 100644 --- a/src/test/java/org/springframework/data/gemfire/function/execution/AbstractFunctionTemplateTest.java +++ b/src/test/java/org/springframework/data/gemfire/function/execution/AbstractFunctionTemplateTest.java @@ -28,14 +28,13 @@ import static org.mockito.Mockito.when; import java.util.Arrays; import java.util.List; +import org.apache.geode.cache.execute.Function; +import org.apache.geode.cache.execute.ResultCollector; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; -import com.gemstone.gemfire.cache.execute.Function; -import com.gemstone.gemfire.cache.execute.ResultCollector; - /** * The AbstractFunctionTemplateTest class is a test suite of test cases testing the contract and functionality * of the AbstractFunctionTemplate class. @@ -45,8 +44,8 @@ import com.gemstone.gemfire.cache.execute.ResultCollector; * @see org.mockito.Mockito * @see org.springframework.data.gemfire.function.execution.AbstractFunctionExecution * @see org.springframework.data.gemfire.function.execution.AbstractFunctionTemplate - * @see com.gemstone.gemfire.cache.execute.Function - * @see com.gemstone.gemfire.cache.execute.ResultCollector + * @see org.apache.geode.cache.execute.Function + * @see org.apache.geode.cache.execute.ResultCollector * @since 1.7.0 */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/gemfire/function/execution/FunctionExecutionTests.java b/src/test/java/org/springframework/data/gemfire/function/execution/FunctionExecutionTests.java index 92310bae..64f14834 100644 --- a/src/test/java/org/springframework/data/gemfire/function/execution/FunctionExecutionTests.java +++ b/src/test/java/org/springframework/data/gemfire/function/execution/FunctionExecutionTests.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -17,24 +17,23 @@ import static org.junit.Assert.assertEquals; import java.util.Iterator; import java.util.Properties; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.cache.client.ClientCacheFactory; +import org.apache.geode.cache.client.ClientRegionFactory; +import org.apache.geode.cache.client.ClientRegionShortcut; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.client.PoolFactory; +import org.apache.geode.cache.client.PoolManager; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import org.springframework.data.gemfire.ForkUtil; import org.springframework.data.gemfire.fork.FunctionCacheServerProcess; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.client.ClientCache; -import com.gemstone.gemfire.cache.client.ClientCacheFactory; -import com.gemstone.gemfire.cache.client.ClientRegionFactory; -import com.gemstone.gemfire.cache.client.ClientRegionShortcut; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.client.PoolFactory; -import com.gemstone.gemfire.cache.client.PoolManager; - /** * @author David Turanski - * + * */ public class FunctionExecutionTests { @@ -86,21 +85,21 @@ public class FunctionExecutionTests { } @Test - public void testBasicFunctionExecutions() { + public void testBasicFunctionExecutions() { verifyfunctionExecution(new RegionFunctionExecution(clientRegion)); verifyfunctionExecution(new ServerFunctionExecution(cache)); verifyfunctionExecution(new PoolServerFunctionExecution(pool)); - verifyfunctionExecution(new ServersFunctionExecution(cache)); + verifyfunctionExecution(new ServersFunctionExecution(cache)); } - - - + + + private void verifyfunctionExecution(AbstractFunctionExecution functionExecution) { Iterable results = functionExecution .setArgs("1","2","3") .setFunctionId("echoFunction") .execute(); - + Iterator it = results.iterator(); for (int i = 1; i<= 3; i++) { assertEquals(String.valueOf(i),it.next()); diff --git a/src/test/java/org/springframework/data/gemfire/function/execution/FunctionIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/function/execution/FunctionIntegrationTests.java index 8d439347..a027a53e 100644 --- a/src/test/java/org/springframework/data/gemfire/function/execution/FunctionIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/function/execution/FunctionIntegrationTests.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -22,8 +22,10 @@ import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; + import javax.annotation.Resource; +import org.apache.geode.cache.Region; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; @@ -37,8 +39,6 @@ import org.springframework.stereotype.Component; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Region; - /** * @author David Turanski * @author John Blum diff --git a/src/test/java/org/springframework/data/gemfire/function/execution/GemfireFunctionTemplateTests.java b/src/test/java/org/springframework/data/gemfire/function/execution/GemfireFunctionTemplateTests.java index 06d31a63..0b40337d 100644 --- a/src/test/java/org/springframework/data/gemfire/function/execution/GemfireFunctionTemplateTests.java +++ b/src/test/java/org/springframework/data/gemfire/function/execution/GemfireFunctionTemplateTests.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -17,21 +17,20 @@ import static org.junit.Assert.assertEquals; import java.util.Iterator; import java.util.Properties; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.cache.client.ClientCacheFactory; +import org.apache.geode.cache.client.ClientRegionFactory; +import org.apache.geode.cache.client.ClientRegionShortcut; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.client.PoolFactory; +import org.apache.geode.cache.client.PoolManager; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import org.springframework.data.gemfire.ForkUtil; import org.springframework.data.gemfire.fork.FunctionCacheServerProcess; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.client.ClientCache; -import com.gemstone.gemfire.cache.client.ClientCacheFactory; -import com.gemstone.gemfire.cache.client.ClientRegionFactory; -import com.gemstone.gemfire.cache.client.ClientRegionShortcut; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.client.PoolFactory; -import com.gemstone.gemfire.cache.client.PoolManager; - /** * @author David Turanski * @@ -82,19 +81,19 @@ public class GemfireFunctionTemplateTests { } cache = null; } - - @Test + + @Test public void testFunctionTemplates() { verifyfunctionTemplateExecution( new GemfireOnServerFunctionTemplate(cache)); verifyfunctionTemplateExecution( new GemfireOnServersFunctionTemplate(cache)); - verifyfunctionTemplateExecution( new GemfireOnRegionFunctionTemplate(clientRegion)); - verifyfunctionTemplateExecution( new GemfireOnServerFunctionTemplate(pool)); - verifyfunctionTemplateExecution( new GemfireOnServersFunctionTemplate(pool)); - } - + verifyfunctionTemplateExecution( new GemfireOnRegionFunctionTemplate(clientRegion)); + verifyfunctionTemplateExecution( new GemfireOnServerFunctionTemplate(pool)); + verifyfunctionTemplateExecution( new GemfireOnServersFunctionTemplate(pool)); + } + private void verifyfunctionTemplateExecution(GemfireFunctionOperations functionTemplate) { Iterable results = functionTemplate.execute("echoFunction","1","2","3"); - + Iterator it = results.iterator(); for (int i = 1; i<= 3; i++) { assertEquals(String.valueOf(i),it.next()); diff --git a/src/test/java/org/springframework/data/gemfire/function/sample/ApplicationDomainFunctionExecutions.java b/src/test/java/org/springframework/data/gemfire/function/sample/ApplicationDomainFunctionExecutions.java index 09e05218..291e4fa3 100644 --- a/src/test/java/org/springframework/data/gemfire/function/sample/ApplicationDomainFunctionExecutions.java +++ b/src/test/java/org/springframework/data/gemfire/function/sample/ApplicationDomainFunctionExecutions.java @@ -16,11 +16,10 @@ package org.springframework.data.gemfire.function.sample; +import org.apache.geode.pdx.PdxInstance; import org.springframework.data.gemfire.function.ClientCacheFunctionExecutionWithPdxIntegrationTest; import org.springframework.data.gemfire.function.annotation.OnServer; -import com.gemstone.gemfire.pdx.PdxInstance; - /** * The ApplicationDomainFunctionExecutions class defines a GemFire Client Cache Function execution targeted at a * GemFire Server. @@ -28,7 +27,7 @@ import com.gemstone.gemfire.pdx.PdxInstance; * @author John Blum * @see org.springframework.data.gemfire.function.ClientCacheFunctionExecutionWithPdxIntegrationTest * @see org.springframework.data.gemfire.function.annotation.OnServer - * @see com.gemstone.gemfire.pdx.PdxInstance + * @see org.apache.geode.pdx.PdxInstance * @since 1.0.0 */ @OnServer diff --git a/src/test/java/org/springframework/data/gemfire/listener/ContinuousQueryListenerContainerTest.java b/src/test/java/org/springframework/data/gemfire/listener/ContinuousQueryListenerContainerTest.java index 4aa7e1c4..003b2613 100644 --- a/src/test/java/org/springframework/data/gemfire/listener/ContinuousQueryListenerContainerTest.java +++ b/src/test/java/org/springframework/data/gemfire/listener/ContinuousQueryListenerContainerTest.java @@ -35,6 +35,10 @@ import static org.mockito.Mockito.when; import java.util.concurrent.Executor; +import org.apache.geode.cache.RegionService; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.query.QueryService; +import org.apache.geode.internal.cache.PoolManagerImpl; import org.junit.Before; import org.junit.Rule; import org.junit.Test; @@ -45,11 +49,6 @@ import org.springframework.data.gemfire.GemfireUtils; import org.springframework.data.gemfire.TestUtils; import org.springframework.data.gemfire.config.xml.GemfireConstants; -import com.gemstone.gemfire.cache.RegionService; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.query.QueryService; -import com.gemstone.gemfire.internal.cache.PoolManagerImpl; - /** * The ContinuousQueryListenerContainerTest class is a test suite of test cases testing the contract and functionality * of the {@link ContinuousQueryListenerContainer} class. diff --git a/src/test/java/org/springframework/data/gemfire/listener/GemfireMDP.java b/src/test/java/org/springframework/data/gemfire/listener/GemfireMDP.java index f36db1d8..eac0df4f 100644 --- a/src/test/java/org/springframework/data/gemfire/listener/GemfireMDP.java +++ b/src/test/java/org/springframework/data/gemfire/listener/GemfireMDP.java @@ -16,13 +16,13 @@ package org.springframework.data.gemfire.listener; -import com.gemstone.gemfire.cache.Operation; -import com.gemstone.gemfire.cache.query.CqEvent; -import com.gemstone.gemfire.cache.query.CqQuery; +import org.apache.geode.cache.Operation; +import org.apache.geode.cache.query.CqEvent; +import org.apache.geode.cache.query.CqQuery; /** * Simple GemFire-message/event-driven-pojo. - * + * * @author Costin Leau */ public class GemfireMDP { diff --git a/src/test/java/org/springframework/data/gemfire/listener/ListenerContainerTests.java b/src/test/java/org/springframework/data/gemfire/listener/ListenerContainerTests.java index 1fbbc10c..2a5dda78 100644 --- a/src/test/java/org/springframework/data/gemfire/listener/ListenerContainerTests.java +++ b/src/test/java/org/springframework/data/gemfire/listener/ListenerContainerTests.java @@ -20,6 +20,10 @@ import java.util.ArrayList; import java.util.List; import java.util.Properties; +import org.apache.geode.cache.RegionService; +import org.apache.geode.cache.client.ClientCacheFactory; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.query.CqEvent; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; @@ -27,11 +31,6 @@ import org.junit.Test; import org.springframework.data.gemfire.ForkUtil; import org.springframework.data.gemfire.listener.adapter.ContinuousQueryListenerAdapter; -import com.gemstone.gemfire.cache.RegionService; -import com.gemstone.gemfire.cache.client.ClientCacheFactory; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.query.CqEvent; - /** * @author Costin Leau */ @@ -100,4 +99,4 @@ public class ListenerContainerTests { System.out.println("Bag is " + bag); ForkUtil.sendSignal(); } -} \ No newline at end of file +} diff --git a/src/test/java/org/springframework/data/gemfire/listener/ThrowableEventListener.java b/src/test/java/org/springframework/data/gemfire/listener/ThrowableEventListener.java index 413f1e71..078f6ed2 100644 --- a/src/test/java/org/springframework/data/gemfire/listener/ThrowableEventListener.java +++ b/src/test/java/org/springframework/data/gemfire/listener/ThrowableEventListener.java @@ -1,12 +1,12 @@ /* * Copyright 2011-2013 the original author or authors. - * + * * 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. @@ -15,11 +15,11 @@ */ package org.springframework.data.gemfire.listener; -import com.gemstone.gemfire.cache.query.CqEvent; +import org.apache.geode.cache.query.CqEvent; /** - * + * * @author Costin Leau */ public class ThrowableEventListener implements ContinuousQueryListener { diff --git a/src/test/java/org/springframework/data/gemfire/listener/adapter/ContainerXmlSetupTest.java b/src/test/java/org/springframework/data/gemfire/listener/adapter/ContainerXmlSetupTest.java index 560350d0..bf7fe055 100644 --- a/src/test/java/org/springframework/data/gemfire/listener/adapter/ContainerXmlSetupTest.java +++ b/src/test/java/org/springframework/data/gemfire/listener/adapter/ContainerXmlSetupTest.java @@ -21,6 +21,9 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertSame; import static org.junit.Assert.assertTrue; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.query.CqQuery; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; @@ -32,10 +35,6 @@ import org.springframework.data.gemfire.listener.ContinuousQueryListenerContaine import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.query.CqQuery; - /** * @author Costin Leau * @author John Blum diff --git a/src/test/java/org/springframework/data/gemfire/listener/adapter/QueryListenerAdapterTest.java b/src/test/java/org/springframework/data/gemfire/listener/adapter/QueryListenerAdapterTest.java index c7c7cbaf..a6eb6694 100644 --- a/src/test/java/org/springframework/data/gemfire/listener/adapter/QueryListenerAdapterTest.java +++ b/src/test/java/org/springframework/data/gemfire/listener/adapter/QueryListenerAdapterTest.java @@ -24,15 +24,14 @@ import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; +import org.apache.geode.cache.Operation; +import org.apache.geode.cache.query.CqEvent; +import org.apache.geode.cache.query.CqQuery; +import org.apache.geode.cache.query.internal.CqQueryImpl; import org.junit.Before; import org.junit.Test; import org.springframework.data.gemfire.listener.ContinuousQueryListener; -import com.gemstone.gemfire.cache.Operation; -import com.gemstone.gemfire.cache.query.CqEvent; -import com.gemstone.gemfire.cache.query.CqQuery; -import com.gemstone.gemfire.cache.query.internal.CqQueryImpl; - /** * @author Costin Leau * @author Oliver Gierke diff --git a/src/test/java/org/springframework/data/gemfire/mapping/MappingPdxSerializerIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/mapping/MappingPdxSerializerIntegrationTest.java index f3007704..747c1177 100644 --- a/src/test/java/org/springframework/data/gemfire/mapping/MappingPdxSerializerIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/mapping/MappingPdxSerializerIntegrationTest.java @@ -24,6 +24,12 @@ import java.io.File; import java.io.FilenameFilter; import java.io.IOException; +import org.apache.geode.DataSerializable; +import org.apache.geode.Instantiator; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.Region; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; @@ -31,16 +37,9 @@ import org.springframework.core.convert.support.DefaultConversionService; import org.springframework.data.gemfire.repository.sample.Address; import org.springframework.data.gemfire.repository.sample.Person; -import com.gemstone.gemfire.DataSerializable; -import com.gemstone.gemfire.Instantiator; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheFactory; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.Region; - /** * Integration tests for {@link MappingPdxSerializer}. - * + * * @author Oliver Gierke * @author John Blum */ @@ -141,16 +140,16 @@ public class MappingPdxSerializerIntegrationTest { super(id, firstname, lastname); this.dsProperty = dsProperty; } - + public DataSerializableProperty getDataSerializableProperty() { return this.dsProperty; } - + } - + @SuppressWarnings("serial") public static class DataSerializableProperty implements DataSerializable { - + static { Instantiator.register(new Instantiator(DataSerializableProperty.class,101) { public DataSerializable newInstance() { @@ -158,30 +157,30 @@ public class MappingPdxSerializerIntegrationTest { } }); } - + private String value; - + public DataSerializableProperty(String value) { this.value = value; } - - + + @Override public void fromData(DataInput dataInput) throws IOException, ClassNotFoundException { value = dataInput.readUTF(); - + } @Override public void toData(DataOutput dataOutput) throws IOException { dataOutput.writeUTF(value); } - + public String getValue() { return this.value; } - + } } diff --git a/src/test/java/org/springframework/data/gemfire/mapping/MappingPdxSerializerUnitTests.java b/src/test/java/org/springframework/data/gemfire/mapping/MappingPdxSerializerUnitTests.java index d0b00314..3cbc4db4 100644 --- a/src/test/java/org/springframework/data/gemfire/mapping/MappingPdxSerializerUnitTests.java +++ b/src/test/java/org/springframework/data/gemfire/mapping/MappingPdxSerializerUnitTests.java @@ -29,10 +29,9 @@ import static org.mockito.Mockito.when; import java.util.Collections; -import com.gemstone.gemfire.pdx.PdxReader; -import com.gemstone.gemfire.pdx.PdxSerializer; -import com.gemstone.gemfire.pdx.PdxWriter; - +import org.apache.geode.pdx.PdxReader; +import org.apache.geode.pdx.PdxSerializer; +import org.apache.geode.pdx.PdxWriter; import org.junit.Before; import org.junit.Rule; import org.junit.Test; @@ -62,9 +61,9 @@ import org.springframework.data.mapping.model.ParameterValueProvider; * @see org.mockito.runners.MockitoJUnitRunner * @see org.springframework.core.convert.ConversionService * @see org.springframework.data.gemfire.mapping.MappingPdxSerializer - * @see com.gemstone.gemfire.pdx.PdxReader - * @see com.gemstone.gemfire.pdx.PdxSerializer - * @see com.gemstone.gemfire.pdx.PdxWriter + * @see org.apache.geode.pdx.PdxReader + * @see org.apache.geode.pdx.PdxSerializer + * @see org.apache.geode.pdx.PdxWriter */ @RunWith(MockitoJUnitRunner.class) public class MappingPdxSerializerUnitTests { diff --git a/src/test/java/org/springframework/data/gemfire/mapping/PdxReaderPropertyAccessorUnitTests.java b/src/test/java/org/springframework/data/gemfire/mapping/PdxReaderPropertyAccessorUnitTests.java index e1127d61..75d77f8b 100644 --- a/src/test/java/org/springframework/data/gemfire/mapping/PdxReaderPropertyAccessorUnitTests.java +++ b/src/test/java/org/springframework/data/gemfire/mapping/PdxReaderPropertyAccessorUnitTests.java @@ -23,6 +23,7 @@ import static org.mockito.Mockito.when; import java.util.Arrays; import java.util.List; +import org.apache.geode.pdx.PdxReader; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; @@ -30,10 +31,8 @@ import org.mockito.runners.MockitoJUnitRunner; import org.springframework.core.convert.TypeDescriptor; import org.springframework.expression.TypedValue; -import com.gemstone.gemfire.pdx.PdxReader; - /** - * + * * @author Oliver Gierke */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/gemfire/mapping/RegionsTest.java b/src/test/java/org/springframework/data/gemfire/mapping/RegionsTest.java index df59b260..f7996108 100644 --- a/src/test/java/org/springframework/data/gemfire/mapping/RegionsTest.java +++ b/src/test/java/org/springframework/data/gemfire/mapping/RegionsTest.java @@ -31,6 +31,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import org.apache.geode.cache.Region; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -42,8 +43,6 @@ import org.springframework.data.gemfire.repository.sample.RootUser; import org.springframework.data.gemfire.repository.sample.User; import org.springframework.data.mapping.context.MappingContext; -import com.gemstone.gemfire.cache.Region; - /** * The RegionsTest class is a test suite of test cases testing the contract and functionality of the Regions class. * diff --git a/src/test/java/org/springframework/data/gemfire/process/ProcessWrapper.java b/src/test/java/org/springframework/data/gemfire/process/ProcessWrapper.java index fe84e331..522ed325 100644 --- a/src/test/java/org/springframework/data/gemfire/process/ProcessWrapper.java +++ b/src/test/java/org/springframework/data/gemfire/process/ProcessWrapper.java @@ -44,7 +44,6 @@ import org.springframework.data.gemfire.test.support.IOUtils; import org.springframework.data.gemfire.test.support.ThreadUtils; import org.springframework.data.gemfire.test.support.ThrowableUtils; import org.springframework.util.Assert; -import org.springframework.util.StringUtils; /** * The ProcessWrapper class is a wrapper for a Process object representing an OS process and the ProcessBuilder used diff --git a/src/test/java/org/springframework/data/gemfire/repository/GemFireRepositoryFactoryInformationIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/repository/GemFireRepositoryFactoryInformationIntegrationTests.java index 5d5f80f8..b873a91d 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/GemFireRepositoryFactoryInformationIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/repository/GemFireRepositoryFactoryInformationIntegrationTests.java @@ -28,6 +28,8 @@ import java.util.Arrays; import java.util.Map; import java.util.Properties; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.RegionAttributes; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -47,9 +49,6 @@ import org.springframework.data.repository.core.support.RepositoryFactoryInforma import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.RegionAttributes; - /** * Test suite of test cases testing that the GemFire-based {@link org.springframework.data.repository.Repository} * factories, implementing the {@link RepositoryFactoryInformation} interface, can in fact be looked up in the diff --git a/src/test/java/org/springframework/data/gemfire/repository/cdi/CdiExtensionIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/repository/cdi/CdiExtensionIntegrationTest.java index a8889dc9..a2d5de9d 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/cdi/CdiExtensionIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/repository/cdi/CdiExtensionIntegrationTest.java @@ -24,6 +24,8 @@ import static org.hamcrest.Matchers.notNullValue; import static org.hamcrest.Matchers.nullValue; import static org.junit.Assert.assertThat; +import org.apache.geode.cache.CacheClosedException; +import org.apache.geode.cache.CacheFactory; import org.apache.webbeans.cditest.CdiTestContainer; import org.apache.webbeans.cditest.CdiTestContainerLoader; import org.junit.AfterClass; @@ -31,9 +33,6 @@ import org.junit.BeforeClass; import org.junit.Test; import org.springframework.data.gemfire.repository.sample.Person; -import com.gemstone.gemfire.cache.CacheClosedException; -import com.gemstone.gemfire.cache.CacheFactory; - /** * The CdiExtensionIntegrationTest class... * diff --git a/src/test/java/org/springframework/data/gemfire/repository/cdi/GemfireCacheRegionProducer.java b/src/test/java/org/springframework/data/gemfire/repository/cdi/GemfireCacheRegionProducer.java index dc78e78a..69061dc4 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/cdi/GemfireCacheRegionProducer.java +++ b/src/test/java/org/springframework/data/gemfire/repository/cdi/GemfireCacheRegionProducer.java @@ -20,15 +20,14 @@ package org.springframework.data.gemfire.repository.cdi; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.inject.Produces; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionFactory; +import org.apache.geode.cache.RegionShortcut; import org.springframework.data.gemfire.repository.sample.Person; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheFactory; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionFactory; -import com.gemstone.gemfire.cache.RegionShortcut; - /** * The GemfireCacheRegionProducer class is an application scoped CDI context bean that is responsible * for creating the GemFire Cache "People" Region used to store {@link Person} instances. @@ -36,10 +35,10 @@ import com.gemstone.gemfire.cache.RegionShortcut; * @author John Blum * @see javax.enterprise.context.ApplicationScoped * @see javax.enterprise.inject.Produces - * @see com.gemstone.gemfire.cache.Cache - * @see com.gemstone.gemfire.cache.CacheFactory - * @see com.gemstone.gemfire.cache.Region - * @see com.gemstone.gemfire.cache.RegionFactory + * @see org.apache.geode.cache.Cache + * @see org.apache.geode.cache.CacheFactory + * @see org.apache.geode.cache.Region + * @see org.apache.geode.cache.RegionFactory * @since 1.8.0 */ @SuppressWarnings("unused") diff --git a/src/test/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryBeanTest.java index fcd7b3db..4d709a6c 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryBeanTest.java @@ -42,10 +42,13 @@ import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.atomic.AtomicBoolean; + import javax.enterprise.context.spi.CreationalContext; import javax.enterprise.inject.spi.Bean; import javax.enterprise.inject.spi.BeanManager; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionAttributes; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; @@ -62,9 +65,6 @@ import org.springframework.data.gemfire.repository.support.SimpleGemfireReposito import org.springframework.data.repository.core.RepositoryInformation; import org.springframework.data.repository.core.support.RepositoryProxyPostProcessor; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionAttributes; - /** * The GemfireRepositoryBeanTest class is a test suite of test cases testing the contract and functionality * of the GemfireRepositoryBean class. diff --git a/src/test/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryExtensionTest.java b/src/test/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryExtensionTest.java index fef05409..44ed4842 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryExtensionTest.java +++ b/src/test/java/org/springframework/data/gemfire/repository/cdi/GemfireRepositoryExtensionTest.java @@ -35,12 +35,14 @@ import java.util.Collections; import java.util.HashSet; import java.util.Map; import java.util.Set; + import javax.enterprise.inject.spi.AfterBeanDiscovery; import javax.enterprise.inject.spi.Bean; import javax.enterprise.inject.spi.BeanManager; import javax.enterprise.inject.spi.ProcessBean; import javax.inject.Qualifier; +import org.apache.geode.cache.Region; import org.junit.Before; import org.junit.Test; import org.mockito.invocation.InvocationOnMock; @@ -48,8 +50,6 @@ import org.mockito.stubbing.Answer; import org.springframework.data.gemfire.mapping.GemfireMappingContext; import org.springframework.data.gemfire.repository.GemfireRepository; -import com.gemstone.gemfire.cache.Region; - /** * The GemfireRepositoryExtensionTest class is a test suite of unit tests testing the contract and proper functionality * of the {@link GemfireRepositoryExtension} class in a Java EE CDI context. diff --git a/src/test/java/org/springframework/data/gemfire/repository/cdi/RepositoryClient.java b/src/test/java/org/springframework/data/gemfire/repository/cdi/RepositoryClient.java index 959e00e5..a8e0ae1c 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/cdi/RepositoryClient.java +++ b/src/test/java/org/springframework/data/gemfire/repository/cdi/RepositoryClient.java @@ -18,6 +18,7 @@ package org.springframework.data.gemfire.repository.cdi; import java.util.concurrent.atomic.AtomicLong; + import javax.inject.Inject; import org.springframework.data.gemfire.repository.sample.Person; diff --git a/src/test/java/org/springframework/data/gemfire/repository/config/GemfireRepositoriesRegistrarIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/repository/config/GemfireRepositoriesRegistrarIntegrationTest.java index 1c3dd740..f4fdf4c4 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/config/GemfireRepositoriesRegistrarIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/repository/config/GemfireRepositoriesRegistrarIntegrationTest.java @@ -16,6 +16,8 @@ */ package org.springframework.data.gemfire.repository.config; +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.Region; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -32,13 +34,10 @@ import org.springframework.data.gemfire.test.MockCacheFactoryBean; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.GemFireCache; -import com.gemstone.gemfire.cache.Region; - /** * Integration test for {@link GemfireRepositoriesRegistrar} (annotation based * repository configuration). - * + * * @author Oliver Gierke */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/src/test/java/org/springframework/data/gemfire/repository/query/QueryStringUnitTests.java b/src/test/java/org/springframework/data/gemfire/repository/query/QueryStringUnitTests.java index 59667177..f4d46e6b 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/query/QueryStringUnitTests.java +++ b/src/test/java/org/springframework/data/gemfire/repository/query/QueryStringUnitTests.java @@ -31,8 +31,7 @@ import static org.springframework.data.gemfire.repository.query.QueryString.TRAC import java.util.Arrays; import java.util.regex.Pattern; -import com.gemstone.gemfire.cache.Region; - +import org.apache.geode.cache.Region; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; diff --git a/src/test/java/org/springframework/data/gemfire/repository/query/StringBasedGemfireRepositoryQueryTest.java b/src/test/java/org/springframework/data/gemfire/repository/query/StringBasedGemfireRepositoryQueryTest.java index ec1055dd..9a88242d 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/query/StringBasedGemfireRepositoryQueryTest.java +++ b/src/test/java/org/springframework/data/gemfire/repository/query/StringBasedGemfireRepositoryQueryTest.java @@ -39,11 +39,10 @@ import java.util.Collection; import java.util.Collections; import java.util.List; +import org.apache.geode.cache.query.SelectResults; +import org.apache.geode.cache.query.internal.ResultsBag; import org.junit.Test; -import com.gemstone.gemfire.cache.query.SelectResults; -import com.gemstone.gemfire.cache.query.internal.ResultsBag; - /** * The SpringBasedGemfireRepositoryQueryTest class is a test suite of test cases testing the contract and functionality * of the StringBasedGemfireRepositoryQuery class. diff --git a/src/test/java/org/springframework/data/gemfire/repository/sample/AlgorithmRepositoryTest.java b/src/test/java/org/springframework/data/gemfire/repository/sample/AlgorithmRepositoryTest.java index 09faa738..feebf11b 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/sample/AlgorithmRepositoryTest.java +++ b/src/test/java/org/springframework/data/gemfire/repository/sample/AlgorithmRepositoryTest.java @@ -23,14 +23,13 @@ import static org.junit.Assert.assertTrue; import javax.annotation.Resource; +import org.apache.geode.cache.Region; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Region; - /** * The AlgorithmRepositoryTest class is a test suite of test cases testing the contract and functionality of GemFire's * Repository extension when using a plain old Java interface for defining the application domain object/entity type, diff --git a/src/test/java/org/springframework/data/gemfire/repository/sample/Person.java b/src/test/java/org/springframework/data/gemfire/repository/sample/Person.java index 3a92fe82..cbc3fc65 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/sample/Person.java +++ b/src/test/java/org/springframework/data/gemfire/repository/sample/Person.java @@ -17,13 +17,13 @@ package org.springframework.data.gemfire.repository.sample; import java.io.Serializable; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; + import org.springframework.data.annotation.Id; import org.springframework.data.annotation.PersistenceConstructor; import org.springframework.data.gemfire.mapping.Region; import org.springframework.util.ObjectUtils; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; - /** * The Person class models a person. * @@ -111,7 +111,7 @@ public class Person implements Serializable { return String.format("%1$s %2$s", getFirstname(), getLastname()); } - /* + /* * (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @@ -130,7 +130,7 @@ public class Person implements Serializable { return (this.id != null && this.id.equals(that.id)); } - /* + /* * (non-Javadoc) * @see java.lang.Object#hashCode() */ diff --git a/src/test/java/org/springframework/data/gemfire/repository/sample/PersonRepository.java b/src/test/java/org/springframework/data/gemfire/repository/sample/PersonRepository.java index c283817c..51b69555 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/sample/PersonRepository.java +++ b/src/test/java/org/springframework/data/gemfire/repository/sample/PersonRepository.java @@ -21,7 +21,6 @@ import java.util.List; import org.springframework.data.domain.Sort; import org.springframework.data.gemfire.repository.GemfireRepository; import org.springframework.data.gemfire.repository.Query; -import org.springframework.data.gemfire.repository.query.annotation.Trace; /** * Sample Repository interface managing {@link Person}s. diff --git a/src/test/java/org/springframework/data/gemfire/repository/sample/PersonRepositoryIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/repository/sample/PersonRepositoryIntegrationTests.java index e802a195..f25105a2 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/sample/PersonRepositoryIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/repository/sample/PersonRepositoryIntegrationTests.java @@ -26,9 +26,8 @@ import java.util.List; import java.util.Properties; import java.util.concurrent.atomic.AtomicLong; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.RegionAttributes; - +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.RegionAttributes; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; diff --git a/src/test/java/org/springframework/data/gemfire/repository/sample/RegionPopulator.java b/src/test/java/org/springframework/data/gemfire/repository/sample/RegionPopulator.java index 3a917a4b..75e6107d 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/sample/RegionPopulator.java +++ b/src/test/java/org/springframework/data/gemfire/repository/sample/RegionPopulator.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -14,10 +14,9 @@ package org.springframework.data.gemfire.repository.sample; import javax.annotation.Resource; +import org.apache.geode.cache.Region; import org.springframework.beans.factory.InitializingBean; -import com.gemstone.gemfire.cache.Region; - /** * @author David Turanski * @@ -33,11 +32,11 @@ public class RegionPopulator implements InitializingBean { public void afterPropertiesSet() throws Exception { region.put(1L,new Person(1L,"first1", "last1")); region.put(2L,new Person(2L,"first2", "last2")); - + } - + public void setRegion(Region region) { this.region=region; } - + } diff --git a/src/test/java/org/springframework/data/gemfire/repository/sample/SubRegionRepositoryIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/repository/sample/SubRegionRepositoryIntegrationTest.java index e89a6c8c..d11adf6e 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/sample/SubRegionRepositoryIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/repository/sample/SubRegionRepositoryIntegrationTest.java @@ -26,8 +26,10 @@ import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; + import javax.annotation.Resource; +import org.apache.geode.cache.Region; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -36,8 +38,6 @@ import org.springframework.data.gemfire.repository.Wrapper; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Region; - /** * The SubRegionRepositoryTest class is a test suite of test cases testing the use of GemFire Repositories on GemFire * Cache Subregions. @@ -50,7 +50,7 @@ import com.gemstone.gemfire.cache.Region; * @see org.springframework.data.gemfire.repository.sample.ProgrammerRepository * @see org.springframework.test.context.ContextConfiguration * @see org.springframework.test.context.junit4.SpringJUnit4ClassRunner - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region * @link https://jira.springsource.org/browse/SGF-251 * @link https://jira.springsource.org/browse/SGF-252 * @since 1.4.0 diff --git a/src/test/java/org/springframework/data/gemfire/repository/sample/UserRepositoryQueriesIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/repository/sample/UserRepositoryQueriesIntegrationTest.java index b13353b0..824406a9 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/sample/UserRepositoryQueriesIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/repository/sample/UserRepositoryQueriesIntegrationTest.java @@ -25,8 +25,10 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.List; + import javax.annotation.Resource; +import org.apache.geode.cache.Region; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -34,8 +36,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Region; - /** * The RepositoryQueriesTest class is a test suite of test cases testing the GemFire Query capability of Spring Data * GemFire Repositories. diff --git a/src/test/java/org/springframework/data/gemfire/repository/sample/UsingQueryAnnotationExtensionsInUserRepositoryIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/repository/sample/UsingQueryAnnotationExtensionsInUserRepositoryIntegrationTest.java index 8d1b270d..32fd6d1f 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/sample/UsingQueryAnnotationExtensionsInUserRepositoryIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/repository/sample/UsingQueryAnnotationExtensionsInUserRepositoryIntegrationTest.java @@ -23,8 +23,10 @@ import static org.junit.Assert.assertThat; import java.util.ArrayList; import java.util.List; + import javax.annotation.Resource; +import org.apache.geode.cache.Region; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -32,8 +34,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.Region; - /** * The UsingQueryAnnotationExtensionsInUserRepositoryIntegrationTest class is a test suite of test cases testing * the contract and functionality of the Spring Data Commons Repository abstraction, Spring Data GemFire Repository @@ -45,7 +45,7 @@ import com.gemstone.gemfire.cache.Region; * @see org.springframework.data.gemfire.repository.GemfireRepository * @see org.springframework.test.context.ContextConfiguration * @see org.springframework.test.context.junit4.SpringJUnit4ClassRunner - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region * @since 1.7.0 */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/src/test/java/org/springframework/data/gemfire/repository/support/AbstractGemfireRepositoryFactoryIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/repository/support/AbstractGemfireRepositoryFactoryIntegrationTests.java index 2902829a..1b4e1058 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/support/AbstractGemfireRepositoryFactoryIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/repository/support/AbstractGemfireRepositoryFactoryIntegrationTests.java @@ -25,6 +25,7 @@ import static org.junit.Assert.fail; import java.util.Arrays; import java.util.List; +import org.apache.geode.cache.Region; import org.hamcrest.Matchers; import org.junit.Before; import org.junit.Test; @@ -37,14 +38,12 @@ import org.springframework.data.gemfire.mapping.Regions; import org.springframework.data.gemfire.repository.sample.Person; import org.springframework.data.gemfire.repository.sample.PersonRepository; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -import com.gemstone.gemfire.cache.Region; /** * Integration test for {@link GemfireRepositoryFactory}. - * + * * @author Oliver Gierke */ - + @RunWith(SpringJUnit4ClassRunner.class) public abstract class AbstractGemfireRepositoryFactoryIntegrationTests { diff --git a/src/test/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryBeanTest.java index ec0bb706..4dffc8c8 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryBeanTest.java @@ -16,12 +16,16 @@ package org.springframework.data.gemfire.repository.support; -import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assert.*; -import static org.mockito.Mockito.*; +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.CoreMatchers.notNullValue; +import static org.junit.Assert.assertThat; +import static org.mockito.Mockito.doReturn; +import static org.mockito.Mockito.mock; import java.util.Collections; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionAttributes; import org.junit.Before; import org.junit.Rule; import org.junit.Test; @@ -30,9 +34,6 @@ import org.springframework.context.ApplicationContext; import org.springframework.data.gemfire.mapping.GemfireMappingContext; import org.springframework.data.gemfire.repository.sample.PersonRepository; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionAttributes; - /** * The GemfireRepositoryFactoryBeanTest class is test suite of test cases testing the contract and functionality * of the GemfireRepositoryFactoryBean class. @@ -59,32 +60,32 @@ public class GemfireRepositoryFactoryBeanTest { @Test public void rejectsMappingContextNotSet() { - + exception.expect(IllegalStateException.class); exception.expectMessage("GemfireMappingContext"); - + repositoryFactoryBean.afterPropertiesSet(); } - + @Test @SuppressWarnings("unchecked") public void initializesWithMappingContext() { - + RegionAttributes attributes = mock(RegionAttributes.class); doReturn(Long.class).when(attributes).getKeyConstraint(); - + Region region = mock(Region.class); doReturn("simple").when(region).getName(); doReturn(attributes).when(region).getAttributes(); - + ApplicationContext applicationContext = mock(ApplicationContext.class); doReturn(Collections.singletonMap("simple", region)).when(applicationContext).getBeansOfType(Region.class); - + repositoryFactoryBean.setApplicationContext(applicationContext); repositoryFactoryBean.setRepositoryInterface(PersonRepository.class); repositoryFactoryBean.setGemfireMappingContext(new GemfireMappingContext()); repositoryFactoryBean.afterPropertiesSet(); - + assertThat(repositoryFactoryBean.getObject(), is(notNullValue())); } } diff --git a/src/test/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryIntegrationTests.java index 4f20aace..4cba2072 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryIntegrationTests.java @@ -15,8 +15,9 @@ */ package org.springframework.data.gemfire.repository.support; -import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assert.*; +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.CoreMatchers.notNullValue; +import static org.junit.Assert.assertThat; import java.util.Collections; @@ -33,7 +34,7 @@ import org.springframework.test.context.ContextConfiguration; /** * Integration test for {@link GemfireRepositoryFactory}. - * + * * @author Oliver Gierke */ @ContextConfiguration("../config/repo-context.xml") diff --git a/src/test/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryUnitTests.java b/src/test/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryUnitTests.java index 6ee2499b..fd2259c8 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryUnitTests.java +++ b/src/test/java/org/springframework/data/gemfire/repository/support/GemfireRepositoryFactoryUnitTests.java @@ -33,9 +33,8 @@ import java.io.Serializable; import java.util.Arrays; import java.util.Collections; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionAttributes; - +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionAttributes; import org.junit.Before; import org.junit.Rule; import org.junit.Test; diff --git a/src/test/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepositoryIntegrationTests.java b/src/test/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepositoryIntegrationTests.java index d7988e29..4dc5aa14 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepositoryIntegrationTests.java +++ b/src/test/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepositoryIntegrationTests.java @@ -24,12 +24,11 @@ import java.util.Properties; import javax.annotation.Resource; -import com.gemstone.gemfire.cache.GemFireCache; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionEvent; -import com.gemstone.gemfire.cache.query.SelectResults; -import com.gemstone.gemfire.cache.util.CacheListenerAdapter; - +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionEvent; +import org.apache.geode.cache.query.SelectResults; +import org.apache.geode.cache.util.CacheListenerAdapter; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; diff --git a/src/test/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepositoryTransactionalIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepositoryTransactionalIntegrationTest.java index 48dff615..74693df2 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepositoryTransactionalIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepositoryTransactionalIntegrationTest.java @@ -25,8 +25,10 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; import java.util.concurrent.atomic.AtomicLong; + import javax.annotation.Resource; +import org.apache.geode.cache.Region; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -43,8 +45,6 @@ import org.springframework.transaction.TransactionStatus; import org.springframework.transaction.support.TransactionCallbackWithoutResult; import org.springframework.transaction.support.TransactionTemplate; -import com.gemstone.gemfire.cache.Region; - /** * The SimpleGemfireRepositoryTransactionalIntegrationTest class is a test suite of test cases testing * the SimpleGemfireRepository class and SDC Repository abstraction implementation in the context of diff --git a/src/test/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepositoryUnitTest.java b/src/test/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepositoryUnitTest.java index 50d2b2d1..538f8e31 100644 --- a/src/test/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepositoryUnitTest.java +++ b/src/test/java/org/springframework/data/gemfire/repository/support/SimpleGemfireRepositoryUnitTest.java @@ -40,12 +40,11 @@ import java.util.Map; import java.util.Set; import java.util.concurrent.atomic.AtomicLong; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheTransactionManager; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionAttributes; - +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheTransactionManager; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionAttributes; import org.junit.Test; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; diff --git a/src/test/java/org/springframework/data/gemfire/serialization/AsmInstantiatorFactoryTest.java b/src/test/java/org/springframework/data/gemfire/serialization/AsmInstantiatorFactoryTest.java index 8f082ff2..d57dce5f 100644 --- a/src/test/java/org/springframework/data/gemfire/serialization/AsmInstantiatorFactoryTest.java +++ b/src/test/java/org/springframework/data/gemfire/serialization/AsmInstantiatorFactoryTest.java @@ -25,12 +25,11 @@ import java.io.DataOutput; import java.io.IOException; import java.io.Serializable; +import org.apache.geode.DataSerializable; +import org.apache.geode.Instantiator; import org.junit.Before; import org.junit.Test; -import com.gemstone.gemfire.DataSerializable; -import com.gemstone.gemfire.Instantiator; - /** * @author Costin Leau */ @@ -87,4 +86,4 @@ public class AsmInstantiatorFactoryTest { Instantiator instance2 = asmFactory.getInstantiator(SomeClass.class, 125); assertSame(instance1, instance2); } -} \ No newline at end of file +} diff --git a/src/test/java/org/springframework/data/gemfire/serialization/WiringInstantiatorTest.java b/src/test/java/org/springframework/data/gemfire/serialization/WiringInstantiatorTest.java index 2ed7a151..648f658d 100644 --- a/src/test/java/org/springframework/data/gemfire/serialization/WiringInstantiatorTest.java +++ b/src/test/java/org/springframework/data/gemfire/serialization/WiringInstantiatorTest.java @@ -29,6 +29,8 @@ import java.io.DataOutput; import java.io.IOException; import java.util.List; +import org.apache.geode.DataSerializable; +import org.apache.geode.Instantiator; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -36,9 +38,6 @@ import org.springframework.context.ApplicationContext; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.DataSerializable; -import com.gemstone.gemfire.Instantiator; - /** * @author Costin Leau */ @@ -145,4 +144,4 @@ public class WiringInstantiatorTest { assertNotNull(list); assertEquals(2, list.size()); } -} \ No newline at end of file +} diff --git a/src/test/java/org/springframework/data/gemfire/server/CacheServerFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/server/CacheServerFactoryBeanTest.java index b7bbb50e..8a21991d 100644 --- a/src/test/java/org/springframework/data/gemfire/server/CacheServerFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/server/CacheServerFactoryBeanTest.java @@ -34,16 +34,15 @@ import java.util.Arrays; import java.util.HashSet; import java.util.concurrent.atomic.AtomicBoolean; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.InterestRegistrationListener; +import org.apache.geode.cache.server.CacheServer; +import org.apache.geode.cache.server.ClientSubscriptionConfig; +import org.apache.geode.cache.server.ServerLoadProbe; import org.junit.Test; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.InterestRegistrationListener; -import com.gemstone.gemfire.cache.server.CacheServer; -import com.gemstone.gemfire.cache.server.ClientSubscriptionConfig; -import com.gemstone.gemfire.cache.server.ServerLoadProbe; - /** * The CacheServerFactoryBeanTest class is a test suite of test cases testing the contract and functionality * of the CacheServerFactoryBean class. diff --git a/src/test/java/org/springframework/data/gemfire/server/SubscriptionEvictionPolicyTest.java b/src/test/java/org/springframework/data/gemfire/server/SubscriptionEvictionPolicyTest.java index 5b777c29..9c83fa43 100644 --- a/src/test/java/org/springframework/data/gemfire/server/SubscriptionEvictionPolicyTest.java +++ b/src/test/java/org/springframework/data/gemfire/server/SubscriptionEvictionPolicyTest.java @@ -24,10 +24,9 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; +import org.apache.geode.cache.server.ClientSubscriptionConfig; import org.junit.Test; -import com.gemstone.gemfire.cache.server.ClientSubscriptionConfig; - /** * The SubscriptionEvictionPolicyTest class is a test suite of test cases testing the contract and functionality * of the SubscriptionEvictionPolicy enum. diff --git a/src/test/java/org/springframework/data/gemfire/snapshot/SnapshotApplicationEventTriggeredImportsExportsIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/snapshot/SnapshotApplicationEventTriggeredImportsExportsIntegrationTest.java index 09203fcb..89a47354 100644 --- a/src/test/java/org/springframework/data/gemfire/snapshot/SnapshotApplicationEventTriggeredImportsExportsIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/snapshot/SnapshotApplicationEventTriggeredImportsExportsIntegrationTest.java @@ -26,8 +26,11 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicLong; + import javax.annotation.Resource; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.snapshot.SnapshotFilter; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; @@ -46,9 +49,6 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.util.Assert; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.snapshot.SnapshotFilter; - /** * The SnapshotApplicationEventTriggeredImportsExportsIntegrationTest class is a test suite of test cases testing * the effects of the SnapshotServiceFactoryBean using Spring ApplicationEvents to trigger imports and exports @@ -64,7 +64,7 @@ import com.gemstone.gemfire.cache.snapshot.SnapshotFilter; * @see org.springframework.data.gemfire.snapshot.event.SnapshotApplicationEvent * @see org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBean * @see org.springframework.data.gemfire.repository.sample.Person - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region * @since 1.7.0 */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/src/test/java/org/springframework/data/gemfire/snapshot/SnapshotServiceFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/snapshot/SnapshotServiceFactoryBeanTest.java index e8be26c6..6fdf0d8f 100644 --- a/src/test/java/org/springframework/data/gemfire/snapshot/SnapshotServiceFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/snapshot/SnapshotServiceFactoryBeanTest.java @@ -16,7 +16,7 @@ package org.springframework.data.gemfire.snapshot; -import static com.gemstone.gemfire.cache.snapshot.SnapshotOptions.SnapshotFormat; +import static org.apache.geode.cache.snapshot.SnapshotOptions.SnapshotFormat; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.instanceOf; import static org.hamcrest.CoreMatchers.is; @@ -49,6 +49,12 @@ import java.io.IOException; import java.util.Arrays; import org.apache.commons.logging.Log; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.snapshot.CacheSnapshotService; +import org.apache.geode.cache.snapshot.RegionSnapshotService; +import org.apache.geode.cache.snapshot.SnapshotFilter; +import org.apache.geode.cache.snapshot.SnapshotOptions; import org.junit.After; import org.junit.BeforeClass; import org.junit.Rule; @@ -61,13 +67,6 @@ import org.springframework.data.gemfire.snapshot.event.ImportSnapshotApplication import org.springframework.data.gemfire.snapshot.event.SnapshotApplicationEvent; import org.springframework.data.gemfire.test.support.FileSystemUtils; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.snapshot.CacheSnapshotService; -import com.gemstone.gemfire.cache.snapshot.RegionSnapshotService; -import com.gemstone.gemfire.cache.snapshot.SnapshotFilter; -import com.gemstone.gemfire.cache.snapshot.SnapshotOptions; - /** * The SnapshotServiceFactoryBeanTest class is a test suite of test cases testing the contract and functionality * of the SnapshotServiceFactoryBean class. @@ -77,8 +76,8 @@ import com.gemstone.gemfire.cache.snapshot.SnapshotOptions; * @see org.junit.Test * @see org.mockito.Mockito * @see org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBean - * @see com.gemstone.gemfire.cache.snapshot.CacheSnapshotService - * @see com.gemstone.gemfire.cache.snapshot.RegionSnapshotService + * @see org.apache.geode.cache.snapshot.CacheSnapshotService + * @see org.apache.geode.cache.snapshot.RegionSnapshotService * @since 1.7.0 */ @SuppressWarnings({ "rawtypes", "unchecked" }) diff --git a/src/test/java/org/springframework/data/gemfire/snapshot/SnapshotServiceImportExportIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/snapshot/SnapshotServiceImportExportIntegrationTest.java index b71fbce1..86a82da7 100644 --- a/src/test/java/org/springframework/data/gemfire/snapshot/SnapshotServiceImportExportIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/snapshot/SnapshotServiceImportExportIntegrationTest.java @@ -25,6 +25,7 @@ import java.io.File; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicLong; +import org.apache.geode.cache.Region; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; @@ -37,8 +38,6 @@ import org.springframework.data.gemfire.test.support.FileSystemUtils; import org.springframework.data.gemfire.test.support.ThreadUtils; import org.springframework.util.FileCopyUtils; -import com.gemstone.gemfire.cache.Region; - /** * The SnapshotServiceImportExportIntegrationTest class is a test suite of test cases testing the import and export * of GemFire Cache Region data configured with SDG's Data Namespace >gfe-data:snapshot-service< (XML) element. @@ -49,7 +48,7 @@ import com.gemstone.gemfire.cache.Region; * @see org.springframework.context.support.ClassPathXmlApplicationContext * @see org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBean * @see org.springframework.data.gemfire.repository.sample.Person - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Region * @since 1.7.0 */ @SuppressWarnings("unused") diff --git a/src/test/java/org/springframework/data/gemfire/snapshot/event/SnapshotApplicationEventTest.java b/src/test/java/org/springframework/data/gemfire/snapshot/event/SnapshotApplicationEventTest.java index 04f54249..898eb6f7 100644 --- a/src/test/java/org/springframework/data/gemfire/snapshot/event/SnapshotApplicationEventTest.java +++ b/src/test/java/org/springframework/data/gemfire/snapshot/event/SnapshotApplicationEventTest.java @@ -28,15 +28,14 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBean.SnapshotMetadata; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.snapshot.SnapshotOptions; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; import org.springframework.data.gemfire.test.support.FileSystemUtils; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.snapshot.SnapshotOptions; - /** * The SnapshotApplicationEventTest class is a test suite of test cases testing the contract and functionality * of the SnapshotApplicationEvent class. diff --git a/src/test/java/org/springframework/data/gemfire/snapshot/filter/ComposableSnapshotFilterTest.java b/src/test/java/org/springframework/data/gemfire/snapshot/filter/ComposableSnapshotFilterTest.java index 3d2512be..315e17cc 100644 --- a/src/test/java/org/springframework/data/gemfire/snapshot/filter/ComposableSnapshotFilterTest.java +++ b/src/test/java/org/springframework/data/gemfire/snapshot/filter/ComposableSnapshotFilterTest.java @@ -31,11 +31,10 @@ import static org.springframework.data.gemfire.snapshot.filter.ComposableSnapsho import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; +import org.apache.geode.cache.snapshot.SnapshotFilter; import org.junit.Test; import org.springframework.data.gemfire.TestUtils; -import com.gemstone.gemfire.cache.snapshot.SnapshotFilter; - /** * The ComposableSnapshotFilterTest class is a test suite of test cases testing the contract and functionality * of the ComposableSnapshotFilter class. @@ -45,7 +44,7 @@ import com.gemstone.gemfire.cache.snapshot.SnapshotFilter; * @see org.mockito.Mockito * @see org.springframework.data.gemfire.snapshot.filter.ComposableSnapshotFilter * @see org.springframework.data.gemfire.snapshot.filter.ComposableSnapshotFilter.Operator - * @see com.gemstone.gemfire.cache.snapshot.SnapshotFilter + * @see org.apache.geode.cache.snapshot.SnapshotFilter * @since 1.7.0 */ public class ComposableSnapshotFilterTest { diff --git a/src/test/java/org/springframework/data/gemfire/support/AbstractRegionFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/support/AbstractRegionFactoryBeanTest.java index e1d6b7bd..e0d7abca 100644 --- a/src/test/java/org/springframework/data/gemfire/support/AbstractRegionFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/support/AbstractRegionFactoryBeanTest.java @@ -21,6 +21,7 @@ import java.io.FilenameFilter; import java.util.HashMap; import java.util.Map; +import org.apache.geode.cache.GemFireCache; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; @@ -28,8 +29,6 @@ import org.junit.Test; import org.springframework.data.gemfire.RegionFactoryBean; import org.springframework.data.gemfire.test.StubCache; -import com.gemstone.gemfire.cache.GemFireCache; - /** * @author David Turanski * @author John Blum diff --git a/src/test/java/org/springframework/data/gemfire/support/CallableCacheLoaderAdapterTest.java b/src/test/java/org/springframework/data/gemfire/support/CallableCacheLoaderAdapterTest.java index 84de3d3f..83795512 100644 --- a/src/test/java/org/springframework/data/gemfire/support/CallableCacheLoaderAdapterTest.java +++ b/src/test/java/org/springframework/data/gemfire/support/CallableCacheLoaderAdapterTest.java @@ -30,6 +30,9 @@ import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; +import org.apache.geode.cache.CacheLoader; +import org.apache.geode.cache.LoaderHelper; +import org.apache.geode.cache.Region; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; @@ -39,12 +42,8 @@ import org.mockito.invocation.InvocationOnMock; import org.mockito.runners.MockitoJUnitRunner; import org.mockito.stubbing.Answer; -import com.gemstone.gemfire.cache.CacheLoader; -import com.gemstone.gemfire.cache.LoaderHelper; -import com.gemstone.gemfire.cache.Region; - /** - * Tests the adaption of the {@link java.util.concurrent.Callable} in to GemFire's {@link com.gemstone.gemfire.cache.CacheLoader} interface. + * Tests the adaption of the {@link java.util.concurrent.Callable} in to GemFire's {@link org.apache.geode.cache.CacheLoader} interface. * * @author John Blum * @see org.junit.Rule @@ -55,9 +54,9 @@ import com.gemstone.gemfire.cache.Region; * @see org.mockito.Mockito * @see org.mockito.runners.MockitoJUnitRunner * @see java.util.concurrent.Callable - * @see com.gemstone.gemfire.cache.CacheLoader - * @see com.gemstone.gemfire.cache.LoaderHelper - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.CacheLoader + * @see org.apache.geode.cache.LoaderHelper + * @see org.apache.geode.cache.Region * @since 1.0.0 */ @RunWith(MockitoJUnitRunner.class) diff --git a/src/test/java/org/springframework/data/gemfire/support/GemfirePersistenceExceptionTranslationTest.java b/src/test/java/org/springframework/data/gemfire/support/GemfirePersistenceExceptionTranslationTest.java index de09760b..6dc4a823 100644 --- a/src/test/java/org/springframework/data/gemfire/support/GemfirePersistenceExceptionTranslationTest.java +++ b/src/test/java/org/springframework/data/gemfire/support/GemfirePersistenceExceptionTranslationTest.java @@ -19,6 +19,9 @@ import static org.junit.Assert.fail; import java.util.Map; +import org.apache.geode.cache.query.FunctionDomainException; +import org.apache.geode.cache.query.QueryException; +import org.apache.geode.cache.query.QueryInvocationTargetException; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -29,18 +32,14 @@ import org.springframework.stereotype.Repository; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.query.FunctionDomainException; -import com.gemstone.gemfire.cache.query.QueryException; -import com.gemstone.gemfire.cache.query.QueryInvocationTargetException; - @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration public class GemfirePersistenceExceptionTranslationTest { - @Autowired + @Autowired GemFireRepo1 gemfireRepo1; @Autowired ApplicationContext ctx; - + @Test public void test() { Map bpps = ctx.getBeansOfType(BeanPostProcessor.class); @@ -52,33 +51,33 @@ public class GemfirePersistenceExceptionTranslationTest { gemfireRepo1.doit(new QueryException()); fail("should throw a query exception"); } catch (GemfireQueryException e){ - + } - + try { gemfireRepo1.doit(new FunctionDomainException("test")); fail("should throw a query exception"); } catch (GemfireQueryException e) { - + } - + try { gemfireRepo1.doit(new QueryInvocationTargetException("test")); fail("should throw a query exception"); } catch (GemfireQueryException e) { - + } } - + /** - * Wraps GemfireCheckedExceptions in RuntimeException + * Wraps GemfireCheckedExceptions in RuntimeException * @author David Turanski * */ - @Repository + @Repository public static class GemFireRepo1 { public void doit(Exception e) { throw new RuntimeException(e); - } + } } } diff --git a/src/test/java/org/springframework/data/gemfire/support/JSONRegionAdviceTest.java b/src/test/java/org/springframework/data/gemfire/support/JSONRegionAdviceTest.java index 84531d08..4cf65e08 100644 --- a/src/test/java/org/springframework/data/gemfire/support/JSONRegionAdviceTest.java +++ b/src/test/java/org/springframework/data/gemfire/support/JSONRegionAdviceTest.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -19,8 +19,14 @@ import java.io.IOException; import java.util.Arrays; import java.util.HashMap; import java.util.Map; + import javax.annotation.Resource; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; + +import org.apache.geode.cache.Region; +import org.apache.geode.cache.query.SelectResults; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -30,11 +36,6 @@ import org.springframework.data.gemfire.repository.sample.Person; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.query.SelectResults; - /** * JSONRegionAdviceTest is a test suite of test cases testing SDG's support for storing and retrieving JSON data * in GemFire Cache Regions (un)marshalled using Jackson. diff --git a/src/test/java/org/springframework/data/gemfire/support/ListRegionsOnServerFunctionTest.java b/src/test/java/org/springframework/data/gemfire/support/ListRegionsOnServerFunctionTest.java index 47b156e8..7d87c6ba 100644 --- a/src/test/java/org/springframework/data/gemfire/support/ListRegionsOnServerFunctionTest.java +++ b/src/test/java/org/springframework/data/gemfire/support/ListRegionsOnServerFunctionTest.java @@ -34,15 +34,14 @@ import java.util.HashSet; import java.util.List; import java.util.concurrent.atomic.AtomicReference; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.execute.FunctionContext; +import org.apache.geode.cache.execute.ResultSender; import org.junit.Test; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.execute.FunctionContext; -import com.gemstone.gemfire.cache.execute.ResultSender; - /** * The ListRegionsOnServerFunctionTest class is a test suite of test cases testing the contract and functionality * of the ListRegionsOnServerFunction GemFire Function class. diff --git a/src/test/java/org/springframework/data/gemfire/support/SpringContextBootstrappingInitializerIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/support/SpringContextBootstrappingInitializerIntegrationTest.java index 071ca125..cdae3322 100644 --- a/src/test/java/org/springframework/data/gemfire/support/SpringContextBootstrappingInitializerIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/support/SpringContextBootstrappingInitializerIntegrationTest.java @@ -30,8 +30,16 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicReference; + import javax.sql.DataSource; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheClosedException; +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.cache.CacheLoader; +import org.apache.geode.cache.CacheLoaderException; +import org.apache.geode.cache.LoaderHelper; +import org.apache.geode.cache.Region; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -47,14 +55,6 @@ import org.springframework.data.gemfire.support.sample.TestUserService; import org.springframework.data.gemfire.test.support.DataSourceAdapter; import org.springframework.util.Assert; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheClosedException; -import com.gemstone.gemfire.cache.CacheFactory; -import com.gemstone.gemfire.cache.CacheLoader; -import com.gemstone.gemfire.cache.CacheLoaderException; -import com.gemstone.gemfire.cache.LoaderHelper; -import com.gemstone.gemfire.cache.Region; - /** * The SpringContextBootstrappingInitializerTest class is a test suite of test cases testing the integrated * functionality of the SpringContextBootstrappingInitializer class. @@ -64,10 +64,10 @@ import com.gemstone.gemfire.cache.Region; * @see org.springframework.context.ConfigurableApplicationContext * @see org.springframework.data.gemfire.LazyWiringDeclarableSupport * @see org.springframework.data.gemfire.support.SpringContextBootstrappingInitializer - * @see com.gemstone.gemfire.cache.Cache - * @see com.gemstone.gemfire.cache.CacheFactory - * @see com.gemstone.gemfire.cache.CacheLoader - * @see com.gemstone.gemfire.cache.Region + * @see org.apache.geode.cache.Cache + * @see org.apache.geode.cache.CacheFactory + * @see org.apache.geode.cache.CacheLoader + * @see org.apache.geode.cache.Region * @since 1.4.0 */ @SuppressWarnings("unused") diff --git a/src/test/java/org/springframework/data/gemfire/test/MockCacheFactoryBean.java b/src/test/java/org/springframework/data/gemfire/test/MockCacheFactoryBean.java index 6517e7e3..22dbade2 100644 --- a/src/test/java/org/springframework/data/gemfire/test/MockCacheFactoryBean.java +++ b/src/test/java/org/springframework/data/gemfire/test/MockCacheFactoryBean.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -13,10 +13,9 @@ package org.springframework.data.gemfire.test; +import org.apache.geode.cache.GemFireCache; import org.springframework.data.gemfire.CacheFactoryBean; -import com.gemstone.gemfire.cache.GemFireCache; - /** * @author David Turanski * @author John Blum diff --git a/src/test/java/org/springframework/data/gemfire/test/MockClientCacheFactoryBean.java b/src/test/java/org/springframework/data/gemfire/test/MockClientCacheFactoryBean.java index bf5bf47c..e88f4351 100644 --- a/src/test/java/org/springframework/data/gemfire/test/MockClientCacheFactoryBean.java +++ b/src/test/java/org/springframework/data/gemfire/test/MockClientCacheFactoryBean.java @@ -1,21 +1,20 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. */ package org.springframework.data.gemfire.test; +import org.apache.geode.cache.GemFireCache; import org.springframework.data.gemfire.client.ClientCacheFactoryBean; -import com.gemstone.gemfire.cache.GemFireCache; - /** * @author David Turanski * @author John Blum diff --git a/src/test/java/org/springframework/data/gemfire/test/MockClientRegionFactory.java b/src/test/java/org/springframework/data/gemfire/test/MockClientRegionFactory.java index 6197f63e..8a08f735 100644 --- a/src/test/java/org/springframework/data/gemfire/test/MockClientRegionFactory.java +++ b/src/test/java/org/springframework/data/gemfire/test/MockClientRegionFactory.java @@ -25,20 +25,19 @@ import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; +import org.apache.geode.cache.CacheListener; +import org.apache.geode.cache.CustomExpiry; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.EvictionAttributes; +import org.apache.geode.cache.ExpirationAttributes; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.client.ClientRegionFactory; +import org.apache.geode.cache.client.ClientRegionShortcut; +import org.apache.geode.compression.Compressor; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.CacheListener; -import com.gemstone.gemfire.cache.CustomExpiry; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.EvictionAttributes; -import com.gemstone.gemfire.cache.ExpirationAttributes; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.client.ClientRegionFactory; -import com.gemstone.gemfire.cache.client.ClientRegionShortcut; -import com.gemstone.gemfire.compression.Compressor; - /** * The MockClientRegionFactory class... * @@ -59,7 +58,7 @@ public class MockClientRegionFactory extends MockRegionFactory { @SuppressWarnings({ "deprecation", "unchecked" }) public ClientRegionFactory mockClientRegionFactory(ClientRegionShortcut clientRegionShortcut) { - attributesFactory = new com.gemstone.gemfire.cache.AttributesFactory(); + attributesFactory = new org.apache.geode.cache.AttributesFactory(); attributesFactory.setDataPolicy(resolveDataPolicy(clientRegionShortcut)); final ClientRegionFactory mockClientRegionFactory = mock(ClientRegionFactory.class, "MockClientRegionFactory"); diff --git a/src/test/java/org/springframework/data/gemfire/test/MockGatewayFactory.java b/src/test/java/org/springframework/data/gemfire/test/MockGatewayFactory.java index 7c8087e8..e9462110 100644 --- a/src/test/java/org/springframework/data/gemfire/test/MockGatewayFactory.java +++ b/src/test/java/org/springframework/data/gemfire/test/MockGatewayFactory.java @@ -27,14 +27,13 @@ import static org.mockito.Mockito.when; import java.util.ArrayList; import java.util.List; +import org.apache.geode.cache.util.Gateway; +import org.apache.geode.cache.util.GatewayEventListener; +import org.apache.geode.cache.util.GatewayQueueAttributes; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; import org.springframework.data.gemfire.test.support.AbstractUnitAndIntegrationTestsWithMockSupport; -import com.gemstone.gemfire.cache.util.Gateway; -import com.gemstone.gemfire.cache.util.GatewayEventListener; -import com.gemstone.gemfire.cache.util.GatewayQueueAttributes; - /** * The MockGatewayFactory class is a factory for creating mock GemFire Gateways, GatewayQueueAttributes * and Gateway.Endpoints. @@ -42,8 +41,8 @@ import com.gemstone.gemfire.cache.util.GatewayQueueAttributes; * @author John Blum * @see org.mockito.Mockito * @see org.springframework.data.gemfire.wan.GatewayHubFactoryBean - * @see com.gemstone.gemfire.cache.util.Gateway - * @see com.gemstone.gemfire.cache.util.GatewayHub + * @see org.apache.geode.cache.util.Gateway + * @see org.apache.geode.cache.util.GatewayHub * @since 1.5.3 */ @SuppressWarnings({ "deprecation", "unused" }) diff --git a/src/test/java/org/springframework/data/gemfire/test/MockGatewayHubFactory.java b/src/test/java/org/springframework/data/gemfire/test/MockGatewayHubFactory.java index adc9a573..e7913061 100644 --- a/src/test/java/org/springframework/data/gemfire/test/MockGatewayHubFactory.java +++ b/src/test/java/org/springframework/data/gemfire/test/MockGatewayHubFactory.java @@ -20,20 +20,18 @@ import static org.mockito.Matchers.anyBoolean; import static org.mockito.Matchers.anyInt; import static org.mockito.Matchers.anyString; import static org.mockito.Mockito.doAnswer; -import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import java.util.ArrayList; import java.util.List; import java.util.concurrent.atomic.AtomicLong; +import org.apache.geode.cache.util.Gateway; +import org.apache.geode.cache.util.GatewayHub; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; import org.springframework.data.gemfire.test.support.AbstractUnitAndIntegrationTestsWithMockSupport; -import com.gemstone.gemfire.cache.util.Gateway; -import com.gemstone.gemfire.cache.util.GatewayHub; - /** * The MockGatewayHubFactory class is a factory for creating mock GemFire GatewayHubs. * @@ -41,8 +39,8 @@ import com.gemstone.gemfire.cache.util.GatewayHub; * @see org.mockito.Mockito * @see AbstractUnitAndIntegrationTestsWithMockSupport * @see org.springframework.data.gemfire.wan.GatewayHubFactoryBean - * @see com.gemstone.gemfire.cache.util.Gateway - * @see com.gemstone.gemfire.cache.util.GatewayHub + * @see org.apache.geode.cache.util.Gateway + * @see org.apache.geode.cache.util.GatewayHub * @since 1.5.3 */ @SuppressWarnings({ "deprecation", "unused" }) diff --git a/src/test/java/org/springframework/data/gemfire/test/MockRegionFactory.java b/src/test/java/org/springframework/data/gemfire/test/MockRegionFactory.java index 0b7f00b4..18d7084f 100644 --- a/src/test/java/org/springframework/data/gemfire/test/MockRegionFactory.java +++ b/src/test/java/org/springframework/data/gemfire/test/MockRegionFactory.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -23,27 +23,26 @@ import static org.mockito.Mockito.when; import java.io.File; import java.lang.reflect.Field; +import org.apache.geode.cache.AttributesMutator; +import org.apache.geode.cache.CacheListener; +import org.apache.geode.cache.CacheLoader; +import org.apache.geode.cache.CacheWriter; +import org.apache.geode.cache.CustomExpiry; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.EvictionAttributes; +import org.apache.geode.cache.ExpirationAttributes; +import org.apache.geode.cache.MembershipAttributes; +import org.apache.geode.cache.PartitionAttributes; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionAttributes; +import org.apache.geode.cache.RegionFactory; +import org.apache.geode.cache.Scope; +import org.apache.geode.cache.SubscriptionAttributes; +import org.apache.geode.cache.query.QueryService; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; import org.springframework.util.ReflectionUtils; -import com.gemstone.gemfire.cache.AttributesMutator; -import com.gemstone.gemfire.cache.CacheListener; -import com.gemstone.gemfire.cache.CacheLoader; -import com.gemstone.gemfire.cache.CacheWriter; -import com.gemstone.gemfire.cache.CustomExpiry; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.EvictionAttributes; -import com.gemstone.gemfire.cache.ExpirationAttributes; -import com.gemstone.gemfire.cache.MembershipAttributes; -import com.gemstone.gemfire.cache.PartitionAttributes; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionAttributes; -import com.gemstone.gemfire.cache.RegionFactory; -import com.gemstone.gemfire.cache.Scope; -import com.gemstone.gemfire.cache.SubscriptionAttributes; -import com.gemstone.gemfire.cache.query.QueryService; - /** * @author David Turanski * @author John Blum @@ -55,7 +54,7 @@ public class MockRegionFactory { protected static QueryService mockQueryService = mock(QueryService.class); - protected com.gemstone.gemfire.cache.AttributesFactory attributesFactory; + protected org.apache.geode.cache.AttributesFactory attributesFactory; protected final StubCache cache; @@ -69,8 +68,8 @@ public class MockRegionFactory { @SuppressWarnings({ "deprecation", "rawtypes", "unchecked" }) public RegionFactory createMockRegionFactory(RegionAttributes attributes) { - attributesFactory = (attributes != null ? new com.gemstone.gemfire.cache.AttributesFactory(attributes) - : new com.gemstone.gemfire.cache.AttributesFactory()); + attributesFactory = (attributes != null ? new org.apache.geode.cache.AttributesFactory(attributes) + : new org.apache.geode.cache.AttributesFactory()); // Workaround for GemFire bug??? if (attributes != null) { @@ -187,11 +186,11 @@ public class MockRegionFactory { } }); - when(regionFactory.setDiskWriteAttributes(any(com.gemstone.gemfire.cache.DiskWriteAttributes.class))) + when(regionFactory.setDiskWriteAttributes(any(org.apache.geode.cache.DiskWriteAttributes.class))) .thenAnswer(new Answer() { @Override public RegionFactory answer(InvocationOnMock invocation) throws Throwable { - com.gemstone.gemfire.cache.DiskWriteAttributes diskWriteAttributes = - (com.gemstone.gemfire.cache.DiskWriteAttributes) invocation.getArguments()[0]; + org.apache.geode.cache.DiskWriteAttributes diskWriteAttributes = + (org.apache.geode.cache.DiskWriteAttributes) invocation.getArguments()[0]; attributesFactory.setDiskWriteAttributes(diskWriteAttributes); return regionFactory; } diff --git a/src/test/java/org/springframework/data/gemfire/test/MockRegionFactoryTest.java b/src/test/java/org/springframework/data/gemfire/test/MockRegionFactoryTest.java index 656727d2..f8fe3d33 100644 --- a/src/test/java/org/springframework/data/gemfire/test/MockRegionFactoryTest.java +++ b/src/test/java/org/springframework/data/gemfire/test/MockRegionFactoryTest.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -19,11 +19,10 @@ package org.springframework.data.gemfire.test; import static org.junit.Assert.assertEquals; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionFactory; +import org.apache.geode.cache.Scope; import org.junit.Test; - -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionFactory; -import com.gemstone.gemfire.cache.Scope; public class MockRegionFactoryTest { @Test public void testBasicAttributes() { diff --git a/src/test/java/org/springframework/data/gemfire/test/StubAsyncEventQueueFactory.java b/src/test/java/org/springframework/data/gemfire/test/StubAsyncEventQueueFactory.java index ea132eed..b9c1dc83 100644 --- a/src/test/java/org/springframework/data/gemfire/test/StubAsyncEventQueueFactory.java +++ b/src/test/java/org/springframework/data/gemfire/test/StubAsyncEventQueueFactory.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -19,13 +19,13 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventListener; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueue; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueueFactory; -import com.gemstone.gemfire.cache.util.Gateway.OrderPolicy; -import com.gemstone.gemfire.cache.wan.GatewayEventFilter; -import com.gemstone.gemfire.cache.wan.GatewayEventSubstitutionFilter; -import com.gemstone.gemfire.cache.wan.GatewaySender; +import org.apache.geode.cache.asyncqueue.AsyncEventListener; +import org.apache.geode.cache.asyncqueue.AsyncEventQueue; +import org.apache.geode.cache.asyncqueue.AsyncEventQueueFactory; +import org.apache.geode.cache.util.Gateway.OrderPolicy; +import org.apache.geode.cache.wan.GatewayEventFilter; +import org.apache.geode.cache.wan.GatewayEventSubstitutionFilter; +import org.apache.geode.cache.wan.GatewaySender; /** * @author David Turanski diff --git a/src/test/java/org/springframework/data/gemfire/test/StubCache.java b/src/test/java/org/springframework/data/gemfire/test/StubCache.java index 31925123..6a5e8eb6 100644 --- a/src/test/java/org/springframework/data/gemfire/test/StubCache.java +++ b/src/test/java/org/springframework/data/gemfire/test/StubCache.java @@ -17,55 +17,55 @@ import java.util.Properties; import java.util.Set; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicReference; + import javax.naming.Context; +import org.apache.geode.CancelCriterion; +import org.apache.geode.LogWriter; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.CacheTransactionManager; +import org.apache.geode.cache.CacheWriterException; +import org.apache.geode.cache.Declarable; +import org.apache.geode.cache.DiskStore; +import org.apache.geode.cache.DiskStoreFactory; +import org.apache.geode.cache.GatewayException; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.RegionAttributes; +import org.apache.geode.cache.RegionExistsException; +import org.apache.geode.cache.RegionFactory; +import org.apache.geode.cache.RegionService; +import org.apache.geode.cache.RegionShortcut; +import org.apache.geode.cache.TimeoutException; +import org.apache.geode.cache.asyncqueue.AsyncEventQueue; +import org.apache.geode.cache.asyncqueue.AsyncEventQueueFactory; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.cache.client.ClientRegionFactory; +import org.apache.geode.cache.client.ClientRegionShortcut; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.control.ResourceManager; +import org.apache.geode.cache.query.Index; +import org.apache.geode.cache.query.IndexExistsException; +import org.apache.geode.cache.query.IndexInvalidException; +import org.apache.geode.cache.query.IndexNameConflictException; +import org.apache.geode.cache.query.QueryService; +import org.apache.geode.cache.query.RegionNotFoundException; +import org.apache.geode.cache.server.CacheServer; +import org.apache.geode.cache.snapshot.CacheSnapshotService; +import org.apache.geode.cache.util.GatewayConflictResolver; +import org.apache.geode.cache.util.GatewayHub; +import org.apache.geode.cache.wan.GatewayReceiver; +import org.apache.geode.cache.wan.GatewayReceiverFactory; +import org.apache.geode.cache.wan.GatewaySender; +import org.apache.geode.cache.wan.GatewaySenderFactory; +import org.apache.geode.distributed.DistributedMember; +import org.apache.geode.distributed.DistributedSystem; +import org.apache.geode.i18n.LogWriterI18n; +import org.apache.geode.pdx.PdxInstance; +import org.apache.geode.pdx.PdxInstanceFactory; +import org.apache.geode.pdx.PdxSerializer; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; -import com.gemstone.gemfire.CancelCriterion; -import com.gemstone.gemfire.LogWriter; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.CacheTransactionManager; -import com.gemstone.gemfire.cache.CacheWriterException; -import com.gemstone.gemfire.cache.Declarable; -import com.gemstone.gemfire.cache.DiskStore; -import com.gemstone.gemfire.cache.DiskStoreFactory; -import com.gemstone.gemfire.cache.GatewayException; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.RegionAttributes; -import com.gemstone.gemfire.cache.RegionExistsException; -import com.gemstone.gemfire.cache.RegionFactory; -import com.gemstone.gemfire.cache.RegionService; -import com.gemstone.gemfire.cache.RegionShortcut; -import com.gemstone.gemfire.cache.TimeoutException; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueue; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueueFactory; -import com.gemstone.gemfire.cache.client.ClientCache; -import com.gemstone.gemfire.cache.client.ClientRegionFactory; -import com.gemstone.gemfire.cache.client.ClientRegionShortcut; -import com.gemstone.gemfire.cache.client.Pool; -import com.gemstone.gemfire.cache.control.ResourceManager; -import com.gemstone.gemfire.cache.query.Index; -import com.gemstone.gemfire.cache.query.IndexExistsException; -import com.gemstone.gemfire.cache.query.IndexInvalidException; -import com.gemstone.gemfire.cache.query.IndexNameConflictException; -import com.gemstone.gemfire.cache.query.QueryService; -import com.gemstone.gemfire.cache.query.RegionNotFoundException; -import com.gemstone.gemfire.cache.server.CacheServer; -import com.gemstone.gemfire.cache.snapshot.CacheSnapshotService; -import com.gemstone.gemfire.cache.util.GatewayConflictResolver; -import com.gemstone.gemfire.cache.util.GatewayHub; -import com.gemstone.gemfire.cache.wan.GatewayReceiver; -import com.gemstone.gemfire.cache.wan.GatewayReceiverFactory; -import com.gemstone.gemfire.cache.wan.GatewaySender; -import com.gemstone.gemfire.cache.wan.GatewaySenderFactory; -import com.gemstone.gemfire.distributed.DistributedMember; -import com.gemstone.gemfire.distributed.DistributedSystem; -import com.gemstone.gemfire.i18n.LogWriterI18n; -import com.gemstone.gemfire.pdx.PdxInstance; -import com.gemstone.gemfire.pdx.PdxInstanceFactory; -import com.gemstone.gemfire.pdx.PdxSerializer; - @SuppressWarnings({ "deprecation", "unused" }) public class StubCache implements Cache, ClientCache { @@ -119,9 +119,9 @@ public class StubCache implements Cache, ClientCache { gatewayHubs = new ArrayList(); resourceManager = new StubResourceManager(); } - + /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#createDiskStoreFactory() + * @see org.apache.geode.cache.GemFireCache#createDiskStoreFactory() */ @Override public DiskStoreFactory createDiskStoreFactory() { @@ -129,7 +129,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#findDiskStore(java.lang.String) + * @see org.apache.geode.cache.GemFireCache#findDiskStore(java.lang.String) */ @Override public DiskStore findDiskStore(String name) { @@ -137,7 +137,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getCacheTransactionManager() + * @see org.apache.geode.cache.GemFireCache#getCacheTransactionManager() */ @Override public CacheTransactionManager getCacheTransactionManager() { @@ -149,7 +149,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getCopyOnRead() + * @see org.apache.geode.cache.GemFireCache#getCopyOnRead() */ @Override public boolean getCopyOnRead() { @@ -157,7 +157,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getDistributedSystem() + * @see org.apache.geode.cache.GemFireCache#getDistributedSystem() */ @Override public DistributedSystem getDistributedSystem() { @@ -170,7 +170,7 @@ public class StubCache implements Cache, ClientCache { /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getInitializer() + * @see org.apache.geode.cache.GemFireCache#getInitializer() */ @Override public Declarable getInitializer() { @@ -178,7 +178,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getInitializerProps() + * @see org.apache.geode.cache.GemFireCache#getInitializerProps() */ @Override public Properties getInitializerProps() { @@ -186,7 +186,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getJNDIContext() + * @see org.apache.geode.cache.GemFireCache#getJNDIContext() */ @Override public Context getJNDIContext() { @@ -194,7 +194,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getLogger() + * @see org.apache.geode.cache.GemFireCache#getLogger() */ @Override public LogWriter getLogger() { @@ -202,7 +202,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getName() + * @see org.apache.geode.cache.GemFireCache#getName() */ @Override public String getName() { @@ -210,7 +210,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getPdxDiskStore() + * @see org.apache.geode.cache.GemFireCache#getPdxDiskStore() */ @Override public String getPdxDiskStore() { @@ -218,7 +218,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getPdxIgnoreUnreadFields() + * @see org.apache.geode.cache.GemFireCache#getPdxIgnoreUnreadFields() */ @Override public boolean getPdxIgnoreUnreadFields() { @@ -226,7 +226,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getPdxPersistent() + * @see org.apache.geode.cache.GemFireCache#getPdxPersistent() */ @Override public boolean getPdxPersistent() { @@ -234,7 +234,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getPdxReadSerialized() + * @see org.apache.geode.cache.GemFireCache#getPdxReadSerialized() */ @Override public boolean getPdxReadSerialized() { @@ -242,7 +242,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getPdxSerializer() + * @see org.apache.geode.cache.GemFireCache#getPdxSerializer() */ @Override public PdxSerializer getPdxSerializer() { @@ -250,7 +250,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getRegionAttributes(java.lang.String) + * @see org.apache.geode.cache.GemFireCache#getRegionAttributes(java.lang.String) */ @SuppressWarnings("unchecked") @Override @@ -259,7 +259,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getResourceManager() + * @see org.apache.geode.cache.GemFireCache#getResourceManager() */ @Override public ResourceManager getResourceManager() { @@ -267,7 +267,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#getSecurityLogger() + * @see org.apache.geode.cache.GemFireCache#getSecurityLogger() */ @Override public LogWriter getSecurityLogger() { @@ -275,7 +275,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#listRegionAttributes() + * @see org.apache.geode.cache.GemFireCache#listRegionAttributes() */ @SuppressWarnings({ "rawtypes", "unchecked" }) @Override @@ -288,14 +288,14 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#loadCacheXml(java.io.InputStream) + * @see org.apache.geode.cache.GemFireCache#loadCacheXml(java.io.InputStream) */ @Override public void loadCacheXml(InputStream is) throws TimeoutException, CacheWriterException, GatewayException, RegionExistsException { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#setCopyOnRead(boolean) + * @see org.apache.geode.cache.GemFireCache#setCopyOnRead(boolean) */ @Override public void setCopyOnRead(boolean arg0) { @@ -303,7 +303,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.GemFireCache#setRegionAttributes(java.lang.String, com.gemstone.gemfire.cache.RegionAttributes) + * @see org.apache.geode.cache.GemFireCache#setRegionAttributes(java.lang.String, org.apache.geode.cache.RegionAttributes) */ @Override public void setRegionAttributes(String region, RegionAttributes attributes) { @@ -312,7 +312,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.RegionService#close() + * @see org.apache.geode.cache.RegionService#close() */ @Override public void close() { @@ -320,7 +320,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.RegionService#createPdxEnum(java.lang.String, java.lang.String, int) + * @see org.apache.geode.cache.RegionService#createPdxEnum(java.lang.String, java.lang.String, int) */ @Override public PdxInstance createPdxEnum(String arg0, String arg1, int arg2) { @@ -328,7 +328,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.RegionService#createPdxInstanceFactory(java.lang.String) + * @see org.apache.geode.cache.RegionService#createPdxInstanceFactory(java.lang.String) */ @Override public PdxInstanceFactory createPdxInstanceFactory(String arg0) { @@ -336,7 +336,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.RegionService#getCancelCriterion() + * @see org.apache.geode.cache.RegionService#getCancelCriterion() */ @Override public CancelCriterion getCancelCriterion() { @@ -344,7 +344,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.RegionService#getQueryService() + * @see org.apache.geode.cache.RegionService#getQueryService() */ @Override public QueryService getQueryService() { @@ -359,7 +359,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.RegionService#getRegion(java.lang.String) + * @see org.apache.geode.cache.RegionService#getRegion(java.lang.String) */ @SuppressWarnings("unchecked") @Override @@ -368,7 +368,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.RegionService#isClosed() + * @see org.apache.geode.cache.RegionService#isClosed() */ @Override public boolean isClosed() { @@ -376,7 +376,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.RegionService#rootRegions() + * @see org.apache.geode.cache.RegionService#rootRegions() */ @Override public Set> rootRegions() { @@ -390,16 +390,16 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#addBridgeServer() + * @see org.apache.geode.cache.Cache#addBridgeServer() */ @Override @Deprecated - public com.gemstone.gemfire.cache.util.BridgeServer addBridgeServer() { + public org.apache.geode.cache.util.BridgeServer addBridgeServer() { throw new UnsupportedOperationException(NOT_IMPLEMENTED); } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#addCacheServer() + * @see org.apache.geode.cache.Cache#addCacheServer() */ @Override public CacheServer addCacheServer() { @@ -408,7 +408,7 @@ public class StubCache implements Cache, ClientCache { /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#addGatewayHub(java.lang.String, int) + * @see org.apache.geode.cache.Cache#addGatewayHub(java.lang.String, int) */ @Override public GatewayHub addGatewayHub(final String id, final int port) { @@ -419,17 +419,17 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#close(boolean) + * @see org.apache.geode.cache.Cache#close(boolean) */ @Override @Deprecated public void close(boolean arg0) { this.closed = true; - + } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#createAsyncEventQueueFactory() + * @see org.apache.geode.cache.Cache#createAsyncEventQueueFactory() */ @Override public AsyncEventQueueFactory createAsyncEventQueueFactory() { @@ -437,7 +437,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#createGatewayReceiverFactory() + * @see org.apache.geode.cache.Cache#createGatewayReceiverFactory() */ @Override public GatewayReceiverFactory createGatewayReceiverFactory() { @@ -445,7 +445,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#createGatewaySenderFactory() + * @see org.apache.geode.cache.Cache#createGatewaySenderFactory() */ @Override public GatewaySenderFactory createGatewaySenderFactory() { @@ -453,7 +453,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#createRegion(java.lang.String, com.gemstone.gemfire.cache.RegionAttributes) + * @see org.apache.geode.cache.Cache#createRegion(java.lang.String, org.apache.geode.cache.RegionAttributes) */ @Override @Deprecated @@ -462,7 +462,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#createRegionFactory() + * @see org.apache.geode.cache.Cache#createRegionFactory() */ @Override @SuppressWarnings("unchecked") @@ -471,7 +471,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#createRegionFactory(com.gemstone.gemfire.cache.RegionAttributes) + * @see org.apache.geode.cache.Cache#createRegionFactory(org.apache.geode.cache.RegionAttributes) */ @Override public RegionFactory createRegionFactory(RegionAttributes regionAttributes) { @@ -479,7 +479,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#createRegionFactory(com.gemstone.gemfire.cache.RegionShortcut) + * @see org.apache.geode.cache.Cache#createRegionFactory(org.apache.geode.cache.RegionShortcut) */ @Override @SuppressWarnings("unchecked") @@ -488,7 +488,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#createRegionFactory(java.lang.String) + * @see org.apache.geode.cache.Cache#createRegionFactory(java.lang.String) */ @Override @SuppressWarnings("unchecked") @@ -497,7 +497,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#createVMRegion(java.lang.String, com.gemstone.gemfire.cache.RegionAttributes) + * @see org.apache.geode.cache.Cache#createVMRegion(java.lang.String, org.apache.geode.cache.RegionAttributes) */ @Override @Deprecated @@ -506,7 +506,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getAdminMembers() + * @see org.apache.geode.cache.Cache#getAdminMembers() */ @Override public Set getAdminMembers() { @@ -514,7 +514,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getAsyncEventQueue(java.lang.String) + * @see org.apache.geode.cache.Cache#getAsyncEventQueue(java.lang.String) */ @Override public AsyncEventQueue getAsyncEventQueue(String name) { @@ -522,7 +522,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getAsyncEventQueues() + * @see org.apache.geode.cache.Cache#getAsyncEventQueues() */ @Override public Set getAsyncEventQueues() { @@ -530,7 +530,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getBridgeServers() + * @see org.apache.geode.cache.Cache#getBridgeServers() */ @Override @Deprecated @@ -539,7 +539,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getCacheServers() + * @see org.apache.geode.cache.Cache#getCacheServers() */ @Override public List getCacheServers() { @@ -547,7 +547,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getGatewayConflictResolver() + * @see org.apache.geode.cache.Cache#getGatewayConflictResolver() */ @Override public GatewayConflictResolver getGatewayConflictResolver() { @@ -555,7 +555,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getGatewayHub() + * @see org.apache.geode.cache.Cache#getGatewayHub() */ @Override @Deprecated @@ -564,7 +564,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getGatewayHub(java.lang.String) + * @see org.apache.geode.cache.Cache#getGatewayHub(java.lang.String) */ @Override public GatewayHub getGatewayHub(final String id) { @@ -578,7 +578,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getGatewayHubs() + * @see org.apache.geode.cache.Cache#getGatewayHubs() */ @Override public List getGatewayHubs() { @@ -586,7 +586,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getGatewayReceivers() + * @see org.apache.geode.cache.Cache#getGatewayReceivers() */ @Override public Set getGatewayReceivers() { @@ -594,7 +594,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getGatewaySender(java.lang.String) + * @see org.apache.geode.cache.Cache#getGatewaySender(java.lang.String) */ @Override public GatewaySender getGatewaySender(String name) { @@ -602,7 +602,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getGatewaySenders() + * @see org.apache.geode.cache.Cache#getGatewaySenders() */ @Override public Set getGatewaySenders() { @@ -610,7 +610,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getLockLease() + * @see org.apache.geode.cache.Cache#getLockLease() */ @Override public int getLockLease() { @@ -618,7 +618,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getLockTimeout() + * @see org.apache.geode.cache.Cache#getLockTimeout() */ @Override public int getLockTimeout() { @@ -626,7 +626,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getLoggerI18n() + * @see org.apache.geode.cache.Cache#getLoggerI18n() */ @Override @Deprecated @@ -635,7 +635,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getMembers() + * @see org.apache.geode.cache.Cache#getMembers() */ @Override public Set getMembers() { @@ -643,7 +643,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getMembers(com.gemstone.gemfire.cache.Region) + * @see org.apache.geode.cache.Cache#getMembers(org.apache.geode.cache.Region) */ @SuppressWarnings({"rawtypes"}) @Override @@ -652,7 +652,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getMessageSyncInterval() + * @see org.apache.geode.cache.Cache#getMessageSyncInterval() */ @Override public int getMessageSyncInterval() { @@ -660,7 +660,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getSearchTimeout() + * @see org.apache.geode.cache.Cache#getSearchTimeout() */ @Override public int getSearchTimeout() { @@ -668,7 +668,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getSecurityLoggerI18n() + * @see org.apache.geode.cache.Cache#getSecurityLoggerI18n() */ @Override @Deprecated @@ -677,7 +677,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#getSnapshotService() + * @see org.apache.geode.cache.Cache#getSnapshotService() */ @Override public CacheSnapshotService getSnapshotService() { @@ -685,7 +685,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#isServer() + * @see org.apache.geode.cache.Cache#isServer() */ @Override public boolean isServer() { @@ -693,7 +693,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#readyForEvents() + * @see org.apache.geode.cache.Cache#readyForEvents() */ @Override @Deprecated @@ -701,7 +701,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#setGatewayConflictResolver(com.gemstone.gemfire.cache.util.GatewayConflictResolver) + * @see org.apache.geode.cache.Cache#setGatewayConflictResolver(org.apache.geode.cache.util.GatewayConflictResolver) */ @Override public void setGatewayConflictResolver(GatewayConflictResolver arg0) { @@ -709,7 +709,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#setGatewayHub(java.lang.String, int) + * @see org.apache.geode.cache.Cache#setGatewayHub(java.lang.String, int) */ @Override @Deprecated @@ -718,16 +718,16 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#setIsServer(boolean) + * @see org.apache.geode.cache.Cache#setIsServer(boolean) */ @Override public void setIsServer(boolean arg0) { this.server = arg0; - + } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#setLockLease(int) + * @see org.apache.geode.cache.Cache#setLockLease(int) */ @Override public void setLockLease(int arg0) { @@ -735,7 +735,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#setLockTimeout(int) + * @see org.apache.geode.cache.Cache#setLockTimeout(int) */ @Override public void setLockTimeout(int arg0) { @@ -743,7 +743,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#setMessageSyncInterval(int) + * @see org.apache.geode.cache.Cache#setMessageSyncInterval(int) */ @Override public void setMessageSyncInterval(int arg0) { @@ -751,7 +751,7 @@ public class StubCache implements Cache, ClientCache { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.Cache#setSearchTimeout(int) + * @see org.apache.geode.cache.Cache#setSearchTimeout(int) */ @Override public void setSearchTimeout(int arg0) { @@ -799,7 +799,7 @@ public class StubCache implements Cache, ClientCache { String indexName = (String) invocation.getArguments()[0]; String indexedExpression = (String) invocation.getArguments()[1]; String fromClause = (String) invocation.getArguments()[2]; - return mockIndex(indexName, com.gemstone.gemfire.cache.query.IndexType.FUNCTIONAL, indexedExpression, + return mockIndex(indexName, org.apache.geode.cache.query.IndexType.FUNCTIONAL, indexedExpression, fromClause, null); } }); @@ -811,7 +811,7 @@ public class StubCache implements Cache, ClientCache { String indexedExpression = (String) invocation.getArguments()[1]; String fromClause = (String) invocation.getArguments()[2]; String imports = (String) invocation.getArguments()[3]; - return mockIndex(indexName, com.gemstone.gemfire.cache.query.IndexType.FUNCTIONAL, indexedExpression, + return mockIndex(indexName, org.apache.geode.cache.query.IndexType.FUNCTIONAL, indexedExpression, fromClause, imports); } }); @@ -823,7 +823,7 @@ public class StubCache implements Cache, ClientCache { String indexedExpression = (String) invocation.getArguments()[1]; String fromClause = (String) invocation.getArguments()[2]; - return mockIndex(indexName, com.gemstone.gemfire.cache.query.IndexType.PRIMARY_KEY, indexedExpression, + return mockIndex(indexName, org.apache.geode.cache.query.IndexType.PRIMARY_KEY, indexedExpression, fromClause, null); } }); @@ -835,7 +835,7 @@ public class StubCache implements Cache, ClientCache { String indexedExpression = (String) invocation.getArguments()[1]; String fromClause = (String) invocation.getArguments()[2]; - return mockIndex(indexName, com.gemstone.gemfire.cache.query.IndexType.HASH, indexedExpression, + return mockIndex(indexName, org.apache.geode.cache.query.IndexType.HASH, indexedExpression, fromClause, null); } }); @@ -848,7 +848,7 @@ public class StubCache implements Cache, ClientCache { String fromClause = (String) invocation.getArguments()[2]; String imports = (String) invocation.getArguments()[3]; - return mockIndex(indexName, com.gemstone.gemfire.cache.query.IndexType.HASH, indexedExpression, + return mockIndex(indexName, org.apache.geode.cache.query.IndexType.HASH, indexedExpression, fromClause, imports); } }); @@ -857,15 +857,15 @@ public class StubCache implements Cache, ClientCache { } @SuppressWarnings({ "rawtypes", "unchecked", "unused" }) - Index mockIndex(String indexName, com.gemstone.gemfire.cache.query.IndexType indexType, String indexedExpression, + Index mockIndex(String indexName, org.apache.geode.cache.query.IndexType indexType, String indexedExpression, String fromClause, String imports){ Index idx = mock(Index.class); when(idx.getFromClause()).thenReturn(fromClause); when(idx.getIndexedExpression()).thenReturn(indexedExpression); when(idx.getName()).thenReturn(indexName); when(idx.getType()).thenReturn(indexType); - - + + if (fromClause != null && fromClause.length() >= 2) { Region region = mock(Region.class); String name = fromClause.substring(1).split(" ")[0]; diff --git a/src/test/java/org/springframework/data/gemfire/test/StubCacheServer.java b/src/test/java/org/springframework/data/gemfire/test/StubCacheServer.java index b2578227..1c5a84b2 100644 --- a/src/test/java/org/springframework/data/gemfire/test/StubCacheServer.java +++ b/src/test/java/org/springframework/data/gemfire/test/StubCacheServer.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -15,12 +15,12 @@ package org.springframework.data.gemfire.test; import java.io.IOException; import java.util.Set; -import com.gemstone.gemfire.cache.ClientSession; -import com.gemstone.gemfire.cache.InterestRegistrationListener; -import com.gemstone.gemfire.cache.server.CacheServer; -import com.gemstone.gemfire.cache.server.ClientSubscriptionConfig; -import com.gemstone.gemfire.cache.server.ServerLoadProbe; -import com.gemstone.gemfire.distributed.DistributedMember; +import org.apache.geode.cache.ClientSession; +import org.apache.geode.cache.InterestRegistrationListener; +import org.apache.geode.cache.server.CacheServer; +import org.apache.geode.cache.server.ClientSubscriptionConfig; +import org.apache.geode.cache.server.ServerLoadProbe; +import org.apache.geode.distributed.DistributedMember; /** * @author David Turanski @@ -56,7 +56,7 @@ public class StubCacheServer implements CacheServer { private String[] groups; /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getPort() + * @see org.apache.geode.cache.server.CacheServer#getPort() */ @Override public int getPort() { @@ -64,7 +64,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#setPort(int) + * @see org.apache.geode.cache.server.CacheServer#setPort(int) */ @Override public void setPort(int port) { @@ -72,7 +72,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getBindAddress() + * @see org.apache.geode.cache.server.CacheServer#getBindAddress() */ @Override public String getBindAddress() { @@ -80,7 +80,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#setBindAddress(java.lang.String) + * @see org.apache.geode.cache.server.CacheServer#setBindAddress(java.lang.String) */ @Override public void setBindAddress(String address) { @@ -88,7 +88,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getHostnameForClients() + * @see org.apache.geode.cache.server.CacheServer#getHostnameForClients() */ @Override public String getHostnameForClients() { @@ -96,7 +96,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#setHostnameForClients(java.lang.String) + * @see org.apache.geode.cache.server.CacheServer#setHostnameForClients(java.lang.String) */ @Override public void setHostnameForClients(String name) { @@ -104,7 +104,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#setNotifyBySubscription(boolean) + * @see org.apache.geode.cache.server.CacheServer#setNotifyBySubscription(boolean) */ @Override @Deprecated @@ -113,7 +113,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getNotifyBySubscription() + * @see org.apache.geode.cache.server.CacheServer#getNotifyBySubscription() */ @Override @Deprecated @@ -122,7 +122,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#setSocketBufferSize(int) + * @see org.apache.geode.cache.server.CacheServer#setSocketBufferSize(int) */ @Override public void setSocketBufferSize(int socketBufferSize) { @@ -130,7 +130,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getSocketBufferSize() + * @see org.apache.geode.cache.server.CacheServer#getSocketBufferSize() */ @Override public int getSocketBufferSize() { @@ -138,7 +138,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#setMaximumTimeBetweenPings(int) + * @see org.apache.geode.cache.server.CacheServer#setMaximumTimeBetweenPings(int) */ @Override public void setMaximumTimeBetweenPings(int maximumTimeBetweenPings) { @@ -146,7 +146,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getMaximumTimeBetweenPings() + * @see org.apache.geode.cache.server.CacheServer#getMaximumTimeBetweenPings() */ @Override public int getMaximumTimeBetweenPings() { @@ -154,16 +154,16 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#start() + * @see org.apache.geode.cache.server.CacheServer#start() */ @Override public void start() throws IOException { isRunning = true; - + } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#isRunning() + * @see org.apache.geode.cache.server.CacheServer#isRunning() */ @Override public boolean isRunning() { @@ -171,7 +171,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#stop() + * @see org.apache.geode.cache.server.CacheServer#stop() */ @Override public void stop() { @@ -179,7 +179,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getMaxConnections() + * @see org.apache.geode.cache.server.CacheServer#getMaxConnections() */ @Override public int getMaxConnections() { @@ -187,7 +187,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#setMaxConnections(int) + * @see org.apache.geode.cache.server.CacheServer#setMaxConnections(int) */ @Override public void setMaxConnections(int maxCons) { @@ -195,7 +195,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getMaxThreads() + * @see org.apache.geode.cache.server.CacheServer#getMaxThreads() */ @Override public int getMaxThreads() { @@ -203,7 +203,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#setMaxThreads(int) + * @see org.apache.geode.cache.server.CacheServer#setMaxThreads(int) */ @Override public void setMaxThreads(int maxThreads) { @@ -211,7 +211,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getMaximumMessageCount() + * @see org.apache.geode.cache.server.CacheServer#getMaximumMessageCount() */ @Override public int getMaximumMessageCount() { @@ -219,7 +219,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#setMaximumMessageCount(int) + * @see org.apache.geode.cache.server.CacheServer#setMaximumMessageCount(int) */ @Override public void setMaximumMessageCount(int maxMessageCount) { @@ -227,7 +227,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getMessageTimeToLive() + * @see org.apache.geode.cache.server.CacheServer#getMessageTimeToLive() */ @Override public int getMessageTimeToLive() { @@ -235,16 +235,16 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#setMessageTimeToLive(int) + * @see org.apache.geode.cache.server.CacheServer#setMessageTimeToLive(int) */ @Override public void setMessageTimeToLive(int messageTimeToLive) { this.messageTimeToLive = messageTimeToLive; - + } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#setGroups(java.lang.String[]) + * @see org.apache.geode.cache.server.CacheServer#setGroups(java.lang.String[]) */ @Override public void setGroups(String[] groups) { @@ -252,7 +252,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getGroups() + * @see org.apache.geode.cache.server.CacheServer#getGroups() */ @Override public String[] getGroups() { @@ -260,7 +260,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getLoadProbe() + * @see org.apache.geode.cache.server.CacheServer#getLoadProbe() */ @Override public ServerLoadProbe getLoadProbe() { @@ -268,7 +268,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#setLoadProbe(com.gemstone.gemfire.cache.server.ServerLoadProbe) + * @see org.apache.geode.cache.server.CacheServer#setLoadProbe(org.apache.geode.cache.server.ServerLoadProbe) */ @Override public void setLoadProbe(ServerLoadProbe loadProbe) { @@ -276,7 +276,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getLoadPollInterval() + * @see org.apache.geode.cache.server.CacheServer#getLoadPollInterval() */ @Override public long getLoadPollInterval() { @@ -284,7 +284,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#setLoadPollInterval(long) + * @see org.apache.geode.cache.server.CacheServer#setLoadPollInterval(long) */ @Override public void setLoadPollInterval(long loadPollInterval) { @@ -292,7 +292,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getClientSubscriptionConfig() + * @see org.apache.geode.cache.server.CacheServer#getClientSubscriptionConfig() */ @Override public ClientSubscriptionConfig getClientSubscriptionConfig() { @@ -300,7 +300,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getClientSession(com.gemstone.gemfire.distributed.DistributedMember) + * @see org.apache.geode.cache.server.CacheServer#getClientSession(org.apache.geode.distributed.DistributedMember) */ @Override public ClientSession getClientSession(DistributedMember member) { @@ -308,7 +308,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getClientSession(java.lang.String) + * @see org.apache.geode.cache.server.CacheServer#getClientSession(java.lang.String) */ @Override public ClientSession getClientSession(String durableClientId) { @@ -316,7 +316,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getAllClientSessions() + * @see org.apache.geode.cache.server.CacheServer#getAllClientSessions() */ @Override public Set getAllClientSessions() { @@ -324,25 +324,25 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#registerInterestRegistrationListener(com.gemstone.gemfire.cache.InterestRegistrationListener) + * @see org.apache.geode.cache.server.CacheServer#registerInterestRegistrationListener(org.apache.geode.cache.InterestRegistrationListener) */ @Override public void registerInterestRegistrationListener(InterestRegistrationListener listener) { // TODO Auto-generated method stub - + } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#unregisterInterestRegistrationListener(com.gemstone.gemfire.cache.InterestRegistrationListener) + * @see org.apache.geode.cache.server.CacheServer#unregisterInterestRegistrationListener(org.apache.geode.cache.InterestRegistrationListener) */ @Override public void unregisterInterestRegistrationListener(InterestRegistrationListener listener) { // TODO Auto-generated method stub - + } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getInterestRegistrationListeners() + * @see org.apache.geode.cache.server.CacheServer#getInterestRegistrationListeners() */ @Override public Set getInterestRegistrationListeners() { @@ -351,7 +351,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#getTcpNoDelay() + * @see org.apache.geode.cache.server.CacheServer#getTcpNoDelay() */ @Override public boolean getTcpNoDelay() { @@ -359,7 +359,7 @@ public class StubCacheServer implements CacheServer { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.server.CacheServer#setTcpNoDelay(boolean) + * @see org.apache.geode.cache.server.CacheServer#setTcpNoDelay(boolean) */ @Override public void setTcpNoDelay(final boolean tcpNoDelay) { diff --git a/src/test/java/org/springframework/data/gemfire/test/StubCacheTransactionMananger.java b/src/test/java/org/springframework/data/gemfire/test/StubCacheTransactionMananger.java index 87796f20..d41cc6f7 100644 --- a/src/test/java/org/springframework/data/gemfire/test/StubCacheTransactionMananger.java +++ b/src/test/java/org/springframework/data/gemfire/test/StubCacheTransactionMananger.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -17,11 +17,11 @@ import java.util.Arrays; import java.util.List; import java.util.concurrent.TimeUnit; -import com.gemstone.gemfire.cache.CacheTransactionManager; -import com.gemstone.gemfire.cache.CommitConflictException; -import com.gemstone.gemfire.cache.TransactionId; -import com.gemstone.gemfire.cache.TransactionListener; -import com.gemstone.gemfire.cache.TransactionWriter; +import org.apache.geode.cache.CacheTransactionManager; +import org.apache.geode.cache.CommitConflictException; +import org.apache.geode.cache.TransactionId; +import org.apache.geode.cache.TransactionListener; +import org.apache.geode.cache.TransactionWriter; /** @@ -34,33 +34,33 @@ public class StubCacheTransactionMananger implements CacheTransactionManager { private TransactionWriter writer; /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#begin() + * @see org.apache.geode.cache.CacheTransactionManager#begin() */ @Override public void begin() { // TODO Auto-generated method stub - + } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#commit() + * @see org.apache.geode.cache.CacheTransactionManager#commit() */ @Override public void commit() throws CommitConflictException { - + } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#rollback() + * @see org.apache.geode.cache.CacheTransactionManager#rollback() */ @Override public void rollback() { // TODO Auto-generated method stub - + } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#suspend() + * @see org.apache.geode.cache.CacheTransactionManager#suspend() */ @Override public TransactionId suspend() { @@ -69,16 +69,16 @@ public class StubCacheTransactionMananger implements CacheTransactionManager { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#resume(com.gemstone.gemfire.cache.TransactionId) + * @see org.apache.geode.cache.CacheTransactionManager#resume(org.apache.geode.cache.TransactionId) */ @Override public void resume(TransactionId transactionId) { // TODO Auto-generated method stub - + } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#isSuspended(com.gemstone.gemfire.cache.TransactionId) + * @see org.apache.geode.cache.CacheTransactionManager#isSuspended(org.apache.geode.cache.TransactionId) */ @Override public boolean isSuspended(TransactionId transactionId) { @@ -87,7 +87,7 @@ public class StubCacheTransactionMananger implements CacheTransactionManager { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#tryResume(com.gemstone.gemfire.cache.TransactionId) + * @see org.apache.geode.cache.CacheTransactionManager#tryResume(org.apache.geode.cache.TransactionId) */ @Override public boolean tryResume(TransactionId transactionId) { @@ -96,7 +96,7 @@ public class StubCacheTransactionMananger implements CacheTransactionManager { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#tryResume(com.gemstone.gemfire.cache.TransactionId, long, java.util.concurrent.TimeUnit) + * @see org.apache.geode.cache.CacheTransactionManager#tryResume(org.apache.geode.cache.TransactionId, long, java.util.concurrent.TimeUnit) */ @Override public boolean tryResume(TransactionId transactionId, long time, TimeUnit unit) { @@ -105,7 +105,7 @@ public class StubCacheTransactionMananger implements CacheTransactionManager { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#exists(com.gemstone.gemfire.cache.TransactionId) + * @see org.apache.geode.cache.CacheTransactionManager#exists(org.apache.geode.cache.TransactionId) */ @Override public boolean exists(TransactionId transactionId) { @@ -114,7 +114,7 @@ public class StubCacheTransactionMananger implements CacheTransactionManager { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#exists() + * @see org.apache.geode.cache.CacheTransactionManager#exists() */ @Override public boolean exists() { @@ -123,7 +123,7 @@ public class StubCacheTransactionMananger implements CacheTransactionManager { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#getTransactionId() + * @see org.apache.geode.cache.CacheTransactionManager#getTransactionId() */ @Override public TransactionId getTransactionId() { @@ -132,7 +132,7 @@ public class StubCacheTransactionMananger implements CacheTransactionManager { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#getListener() + * @see org.apache.geode.cache.CacheTransactionManager#getListener() */ @Override @Deprecated @@ -142,14 +142,14 @@ public class StubCacheTransactionMananger implements CacheTransactionManager { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#getListeners() + * @see org.apache.geode.cache.CacheTransactionManager#getListeners() */ @Override public TransactionListener[] getListeners() { return listeners.toArray(new TransactionListener[listeners.size()]); } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#setListener(com.gemstone.gemfire.cache.TransactionListener) + * @see org.apache.geode.cache.CacheTransactionManager#setListener(org.apache.geode.cache.TransactionListener) */ @Override @Deprecated @@ -159,16 +159,16 @@ public class StubCacheTransactionMananger implements CacheTransactionManager { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#addListener(com.gemstone.gemfire.cache.TransactionListener) + * @see org.apache.geode.cache.CacheTransactionManager#addListener(org.apache.geode.cache.TransactionListener) */ @Override public void addListener(TransactionListener aListener) { this.listeners.add(aListener); - + } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#removeListener(com.gemstone.gemfire.cache.TransactionListener) + * @see org.apache.geode.cache.CacheTransactionManager#removeListener(org.apache.geode.cache.TransactionListener) */ @Override public void removeListener(TransactionListener aListener) { @@ -176,16 +176,16 @@ public class StubCacheTransactionMananger implements CacheTransactionManager { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#initListeners(com.gemstone.gemfire.cache.TransactionListener[]) + * @see org.apache.geode.cache.CacheTransactionManager#initListeners(org.apache.geode.cache.TransactionListener[]) */ @Override public void initListeners(TransactionListener[] newListeners) { this.listeners = Arrays.asList(newListeners); - + } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#setWriter(com.gemstone.gemfire.cache.TransactionWriter) + * @see org.apache.geode.cache.CacheTransactionManager#setWriter(org.apache.geode.cache.TransactionWriter) */ @Override public void setWriter(TransactionWriter writer) { @@ -193,7 +193,7 @@ public class StubCacheTransactionMananger implements CacheTransactionManager { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.CacheTransactionManager#getWriter() + * @see org.apache.geode.cache.CacheTransactionManager#getWriter() */ @Override public TransactionWriter getWriter() { diff --git a/src/test/java/org/springframework/data/gemfire/test/StubDiskStore.java b/src/test/java/org/springframework/data/gemfire/test/StubDiskStore.java index 007515f1..8d21339d 100644 --- a/src/test/java/org/springframework/data/gemfire/test/StubDiskStore.java +++ b/src/test/java/org/springframework/data/gemfire/test/StubDiskStore.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -19,8 +19,8 @@ import java.io.File; import java.util.HashMap; import java.util.Map; -import com.gemstone.gemfire.cache.DiskStore; -import com.gemstone.gemfire.cache.DiskStoreFactory; +import org.apache.geode.cache.DiskStore; +import org.apache.geode.cache.DiskStoreFactory; /** * @author David Turanski @@ -52,7 +52,7 @@ public class StubDiskStore implements DiskStoreFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.DiskStoreFactory#setAllowForceCompaction(boolean) + * @see org.apache.geode.cache.DiskStoreFactory#setAllowForceCompaction(boolean) */ @Override public DiskStoreFactory setAllowForceCompaction(boolean allowForceCompaction) { @@ -61,7 +61,7 @@ public class StubDiskStore implements DiskStoreFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.DiskStoreFactory#setAutoCompact(boolean) + * @see org.apache.geode.cache.DiskStoreFactory#setAutoCompact(boolean) */ @Override public DiskStoreFactory setAutoCompact(boolean isAutoCompact) { @@ -70,7 +70,7 @@ public class StubDiskStore implements DiskStoreFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.DiskStoreFactory#setCompactionThreshold(int) + * @see org.apache.geode.cache.DiskStoreFactory#setCompactionThreshold(int) */ @Override public DiskStoreFactory setCompactionThreshold(int compactionThreshold) { @@ -79,7 +79,7 @@ public class StubDiskStore implements DiskStoreFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.DiskStoreFactory#setMaxOplogSize(long) + * @see org.apache.geode.cache.DiskStoreFactory#setMaxOplogSize(long) */ @Override public DiskStoreFactory setMaxOplogSize(long maxOplogSize) { @@ -88,7 +88,7 @@ public class StubDiskStore implements DiskStoreFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.DiskStoreFactory#setTimeInterval(long) + * @see org.apache.geode.cache.DiskStoreFactory#setTimeInterval(long) */ @Override public DiskStoreFactory setTimeInterval(long timeInterval) { @@ -97,7 +97,7 @@ public class StubDiskStore implements DiskStoreFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.DiskStoreFactory#setWriteBufferSize(int) + * @see org.apache.geode.cache.DiskStoreFactory#setWriteBufferSize(int) */ @Override public DiskStoreFactory setWriteBufferSize(int writeBufferSize) { @@ -106,7 +106,7 @@ public class StubDiskStore implements DiskStoreFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.DiskStoreFactory#setQueueSize(int) + * @see org.apache.geode.cache.DiskStoreFactory#setQueueSize(int) */ @Override public DiskStoreFactory setQueueSize(int queueSize) { @@ -115,7 +115,7 @@ public class StubDiskStore implements DiskStoreFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.DiskStoreFactory#setDiskDirs(java.io.File[]) + * @see org.apache.geode.cache.DiskStoreFactory#setDiskDirs(java.io.File[]) */ @Override public DiskStoreFactory setDiskDirs(File[] diskDirs) { @@ -124,7 +124,7 @@ public class StubDiskStore implements DiskStoreFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.DiskStoreFactory#setDiskDirsAndSizes(java.io.File[], int[]) + * @see org.apache.geode.cache.DiskStoreFactory#setDiskDirsAndSizes(java.io.File[], int[]) */ @Override public DiskStoreFactory setDiskDirsAndSizes(File[] diskDirs, int[] diskDirSizes) { @@ -134,7 +134,7 @@ public class StubDiskStore implements DiskStoreFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.DiskStoreFactory#setDiskUsageCriticalPercentage(float) + * @see org.apache.geode.cache.DiskStoreFactory#setDiskUsageCriticalPercentage(float) */ @Override public DiskStoreFactory setDiskUsageCriticalPercentage(final float diskUsageCriticalPercentage) { @@ -143,7 +143,7 @@ public class StubDiskStore implements DiskStoreFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.DiskStoreFactory#setDiskUsageWarningPercentage(float) + * @see org.apache.geode.cache.DiskStoreFactory#setDiskUsageWarningPercentage(float) */ @Override public DiskStoreFactory setDiskUsageWarningPercentage(final float diskUsageWarningPercentage) { @@ -152,7 +152,7 @@ public class StubDiskStore implements DiskStoreFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.DiskStoreFactory#create(java.lang.String) + * @see org.apache.geode.cache.DiskStoreFactory#create(java.lang.String) */ @Override public DiskStore create(final String name) { diff --git a/src/test/java/org/springframework/data/gemfire/test/StubGatewayReceiverFactory.java b/src/test/java/org/springframework/data/gemfire/test/StubGatewayReceiverFactory.java index 341ceb38..b20659a6 100644 --- a/src/test/java/org/springframework/data/gemfire/test/StubGatewayReceiverFactory.java +++ b/src/test/java/org/springframework/data/gemfire/test/StubGatewayReceiverFactory.java @@ -1,11 +1,11 @@ /* * Copyright 2002-2013 the original author or authors. - * + * * 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. @@ -22,18 +22,17 @@ import java.util.ArrayList; import java.util.List; import java.util.Random; +import org.apache.geode.cache.wan.GatewayReceiver; +import org.apache.geode.cache.wan.GatewayReceiverFactory; +import org.apache.geode.cache.wan.GatewayTransportFilter; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.wan.GatewayReceiver; -import com.gemstone.gemfire.cache.wan.GatewayReceiverFactory; -import com.gemstone.gemfire.cache.wan.GatewayTransportFilter; - /** * @author David Turanski * @author John Blum - * @see com.gemstone.gemfire.cache.wan.GatewayReceiverFactory + * @see org.apache.geode.cache.wan.GatewayReceiverFactory */ @SuppressWarnings("unused") public class StubGatewayReceiverFactory implements GatewayReceiverFactory { @@ -54,7 +53,7 @@ public class StubGatewayReceiverFactory implements GatewayReceiverFactory { private String hostnameForSenders; /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.wan.GatewayReceiverFactory#setStartPort(int) + * @see org.apache.geode.cache.wan.GatewayReceiverFactory#setStartPort(int) */ @Override public GatewayReceiverFactory setStartPort(int startPort) { @@ -63,7 +62,7 @@ public class StubGatewayReceiverFactory implements GatewayReceiverFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.wan.GatewayReceiverFactory#setEndPort(int) + * @see org.apache.geode.cache.wan.GatewayReceiverFactory#setEndPort(int) */ @Override public GatewayReceiverFactory setEndPort(int endPort) { @@ -72,7 +71,7 @@ public class StubGatewayReceiverFactory implements GatewayReceiverFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.wan.GatewayReceiverFactory#setSocketBufferSize(int) + * @see org.apache.geode.cache.wan.GatewayReceiverFactory#setSocketBufferSize(int) */ @Override public GatewayReceiverFactory setSocketBufferSize(int socketBufferSize) { @@ -81,7 +80,7 @@ public class StubGatewayReceiverFactory implements GatewayReceiverFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.wan.GatewayReceiverFactory#setBindAddress(java.lang.String) + * @see org.apache.geode.cache.wan.GatewayReceiverFactory#setBindAddress(java.lang.String) */ @Override public GatewayReceiverFactory setBindAddress(String address) { @@ -90,7 +89,7 @@ public class StubGatewayReceiverFactory implements GatewayReceiverFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.wan.GatewayReceiverFactory#addGatewayTransportFilter(com.gemstone.gemfire.cache.wan.GatewayTransportFilter) + * @see org.apache.geode.cache.wan.GatewayReceiverFactory#addGatewayTransportFilter(org.apache.geode.cache.wan.GatewayTransportFilter) */ @Override public GatewayReceiverFactory addGatewayTransportFilter(GatewayTransportFilter filter) { @@ -99,7 +98,7 @@ public class StubGatewayReceiverFactory implements GatewayReceiverFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.wan.GatewayReceiverFactory#removeGatewayTransportFilter(com.gemstone.gemfire.cache.wan.GatewayTransportFilter) + * @see org.apache.geode.cache.wan.GatewayReceiverFactory#removeGatewayTransportFilter(org.apache.geode.cache.wan.GatewayTransportFilter) */ @Override public GatewayReceiverFactory removeGatewayTransportFilter(GatewayTransportFilter filter) { @@ -108,7 +107,7 @@ public class StubGatewayReceiverFactory implements GatewayReceiverFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.wan.GatewayReceiverFactory#setMaximumTimeBetweenPings(int) + * @see org.apache.geode.cache.wan.GatewayReceiverFactory#setMaximumTimeBetweenPings(int) */ @Override public GatewayReceiverFactory setMaximumTimeBetweenPings(int time) { @@ -117,8 +116,8 @@ public class StubGatewayReceiverFactory implements GatewayReceiverFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.wan.GatewayReceiverFactory#setHostnameForClients(String) - * @see com.gemstone.gemfire.cache.wan.GatewayReceiver#getHost + * @see org.apache.geode.cache.wan.GatewayReceiverFactory#setHostnameForClients(String) + * @see org.apache.geode.cache.wan.GatewayReceiver#getHost */ //@Override public GatewayReceiverFactory setHostnameForClients(final String name) { @@ -127,7 +126,7 @@ public class StubGatewayReceiverFactory implements GatewayReceiverFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.wan.GatewayReceiverFactory#setHostnameForSenders(String) + * @see org.apache.geode.cache.wan.GatewayReceiverFactory#setHostnameForSenders(String) */ @Override public GatewayReceiverFactory setHostnameForSenders(final String hostnameForSenders) { @@ -137,7 +136,7 @@ public class StubGatewayReceiverFactory implements GatewayReceiverFactory { /* * (non-Javadoc) - * @see com.gemstone.gemfire.cache.wan.GatewayReceiverFactory#setManualStart(boolean) + * @see org.apache.geode.cache.wan.GatewayReceiverFactory#setManualStart(boolean) */ @Override public GatewayReceiverFactory setManualStart(final boolean manualStart) { @@ -151,7 +150,7 @@ public class StubGatewayReceiverFactory implements GatewayReceiverFactory { } /* (non-Javadoc) - * @see com.gemstone.gemfire.cache.wan.GatewayReceiverFactory#create() + * @see org.apache.geode.cache.wan.GatewayReceiverFactory#create() */ @Override public GatewayReceiver create() { diff --git a/src/test/java/org/springframework/data/gemfire/test/StubGatewaySenderFactory.java b/src/test/java/org/springframework/data/gemfire/test/StubGatewaySenderFactory.java index 97236ec5..08aa296e 100644 --- a/src/test/java/org/springframework/data/gemfire/test/StubGatewaySenderFactory.java +++ b/src/test/java/org/springframework/data/gemfire/test/StubGatewaySenderFactory.java @@ -19,22 +19,21 @@ import static org.mockito.Mockito.when; import java.util.ArrayList; import java.util.List; +import org.apache.geode.cache.util.Gateway.OrderPolicy; +import org.apache.geode.cache.wan.GatewayEventFilter; +import org.apache.geode.cache.wan.GatewayEventSubstitutionFilter; +import org.apache.geode.cache.wan.GatewaySender; +import org.apache.geode.cache.wan.GatewaySenderFactory; +import org.apache.geode.cache.wan.GatewayTransportFilter; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; -import com.gemstone.gemfire.cache.util.Gateway.OrderPolicy; -import com.gemstone.gemfire.cache.wan.GatewayEventFilter; -import com.gemstone.gemfire.cache.wan.GatewayEventSubstitutionFilter; -import com.gemstone.gemfire.cache.wan.GatewaySender; -import com.gemstone.gemfire.cache.wan.GatewaySenderFactory; -import com.gemstone.gemfire.cache.wan.GatewayTransportFilter; - /** * The StubGatewaySenderFactory class for testing purposes. * * @author David Turanski * @author John Blum - * @see com.gemstone.gemfire.cache.wan.GatewaySenderFactory + * @see org.apache.geode.cache.wan.GatewaySenderFactory */ @SuppressWarnings({ "deprecation", "unused" }) public class StubGatewaySenderFactory implements GatewaySenderFactory { diff --git a/src/test/java/org/springframework/data/gemfire/test/StubResourceManager.java b/src/test/java/org/springframework/data/gemfire/test/StubResourceManager.java index f4f4d90a..8db6681e 100644 --- a/src/test/java/org/springframework/data/gemfire/test/StubResourceManager.java +++ b/src/test/java/org/springframework/data/gemfire/test/StubResourceManager.java @@ -20,9 +20,9 @@ package org.springframework.data.gemfire.test; import java.util.Collections; import java.util.Set; -import com.gemstone.gemfire.cache.control.RebalanceFactory; -import com.gemstone.gemfire.cache.control.RebalanceOperation; -import com.gemstone.gemfire.cache.control.ResourceManager; +import org.apache.geode.cache.control.RebalanceFactory; +import org.apache.geode.cache.control.RebalanceOperation; +import org.apache.geode.cache.control.ResourceManager; /** * The StubResourceManager class... diff --git a/src/test/java/org/springframework/data/gemfire/test/support/ClientServerIntegrationTestsSupport.java b/src/test/java/org/springframework/data/gemfire/test/support/ClientServerIntegrationTestsSupport.java index 09240ecc..69021418 100644 --- a/src/test/java/org/springframework/data/gemfire/test/support/ClientServerIntegrationTestsSupport.java +++ b/src/test/java/org/springframework/data/gemfire/test/support/ClientServerIntegrationTestsSupport.java @@ -25,14 +25,14 @@ import java.net.Socket; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; -import com.gemstone.gemfire.cache.server.CacheServer; +import org.apache.geode.cache.server.CacheServer; /** * The {@link ClientServerIntegrationTestsSupport} class is a abstract base class encapsulating common functionality * to support the implementation of GemFire client/server tests. * * @author John Blum - * @see com.gemstone.gemfire.cache.server.CacheServer + * @see org.apache.geode.cache.server.CacheServer * @see org.springframework.data.gemfire.test.support.SocketUtils * @see org.springframework.data.gemfire.test.support.ThreadUtils * @since 1.9.0 diff --git a/src/test/java/org/springframework/data/gemfire/test/support/DataSourceAdapter.java b/src/test/java/org/springframework/data/gemfire/test/support/DataSourceAdapter.java index a126ec39..57f30ed2 100644 --- a/src/test/java/org/springframework/data/gemfire/test/support/DataSourceAdapter.java +++ b/src/test/java/org/springframework/data/gemfire/test/support/DataSourceAdapter.java @@ -21,6 +21,7 @@ import java.sql.Connection; import java.sql.SQLException; import java.sql.SQLFeatureNotSupportedException; import java.util.logging.Logger; + import javax.sql.DataSource; /** diff --git a/src/test/java/org/springframework/data/gemfire/test/support/FileSystemUtils.java b/src/test/java/org/springframework/data/gemfire/test/support/FileSystemUtils.java index aa1b01f6..dac19a74 100644 --- a/src/test/java/org/springframework/data/gemfire/test/support/FileSystemUtils.java +++ b/src/test/java/org/springframework/data/gemfire/test/support/FileSystemUtils.java @@ -22,7 +22,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import com.gemstone.gemfire.management.internal.cli.util.spring.Assert; +import org.apache.geode.management.internal.cli.util.spring.Assert; /** * The FileSystemUtils class is a utility class encapsulating functionality to process file system directories diff --git a/src/test/java/org/springframework/data/gemfire/wan/AsyncEventQueueFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/wan/AsyncEventQueueFactoryBeanTest.java index a68d4958..dc21a82d 100644 --- a/src/test/java/org/springframework/data/gemfire/wan/AsyncEventQueueFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/wan/AsyncEventQueueFactoryBeanTest.java @@ -27,15 +27,14 @@ import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.asyncqueue.AsyncEventListener; +import org.apache.geode.cache.asyncqueue.AsyncEventQueue; +import org.apache.geode.cache.asyncqueue.AsyncEventQueueFactory; +import org.apache.geode.cache.util.Gateway; import org.junit.Test; import org.springframework.data.gemfire.TestUtils; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventListener; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueue; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueueFactory; -import com.gemstone.gemfire.cache.util.Gateway; - /** * The AsyncEventQueueFactoryBeanTest class is a test suite of test cases testing the contract and functionality * of the AsyncEventQueueFactoryBean class. @@ -45,10 +44,10 @@ import com.gemstone.gemfire.cache.util.Gateway; * @see org.mockito.Mockito * @see org.springframework.data.gemfire.TestUtils * @see org.springframework.data.gemfire.wan.AsyncEventQueueFactoryBean - * @see com.gemstone.gemfire.cache.Cache - * @see com.gemstone.gemfire.cache.asyncqueue.AsyncEventListener - * @see com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueue - * @see com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueueFactory + * @see org.apache.geode.cache.Cache + * @see org.apache.geode.cache.asyncqueue.AsyncEventListener + * @see org.apache.geode.cache.asyncqueue.AsyncEventQueue + * @see org.apache.geode.cache.asyncqueue.AsyncEventQueueFactory * @since 1.3.3 */ public class AsyncEventQueueFactoryBeanTest { diff --git a/src/test/java/org/springframework/data/gemfire/wan/AsyncEventQueueWithListenerIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/wan/AsyncEventQueueWithListenerIntegrationTest.java index ba39c75d..99fcc35a 100644 --- a/src/test/java/org/springframework/data/gemfire/wan/AsyncEventQueueWithListenerIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/wan/AsyncEventQueueWithListenerIntegrationTest.java @@ -23,8 +23,13 @@ import static org.junit.Assert.assertSame; import static org.junit.Assert.assertTrue; import java.util.List; + import javax.annotation.Resource; +import org.apache.geode.cache.asyncqueue.AsyncEvent; +import org.apache.geode.cache.asyncqueue.AsyncEventListener; +import org.apache.geode.cache.asyncqueue.AsyncEventQueue; +import org.apache.geode.cache.wan.GatewaySender; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.data.gemfire.test.GemfireTestApplicationContextInitializer; @@ -33,11 +38,6 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.util.Assert; import org.springframework.util.StringUtils; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEvent; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventListener; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueue; -import com.gemstone.gemfire.cache.wan.GatewaySender; - /** * The AsyncEventQueueWithListenerIntegrationTest class is a test suite of test cases testing the circular references * between an Async Event Queue and a registered AsyncEventListener that refers back to the Async Event Queue @@ -48,7 +48,7 @@ import com.gemstone.gemfire.cache.wan.GatewaySender; * @see org.junit.runner.RunWith * @see org.springframework.test.context.ContextConfiguration * @see org.springframework.test.context.junit4.SpringJUnit4ClassRunner - * @see com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueue + * @see org.apache.geode.cache.asyncqueue.AsyncEventQueue * @since 1.0.0 */ @RunWith(SpringJUnit4ClassRunner.class) @@ -104,9 +104,9 @@ public class AsyncEventQueueWithListenerIntegrationTest { * The QueueAsyncEventListener class is an implementation of the AsyncEventListener interface that contains * a reference to the AsyncEventQueue upon which it is registered. * - * @see com.gemstone.gemfire.cache.asyncqueue.AsyncEvent - * @see com.gemstone.gemfire.cache.asyncqueue.AsyncEventListener - * @see com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueue + * @see org.apache.geode.cache.asyncqueue.AsyncEvent + * @see org.apache.geode.cache.asyncqueue.AsyncEventListener + * @see org.apache.geode.cache.asyncqueue.AsyncEventQueue */ @SuppressWarnings("unused") public static class TestAsyncEventListener implements AsyncEventListener { diff --git a/src/test/java/org/springframework/data/gemfire/wan/CachePartitionRegionWithConcurrentParallelAsyncEventQueueAndGatewaySenderIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/wan/CachePartitionRegionWithConcurrentParallelAsyncEventQueueAndGatewaySenderIntegrationTest.java index a4b4cb08..9d84872b 100644 --- a/src/test/java/org/springframework/data/gemfire/wan/CachePartitionRegionWithConcurrentParallelAsyncEventQueueAndGatewaySenderIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/wan/CachePartitionRegionWithConcurrentParallelAsyncEventQueueAndGatewaySenderIntegrationTest.java @@ -22,21 +22,21 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.util.List; + import javax.annotation.Resource; +import org.apache.geode.cache.DataPolicy; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.asyncqueue.AsyncEvent; +import org.apache.geode.cache.asyncqueue.AsyncEventListener; +import org.apache.geode.cache.asyncqueue.AsyncEventQueue; +import org.apache.geode.cache.wan.GatewaySender; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.DataPolicy; -import com.gemstone.gemfire.cache.Region; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEvent; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventListener; -import com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueue; -import com.gemstone.gemfire.cache.wan.GatewaySender; - /** * The CachePartitionRegionWithConcurrentParallelAsyncEventQueueAndGatewaySenderIntegrationTest class is a test suite * of test cases testing the concurrent, parallel functionality configuration of GemFire AsyncEventQueues @@ -47,8 +47,8 @@ import com.gemstone.gemfire.cache.wan.GatewaySender; * @see org.junit.runner.RunWith * @see org.springframework.test.context.ContextConfiguration * @see org.springframework.test.context.junit4.SpringJUnit4ClassRunner - * @see com.gemstone.gemfire.cache.asyncqueue.AsyncEventQueue - * @see com.gemstone.gemfire.cache.wan.GatewaySender + * @see org.apache.geode.cache.asyncqueue.AsyncEventQueue + * @see org.apache.geode.cache.wan.GatewaySender * @since 1.5.0 */ @RunWith(SpringJUnit4ClassRunner.class) diff --git a/src/test/java/org/springframework/data/gemfire/wan/GatewayHubFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/wan/GatewayHubFactoryBeanTest.java index e83724db..9e0d6ee3 100644 --- a/src/test/java/org/springframework/data/gemfire/wan/GatewayHubFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/wan/GatewayHubFactoryBeanTest.java @@ -31,15 +31,14 @@ import static org.mockito.Mockito.when; import java.util.Arrays; import java.util.List; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.util.Gateway; +import org.apache.geode.cache.util.GatewayEventListener; +import org.apache.geode.cache.util.GatewayHub; +import org.apache.geode.cache.util.GatewayQueueAttributes; import org.junit.Before; import org.junit.Test; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.util.Gateway; -import com.gemstone.gemfire.cache.util.GatewayEventListener; -import com.gemstone.gemfire.cache.util.GatewayHub; -import com.gemstone.gemfire.cache.util.GatewayQueueAttributes; - /** * The GatewayHubFactoryBeanTest class is a test suite of test cases testing the contract and functionality * of the GatewayHubFactoryBean. diff --git a/src/test/java/org/springframework/data/gemfire/wan/GatewayReceiverFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/wan/GatewayReceiverFactoryBeanTest.java index 19e3f8ca..0f1539ab 100644 --- a/src/test/java/org/springframework/data/gemfire/wan/GatewayReceiverFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/wan/GatewayReceiverFactoryBeanTest.java @@ -25,19 +25,18 @@ import static org.mockito.Mockito.when; import java.util.Arrays; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.wan.GatewayReceiverFactory; +import org.apache.geode.cache.wan.GatewayTransportFilter; import org.junit.Test; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.wan.GatewayReceiverFactory; -import com.gemstone.gemfire.cache.wan.GatewayTransportFilter; - /** * The GatewayReceiverFactoryBeanTest class is a test suite of test cases testing the contract and functionality * of the GatewayReceiverFactoryBean class. * * @author John Blum * @see org.springframework.data.gemfire.wan.GatewayReceiverFactoryBean - * @see com.gemstone.gemfire.cache.wan.GatewayReceiverFactory + * @see org.apache.geode.cache.wan.GatewayReceiverFactory * @since 1.5.0 */ public class GatewayReceiverFactoryBeanTest { diff --git a/src/test/java/org/springframework/data/gemfire/wan/GatewaySenderFactoryBeanTest.java b/src/test/java/org/springframework/data/gemfire/wan/GatewaySenderFactoryBeanTest.java index 0ead98d5..0fb990e9 100644 --- a/src/test/java/org/springframework/data/gemfire/wan/GatewaySenderFactoryBeanTest.java +++ b/src/test/java/org/springframework/data/gemfire/wan/GatewaySenderFactoryBeanTest.java @@ -24,23 +24,22 @@ import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; +import org.apache.geode.cache.Cache; +import org.apache.geode.cache.util.Gateway; +import org.apache.geode.cache.wan.GatewaySender; +import org.apache.geode.cache.wan.GatewaySenderFactory; import org.junit.Test; import org.springframework.data.gemfire.TestUtils; -import com.gemstone.gemfire.cache.Cache; -import com.gemstone.gemfire.cache.util.Gateway; -import com.gemstone.gemfire.cache.wan.GatewaySender; -import com.gemstone.gemfire.cache.wan.GatewaySenderFactory; - /** * The GatewaySenderFactoryBeanTest class is a test suite of test cases testing the contract and functionality of the * GatewaySenderFactoryBean class. * * @author John Blum - * @see com.gemstone.gemfire.cache.Cache - * @see com.gemstone.gemfire.cache.wan.GatewaySender - * @see com.gemstone.gemfire.cache.util.Gateway - * @see com.gemstone.gemfire.cache.wan.GatewaySenderFactory + * @see org.apache.geode.cache.Cache + * @see org.apache.geode.cache.wan.GatewaySender + * @see org.apache.geode.cache.util.Gateway + * @see org.apache.geode.cache.wan.GatewaySenderFactory * @see org.junit.Test * @see org.mockito.Mockito * @see org.springframework.data.gemfire.wan.GatewaySenderFactoryBean diff --git a/src/test/java/org/springframework/data/gemfire/wan/ManualGatewayReceiverStartIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/wan/ManualGatewayReceiverStartIntegrationTest.java index c9206e5c..51062f38 100644 --- a/src/test/java/org/springframework/data/gemfire/wan/ManualGatewayReceiverStartIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/wan/ManualGatewayReceiverStartIntegrationTest.java @@ -22,16 +22,16 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.IOException; + import javax.annotation.Resource; +import org.apache.geode.cache.wan.GatewayReceiver; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.data.gemfire.test.GemfireTestApplicationContextInitializer; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import com.gemstone.gemfire.cache.wan.GatewayReceiver; - /** * The ManualGatewayReceiverStartIntegrationTest class is a test suite of test cases testing the manual start capability * of Gateway Receivers when configured with the Spring Data GemFire XML namespace. diff --git a/src/test/java/org/springframework/data/gemfire/wan/OrderPolicyConverterUnitTests.java b/src/test/java/org/springframework/data/gemfire/wan/OrderPolicyConverterUnitTests.java index f4e24cbe..a5f3f2cc 100644 --- a/src/test/java/org/springframework/data/gemfire/wan/OrderPolicyConverterUnitTests.java +++ b/src/test/java/org/springframework/data/gemfire/wan/OrderPolicyConverterUnitTests.java @@ -20,8 +20,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.nullValue; -import com.gemstone.gemfire.cache.util.Gateway; - +import org.apache.geode.cache.util.Gateway; import org.junit.After; import org.junit.Rule; import org.junit.Test; @@ -33,7 +32,7 @@ import org.junit.rules.ExpectedException; * @author John Blum * @see org.junit.Test * @see org.springframework.data.gemfire.wan.OrderPolicyConverter - * @see com.gemstone.gemfire.cache.util.Gateway.OrderPolicy + * @see org.apache.geode.cache.util.Gateway.OrderPolicy * @since 1.7.0 */ @SuppressWarnings("deprecation") diff --git a/src/test/java/org/springframework/data/gemfire/wan/OrderPolicyTypeTest.java b/src/test/java/org/springframework/data/gemfire/wan/OrderPolicyTypeTest.java index af3da155..cae4fc9d 100644 --- a/src/test/java/org/springframework/data/gemfire/wan/OrderPolicyTypeTest.java +++ b/src/test/java/org/springframework/data/gemfire/wan/OrderPolicyTypeTest.java @@ -20,10 +20,9 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; +import org.apache.geode.cache.util.Gateway; import org.junit.Test; -import com.gemstone.gemfire.cache.util.Gateway; - /** * The OrderPolicyTypeTest class is a test suite of test cases testing the contract and functionality * of the OrderPolicyType enum. @@ -31,7 +30,7 @@ import com.gemstone.gemfire.cache.util.Gateway; * @author John Blum * @see org.junit.Test * @see org.springframework.data.gemfire.wan.OrderPolicyType - * @see com.gemstone.gemfire.cache.util.Gateway + * @see org.apache.geode.cache.util.Gateway * @since 1.7.0 */ @SuppressWarnings("deprecation") diff --git a/src/test/java/org/springframework/data/gemfire/wan/StartupPolicyTypeTest.java b/src/test/java/org/springframework/data/gemfire/wan/StartupPolicyTypeTest.java index 44564bfc..396969c4 100644 --- a/src/test/java/org/springframework/data/gemfire/wan/StartupPolicyTypeTest.java +++ b/src/test/java/org/springframework/data/gemfire/wan/StartupPolicyTypeTest.java @@ -20,10 +20,9 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertSame; +import org.apache.geode.cache.util.GatewayHub; import org.junit.Test; -import com.gemstone.gemfire.cache.util.GatewayHub; - /** * The StartupPolicyTypeTest class is a test suite of test cases testing the contract and functionality * of the StartupPolicyType enum. diff --git a/src/test/resources/org/springframework/data/gemfire/config/xml/ClientCacheNamespaceTest-context.xml b/src/test/resources/org/springframework/data/gemfire/config/xml/ClientCacheNamespaceTest-context.xml index c864c09b..71e763f0 100644 --- a/src/test/resources/org/springframework/data/gemfire/config/xml/ClientCacheNamespaceTest-context.xml +++ b/src/test/resources/org/springframework/data/gemfire/config/xml/ClientCacheNamespaceTest-context.xml @@ -15,7 +15,7 @@ warning - + + p:name="One" p:timeout="60" p:action="#{T(org.apache.geode.cache.ExpirationAction).DESTROY}"/> + p:name="Two" p:timeout="120" p:action="#{T(org.apache.geode.cache.ExpirationAction).INVALIDATE}"/> diff --git a/src/test/resources/org/springframework/data/gemfire/config/xml/RegionExpirationAttributesNamespaceTest-context.xml b/src/test/resources/org/springframework/data/gemfire/config/xml/RegionExpirationAttributesNamespaceTest-context.xml index fd95b177..dd6593e7 100644 --- a/src/test/resources/org/springframework/data/gemfire/config/xml/RegionExpirationAttributesNamespaceTest-context.xml +++ b/src/test/resources/org/springframework/data/gemfire/config/xml/RegionExpirationAttributesNamespaceTest-context.xml @@ -43,14 +43,14 @@ + p:name="PartitionCustomExpiry" p:timeout="120" p:action="#{T(org.apache.geode.cache.ExpirationAction).INVALIDATE}"/> + p:name="LocalTtlCustomExpiry" p:timeout="180" p:action="#{T(org.apache.geode.cache.ExpirationAction).LOCAL_DESTROY}"/> @@ -58,7 +58,7 @@ - + diff --git a/src/test/resources/org/springframework/data/gemfire/config/xml/cache-using-pdx-ns.xml b/src/test/resources/org/springframework/data/gemfire/config/xml/cache-using-pdx-ns.xml index e774ef83..a00d36ce 100644 --- a/src/test/resources/org/springframework/data/gemfire/config/xml/cache-using-pdx-ns.xml +++ b/src/test/resources/org/springframework/data/gemfire/config/xml/cache-using-pdx-ns.xml @@ -15,7 +15,7 @@ warning - + diff --git a/src/test/resources/org/springframework/data/gemfire/expiration/AnnotationBasedExpirationConfigurationIntegrationTest-context.xml b/src/test/resources/org/springframework/data/gemfire/expiration/AnnotationBasedExpirationConfigurationIntegrationTest-context.xml index 41af72ea..ee3dd7b0 100644 --- a/src/test/resources/org/springframework/data/gemfire/expiration/AnnotationBasedExpirationConfigurationIntegrationTest-context.xml +++ b/src/test/resources/org/springframework/data/gemfire/expiration/AnnotationBasedExpirationConfigurationIntegrationTest-context.xml @@ -14,7 +14,7 @@ 60 LOCAL_INVALIDATE - #{T(com.gemstone.gemfire.cache.ExpirationAction).INVALIDATE} + #{T(org.apache.geode.cache.ExpirationAction).INVALIDATE} #{T(org.springframework.data.gemfire.expiration.ExpirationActionType).DESTROY} @@ -28,9 +28,9 @@ - + - + diff --git a/src/test/resources/org/springframework/data/gemfire/pdxdiskstore-config.xml b/src/test/resources/org/springframework/data/gemfire/pdxdiskstore-config.xml index ee0ff446..51a5d3c8 100644 --- a/src/test/resources/org/springframework/data/gemfire/pdxdiskstore-config.xml +++ b/src/test/resources/org/springframework/data/gemfire/pdxdiskstore-config.xml @@ -18,7 +18,7 @@ --> - +