PrimaryInfo(boolean isHosting, boolean isPrimary, String hToken) { this.isHosting = isHosting; this.isPrimary = isPrimary; this.hostToken = hToken; if (this.isPrimary) { Assert.assertTrue(this.isHosting); } } }
/** * @see HashEntry#setMapValue(Object) */ public final void setMapValue(final Object newValue) { if (this != newValue) { Assert.fail("AbstractRegionEntry#setMapValue: unexpected setMapValue " + "with newValue=" + newValue + ", this=" + this); } }
public DLockGrantor getGrantor() { Assert.assertHoldsLock(this.destroyLock,false); synchronized (this.lockGrantorIdLock) { return this.grantor; } }
/** * Assert that a boolean value is true. * @param b the boolean value to check * @throws InternalGemFireError if false */ public static void assertTrue(boolean b) { if (!b) { throwError(null); } }
public static void assertTrue(boolean b, boolean message) { if (!b) { throwError(Boolean.valueOf(message)); } }
@Override protected void setMemoryThresholdFlag(MemoryEvent event) { Assert.assertTrue(false); //Bucket regions are not registered with ResourceListener, //and should not get this event }
/** * @see HashEntry#setMapValue(Object) */ public final void setMapValue(final Object newValue) { if (this != newValue) { Assert.fail("AbstractRegionEntry#setMapValue: unexpected setMapValue " + "with newValue=" + newValue + ", this=" + this); } }
protected boolean isCurrentlyOrIsMakingLockGrantor() { Assert.assertHoldsLock(this.destroyLock,false); synchronized (this.lockGrantorIdLock) { return this.lockGrantorId != null && this.lockGrantorId.isLocal(getSerialNumber()); } }
public static void assertTrue(boolean b, char message) { if (!b) { throwError(Character.valueOf(message)); } }
/** establishes the logwriter used by the conduit */ public void setLogger(LogWriterI18n logger) { Assert.assertTrue(logger != null); this.logger = logger; }
private ExtraTableInfo getExtraTableInfo(Properties properties, String schemaName) { // for temporary tables use null ExtraTableInfo and not base table's if (this.id.getSegmentId() == ContainerHandle.TEMPORARY_SEGMENT) { if (!GfxdConstants.SESSION_SCHEMA_NAME.equals(schemaName)) { Assert.fail("Expected schemaName for temporary table to be " + GfxdConstants.SESSION_SCHEMA_NAME + " but got " + schemaName); } return null; } return (ExtraTableInfo)properties.get(GfxdConstants.GFXD_DTDS); }
boolean isCurrentlyOrIsMakingLockGrantor() { Assert.assertHoldsLock(this.destroyLock,false); synchronized (this.lockGrantorIdLock) { return this.lockGrantorId != null && this.lockGrantorId.isLocal(getSerialNumber()); } }
public static void assertTrue(boolean b, float message) { if (!b) { throwError(new Float(message)); } }
private static Object checkName(Object name) { Assert.assertTrue(name != null, "Unexpected null name for GfxdReentrantReadWriteLock"); return name; }
private ExtraTableInfo getExtraTableInfo(Properties properties, String schemaName) { // for temporary tables use null ExtraTableInfo and not base table's if (this.id.getSegmentId() == ContainerHandle.TEMPORARY_SEGMENT) { if (!GfxdConstants.SESSION_SCHEMA_NAME.equals(schemaName)) { Assert.fail("Expected schemaName for temporary table to be " + GfxdConstants.SESSION_SCHEMA_NAME + " but got " + schemaName); } return null; } return (ExtraTableInfo)properties.get(GfxdConstants.GFXD_DTDS); }
/** exchange profiles to initialize this advisor */ private void exchangeProfiles() { Assert.assertHoldsLock(this,false); // causes deadlock Assert.assertHoldsLock(this.initializeLock,true); DistributionAdvisee advisee = getAdvisee(); new UpdateAttributesProcessor(advisee).distribute(true); setInitialized(); if (advisee instanceof LocalRegion) { ((LocalRegion)advisee).setProfileExchanged(true); } }
public static void assertTrue(boolean b, char message) { if (!b) { throwError(new Character(message)); } }
PrimaryInfo(boolean isHosting, boolean isPrimary, String hToken) { this.isHosting = isHosting; this.isPrimary = isPrimary; this.hostToken = hToken; if (this.isPrimary) { Assert.assertTrue(this.isHosting); } } }
@Override public DiskEntry initializeRecoveredEntry(Object key, RecoveredEntry re) { if(re.getValue() == null) { Assert.fail("Value should not have been null for key " + key); } currentOplogEntries.put(key, re); return super.initializeRecoveredEntry(key, re); }
protected boolean isCurrentlyLockGrantor() { Assert.assertHoldsLock(this.destroyLock,false); synchronized (this.lockGrantorIdLock) { return this.lockGrantorId != null && this.lockGrantorId.isLocal(getSerialNumber()) && this.grantor != null && this.grantor.isReady(); } }