com.hazelcast.map.MapServiceContext Maven / Gradle / Ivy
package com.hazelcast.map;
import com.hazelcast.map.eviction.ExpirationManager;
import com.hazelcast.map.merge.MergePolicyProvider;
import com.hazelcast.spi.NodeEngine;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;
/**
* Context which is needed by a map service.
*
* 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 {@link RecordStore} implementations.
* For example all {@link com.hazelcast.map.PartitionContainer} and {@link com.hazelcast.map.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 {@link com.hazelcast.map.MapService}.
*
*
* @see com.hazelcast.map.MapManagedService
*/
public interface MapServiceContext extends MapServiceContextSupport,
MapServiceContextInterceptorSupport, MapServiceContextEventListenerSupport {
MapContainer getMapContainer(String mapName);
Map getMapContainers();
PartitionContainer getPartitionContainer(int partitionId);
void initPartitionsContainers();
void clearPartitionData(int partitionId);
String serviceName();
MapService getService();
void clearPartitions();
void destroyMapStores();
void flushMaps();
void destroyMap(String mapName);
void reset();
NearCacheProvider getNearCacheProvider();
RecordStore getRecordStore(int partitionId, String mapName);
RecordStore getExistingRecordStore(int partitionId, String mapName);
List getOwnedPartitions();
AtomicReference> ownedPartitions();
List getMemberPartitions();
AtomicInteger getWriteBehindQueueItemCounter();
ExpirationManager getExpirationManager();
void setService(MapService mapService);
NodeEngine getNodeEngine();
MergePolicyProvider getMergePolicyProvider();
MapEventPublisher getMapEventPublisher();
MapContextQuerySupport getMapContextQuerySupport();
LocalMapStatsProvider getLocalMapStatsProvider();
}