if (getLogWriter().fineEnabled()) { getLogWriter().fine("[findPrimaryProfiles] " + "found the following primary members for " + getAdvisee().getName() + ": " + primaryMembers);
return false; if (getLogWriter().fineEnabled()) { getLogWriter().fine("Waiting for bucket " + this);
return false; if (getLogWriter().fineEnabled()) { getLogWriter().fine("Waiting for bucket storage" + this);
getLogWriter().info( LocalizedStrings.DEBUG, "BucketAdvisor#putProfile early out"); getLogWriter().info( LocalizedStrings.DEBUG, "BucketAdvisor#putProfile profile=<" + profile + "> force=" + forceProfile
/** * Called from catch blocks in {@link #doVolunteerForPrimary()}. Handles * the exception properly based on advisor settings and shutdown condition. * * @param e the RuntimeException that was caught while volunteering * @param loggit true if message should be logged if shutdown condition * is not met */ private void handleException(Exception e, boolean loggit) { boolean safe = isClosed() || getAdvisee().getCancelCriterion().cancelInProgress() != null; if (!safe) { if (ENFORCE_SAFE_CLOSE) { Assert.assertTrue(safe, LocalizedStrings.BucketAdvisor_BUCKETADVISOR_WAS_NOT_CLOSED_PROPERLY.toLocalizedString()); } else if (loggit) { getLogWriter().warning(LocalizedStrings.BucketAdvisor_BUCKETADVISOR_WAS_NOT_CLOSED_PROPERLY, e); } } }
BucketAdvisor.this.getLogWriter().error(e);
/** * @guarded.By this */ @Override protected void profileUpdated(Profile profile) { super.profileUpdated(profile); if (updateRedundancy() > 0) { // wake up any threads in waitForRedundancy or waitForPrimary this.notifyAll(); } this.regionAdvisor.updateBucketStatus(this.getBucket().getId(), profile.peerMemberId, false); LogWriterI18n log = getLogWriter(); if (log.fineEnabled()) { log.fine("Profile updated " + getBucket().getFullPath() + " Profile : " + profile); } synchronized (this) { updateServerBucketProfile(); } }
getLogWriter().warning( LocalizedStrings.BucketAdvisor_REDUNDANCY_HAS_DROPPED_BELOW_0_CONFIGURED_COPIES_TO_1_ACTUAL_COPIES_FOR_2, new Object[] { Integer.valueOf(configuredRedundancy), Integer.valueOf(actualRedundancy), this.pRegion.getFullPath()});
/** * @guarded.By this */ @Override protected void profileCreated(Profile profile) { this.regionAdvisor.incrementBucketCount(profile); super.profileCreated(profile); if (updateRedundancy() > 0) { // wake up any threads in waitForRedundancy or waitForPrimary this.notifyAll(); } this.regionAdvisor.updateBucketStatus(this.getBucket().getId(), profile.peerMemberId, false); LogWriterI18n log = getLogWriter(); if (log.fineEnabled()) { log.fine("Profile added " + getBucket().getFullPath() + " Profile : " + profile); } synchronized (this){ updateServerBucketProfile(); } }
if (getLogWriter().fineEnabled()) { getLogWriter().fine("Waiting for bucket " + this + ". Time left :" + timeLeft + "ms"); long timeUntilWarning = warnTime - elapsed; if(timeUntilWarning <= 0 ) { getLogWriter().warning(LocalizedStrings.BucketAdvisor_WAITING_FOR_PRIMARY, new Object[] {warnTime / 1000L, this, this.adviseInitialized()}); } finally { if(loggedWarning) { getLogWriter().info(LocalizedStrings.BucketAdvisor_WAITING_FOR_PRIMARY_DONE);
/** * Called by the RegionAdvisor.profileRemoved, this method * tests to see if the missing member is the primary elector * for this bucket. * * We can't call this method from BucketAdvisor.profileRemoved, * because the primaryElector may not actually host the bucket. * @param profile */ public void checkForLostPrimaryElector(Profile profile) { //If the member that went away was in the middle of creating //the bucket, finish the bucket creation. if(this.primaryElector != null && this.primaryElector.equals(profile.getDistributedMember())) { LogWriterI18n log = getLogWriter(); if(log.fineEnabled()) { log.fine("Bucket " + getBucket().getFullPath() + " lost the member responsible for electing the primary. Finishing bucket creation"); } this.primaryElector = getBucket().getDistributionManager().getId(); this.getBucket().getDistributionManager().getWaitingThreadPool().execute(new Runnable() { public void run() { getBucket().getPartitionedRegion().getRedundancyProvider().finishIncompleteBucketCreation(getBucket().getId()); } }); } }
try { if (getLogWriter().fineEnabled()) { getLogWriter().fine("Begin volunteerForPrimary for " + BucketAdvisor.this); if (getLogWriter().fineEnabled()) { getLogWriter().fine("Exit volunteerForPrimary for " + BucketAdvisor.this + "; dlsDestroyed=" + dlsDestroyed);
/** * @guarded.By this */ @Override protected void profileRemoved(Profile profile) { if (profile != null) { this.regionAdvisor.updateBucketStatus(this.getBucket().getId(), profile.getDistributedMember(), true); this.regionAdvisor.decrementsBucketCount(profile); } updateRedundancy(); LogWriterI18n log = getLogWriter(); if (log.fineEnabled()) { log.fine("Profile removed " + getBucket().getFullPath() + " the member lost " + profile.getDistributedMember() + " Profile : " + profile); } synchronized (this) { updateServerBucketProfile(); } }
final LogWriterI18n logger = this.getLogWriter(); if (logger.finerEnabled()) { logger.finer("setHosting: " + this.toString()
final LogWriterI18n logger = getLogWriter();
final InternalDistributedMember currentPrimary = this.primaryMember.get(); if (currentPrimary != null && currentPrimary.equals(member)) { if (getLogWriter().fineEnabled()) { getLogWriter().fine("[BucketAdvisor.notPrimary] " + member + " for " + this);
.getColocatedChildRegions(regionAdvisor.getPartitionedRegion()); if (colocatedWithList != null) { final LogWriterI18n logger = getLogWriter(); for (PartitionedRegion childPR : colocatedWithList) { Bucket b = childPR.getRegionAdvisor().getBucket(getBucket().getId());
case CLOSED: Exception e = new Exception(LocalizedStrings.BucketAdvisor_ATTEMPTED_TO_CLOSE_BUCKETADVISOR_THAT_IS_ALREADY_CLOSED.toLocalizedString()); this.getLogWriter().warning(LocalizedStrings.BucketAdvisor_ATTEMPTED_TO_CLOSE_BUCKETADVISOR_THAT_IS_ALREADY_CLOSED, e); break; case VOLUNTEERING_HOSTING:
LogWriterI18n log = getLogWriter(); if (log.infoEnabled()) { log.convertToLogWriter().info("Acquired primary lock for BucketID "