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

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


    super(name);
  }

  @Override
  protected void setUp() throws Exception {// NOPMD
    graph = new ReferenceLinkGraph();
    super.setUp();
  }
View Full Code Here


      final ObjectIOManager objectIOManager = filePersistence
          .getObjectIOManager();
      final IHeapDataManager dataManager = filePersistence
          .getDataManager();

      referenceLinkGraphFromStorage = new ReferenceLinkGraph();

      final Set<DataRecordIdentifier> forObjectDatarecordIdentifierSet = dataManager
          .getDataRecordIdentifierSet();
      forObjectDatarecordIdentifierSet
          .remove(new DataRecordIdentifier(0));

      Set<DataRecordIdentifier> setToUpdate = new TreeSet<DataRecordIdentifier>();
      filePersistence.usedForGarbageManagement(setToUpdate);
      filePersistence.usedForClassNameManagement(setToUpdate);
      forObjectDatarecordIdentifierSet.removeAll(setToUpdate);

      for (DataRecordIdentifier referencingDataRecordIdentifier : forObjectDatarecordIdentifierSet) {
        final ObjectLinkTreeNode objectLinkTreeNode = objectIOManager
            .getObjectLinkTreeNode(referencingDataRecordIdentifier);
        final DataRecordIdentifier[] referencedList = objectLinkTreeNode
            .getReferencedList();
        referenceLinkGraphFromStorage.addReferenced(
            referencingDataRecordIdentifier, referencedList);
      }

      /* graph from storage content */
      referenceLinkGraphFromStorage
          .compute(StoreForTest.IDENTIFIER_FOR_ROOT);

      /* graph from link informations */

      referenceLinkGraphFromLinkInfo = new ReferenceLinkGraph();

      for (ReferenceLink referenceLink : referenceLinks) {
        final DataRecordIdentifier referencedDataRecordIdentifier = referenceLink
            .getReferencedDataRecordIdentifier();
        TestCase.assertTrue("referenced not in storage", dataManager
View Full Code Here

TOP

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

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.