Tabnine Logo
Assert.fail
Code IndexAdd Tabnine to your IDE (free)

How to use
fail
method
in
com.gemstone.gemfire.internal.Assert

Best Java code snippets using com.gemstone.gemfire.internal.Assert.fail (Showing top 20 results out of 315)

origin: org.apache.geode/gemfire-core

/**
 * @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);
 }
}
origin: io.snappydata/gemfire-core

/**
 * @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);
 }
}
origin: io.snappydata/gemfirexd-core

public final void enableOrderedResultStreaming(boolean enable) {
 Assert.fail("ordering expected to be invoked on sender and not receiver");
}
origin: io.snappydata/snappydata-store-core

public final void enableOrderedResultStreaming(boolean enable) {
 Assert.fail("ordering expected to be invoked on sender and not receiver");
}
origin: io.snappydata/gemfirexd

public final void enableOrderedResultStreaming(boolean enable) {
 Assert.fail("ordering expected to be invoked on sender and not receiver");
}
origin: io.snappydata/gemfire-core

/**
 * 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;
}
origin: org.apache.geode/gemfire-core

/**
 * 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;
}
origin: io.snappydata/snappydata-store-core

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);
}
origin: io.snappydata/gemfirexd-core

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);
}
origin: io.snappydata/gemfirexd

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);
}
origin: org.apache.geode/gemfire-core

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);
  }
 }
}
origin: io.snappydata/gemfire-core

@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);
}
origin: org.apache.geode/gemfire-core

@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);
}
origin: io.snappydata/gemfire-core

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);
  }
 }
}
origin: io.snappydata/gemfirexd-core

public void addValueAndCheckType(DataValueDescriptor value) {
 if (value.getTypeFormatId() != resultDescriptor.getDVDTypeFormatId()) {
  Assert.fail("expected type=" + resultDescriptor.toString() + " incoming="
    + value.getTypeName());
 }
 this.values.add(value);
}
origin: io.snappydata/gemfirexd

public void addValueAndCheckType(DataValueDescriptor value) {
 if (value.getTypeFormatId() != resultDescriptor.getDVDTypeFormatId()) {
  Assert.fail("expected type=" + resultDescriptor.toString() + " incoming="
    + value.getTypeName());
 }
 this.values.add(value);
}
origin: io.snappydata/snappydata-store-core

public void addValueAndCheckType(DataValueDescriptor value) {
 if (value.getTypeFormatId() != resultDescriptor.getDVDTypeFormatId()) {
  Assert.fail("expected type=" + resultDescriptor.toString() + " incoming="
    + value.getTypeName());
 }
 this.values.add(value);
}
origin: io.snappydata/gemfire-core

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;
}
origin: org.apache.geode/gemfire-core

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;
}
origin: org.apache.geode/gemfire-core

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;
}
com.gemstone.gemfire.internalAssertfail

Popular methods of Assert

  • assertTrue
  • assertHoldsLock
    This is a workaround for X bug 38288. JRockit can throw a NullPointerException from Thread.holdsLock
  • throwError

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JButton (javax.swing)
  • JTable (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now