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
,
AbstractFactoryBeanSupport
DEFAULT_SINGLETON
DEFAULT_PHASE
OBJECT_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, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory, setBeanName
public void afterPropertiesSet() throws IOException
afterPropertiesSet
in interface InitializingBean
IOException
protected 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
.CacheServerConfigurer
protected 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()
,
CacheServer
protected 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
.CacheServer
protected 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
.CacheServer
protected CacheServerConfigurer getCompositeCacheServerConfigurer()
CacheServerConfigurer
used to apply additional configuration
to this CacheServerFactoryBean
on Spring container initialization.CacheServerConfigurer
.CacheServerConfigurer
public 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 SmartLifecycle
public int getPhase()
getPhase
in interface Phased
getPhase
in interface SmartLifecycle
public void destroy()
destroy
in interface DisposableBean
public void stop(Runnable callback)
stop
in interface SmartLifecycle
public 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
.PeerCacheConfigurer
public 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–2023 Pivotal Software, Inc.. All rights reserved.