public class DefaultMapServiceContext extends Object implements MapServiceContext
Modifier and Type | Field and Description |
---|---|
protected NodeEngine |
nodeEngine |
Constructor and Description |
---|
DefaultMapServiceContext(NodeEngine nodeEngine) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addInterceptor, interceptAfterGet, interceptAfterPut, interceptAfterRemove, interceptGet, interceptPut, interceptRemove, removeInterceptor
addEventListener, addLocalEventListener, addLocalEventListener, hasRegisteredListener, removeEventListener
protected NodeEngine nodeEngine
public DefaultMapServiceContext(NodeEngine nodeEngine)
public MapContainer getMapContainer(String mapName)
getMapContainer
in interface MapServiceContext
public Map<String,MapContainer> getMapContainers()
getMapContainers
in interface MapServiceContext
public PartitionContainer getPartitionContainer(int partitionId)
getPartitionContainer
in interface MapServiceContext
public void initPartitionsContainers()
initPartitionsContainers
in interface MapServiceContext
public void clearPartitionData(int partitionId)
clearPartitionData
in interface MapServiceContext
public String serviceName()
serviceName
in interface MapServiceContext
public MapService getService()
getService
in interface MapServiceContext
public void clearPartitions()
clearPartitions
in interface MapServiceContext
public void destroyMapStores()
destroyMapStores
in interface MapServiceContext
public void flushMaps()
flushMaps
in interface MapServiceContext
public void destroyMap(String mapName)
destroyMap
in interface MapServiceContext
public void reset()
reset
in interface MapServiceContext
public NearCacheProvider getNearCacheProvider()
getNearCacheProvider
in interface MapServiceContext
public RecordStore getRecordStore(int partitionId, String mapName)
getRecordStore
in interface MapServiceContext
public RecordStore getExistingRecordStore(int partitionId, String mapName)
getExistingRecordStore
in interface MapServiceContext
public Collection<Integer> getOwnedPartitions()
getOwnedPartitions
in interface MapServiceContext
public void reloadOwnedPartitions()
reloadOwnedPartitions
in interface MapServiceContext
public boolean isOwnedKey(Data key)
MapServiceContext
isOwnedKey
in interface MapServiceContext
key
- key to be queried.public AtomicInteger getWriteBehindQueueItemCounter()
getWriteBehindQueueItemCounter
in interface MapServiceContext
public ExpirationManager getExpirationManager()
getExpirationManager
in interface MapServiceContext
public EvictionOperator getEvictionOperator()
getEvictionOperator
in interface MapServiceContext
public void setService(MapService mapService)
setService
in interface MapServiceContext
public NodeEngine getNodeEngine()
getNodeEngine
in interface MapServiceContext
public MergePolicyProvider getMergePolicyProvider()
getMergePolicyProvider
in interface MapServiceContext
public MapEventPublisher getMapEventPublisher()
getMapEventPublisher
in interface MapServiceContext
public MapContextQuerySupport getMapContextQuerySupport()
getMapContextQuerySupport
in interface MapServiceContext
public LocalMapStatsProvider getLocalMapStatsProvider()
getLocalMapStatsProvider
in interface MapServiceContext
public void setEvictionOperator(EvictionOperator evictionOperator)
public long getNow()
public Data toData(Object object, PartitioningStrategy partitionStrategy)
public void setMapServiceContext(MapServiceContext mapServiceContext)
public long getNow()
public Data toData(Object object, PartitioningStrategy partitionStrategy)
public void interceptAfterGet(String mapName, Object value)
interceptAfterGet
in interface MapServiceContextInterceptorSupport
public Object interceptPut(String mapName, Object oldValue, Object newValue)
interceptPut
in interface MapServiceContextInterceptorSupport
public void interceptAfterPut(String mapName, Object newValue)
interceptAfterPut
in interface MapServiceContextInterceptorSupport
public Object interceptRemove(String mapName, Object value)
interceptRemove
in interface MapServiceContextInterceptorSupport
public void interceptAfterRemove(String mapName, Object value)
interceptAfterRemove
in interface MapServiceContextInterceptorSupport
public String addInterceptor(String mapName, MapInterceptor interceptor)
addInterceptor
in interface MapServiceContextInterceptorSupport
public void removeInterceptor(String mapName, String id)
removeInterceptor
in interface MapServiceContextInterceptorSupport
public Object interceptGet(String mapName, Object value)
interceptGet
in interface MapServiceContextInterceptorSupport
public String addLocalEventListener(EntryListener entryListener, String mapName)
addLocalEventListener
in interface MapServiceContextEventListenerSupport
public String addLocalEventListener(EntryListener entryListener, EventFilter eventFilter, String mapName)
addLocalEventListener
in interface MapServiceContextEventListenerSupport
public String addEventListener(EntryListener entryListener, EventFilter eventFilter, String mapName)
addEventListener
in interface MapServiceContextEventListenerSupport
public boolean removeEventListener(String mapName, String registrationId)
removeEventListener
in interface MapServiceContextEventListenerSupport
public boolean hasRegisteredListener(String name)
hasRegisteredListener
in interface MapServiceContextEventListenerSupport
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.