/** * @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); } }
/** * @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 final void enableOrderedResultStreaming(boolean enable) { Assert.fail("ordering expected to be invoked on sender and not receiver"); }
public final void enableOrderedResultStreaming(boolean enable) { Assert.fail("ordering expected to be invoked on sender and not receiver"); }
public final void enableOrderedResultStreaming(boolean enable) { Assert.fail("ordering expected to be invoked on sender and not receiver"); }
/** * Get the next bit mask position while checking that the value should not * exceed given maximum value. */ protected static final int getNextBitMask(int mask, final int maxValue) { mask <<= 1; if (mask > maxValue) { Assert.fail("exhausted bit flags with all available bits: 0x" + Integer.toHexString(mask) + ", max: 0x" + Integer.toHexString(maxValue)); } return mask; }
/** * Get the next bit mask position while checking that the value should not * exceed given maximum value. */ protected static final int getNextBitMask(int mask, final int maxValue) { mask <<= 1; if (mask > maxValue) { Assert.fail("exhausted bit flags with all available bits: 0x" + Integer.toHexString(mask) + ", max: 0x" + Integer.toHexString(maxValue)); } return mask; }
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); }
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); }
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); }
public void addRemoteEnum(int enumId, EnumInfo newInfo) { EnumInfo oldInfo = this.idToEnum.get(enumId); if(oldInfo == null) { this.distributedTypeRegistry.addRemoteEnum(enumId, newInfo); this.idToEnum.put(enumId, newInfo); this.enumInfoToId.put(newInfo, enumId); } else { //TODO - this might be overkill, but enum definition should be rare enough. if(!oldInfo.equals(newInfo)) { Assert.fail("Old enum does not equal new enum for the same id. oldEnum=" + oldInfo + " new enum=" + newInfo); } } }
@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); }
@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); }
public void addRemoteEnum(int enumId, EnumInfo newInfo) { String internalEnumId = getInternalPdxTypeID(enumId); EnumInfo oldInfo = this.idToEnum.get(internalEnumId); if(oldInfo == null) { this.distributedTypeRegistry.addRemoteEnum(enumId, newInfo); this.idToEnum.put(internalEnumId, newInfo); this.enumInfoToId.put(newInfo, internalEnumId); } else { //TODO - this might be overkill, but enum definition should be rare enough. if(!oldInfo.equals(newInfo)) { Assert.fail("Old enum does not equal new enum for the same id. oldEnum=" + oldInfo + " new enum=" + newInfo); } } }
public void addValueAndCheckType(DataValueDescriptor value) { if (value.getTypeFormatId() != resultDescriptor.getDVDTypeFormatId()) { Assert.fail("expected type=" + resultDescriptor.toString() + " incoming=" + value.getTypeName()); } this.values.add(value); }
public void addValueAndCheckType(DataValueDescriptor value) { if (value.getTypeFormatId() != resultDescriptor.getDVDTypeFormatId()) { Assert.fail("expected type=" + resultDescriptor.toString() + " incoming=" + value.getTypeName()); } this.values.add(value); }
public void addValueAndCheckType(DataValueDescriptor value) { if (value.getTypeFormatId() != resultDescriptor.getDVDTypeFormatId()) { Assert.fail("expected type=" + resultDescriptor.toString() + " incoming=" + value.getTypeName()); } this.values.add(value); }
public HashEntry<Object, Object> newEntry(final Object key, final int hash, final HashEntry<Object, Object> next, final Object value) { final AbstractRegionEntry entry = (AbstractRegionEntry)value; // if hash is already set then assert that the two should be same final int entryHash = entry.getEntryHash(); if (hash == 0 || entryHash != 0) { if (entryHash != hash) { Assert.fail("unexpected mismatch of hash, expected=" + hash + ", actual=" + entryHash + " for " + entry); } } entry.setEntryHash(hash); entry.setNextEntry(next); return entry; }
public HashEntry<Object, Object> newEntry(final Object key, final int hash, final HashEntry<Object, Object> next, final Object value) { final AbstractRegionEntry entry = (AbstractRegionEntry)value; // if hash is already set then assert that the two should be same final int entryHash = entry.getEntryHash(); if (hash == 0 || entryHash != 0) { if (entryHash != hash) { Assert.fail("unexpected mismatch of hash, expected=" + hash + ", actual=" + entryHash + " for " + entry); } } entry.setEntryHash(hash); entry.setNextEntry(next); return entry; }
private static String getLeaderRegionPath(String regionPath, RegionAttributes regionAttributes, Cache cache) { String colocated; while (regionAttributes.getPartitionAttributes() != null && (colocated = regionAttributes.getPartitionAttributes().getColocatedWith()) != null) { // Do not waitOnInitialization() for PR GemFireCacheImpl gfc = (GemFireCacheImpl) cache; Region colocatedRegion = gfc.getPartitionedRegion(colocated, false); if (colocatedRegion == null) { Assert.fail("Could not find parent region " + colocated + " for " + regionPath); } regionAttributes = colocatedRegion.getAttributes(); regionPath = colocatedRegion.getFullPath(); } return regionPath; }