public class CacheServerFactoryBean extends AbstractFactoryBeanSupport<org.apache.geode.cache.server.CacheServer> implements DisposableBean, InitializingBean, SmartLifecycle
FactoryBean used to construct, configure and initialize a CacheServer.Cache,
ClientCache,
CacheServer,
ClientSubscriptionConfig,
ServerLoadProbe,
DisposableBean,
FactoryBean,
InitializingBean,
SmartLifecycle,
CacheServerConfigurer,
AbstractFactoryBeanSupportDEFAULT_SINGLETONDEFAULT_PHASEOBJECT_TYPE_ATTRIBUTE| Constructor and Description |
|---|
CacheServerFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.geode.cache.server.CacheServer |
addCacheServer(org.apache.geode.cache.Cache cache)
Adds a
CacheServer to the given Cache for server cache clients. |
void |
afterPropertiesSet() |
protected void |
applyCacheServerConfigurers(CacheServerConfigurer... cacheServerConfigurers)
Null-safe operation to apply the given array of
CacheServerConfigurers
to this CacheServerFactoryBean. |
protected void |
applyCacheServerConfigurers(Iterable<CacheServerConfigurer> cacheServerConfigurers)
Null-safe operation to apply the given
Iterable of CacheServerConfigurers
to this CacheServerFactoryBean. |
protected org.apache.geode.cache.server.CacheServer |
configure(org.apache.geode.cache.server.CacheServer cacheServer)
Configures the provided
CacheServer with any custom, application-specific configuration. |
void |
destroy() |
protected CacheServerConfigurer |
getCompositeCacheServerConfigurer()
Returns a reference to the Composite
CacheServerConfigurer used to apply additional configuration
to this CacheServerFactoryBean on Spring container initialization. |
org.apache.geode.cache.server.CacheServer |
getObject() |
Class<?> |
getObjectType() |
int |
getPhase()
Start at the latest possible moment.
|
boolean |
isAutoStartup() |
boolean |
isRunning() |
protected org.apache.geode.cache.server.CacheServer |
postProcess(org.apache.geode.cache.server.CacheServer cacheServer)
Post-process the
CacheServer with any necessary follow-up actions. |
void |
setAutoStartup(boolean autoStartup) |
void |
setBindAddress(String bindAddress) |
void |
setCache(org.apache.geode.cache.Cache cache) |
void |
setCacheServerConfigurers(CacheServerConfigurer... cacheServerConfigurers)
Null-safe operation to set an array of
CacheServerConfigurers used to apply
additional configuration to this CacheServerFactoryBean when using Annotation-based configuration. |
void |
setCacheServerConfigurers(List<CacheServerConfigurer> cacheServerConfigurers)
Null-safe operation to set an
Iterable of CacheServerConfigurers
used to apply additional configuration to this CacheServerFactoryBean when using
Annotation-based configuration. |
void |
setHostNameForClients(String hostNameForClients) |
void |
setListeners(Set<org.apache.geode.cache.InterestRegistrationListener> listeners) |
void |
setLoadPollInterval(long loadPollInterval) |
void |
setMaxConnections(int maxConnections) |
void |
setMaxMessageCount(int maxMessageCount) |
void |
setMaxThreads(int maxThreads) |
void |
setMaxTimeBetweenPings(int maxTimeBetweenPings) |
void |
setMessageTimeToLive(int messageTimeToLive) |
void |
setNotifyBySubscription(boolean notifyBySubscription) |
void |
setPort(int port) |
void |
setServerGroups(String[] serverGroups) |
void |
setServerLoadProbe(org.apache.geode.cache.server.ServerLoadProbe serverLoadProbe) |
void |
setSocketBufferSize(int socketBufferSize) |
void |
setSubscriptionCapacity(int subscriptionCapacity) |
void |
setSubscriptionDiskStore(String diskStoreName) |
void |
setSubscriptionEvictionPolicy(SubscriptionEvictionPolicy evictionPolicy) |
void |
setTcpNoDelay(boolean tcpNoDelay) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
getBeanClassLoader, getBeanFactory, getBeanName, getLog, isSingleton, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLog, setBeanClassLoader, setBeanFactory, setBeanNamepublic void afterPropertiesSet()
throws IOException
afterPropertiesSet in interface InitializingBeanIOExceptionprotected void applyCacheServerConfigurers(CacheServerConfigurer... cacheServerConfigurers)
CacheServerConfigurers
to this CacheServerFactoryBean.cacheServerConfigurers - array of CacheServerConfigurers applied to
this CacheServerFactoryBean.CacheServerConfigurer,
applyCacheServerConfigurers(Iterable)protected void applyCacheServerConfigurers(Iterable<CacheServerConfigurer> cacheServerConfigurers)
Iterable of CacheServerConfigurers
to this CacheServerFactoryBean.cacheServerConfigurers - Iterable of CacheServerConfigurers applied to
this CacheServerFactoryBean.CacheServerConfigurerprotected org.apache.geode.cache.server.CacheServer addCacheServer(org.apache.geode.cache.Cache cache)
CacheServer to the given Cache for server cache clients.cache - Cache used to add a CacheServer.CacheServer.Cache.addCacheServer(),
CacheServerprotected org.apache.geode.cache.server.CacheServer configure(org.apache.geode.cache.server.CacheServer cacheServer)
CacheServer with any custom, application-specific configuration.cacheServer - CacheServer to configure.CacheServer.CacheServerprotected org.apache.geode.cache.server.CacheServer postProcess(org.apache.geode.cache.server.CacheServer cacheServer)
CacheServer with any necessary follow-up actions.cacheServer - CacheServer to process.CacheServer.CacheServerprotected CacheServerConfigurer getCompositeCacheServerConfigurer()
CacheServerConfigurer used to apply additional configuration
to this CacheServerFactoryBean on Spring container initialization.CacheServerConfigurer.CacheServerConfigurerpublic org.apache.geode.cache.server.CacheServer getObject()
getObject in interface FactoryBean<org.apache.geode.cache.server.CacheServer>public Class<?> getObjectType()
getObjectType in interface FactoryBean<org.apache.geode.cache.server.CacheServer>public boolean isAutoStartup()
isAutoStartup in interface SmartLifecyclepublic int getPhase()
getPhase in interface PhasedgetPhase in interface SmartLifecyclepublic void destroy()
destroy in interface DisposableBeanpublic void stop(Runnable callback)
stop in interface SmartLifecyclepublic void setAutoStartup(boolean autoStartup)
public void setBindAddress(String bindAddress)
public void setCache(org.apache.geode.cache.Cache cache)
public void setCacheServerConfigurers(CacheServerConfigurer... cacheServerConfigurers)
CacheServerConfigurers used to apply
additional configuration to this CacheServerFactoryBean when using Annotation-based configuration.cacheServerConfigurers - array of CacheServerConfigurers used to apply
additional configuration to this CacheServerFactoryBean.PeerCacheConfigurer,
setCacheServerConfigurers(List)public void setCacheServerConfigurers(List<CacheServerConfigurer> cacheServerConfigurers)
Iterable of CacheServerConfigurers
used to apply additional configuration to this CacheServerFactoryBean when using
Annotation-based configuration.cacheServerConfigurers - Iterable of CacheServerConfigurers
used to apply additional configuration to this CacheServerFactoryBean.PeerCacheConfigurerpublic void setHostNameForClients(String hostNameForClients)
public void setListeners(Set<org.apache.geode.cache.InterestRegistrationListener> listeners)
public void setLoadPollInterval(long loadPollInterval)
public void setMaxConnections(int maxConnections)
public void setMaxMessageCount(int maxMessageCount)
public void setMaxThreads(int maxThreads)
public void setMaxTimeBetweenPings(int maxTimeBetweenPings)
public void setMessageTimeToLive(int messageTimeToLive)
public void setNotifyBySubscription(boolean notifyBySubscription)
public void setPort(int port)
public void setServerGroups(String[] serverGroups)
public void setServerLoadProbe(org.apache.geode.cache.server.ServerLoadProbe serverLoadProbe)
public void setSocketBufferSize(int socketBufferSize)
public void setSubscriptionCapacity(int subscriptionCapacity)
public void setSubscriptionDiskStore(String diskStoreName)
public void setSubscriptionEvictionPolicy(SubscriptionEvictionPolicy evictionPolicy)
public void setTcpNoDelay(boolean tcpNoDelay)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.