public interface MapServiceContext extends MapServiceContextInterceptorSupport, MapServiceContextEventListenerSupport
RecordStore
implementations.
For example all PartitionContainer
and MapContainer
instances
can also be reached by using this interface.
It is also responsible for providing methods which are used by lower layers of
Hazelcast and exposed on MapService
.
MapManagedService
addInterceptor, generateInterceptorId, hasInterceptor, interceptAfterGet, interceptAfterPut, interceptAfterRemove, interceptGet, interceptPut, interceptRemove, removeInterceptor
addEventListener, addLocalEventListener, addLocalEventListener, addLocalPartitionLostListener, addPartitionLostListener, removeEventListener, removePartitionLostListener
Data toData(Object object, PartitioningStrategy partitionStrategy)
MapContainer getMapContainer(String mapName)
Map<String,MapContainer> getMapContainers()
PartitionContainer getPartitionContainer(int partitionId)
void initPartitionsContainers()
void clearPartitionData(int partitionId)
MapService getService()
void clearPartitions(boolean onShutdown)
onShutdown
- true if clearPartitions
is called during MapService shutdown,
false otherwise.void destroyMapStores()
void flushMaps()
void destroyMap(String mapName)
void reset()
void shutdown()
NearCacheProvider getNearCacheProvider()
RecordStore createRecordStore(MapContainer mapContainer, int partitionId, MapKeyLoader keyLoader)
RecordStore getRecordStore(int partitionId, String mapName)
RecordStore getExistingRecordStore(int partitionId, String mapName)
Collection<Integer> getOwnedPartitions()
void reloadOwnedPartitions()
AtomicInteger getWriteBehindQueueItemCounter()
ExpirationManager getExpirationManager()
void setService(MapService mapService)
NodeEngine getNodeEngine()
MergePolicyProvider getMergePolicyProvider()
MapEventPublisher getMapEventPublisher()
MapQueryEngine getMapQueryEngine(String name)
LocalMapStatsProvider getLocalMapStatsProvider()
MapOperationProvider getMapOperationProvider(String name)
Extractors getExtractors(String mapName)
void incrementOperationStats(long startTime, LocalMapStatsImpl localMapStats, String mapName, Operation operation)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.