Examples of IHeapDataManager


Examples of net.sf.joafip.kvstore.service.IHeapDataManager

  protected AbstractStoreDelegatingToDataManager(
      final StoreProperties storeProperties) throws StoreException {
    super();

    final IHeapDataManager dataManager = storeProperties.getDataManager();
    if (dataManager == null) {
      try {
        final String dataFileName = storeProperties.getDataFileName();
        final String toUseDataFileName = dataFileName == null ? STORE_DATA
            : dataFileName;
View Full Code Here

Examples of net.sf.joafip.kvstore.service.IHeapDataManager

  private final void initialize(final int currentDataModelIdentifier,
      final InputStreamAndSource dataModelConversionDefInputStream)
      throws StoreException {

    this.currentDataModelIdentifier = currentDataModelIdentifier;
    final IHeapDataManager dataManager = getDataManager();
    if (dataManager == null) {
      throw new StoreException("data manager must be defined");
    }
    heapRecordableManager = new HeapRecordableManager(dataManager);
    helperBinaryConversion = new HelperBinaryConversion();
View Full Code Here

Examples of net.sf.joafip.kvstore.service.IHeapDataManager

            storeSaver.performModificationDone();
          }
        }
      }

      final IHeapDataManager dataManager = storeSaver.getDataManager();
      if (LOGGER.isInfoEnabled()) {
        final int numberOfDataRecord = dataManager
            .getNumberOfDataRecord();
        LOGGER.info("total number of data record " + numberOfDataRecord
            + ", " + toPreserveSet.size() + " to preserve");
      }
      final Iterator<DataRecordIdentifier> iterator = dataManager
          .dataRecordIterator();
      garbageStartNotify();
      while (iterator.hasNext()) {
        final DataRecordIdentifier existing = iterator.next();
        garbageManager.removeFromCandidateAndOrFromToGarbage(existing);
        if (!toPreserveSet.contains(existing)) {
          if (linkRecordManager == null) {
            dataManager.deleteDataRecord(existing);
          } else {
            linkRecordManager
                .removeLinkIfExist(existing/* referenced */);
            final ObjectLinkTreeNode objectLinkTreeNode = objectIOManager
                .getObjectLinkTreeNode(existing);
            dataManager.deleteDataRecord(existing);
            final DataRecordIdentifier[] referencedList = objectLinkTreeNode
                .getReferencedList();
            for (DataRecordIdentifier referenced : referencedList) {
              removeLink(existing/* referencing */, referenced);
            }
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.