@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.Configuration
,
Import
,
CacheServerConfiguration
,
EnableCacheServers
,
EnableCacheServer
,
ResourceManager
,
CacheServer
,
ClientSubscriptionConfig
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.
|
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.
|
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 GemFire Locators defining the cluster to which this GemFire cache data node
should 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 |
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.
Default is {@literal true).public abstract String bindAddress
CacheServer.DEFAULT_BIND_ADDRESS
public abstract boolean copyOnRead
public abstract float criticalHeapPercentage
ResourceManager.DEFAULT_CRITICAL_PERCENTAGE
public abstract boolean enableAutoReconnect
public abstract float evictionHeapPercentage
ResourceManager.DEFAULT_EVICTION_PERCENTAGE
public abstract String hostnameForClients
CacheServer.DEFAULT_HOSTNAME_FOR_CLIENTS
public abstract long loadPollInterval
CacheServer.DEFAULT_LOAD_POLL_INTERVAL
public abstract String locators
public abstract int lockLease
public abstract int lockTimeout
public abstract String logLevel
public abstract int maxConnections
CacheServer.DEFAULT_MAX_CONNECTIONS
public abstract int maxMessageCount
CacheServer.DEFAULT_MAXIMUM_MESSAGE_COUNT
public abstract int maxThreads
CacheServer.DEFAULT_MAX_THREADS
public abstract int maxTimeBetweenPings
CacheServer.DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS
public abstract int messageSyncInterval
public abstract int messageTimeToLive
CacheServer.DEFAULT_MESSAGE_TIME_TO_LIVE
public abstract String name
public abstract int port
CacheServer.DEFAULT_PORT
public abstract int searchTimeout
public abstract int socketBufferSize
CacheServer.DEFAULT_SOCKET_BUFFER_SIZE
public abstract int subscriptionCapacity
ClientSubscriptionConfig.DEFAULT_CAPACITY
public abstract String subscriptionDiskStoreName
public abstract SubscriptionEvictionPolicy subscriptionEvictionPolicy
SubscriptionEvictionPolicy.NONE
.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.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.