Search in sources :

Example 26 with QueryCacheContext

use of com.hazelcast.map.impl.querycache.QueryCacheContext in project hazelcast by hazelcast.

the class ClientQueryCacheMemoryLeakTest method getPublisherContext.

private static PublisherContext getPublisherContext(HazelcastInstance node) {
    MapService mapService = getNodeEngineImpl(node).getService(MapService.SERVICE_NAME);
    MapServiceContext mapServiceContext = mapService.getMapServiceContext();
    QueryCacheContext queryCacheContext = mapServiceContext.getQueryCacheContext();
    return queryCacheContext.getPublisherContext();
}
Also used : QueryCacheContext(com.hazelcast.map.impl.querycache.QueryCacheContext) MapService(com.hazelcast.map.impl.MapService) MapServiceContext(com.hazelcast.map.impl.MapServiceContext)

Example 27 with QueryCacheContext

use of com.hazelcast.map.impl.querycache.QueryCacheContext in project hazelcast by hazelcast.

the class QueryCacheRecoveryUponEventLossTest method setTestSequencer.

private void setTestSequencer(HazelcastInstance instance, int eventCount) {
    Node node = getNode(instance);
    MapService service = node.getNodeEngine().getService(MapService.SERVICE_NAME);
    MapServiceContext mapServiceContext = service.getMapServiceContext();
    QueryCacheContext queryCacheContext = mapServiceContext.getQueryCacheContext();
    queryCacheContext.setSubscriberContext(new TestSubscriberContext(queryCacheContext, eventCount, true));
}
Also used : Accessors.getNode(com.hazelcast.test.Accessors.getNode) Node(com.hazelcast.instance.impl.Node) QueryCacheContext(com.hazelcast.map.impl.querycache.QueryCacheContext) MapService(com.hazelcast.map.impl.MapService) MapServiceContext(com.hazelcast.map.impl.MapServiceContext)

Aggregations

QueryCacheContext (com.hazelcast.map.impl.querycache.QueryCacheContext)27 Accumulator (com.hazelcast.map.impl.querycache.accumulator.Accumulator)7 MapService (com.hazelcast.map.impl.MapService)5 MapServiceContext (com.hazelcast.map.impl.MapServiceContext)5 PublisherContext (com.hazelcast.map.impl.querycache.publisher.PublisherContext)5 Sequenced (com.hazelcast.map.impl.querycache.event.sequence.Sequenced)4 QueryCacheEventService (com.hazelcast.map.impl.querycache.QueryCacheEventService)3 QueryCacheEventData (com.hazelcast.map.impl.querycache.event.QueryCacheEventData)3 ClientMapProxy (com.hazelcast.client.impl.proxy.ClientMapProxy)2 TestClientSubscriberContext (com.hazelcast.client.map.impl.querycache.subscriber.TestClientSubscriberContext)2 TestClientSubscriberContext (com.hazelcast.client.map.querycache.subscriber.TestClientSubscriberContext)2 ClientMapProxy (com.hazelcast.client.proxy.ClientMapProxy)2 Node (com.hazelcast.instance.impl.Node)2 AccumulatorInfo (com.hazelcast.map.impl.querycache.accumulator.AccumulatorInfo)2 AccumulatorInfoSupplier (com.hazelcast.map.impl.querycache.accumulator.AccumulatorInfoSupplier)2 EventPublisherAccumulatorProcessor (com.hazelcast.map.impl.querycache.publisher.EventPublisherAccumulatorProcessor)2 MapPublisherRegistry (com.hazelcast.map.impl.querycache.publisher.MapPublisherRegistry)2 PublisherAccumulatorHandler (com.hazelcast.map.impl.querycache.publisher.PublisherAccumulatorHandler)2 PublisherRegistry (com.hazelcast.map.impl.querycache.publisher.PublisherRegistry)2 QueryCacheEndToEndProvider (com.hazelcast.map.impl.querycache.subscriber.QueryCacheEndToEndProvider)2