Examples of HeapRecordableException


Examples of net.sf.joafip.store.service.heaprecordable.HeapRecordableException

    try {
      if (!node.isSentinel()) {
        super.setStateHaveChanged();
      }
    } catch (RBTException exception) {
      throw new HeapRecordableException(exception);
    }
  }
View Full Code Here

Examples of net.sf.joafip.store.service.heaprecordable.HeapRecordableException

    // FIXMELUC ____may be assert not already set
    // (dataRecordIdentifier!=null)
    // ASS-ERT
    if (this.dataRecordIdentifier != null
        && this.dataRecordIdentifier.value != dataRecordIdentifier.value) {
      throw new HeapRecordableException(
          "can not change data record identifier from "
              + this.dataRecordIdentifier + " to "
              + dataRecordIdentifier + " for " + getClass());
    }
    this.dataRecordIdentifier = dataRecordIdentifier;
View Full Code Here

Examples of net.sf.joafip.store.service.heaprecordable.HeapRecordableException

   *
   */
  public void setStateHaveChanged() throws HeapRecordableException {
    if (!stateChanged) {
      if (!loaded && existInFile) {
        throw new HeapRecordableException(
            "can not change state if not loaded and exist in file");
      }
      stateChanged = true;
      if (dataRecordIdentifier != null) {
        /* record this to save at first state change */
 
View Full Code Here

Examples of net.sf.joafip.store.service.heaprecordable.HeapRecordableException

  protected void checkLoaded() throws HeapRecordableException {
    if (existInFile && !loaded
        && !heapRecordableManager.readAndSetState(this)) {
      logger.fatal(FAILED_READ_AND_SET_STATE + dataRecordIdentifier
          + ", " + heapRecordableManager.getReadAndSetStateStatus());
      throw new HeapRecordableException(FAILED_READ_AND_SET_STATE
          + dataRecordIdentifier);

    }
  }
View Full Code Here

Examples of net.sf.joafip.store.service.heaprecordable.HeapRecordableException

      offset = helperBinaryConversion.byteConverter.toBinary(binary,
          offset, true, (byte) garbageCollectorState);
      helperBinaryConversion.booleanConverter.toBinary(binary, offset,
          true, Boolean.valueOf(garbageManagement));
    } catch (BinaryConverterException exception) {
      throw new HeapRecordableException(exception);
    }
  }
View Full Code Here

Examples of net.sf.joafip.store.service.heaprecordable.HeapRecordableException

      nullableAndTypedReferenceConverter.objectFromBinary = null; // NOPMD
      byteConverter.objectFromBinary = null; // NOPMD
      booleanConverter.objectFromBinary = null; // NOPMD
    } catch (BinaryConverterException exception) {
      throw new HeapRecordableException(exception);
    }
  }
View Full Code Here

Examples of net.sf.joafip.store.service.heaprecordable.HeapRecordableException

  }

  private void assertValueDefined(final AbstractConverter binaryConverter)
      throws HeapRecordableException {
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new HeapRecordableException("value must be defined");
    }
  }
View Full Code Here

Examples of net.sf.joafip.store.service.heaprecordable.HeapRecordableException

      try {
        if (node.getElement().equals(dataRecordIdentifier)) {
          return true;// NOPMD
        }
      } catch (RBTException exception) {
        throw new HeapRecordableException(exception);
      }
    }
    return false;
  }
View Full Code Here

Examples of net.sf.joafip.store.service.heaprecordable.HeapRecordableException

      try {
        if (node.getElement().equals(dataRecordIdentifier)) {
          return true;// NOPMD
        }
      } catch (RBTException exception) {
        throw new HeapRecordableException(exception);
      }
    }
    return false;
  }
View Full Code Here

Examples of net.sf.joafip.store.service.heaprecordable.HeapRecordableException

    int offset = 0;
    try {
      offset = helperBinaryConversion.integerConverter.toBinary(binary,
          offset, true, classNameIdentifier);
    } catch (BinaryConverterException exception) {
      throw new HeapRecordableException(exception);
    }
    offset = helperBinaryConversion.nullableAndTypedReferenceConverter
        .toBinary(binary, offset, true,
            nextClassNameRecordDataRecordIdentifier);
    binary[offset++] = (byte) className.length;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.