Package net.sf.joafip.store.entity.garbage

Examples of net.sf.joafip.store.entity.garbage.DataRecordIdentifierRBTNode


   * @throws GarbageException
   */
  public DataRecordIdentifier pollFirstCandidate() throws GarbageException {
    final DataRecordIdentifier dataRecordIdentifier;
    try {
      final DataRecordIdentifierRBTNode first =
      /**/(DataRecordIdentifierRBTNode) garbageCandidateTree.first();
      if (first == null) {
        dataRecordIdentifier = null;
        if (LOGGER.debugEnabled) {
          LOGGER.debug("no first garbage candidate");
        }
      } else {
        dataRecordIdentifier = first.getElement();
        final DataRecordIdentifier firstDataRecordIdentifier = first
            .getDataRecordIdentifier();
        garbageCandidateTree.deleteExistingNode(first);
        heapRecordableManager.delete(firstDataRecordIdentifier);
        if (LOGGER.debugEnabled) {
          LOGGER.debug("object data record #" + dataRecordIdentifier
View Full Code Here


  @Fortest
  public List<DataRecordIdentifierRBTNode> getCandidate()
      throws GarbageException {
    final List<DataRecordIdentifierRBTNode> list =
    /**/new LinkedList<DataRecordIdentifierRBTNode>();
    DataRecordIdentifierRBTNode node;
    try {
      for (IRBTNode<DataRecordIdentifier> rbtNode : garbageCandidateTree) {
        node = (DataRecordIdentifierRBTNode) rbtNode;
        list.add(node);
      }
View Full Code Here

  public boolean addToVisit(final DataRecordIdentifier dataRecordIdentifier)
      throws GarbageException {
    try {
      final boolean added;
      if (toVisitTree.search(dataRecordIdentifier) == null) {
        final DataRecordIdentifierRBTNode node = new DataRecordIdentifierRBTNode(
            helperBinaryConversion, heapRecordableManager);
        heapRecordableManager.attach(node);
        node.setElement(dataRecordIdentifier);
        toVisitTree.append(node);
        added = true;
      } else {
        added = false;
      }
View Full Code Here

  }

  public DataRecordIdentifier pollFirstToVisit() throws GarbageException {
    final DataRecordIdentifier dataRecordIdentifier;
    try {
      final DataRecordIdentifierRBTNode first =
      /**/(DataRecordIdentifierRBTNode) toVisitTree.first();
      if (first == null) {
        dataRecordIdentifier = null;
      } else {
        dataRecordIdentifier = first.getElement();
        final DataRecordIdentifier firstDataRecordIdentifier = first
            .getDataRecordIdentifier();
        toVisitTree.deleteExistingNode(first);
        heapRecordableManager.delete(firstDataRecordIdentifier);
      }
    } catch (RBTException exception) {
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.entity.garbage.DataRecordIdentifierRBTNode

Copyright © 2018 www.massapicom. 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.