org.springframework.data.gemfire.server
Class CacheServerFactoryBean

java.lang.Object
  extended by 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.


Constructor Summary
CacheServerFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 com.gemstone.gemfire.cache.server.CacheServer getObject()
           
 Class<?> getObjectType()
           
 int getPhase()
           
 boolean isAutoStartup()
           
 boolean isRunning()
           
 boolean isSingleton()
           
 void setAutoStartup(boolean autoStartup)
           
 void setBindAddress(String bindAddress)
           
 void setCache(com.gemstone.gemfire.cache.Cache cache)
           
 void setHostNameForClients(String hostNameForClients)
           
 void setListeners(Set<com.gemstone.gemfire.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(com.gemstone.gemfire.cache.server.ServerLoadProbe serverLoadProbe)
           
 void setSocketBufferSize(int socketBufferSize)
           
 void setSubscriptionCapacity(int subscriptionCapacity)
           
 void setSubscriptionDiskStore(Resource resource)
           
 void setSubscriptionEvictionPolicy(SubscriptionEvictionPolicy evictionPolicy)
           
 void start()
           
 void stop()
           
 void stop(Runnable callback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheServerFactoryBean

public CacheServerFactoryBean()
Method Detail

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)