public class CacheService extends AbstractCacheService implements ICacheService
This service is responsible for:
CacheRecordStore.ICache.MigrationAwareService.WARNING:This service is an optionally registered service which is enabled when Caching
class is found on the classpath.
If registered, it will provide all the above cache operations for all partitions of the node which it is registered on.
Distributed Cache Name is used for providing a unique name to a cache object to overcome cache manager
scoping which depends on URI and class loader parameters. It's a simple concatenation of CacheNamePrefix and
cache name where CacheNamePrefix is calculated by each cache manager
using AbstractHazelcastCacheManager.cacheNamePrefix().
cacheStatisticsConstructorFunction, configs, nodeEngine, operationProviderCache, segments, statisticsSERVICE_NAME| Constructor and Description |
|---|
CacheService() |
| Modifier and Type | Method and Description |
|---|---|
protected ICacheRecordStore |
createNewRecordStore(String name,
int partitionId) |
Operation |
prepareReplicationOperation(PartitionReplicationEvent event) |
void |
reset()
reset this ManagedService back to initial state.
|
void |
shutdown(boolean terminate)
Shuts down this ManagedService.
|
beforeMigration, clearPartitionReplica, commitMigration, createCacheConfigIfAbsent, createCacheStatIfAbsent, createConfigOnAllMembers, createDistributedObject, deleteCacheConfig, deleteCacheStat, deregisterAllListener, deregisterListener, destroyCache, destroyCacheOnAllMembers, destroyDistributedObject, destroySegments, dispatchEvent, findCacheConfig, getCacheConfig, getCacheConfigs, getCacheOperationProvider, getCacheRecordStore, getNodeEngine, getOrCreateCache, getSegment, getStatistics, init, publishEvent, publishEvent, registerListener, rollbackMigration, setManagementEnabled, setStatisticsEnabled, toData, toObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCacheConfigIfAbsent, createCacheStatIfAbsent, deleteCacheConfig, deleteCacheStat, deregisterAllListener, deregisterListener, destroyCache, getCacheConfig, getCacheConfigs, getCacheOperationProvider, getCacheRecordStore, getNodeEngine, getOrCreateCache, getSegment, getStatistics, publishEvent, publishEvent, registerListener, setManagementEnabled, setStatisticsEnabledinitcreateDistributedObject, destroyDistributedObjectbeforeMigration, clearPartitionReplica, commitMigration, rollbackMigrationdispatchEventprotected ICacheRecordStore createNewRecordStore(String name, int partitionId)
createNewRecordStore in class AbstractCacheServicepublic void reset()
ManagedServicereset in interface ManagedServicepublic void shutdown(boolean terminate)
ManagedServiceshutdown in interface ManagedServicepublic Operation prepareReplicationOperation(PartitionReplicationEvent event)
prepareReplicationOperation in interface MigrationAwareServiceCopyright © 2014 Hazelcast, Inc.. All Rights Reserved.