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 clearMapsHavingLesserBackupCountThan(int partitionId, int backupCount)
partitionId
- partition idbackupCount
- backup countvoid 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()
RecordStore createRecordStore(MapContainer mapContainer, int partitionId, MapKeyLoader keyLoader)
RecordStore getRecordStore(int partitionId, String mapName)
RecordStore getRecordStore(int partitionId, String mapName, boolean skipLoadingOnCreate)
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)
QueryRunner getMapQueryRunner(String name)
QueryOptimizer getQueryOptimizer()
LocalMapStatsProvider getLocalMapStatsProvider()
MapOperationProvider getMapOperationProvider(String name)
MapOperationProvider getMapOperationProvider(MapConfig mapConfig)
Extractors getExtractors(String mapName)
void incrementOperationStats(long startTime, LocalMapStatsImpl localMapStats, String mapName, Operation operation)
boolean removeMapContainer(MapContainer mapContainer)
PartitioningStrategy getPartitioningStrategy(String mapName, PartitioningStrategyConfig config)
void removePartitioningStrategyFromCache(String mapName)
PartitionContainer[] getPartitionContainers()
void onClusterStateChange(ClusterState newState)
PartitionScanRunner getPartitionScanRunner()
ResultProcessorRegistry getResultProcessorRegistry()
MapNearCacheManager getMapNearCacheManager()
QueryCacheContext getQueryCacheContext()
String addListenerAdapter(String cacheName, ListenerAdapter listenerAdaptor)
String addListenerAdapter(ListenerAdapter listenerAdaptor, EventFilter eventFilter, String mapName)
String addLocalListenerAdapter(ListenerAdapter listenerAdaptor, String mapName)
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.