private FetchPartitionDetailsReplyMessage(int processorId, PartitionMemberInfoImpl details, OfflineMemberDetails offlineDetails, ReplyException re) { this.processorId = processorId; this.configuredMaxMemory = details.getConfiguredMaxMemory(); this.size = details.getSize(); this.bucketCount = details.getBucketCount(); this.primaryCount = details.getPrimaryCount(); this.prLoad = details.getPRLoad(); this.bucketSizes = details.getBucketSizes(); this.offlineDetails = offlineDetails; setException(re); }
/** * Waits for the response from the members for remove indexes call on this system. * @throws ForceReattemptException */ public RemoveIndexesResult waitForResults() throws CacheException, ForceReattemptException { waitForCacheException(); return new RemoveIndexesResult(0); }
@Override public void tearDown2() throws Exception { super.tearDown2(); invokeInEveryVM(new SerializableRunnable() { public void run() { TXManagerImpl.ALLOW_PERSISTENT_TRANSACTIONS = false; System.setProperty(DiskStoreImpl.RECOVER_VALUES_SYNC_PROPERTY_NAME, "false"); } }); }
@Override protected boolean operateOnPartitionedRegion(DistributionManager dm, PartitionedRegion pr, long startTime) throws CacheException { PrimaryInfo pinfo = null; if (this.onlyReturnPrimaryInfo) { pinfo = new PrimaryInfo(pr.getRegionAdvisor().getBucket(this.bucketId).isHosting(), pr.getRegionAdvisor().isPrimaryForBucket(this.bucketId), ""); } else { pr.dumpB2NForBucket(this.bucketId); } DumpB2NReplyMessage.send(getSender(), getProcessorId(), dm, pinfo); return false; }
private FetchKeysReplyMessage(InternalDistributedMember recipient, int processorId, HeapDataOutputStream chunk, int seriesNum, int msgNum, int numSeries, boolean lastInSeries, AbstractOperationMessage srcMessage) { super(srcMessage, true, true); setRecipient(recipient); setProcessorId(processorId); this.seriesNum = seriesNum; this.msgNum = msgNum; this.numSeries = numSeries; this.lastInSeries = lastInSeries; this.chunkStream = chunk; }
private PutAllReplyMessage(int processorId, boolean result, VersionedObjectList versions, ReplyException ex, PutAllPRMessage sourceMessage) { super(sourceMessage, true, true); this.versions = versions; this.result = result; setProcessorId(processorId); setException(ex); }
public static RegionAdvisor createRegionAdvisor(PartitionedRegion region) { RegionAdvisor advisor = new RegionAdvisor(region); advisor.initialize(); return advisor; }
@Override public Set adviseDestroyRegion() { // fix for bug 37604 - tell all owners of the pr that the bucket is being // destroyed. This is needed when bucket cleanup is performed return this.regionAdvisor.adviseAllPRNodes(); }
@Override public void setUp() throws Exception { super.setUp(); invokeInEveryVM(new SerializableRunnable() { public void run() { TXManagerImpl.ALLOW_PERSISTENT_TRANSACTIONS = true; System.setProperty(DiskStoreImpl.RECOVER_VALUES_SYNC_PROPERTY_NAME, "true"); } }); }
@Override public boolean containsRegionContentChange() { // for TX state flush but not for inline processing case since for that // case the operation will be received when endOperation has been invoked // and CreateRegionMessage was waiting on ops in progress return isTransactional() && this.processorId != 0 && canStartRemoteTransaction(); }
private DumpB2NReplyMessage(int procid, PrimaryInfo pinfo) { super(); setProcessorId(procid); this.primaryInfo = pinfo; }
/** * Returns the thread-safe queue of primary volunteering tasks for the * parent Partitioned Region. * * @return the queue of primary volunteering tasks */ Queue<Runnable> getVolunteeringQueue() { return this.regionAdvisor.getVolunteeringQueue(); }
public IdentityUpdateMessage(Set recipients, int processorId, int newId) { setRecipients(recipients); this.processorId = processorId; this.newId = newId; }
/** * Add this RedundancyLogger as a persistence listener to all the region's bucket advisors. */ private void addListeners() { for(RegionStatus region : regions) { region.addListeners(); } }
@Override protected void setBooleans(short s) { super.setBooleans(s); this.access = ((s & HAS_ACCESS) != 0); }
public final Map<InternalDistributedMember, ReplyException> getResponseExceptions(InvalidateMessage.InvalidateResponse response) { return response.getExceptions(); } };
private FetchPartitionDetailsReplyMessage(int processorId, PartitionMemberInfoImpl details, OfflineMemberDetails offlineDetails, ReplyException re) { this.processorId = processorId; this.configuredMaxMemory = details.getConfiguredMaxMemory(); this.size = details.getSize(); this.bucketCount = details.getBucketCount(); this.primaryCount = details.getPrimaryCount(); this.prLoad = details.getPRLoad(); this.bucketSizes = details.getBucketSizes(); this.offlineDetails = offlineDetails; setException(re); }
/** * Waits for the response from the members for remove indexes call on this system. * @throws ForceReattemptException */ public RemoveIndexesResult waitForResults() throws CacheException, ForceReattemptException { waitForCacheException(); return new RemoveIndexesResult(0); }
@Override public Set adviseDestroyRegion() { // fix for bug 37604 - tell all owners of the pr that the bucket is being // destroyed. This is needed when bucket cleanup is performed return this.regionAdvisor.adviseAllPRNodes(); }