@Override public void addAsyncEventQueueId(String asyncEventQueueId) { super.addAsyncEventQueueId(asyncEventQueueId); new UpdateAttributesProcessor(this).distribute(); }
@Override public void addAsyncEventQueueId(String asyncEventQueueId, boolean isInternal) { super.addAsyncEventQueueId(asyncEventQueueId, isInternal); new UpdateAttributesProcessor(this).distribute(); ((PartitionedRegion) this).distributeUpdatedProfileOnSenderCreation(); GatewaySender sender = getCache() .getGatewaySender(AsyncEventQueueImpl.getSenderIdFromAsyncEventQueueId(asyncEventQueueId)); if (sender != null && sender.isParallel() && sender.isRunning()) { AbstractGatewaySender senderImpl = (AbstractGatewaySender) sender; ((ConcurrentParallelGatewaySenderQueue) senderImpl.getQueues().toArray(new RegionQueue[1])[0]) .addShadowPartitionedRegionForUserPR(this); } }
/** * Finish creating the lucene index after the data region is created . * * Public because this is called by the Xml parsing code */ public void afterDataRegionCreated(InternalLuceneIndex index) { index.initialize(); if (this.managementListener != null) { this.managementListener.afterIndexCreated(index); } String aeqId = LuceneServiceImpl.getUniqueIndexName(index.getName(), index.getRegionPath()); ((LuceneIndexImpl) index).getDataRegion().addAsyncEventQueueId(aeqId, true); PartitionedRepositoryManager repositoryManager = (PartitionedRepositoryManager) index.getRepositoryManager(); repositoryManager.allowRepositoryComputation(); registerIndex(index); }