use of com.hazelcast.cache.impl.CacheEventHandler in project hazelcast by hazelcast.
the class InvalidationMetadataDistortionTest method distortRandomPartitionUuid.
private void distortRandomPartitionUuid(HazelcastInstance member) {
NodeEngineImpl nodeEngineImpl = getNodeEngineImpl(member);
int partitionCount = nodeEngineImpl.getPartitionService().getPartitionCount();
CacheService service = nodeEngineImpl.getService(CacheService.SERVICE_NAME);
CacheEventHandler cacheEventHandler = service.getCacheEventHandler();
MetaDataGenerator metaDataGenerator = cacheEventHandler.getMetaDataGenerator();
UUID uuid = UuidUtil.newSecureUUID();
int randomPartition = getInt(partitionCount);
metaDataGenerator.setUuid(randomPartition, uuid);
}
use of com.hazelcast.cache.impl.CacheEventHandler in project hazelcast by hazelcast.
the class CacheAssignAndGetUuidsOperation method getMetaDataGenerator.
private MetaDataGenerator getMetaDataGenerator() {
CacheService service = getService();
CacheEventHandler cacheEventHandler = service.getCacheEventHandler();
return cacheEventHandler.getMetaDataGenerator();
}
Aggregations