Class CacheServerFactoryBean
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<org.apache.geode.cache.server.CacheServer>
org.springframework.data.gemfire.server.CacheServerFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.server.CacheServer>
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
public class CacheServerFactoryBean
extends AbstractFactoryBeanSupport<org.apache.geode.cache.server.CacheServer>
implements org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.SmartLifecycle
Spring
FactoryBean
used to construct, configure and initialize a CacheServer
.- See Also:
-
Cache
ClientCache
CacheServer
ClientSubscriptionConfig
ServerLoadProbe
DisposableBean
FactoryBean
InitializingBean
SmartLifecycle
CacheServerConfigurer
AbstractFactoryBeanSupport
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
DEFAULT_SINGLETON
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.geode.cache.server.CacheServer
addCacheServer
(org.apache.geode.cache.Cache cache) Adds aCacheServer
to the givenCache
for servercache clients
.void
protected void
applyCacheServerConfigurers
(Iterable<CacheServerConfigurer> cacheServerConfigurers) Null-safe operation to apply the givenIterable
ofCacheServerConfigurers
to thisCacheServerFactoryBean
.protected void
applyCacheServerConfigurers
(CacheServerConfigurer... cacheServerConfigurers) Null-safe operation to apply the given array ofCacheServerConfigurers
to thisCacheServerFactoryBean
.protected org.apache.geode.cache.server.CacheServer
configure
(org.apache.geode.cache.server.CacheServer cacheServer) Configures the providedCacheServer
with any custom, application-specific configuration.void
destroy()
protected CacheServerConfigurer
Returns a reference to the CompositeCacheServerConfigurer
used to apply additional configuration to thisCacheServerFactoryBean
on Spring container initialization.org.apache.geode.cache.server.CacheServer
Class<?>
int
getPhase()
Start at the latest possible moment.boolean
boolean
protected org.apache.geode.cache.server.CacheServer
postProcess
(org.apache.geode.cache.server.CacheServer cacheServer) Post-process theCacheServer
with any necessary follow-up actions.void
setAutoStartup
(boolean autoStartup) void
setBindAddress
(String bindAddress) void
setCache
(org.apache.geode.cache.Cache cache) void
setCacheServerConfigurers
(List<CacheServerConfigurer> cacheServerConfigurers) Null-safe operation to set anIterable
ofCacheServerConfigurers
used to apply additional configuration to thisCacheServerFactoryBean
when using Annotation-based configuration.void
setCacheServerConfigurers
(CacheServerConfigurer... cacheServerConfigurers) Null-safe operation to set an array ofCacheServerConfigurers
used to apply additional configuration to thisCacheServerFactoryBean
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
Methods inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
getBeanClassLoader, getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory, setBeanName
-
Constructor Details
-
CacheServerFactoryBean
public CacheServerFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
IOException
-
applyCacheServerConfigurers
Null-safe operation to apply the given array ofCacheServerConfigurers
to thisCacheServerFactoryBean
.- Parameters:
cacheServerConfigurers
- array ofCacheServerConfigurers
applied to thisCacheServerFactoryBean
.- See Also:
-
applyCacheServerConfigurers
Null-safe operation to apply the givenIterable
ofCacheServerConfigurers
to thisCacheServerFactoryBean
.- Parameters:
cacheServerConfigurers
-Iterable
ofCacheServerConfigurers
applied to thisCacheServerFactoryBean
.- See Also:
-
addCacheServer
protected org.apache.geode.cache.server.CacheServer addCacheServer(org.apache.geode.cache.Cache cache) Adds aCacheServer
to the givenCache
for servercache clients
.- Parameters:
cache
-Cache
used to add aCacheServer
.- Returns:
- the newly added
CacheServer
. - See Also:
-
Cache.addCacheServer()
CacheServer
-
configure
protected org.apache.geode.cache.server.CacheServer configure(org.apache.geode.cache.server.CacheServer cacheServer) Configures the providedCacheServer
with any custom, application-specific configuration.- Parameters:
cacheServer
-CacheServer
to configure.- Returns:
- the given
CacheServer
. - See Also:
-
CacheServer
-
postProcess
protected org.apache.geode.cache.server.CacheServer postProcess(org.apache.geode.cache.server.CacheServer cacheServer) Post-process theCacheServer
with any necessary follow-up actions.- Parameters:
cacheServer
-CacheServer
to process.- Returns:
- the given
CacheServer
. - See Also:
-
CacheServer
-
getCompositeCacheServerConfigurer
Returns a reference to the CompositeCacheServerConfigurer
used to apply additional configuration to thisCacheServerFactoryBean
on Spring container initialization.- Returns:
- the Composite
CacheServerConfigurer
. - See Also:
-
getObject
public org.apache.geode.cache.server.CacheServer getObject()- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.server.CacheServer>
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<org.apache.geode.cache.server.CacheServer>
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartup
in interfaceorg.springframework.context.SmartLifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceorg.springframework.context.Lifecycle
-
getPhase
public int getPhase()Start at the latest possible moment.- Specified by:
getPhase
in interfaceorg.springframework.context.Phased
- Specified by:
getPhase
in interfaceorg.springframework.context.SmartLifecycle
-
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
-
start
public void start()- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
stop
- Specified by:
stop
in interfaceorg.springframework.context.SmartLifecycle
-
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
setBindAddress
-
setCache
public void setCache(org.apache.geode.cache.Cache cache) -
setCacheServerConfigurers
Null-safe operation to set an array ofCacheServerConfigurers
used to apply additional configuration to thisCacheServerFactoryBean
when using Annotation-based configuration.- Parameters:
cacheServerConfigurers
- array ofCacheServerConfigurers
used to apply additional configuration to thisCacheServerFactoryBean
.- See Also:
-
setCacheServerConfigurers
Null-safe operation to set anIterable
ofCacheServerConfigurers
used to apply additional configuration to thisCacheServerFactoryBean
when using Annotation-based configuration.- Parameters:
cacheServerConfigurers
- Iterable ofCacheServerConfigurers
used to apply additional configuration to thisCacheServerFactoryBean
.- See Also:
-
setHostNameForClients
-
setListeners
-
setLoadPollInterval
public void setLoadPollInterval(long loadPollInterval) -
setMaxConnections
public void setMaxConnections(int maxConnections) -
setMaxMessageCount
public void setMaxMessageCount(int maxMessageCount) -
setMaxThreads
public void setMaxThreads(int maxThreads) -
setMaxTimeBetweenPings
public void setMaxTimeBetweenPings(int maxTimeBetweenPings) -
setMessageTimeToLive
public void setMessageTimeToLive(int messageTimeToLive) -
setNotifyBySubscription
public void setNotifyBySubscription(boolean notifyBySubscription) -
setPort
public void setPort(int port) -
setServerGroups
-
setServerLoadProbe
public void setServerLoadProbe(org.apache.geode.cache.server.ServerLoadProbe serverLoadProbe) -
setSocketBufferSize
public void setSocketBufferSize(int socketBufferSize) -
setSubscriptionCapacity
public void setSubscriptionCapacity(int subscriptionCapacity) -
setSubscriptionDiskStore
-
setSubscriptionEvictionPolicy
-
setTcpNoDelay
public void setTcpNoDelay(boolean tcpNoDelay)
-