public interface MapServiceContext extends MapServiceContextInterceptorSupport, MapServiceContextEventListenerSupport
Shared instances, configurations of all maps can be reached over this context.
Also this context provides some support methods which are used in map operations and 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
RecordComparator getRecordComparator(InMemoryFormat inMemoryFormat)
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
otherwisevoid 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()
MapEventJournal getEventJournal()
MapQueryEngine getMapQueryEngine(String name)
QueryRunner getMapQueryRunner(String name)
QueryOptimizer getQueryOptimizer()
LocalMapStatsProvider getLocalMapStatsProvider()
MapOperationProvider getMapOperationProvider(String name)
MapOperationProvider getMapOperationProvider(MapConfig mapConfig)
IndexProvider getIndexProvider(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(ListenerAdapter listenerAdaptor, EventFilter eventFilter, String mapName)
String addLocalListenerAdapter(ListenerAdapter listenerAdaptor, String mapName)
IndexCopyBehavior getIndexCopyBehavior()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.