org.springframework.data.gemfire.server
Class CacheServerFactoryBean
java.lang.Object
org.springframework.data.gemfire.server.CacheServerFactoryBean
- All Implemented Interfaces:
- DisposableBean, FactoryBean<com.gemstone.gemfire.cache.server.CacheServer>, InitializingBean, Lifecycle, Phased, SmartLifecycle
public class CacheServerFactoryBean
- extends Object
- implements FactoryBean<com.gemstone.gemfire.cache.server.CacheServer>, InitializingBean, DisposableBean, SmartLifecycle
FactoryBean for easy creation and configuration of GemFire CacheServer
instances.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheServerFactoryBean
public CacheServerFactoryBean()
getObject
public com.gemstone.gemfire.cache.server.CacheServer getObject()
- Specified by:
getObject
in interface FactoryBean<com.gemstone.gemfire.cache.server.CacheServer>
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interface FactoryBean<com.gemstone.gemfire.cache.server.CacheServer>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface FactoryBean<com.gemstone.gemfire.cache.server.CacheServer>
afterPropertiesSet
public void afterPropertiesSet()
throws IOException
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
IOException
destroy
public void destroy()
- Specified by:
destroy
in interface DisposableBean
isAutoStartup
public boolean isAutoStartup()
- Specified by:
isAutoStartup
in interface SmartLifecycle
stop
public void stop(Runnable callback)
- Specified by:
stop
in interface SmartLifecycle
getPhase
public int getPhase()
- Specified by:
getPhase
in interface Phased
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interface Lifecycle
start
public void start()
- Specified by:
start
in interface Lifecycle
stop
public void stop()
- Specified by:
stop
in interface Lifecycle
setAutoStartup
public void setAutoStartup(boolean autoStartup)
setPort
public void setPort(int port)
setMaxConnections
public void setMaxConnections(int maxConnections)
setMaxThreads
public void setMaxThreads(int maxThreads)
setNotifyBySubscription
public void setNotifyBySubscription(boolean notifyBySubscription)
setSocketBufferSize
public void setSocketBufferSize(int socketBufferSize)
setMaxTimeBetweenPings
public void setMaxTimeBetweenPings(int maxTimeBetweenPings)
setMaxMessageCount
public void setMaxMessageCount(int maxMessageCount)
setMessageTimeToLive
public void setMessageTimeToLive(int messageTimeToLive)
setServerGroups
public void setServerGroups(String[] serverGroups)
setServerLoadProbe
public void setServerLoadProbe(com.gemstone.gemfire.cache.server.ServerLoadProbe serverLoadProbe)
setLoadPollInterval
public void setLoadPollInterval(long loadPollInterval)
setBindAddress
public void setBindAddress(String bindAddress)
setHostNameForClients
public void setHostNameForClients(String hostNameForClients)
setListeners
public void setListeners(Set<com.gemstone.gemfire.cache.InterestRegistrationListener> listeners)
setCache
public void setCache(com.gemstone.gemfire.cache.Cache cache)
setSubscriptionEvictionPolicy
public void setSubscriptionEvictionPolicy(SubscriptionEvictionPolicy evictionPolicy)
- Parameters:
evictionPolicy
- the evictionPolicy to set
setSubscriptionCapacity
public void setSubscriptionCapacity(int subscriptionCapacity)
- Parameters:
subscriptionCapacity
- the subscriptionCapacity to set
setSubscriptionDiskStore
public void setSubscriptionDiskStore(Resource resource)