SGF-508 - Remove Memcached Server configuration from AbstractCacheConfiguration base class.

This commit is contained in:
John Blum
2016-08-12 17:06:40 -07:00
parent e03d09d566
commit a161d72749

View File

@@ -265,7 +265,6 @@ public abstract class AbstractCacheConfiguration implements BeanFactoryAware, Be
@Override
public void setImportMetadata(AnnotationMetadata importMetadata) {
configureCache(importMetadata);
configureMemcachedServer(importMetadata);
configurePdx(importMetadata);
configureOther(importMetadata);
}
@@ -301,32 +300,6 @@ public abstract class AbstractCacheConfiguration implements BeanFactoryAware, Be
}
}
/**
* Configures the embedded GemFire Memcached Server (Gemcached) service in a GemFire server/data node.
*
* @param importMetadata {@link AnnotationMetadata} containing the Gemcached meta-data used to configure
* the embedded GemFire Memcached Server (Gemcached) service.
* @see org.springframework.core.type.AnnotationMetadata
*/
protected void configureMemcachedServer(AnnotationMetadata importMetadata) {
if (isCacheServerApplication(importMetadata) || isPeerCacheApplication(importMetadata)) {
if (importMetadata.hasAnnotation(EnableMemcachedServer.class.getName())) {
Map<String, Object> enableMemcachedServerAttributes =
importMetadata.getAnnotationAttributes(EnableMemcachedServer.class.getName());
Properties gemfireMemcachedProperties = new Properties();
gemfireMemcachedProperties.setProperty("memcached-port",
String.valueOf(enableMemcachedServerAttributes.get("port")));
gemfireMemcachedProperties.setProperty("memcached-protocol",
String.valueOf(enableMemcachedServerAttributes.get("protocol")));
add(gemfireMemcachedProperties);
}
}
}
/**
* Configures GemFire's PDX Serialization feature.
*