public class DistributedCache extends Object
| Constructor and Description |
|---|
DistributedCache(String key) |
| Modifier and Type | Method and Description |
|---|---|
Long |
activations()
The number of cache node activations (bringing a node into memory from a cache store) .
|
DistributedCache |
activations(Long value)
The number of cache node activations (bringing a node into memory from a cache store) .
|
Long |
averageReadTime()
Average time (in ms) for cache reads.
|
DistributedCache |
averageReadTime(Long value)
Average time (in ms) for cache reads.
|
Long |
averageReplicationTime()
The average time taken to replicate data around the cluster.
|
DistributedCache |
averageReplicationTime(Long value)
The average time taken to replicate data around the cluster.
|
Long |
averageWriteTime()
Average time (in ms) for cache writes.
|
DistributedCache |
averageWriteTime(Long value)
Average time (in ms) for cache writes.
|
BackupForComponent |
backupForComponent()
A cache for which this cache acts as a backup (for use with cross site replication).
|
DistributedCache |
backupForComponent(BackupForComponent value)
A cache for which this cache acts as a backup (for use with cross site replication).
|
BackupsComponent |
backupsComponent()
The remote backups for this cache.
|
DistributedCache |
backupsComponent(BackupsComponent value)
The remote backups for this cache.
|
BinaryJdbcStore |
binaryJdbcStore()
The cache JDBC store configuration.
|
DistributedCache |
binaryJdbcStore(BinaryJdbcStore value)
The cache JDBC store configuration.
|
String |
cacheStatus()
The status of the cache component.
|
DistributedCache |
cacheStatus(String value)
The status of the cache component.
|
Double |
capacityFactor()
Controls the proportion of entries that will reside on the local node, compared to the other nodes in the cluster.
|
DistributedCache |
capacityFactor(Double value)
Controls the proportion of entries that will reside on the local node, compared to the other nodes in the cluster.
|
String |
consistentHashStrategy()
Defines the consistent hash strategy for the cache.
|
DistributedCache |
consistentHashStrategy(String value)
Defines the consistent hash strategy for the cache.
|
CustomStore |
customStore()
The cache store configuration.
|
DistributedCache |
customStore(CustomStore value)
The cache store configuration.
|
Long |
elapsedTime()
Time (in secs) since cache started.
|
DistributedCache |
elapsedTime(Long value)
Time (in secs) since cache started.
|
EvictionComponent |
evictionComponent()
The cache eviction configuration.
|
DistributedCache |
evictionComponent(EvictionComponent value)
The cache eviction configuration.
|
ExpirationComponent |
expirationComponent()
The cache expiration configuration.
|
DistributedCache |
expirationComponent(ExpirationComponent value)
The cache expiration configuration.
|
FileStore |
fileStore()
The cache file store configuration.
|
DistributedCache |
fileStore(FileStore value)
The cache file store configuration.
|
String |
getKey() |
Double |
hitRatio()
The hit/miss ratio for the cache (hits/hits+misses).
|
DistributedCache |
hitRatio(Double value)
The hit/miss ratio for the cache (hits/hits+misses).
|
Long |
hits()
The number of cache attribute hits.
|
DistributedCache |
hits(Long value)
The number of cache attribute hits.
|
Long |
invalidations()
The number of cache invalidations.
|
DistributedCache |
invalidations(Long value)
The number of cache invalidations.
|
String |
jndiName()
The jndi-name to which to bind this cache instance.
|
DistributedCache |
jndiName(String value)
The jndi-name to which to bind this cache instance.
|
Long |
l1Lifespan()
Maximum lifespan of an entry placed in the L1 cache.
|
DistributedCache |
l1Lifespan(Long value)
Maximum lifespan of an entry placed in the L1 cache.
|
LockingComponent |
lockingComponent()
The locking configuration of the cache.
|
DistributedCache |
lockingComponent(LockingComponent value)
The locking configuration of the cache.
|
Long |
misses()
The number of cache attribute misses.
|
DistributedCache |
misses(Long value)
The number of cache attribute misses.
|
MixedJdbcStore |
mixedJdbcStore()
The cache JDBC store configuration.
|
DistributedCache |
mixedJdbcStore(MixedJdbcStore value)
The cache JDBC store configuration.
|
String |
mode()
Sets the clustered cache mode, ASYNC for asynchronous operation, or SYNC for synchronous operation.
|
DistributedCache |
mode(String value)
Sets the clustered cache mode, ASYNC for asynchronous operation, or SYNC for synchronous operation.
|
String |
module()
The module whose class loader should be used when building this cache's configuration.
|
DistributedCache |
module(String value)
The module whose class loader should be used when building this cache's configuration.
|
NoneStore |
noneStore()
A store-less configuration.
|
DistributedCache |
noneStore(NoneStore value)
A store-less configuration.
|
Integer |
numberOfEntries()
The current number of entries in the cache.
|
DistributedCache |
numberOfEntries(Integer value)
The current number of entries in the cache.
|
Integer |
owners()
Number of cluster-wide replicas for each cache entry.
|
DistributedCache |
owners(Integer value)
Number of cluster-wide replicas for each cache entry.
|
PartitionHandlingComponent |
partitionHandlingComponent()
The partition handling configuration for distributed and replicated caches.
|
DistributedCache |
partitionHandlingComponent(PartitionHandlingComponent value)
The partition handling configuration for distributed and replicated caches.
|
Long |
passivations()
The number of cache node passivations (passivating a node from memory to a cache store).
|
DistributedCache |
passivations(Long value)
The number of cache node passivations (passivating a node from memory to a cache store).
|
Long |
queueFlushInterval()
In ASYNC mode, this attribute controls how often the asynchronous thread used to flush the replication queue runs.
|
DistributedCache |
queueFlushInterval(Long value)
In ASYNC mode, this attribute controls how often the asynchronous thread used to flush the replication queue runs.
|
Integer |
queueSize()
In ASYNC mode, this attribute can be used to trigger flushing of the queue when it reaches a specific threshold.
|
DistributedCache |
queueSize(Integer value)
In ASYNC mode, this attribute can be used to trigger flushing of the queue when it reaches a specific threshold.
|
Double |
readWriteRatio()
The read/write ratio of the cache ((hits+misses)/stores).
|
DistributedCache |
readWriteRatio(Double value)
The read/write ratio of the cache ((hits+misses)/stores).
|
RemoteStore |
remoteStore()
The cache remote store configuration.
|
DistributedCache |
remoteStore(RemoteStore value)
The cache remote store configuration.
|
Long |
remoteTimeout()
In SYNC mode, the timeout (in ms) used to wait for an acknowledgment when making a remote call, after which the call is aborted and an exception is thrown.
|
DistributedCache |
remoteTimeout(Long value)
In SYNC mode, the timeout (in ms) used to wait for an acknowledgment when making a remote call, after which the call is aborted and an exception is thrown.
|
Long |
removeHits()
The number of cache attribute remove hits.
|
DistributedCache |
removeHits(Long value)
The number of cache attribute remove hits.
|
Long |
removeMisses()
The number of cache attribute remove misses.
|
DistributedCache |
removeMisses(Long value)
The number of cache attribute remove misses.
|
Long |
replicationCount()
The number of times data was replicated around the cluster.
|
DistributedCache |
replicationCount(Long value)
The number of times data was replicated around the cluster.
|
Long |
replicationFailures()
The number of data replication failures.
|
DistributedCache |
replicationFailures(Long value)
The number of data replication failures.
|
Integer |
segments()
Controls the number of hash space segments which is the granularity for key distribution in the cluster.
|
DistributedCache |
segments(Integer value)
Controls the number of hash space segments which is the granularity for key distribution in the cluster.
|
StateTransferComponent |
stateTransferComponent()
The state transfer configuration for distributed and replicated caches.
|
DistributedCache |
stateTransferComponent(StateTransferComponent value)
The state transfer configuration for distributed and replicated caches.
|
Boolean |
statisticsEnabled()
If enabled, statistics will be collected for this cache
|
DistributedCache |
statisticsEnabled(Boolean value)
If enabled, statistics will be collected for this cache
|
Long |
stores()
The number of cache attribute put operations.
|
DistributedCache |
stores(Long value)
The number of cache attribute put operations.
|
StringJdbcStore |
stringJdbcStore()
The cache JDBC store configuration.
|
DistributedCache |
stringJdbcStore(StringJdbcStore value)
The cache JDBC store configuration.
|
Double |
successRatio()
The data replication success ratio (successes/successes+failures).
|
DistributedCache |
successRatio(Double value)
The data replication success ratio (successes/successes+failures).
|
Long |
timeSinceReset()
Time (in secs) since cache statistics were reset.
|
DistributedCache |
timeSinceReset(Long value)
Time (in secs) since cache statistics were reset.
|
TransactionComponent |
transactionComponent()
The cache transaction configuration.
|
DistributedCache |
transactionComponent(TransactionComponent value)
The cache transaction configuration.
|
public DistributedCache(String key)
public String getKey()
public Long activations()
public DistributedCache activations(Long value)
public Long averageReadTime()
public DistributedCache averageReadTime(Long value)
public Long averageReplicationTime()
public DistributedCache averageReplicationTime(Long value)
public Long averageWriteTime()
public DistributedCache averageWriteTime(Long value)
public String cacheStatus()
public DistributedCache cacheStatus(String value)
public Double capacityFactor()
public DistributedCache capacityFactor(Double value)
public String consistentHashStrategy()
public DistributedCache consistentHashStrategy(String value)
public Long elapsedTime()
public DistributedCache elapsedTime(Long value)
public Double hitRatio()
public DistributedCache hitRatio(Double value)
public Long hits()
public DistributedCache hits(Long value)
public Long invalidations()
public DistributedCache invalidations(Long value)
public String jndiName()
public DistributedCache jndiName(String value)
public Long l1Lifespan()
public DistributedCache l1Lifespan(Long value)
public Long misses()
public DistributedCache misses(Long value)
public String mode()
public DistributedCache mode(String value)
public String module()
public DistributedCache module(String value)
public Integer numberOfEntries()
public DistributedCache numberOfEntries(Integer value)
public Integer owners()
public DistributedCache owners(Integer value)
public Long passivations()
public DistributedCache passivations(Long value)
public Long queueFlushInterval()
public DistributedCache queueFlushInterval(Long value)
public Integer queueSize()
public DistributedCache queueSize(Integer value)
public Double readWriteRatio()
public DistributedCache readWriteRatio(Double value)
public Long remoteTimeout()
public DistributedCache remoteTimeout(Long value)
public Long removeHits()
public DistributedCache removeHits(Long value)
public Long removeMisses()
public DistributedCache removeMisses(Long value)
public Long replicationCount()
public DistributedCache replicationCount(Long value)
public Long replicationFailures()
public DistributedCache replicationFailures(Long value)
public Integer segments()
public DistributedCache segments(Integer value)
public Boolean statisticsEnabled()
public DistributedCache statisticsEnabled(Boolean value)
public Long stores()
public DistributedCache stores(Long value)
public Double successRatio()
public DistributedCache successRatio(Double value)
public Long timeSinceReset()
public DistributedCache timeSinceReset(Long value)
public EvictionComponent evictionComponent()
public DistributedCache evictionComponent(EvictionComponent value)
public ExpirationComponent expirationComponent()
public DistributedCache expirationComponent(ExpirationComponent value)
public CustomStore customStore()
public DistributedCache customStore(CustomStore value)
public NoneStore noneStore()
public DistributedCache noneStore(NoneStore value)
public BackupForComponent backupForComponent()
public DistributedCache backupForComponent(BackupForComponent value)
public TransactionComponent transactionComponent()
public DistributedCache transactionComponent(TransactionComponent value)
public BinaryJdbcStore binaryJdbcStore()
public DistributedCache binaryJdbcStore(BinaryJdbcStore value)
public StringJdbcStore stringJdbcStore()
public DistributedCache stringJdbcStore(StringJdbcStore value)
public FileStore fileStore()
public DistributedCache fileStore(FileStore value)
public StateTransferComponent stateTransferComponent()
public DistributedCache stateTransferComponent(StateTransferComponent value)
public PartitionHandlingComponent partitionHandlingComponent()
public DistributedCache partitionHandlingComponent(PartitionHandlingComponent value)
public LockingComponent lockingComponent()
public DistributedCache lockingComponent(LockingComponent value)
public BackupsComponent backupsComponent()
public DistributedCache backupsComponent(BackupsComponent value)
public MixedJdbcStore mixedJdbcStore()
public DistributedCache mixedJdbcStore(MixedJdbcStore value)
public RemoteStore remoteStore()
public DistributedCache remoteStore(RemoteStore value)
Copyright © 2015 JBoss by Red Hat. All rights reserved.