@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented @Configuration @Import(value=CacheServerConfiguration.class) public @interface CacheServerApplication
CacheServer
instance in a Spring Data GemFire based application.
In addition, this also implies an embedded GemFire peer Cache
must exist
and therefore will be configured, constructed and initialized as a Spring bean in the application context.ResourceManager
,
CacheServer
,
ClientSubscriptionConfig
,
BeanFactory
,
Configuration
,
Import
,
CacheServerConfiguration
,
EnableCacheServers
,
EnableCacheServer
Modifier and Type | Optional Element and Description |
---|---|
boolean |
autoStartup
Configures whether the
CacheServer should start automatically at runtime. |
String |
bindAddress
Configures the ip address or host name that this cache server will listen on.
|
boolean |
copyOnRead
Indicates whether the "copy on read" is enabled for this cache.
|
float |
criticalHeapPercentage
Configures the percentage of heap at or above which the cache is considered in danger of becoming inoperable.
|
float |
criticalOffHeapPercentage
Configures the percentage of off-heap at or above which the cache is considered in danger of becoming inoperable.
|
boolean |
enableAutoReconnect
By default, a GemFire member (both locators and servers) will attempt to reconnect and reinitialize the cache
after it has been forced out of the distributed system by a network partition event or has otherwise been
shunned by other members.
|
float |
evictionHeapPercentage
Configures the percentage of heap at or above which the eviction should begin on Regions configured
for HeapLRU eviction.
|
float |
evictionOffHeapPercentage
Configures the percentage of off-heap at or above which the eviction should begin on Regions configured
for HeapLRU eviction.
|
String |
hostnameForClients
Configures the ip address or host name that server locators will tell clients that this cache server
is listening on.
|
long |
loadPollInterval
Configures the frequency in milliseconds to poll the load probe on this cache server.
|
String |
locators
Configures the list of Locators defining the cluster to which this Spring cache application will connect.
|
int |
lockLease
Configures the length, in seconds, of distributed lock leases obtained by this cache.
|
int |
lockTimeout
Configures the number of seconds a cache operation will wait to obtain a distributed lock lease.
|
String |
logLevel
Configures the log level used to output log messages at GemFire cache runtime.
|
int |
maxConnections
Configures the maximum allowed client connections.
|
int |
maxMessageCount
Configures he maximum number of messages that can be enqueued in a client-queue.
|
int |
maxThreads
Configures the maximum number of threads allowed in this cache server to service client requests.
|
int |
maxTimeBetweenPings
Configures the maximum amount of time between client pings.
|
int |
messageSyncInterval
Configures the frequency (in seconds) at which a message will be sent by the primary cache-server to all
the secondary cache-server nodes to remove the events which have already been dispatched from the queue.
|
int |
messageTimeToLive
Configures the time (in seconds ) after which a message in the client queue will expire.
|
String |
name
Configures the name of this GemFire member in the cluster (distributed system).
|
int |
port
Configures the port on which this cache server listens for clients.
|
int |
searchTimeout
Configures the number of seconds a cache get operation can spend searching for a value before it times out.
|
int |
socketBufferSize
Configures the configured buffer size of the socket connection for this CacheServer.
|
int |
subscriptionCapacity
Configures the capacity of the client queue.
|
String |
subscriptionDiskStoreName
Configures the disk store name for overflow.
|
SubscriptionEvictionPolicy |
subscriptionEvictionPolicy
Configures the eviction policy that is executed when capacity of the client queue is reached.
|
boolean |
tcpNoDelay
Configures the tcpNoDelay setting of sockets used to send messages to clients.
|
boolean |
useBeanFactoryLocator
Determines whether the Spring
BeanFactory locator should be enabled to lookup
the Spring BeanFactory to auto-wire and configure/initialize GemFire components
created in a non-Spring managed, GemFire context. |
boolean |
useClusterConfiguration
Configures whether this GemFire cache member node would pull it's configuration meta-data
from the cluster-based Cluster Configuration service.
|
public abstract boolean autoStartup
CacheServer
should start automatically at runtime.
Defaults to true).
Use {@literal spring.data.gemfire.cache.server.auto-startup} property in {@literal application.properties}.public abstract String bindAddress
CacheServer.DEFAULT_BIND_ADDRESS
.
Use spring.data.gemfire.cache.server.bind-address property in application.properties.public abstract boolean copyOnRead
public abstract float criticalHeapPercentage
ResourceManager.DEFAULT_CRITICAL_PERCENTAGE
.
Use spring.data.gemfire.cache.critical-heap-percentage property in application.properties.public abstract float criticalOffHeapPercentage
public abstract boolean enableAutoReconnect
public abstract float evictionHeapPercentage
ResourceManager.DEFAULT_EVICTION_PERCENTAGE
.
Use spring.data.gemfire.cache.eviction-heap-percentage property in application.properties.public abstract float evictionOffHeapPercentage
public abstract String hostnameForClients
CacheServer.DEFAULT_HOSTNAME_FOR_CLIENTS
.
Use spring.data.gemfire.cache.server.hostname-for-clients property
in application.properties.public abstract long loadPollInterval
CacheServer.DEFAULT_LOAD_POLL_INTERVAL
.
Use spring.data.gemfire.cache.server.load-poll-interval property in application.properties.public abstract String locators
public abstract int lockLease
public abstract int lockTimeout
public abstract String logLevel
public abstract int maxConnections
CacheServer.DEFAULT_MAX_CONNECTIONS
.
Use spring.data.gemfire.cache.server.max-connections property in application.properties.public abstract int maxMessageCount
CacheServer.DEFAULT_MAXIMUM_MESSAGE_COUNT
.
Use spring.data.gemfire.cache.server.max-message-count property in application.properties.public abstract int maxThreads
CacheServer.DEFAULT_MAX_THREADS
.
Use spring.data.gemfire.cache.server.max-threads property in application.properties.public abstract int maxTimeBetweenPings
CacheServer.DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS
.
Use spring.data.gemfire.cache.server.max-time-between-pings property
in application.properties.public abstract int messageSyncInterval
public abstract int messageTimeToLive
CacheServer.DEFAULT_MESSAGE_TIME_TO_LIVE
.
Use spring.data.gemfire.cache.server.message-time-to-live property
in application.properties.public abstract String name
public abstract int port
CacheServer.DEFAULT_PORT
.
Use spring.data.gemfire.cache.server.port property in application.properties.public abstract int searchTimeout
public abstract int socketBufferSize
CacheServer.DEFAULT_SOCKET_BUFFER_SIZE
.
Use spring.data.gemfire.cache.server.socket-buffer-size property in application.properties.public abstract int subscriptionCapacity
ClientSubscriptionConfig.DEFAULT_CAPACITY
.
Use spring.data.gemfire.cache.server.subscription-capacity property
in application.properties.public abstract String subscriptionDiskStoreName
public abstract SubscriptionEvictionPolicy subscriptionEvictionPolicy
SubscriptionEvictionPolicy.NONE
.
Use spring.data.gemfire.cache.server.subscription-eviction-policy property
in application.properties.public abstract boolean useBeanFactoryLocator
BeanFactory
locator should be enabled to lookup
the Spring BeanFactory
to auto-wire and configure/initialize GemFire components
created in a non-Spring managed, GemFire context.
Defaults to false.
Use spring.data.gemfire.use-bean-factory-locator property in application.properties.public abstract boolean useClusterConfiguration
public abstract boolean tcpNoDelay
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.