public static MemoryAllocator createOffHeapStorage(StatisticsFactory sf,long offHeapMemorySize,DistributedSystem system){
  if (offHeapMemorySize == 0 || Boolean.getBoolean(InternalLocator.FORCE_LOCATOR_DM_TYPE)) {
    return null;
  }
  if (offHeapMemorySize < MIN_SLAB_SIZE) {
    throw new IllegalArgumentException("The amount of off heap memory must be at least " + MIN_SLAB_SIZE + " but it was set to "+ offHeapMemorySize);
  }
  validateVmCompatibility();
  if (system == null) {
    throw new IllegalArgumentException("InternalDistributedSystem is null");
  }
  OutOfOffHeapMemoryListener ooohml=new DisconnectingOutOfOffHeapMemoryListener((InternalDistributedSystem)system);
  return basicCreateOffHeapStorage(sf,offHeapMemorySize,ooohml);
}

public static MemoryAllocator createOffHeapStorage ( StatisticsFactory sf , long offHeapMemorySize , DistributedSystem system ) { if ( offHeapMemorySize == 0 || Boolean . getBoolean ( InternalLocator . FORCE_LOCATOR_DM_TYPE ) ) { return null ; } if ( offHeapMemorySize < MIN_SLAB_SIZE ) { throw new IllegalArgumentException ( "The amount of off heap memory must be at least " + MIN_SLAB_SIZE + " but it was set to " + offHeapMemorySize ) ; } validateVmCompatibility ( ) ; if ( system == null ) { throw new IllegalArgumentException ( "InternalDistributedSystem is null" ) ; } OutOfOffHeapMemoryListener ooohml = new DisconnectingOutOfOffHeapMemoryListener ( ( InternalDistributedSystem ) system ) ; return basicCreateOffHeapStorage ( sf , offHeapMemorySize , ooohml ) ; }
constructs a memoryallocator for off - heap storage .
