Examples of HeapRuntimeException


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

          byteArrayOutputStream);
      outputStream.writeObject(value);
      outputStream.close();
      return byteArrayOutputStream.toByteArray();
    } catch (Exception exception) {
      throw new HeapRuntimeException("creating key", exception);
    }
  }
View Full Code Here

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

          byteArrayInputStream);
      final Object value = objectInputStream.readObject();
      objectInputStream.close();
      return (V) value;
    } catch (Exception exception) {
      throw new HeapRuntimeException("unmarshalling", exception);
    }
  }
View Full Code Here

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

        readData = heapDataManager.readDataRecord(dataRecordIdentifier);
        if (poll) {
          heapDataManager.deleteDataRecord(dataRecordIdentifier);
        }
      } catch (HeapException exception) {
        throw new HeapRuntimeException(exception);
      }
      entry = createEntry(key, unmarshallValue(readData));
    }
    return entry;
  }
View Full Code Here

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

      key = null;
    } else {
      try {
        key = (K) dataRecordIdentifier.getKey();
      } catch (HeapException exception) {
        throw new HeapRuntimeException(exception);
      }
    }
    return key;
  }
View Full Code Here

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

    super();
    this.heapFileDataManager=heapFileDataManager;
    try {
      next=heapFileDataManager.firstDataRecordIdentifier();
    } catch (HeapException exception) {
      throw new HeapRuntimeException(exception);
    }
  }
View Full Code Here

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

    }
    final DataRecordIdentifier result = next;
    try {
      next=heapFileDataManager.nextDataRecordIdentifier(next);
    } catch (HeapException exception) {
      throw new HeapRuntimeException(exception);
    }
    removable=result;
    return result;
  }
View Full Code Here

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

      throw new IllegalStateException();
    }
    try {
      heapFileDataManager.deleteDataRecord(removable);
    } catch (HeapException exception) {
      throw new HeapRuntimeException(exception);
    }
    removable=null;
  }
View Full Code Here

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

  @Override
  public Iterator<DataRecordIdentifier> iterator() {
    try {
      return heapDataManagerForSet.dataRecordIterator();
    } catch (HeapException exception) {
      throw new HeapRuntimeException(exception);
    }
  }
View Full Code Here

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

  @Override
  public int size() {
    try {
      return heapDataManagerForSet.getNumberOfDataRecord();
    } catch (HeapException exception) {
      throw new HeapRuntimeException(exception);
    }
  }
View Full Code Here

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

  public boolean contains(final Object object) {
    final DataRecordIdentifier dataRecordIdentifier = (DataRecordIdentifier) object;
    try {
      return heapDataManagerForSet.hasDataRecord(dataRecordIdentifier);
    } catch (HeapException exception) {
      throw new HeapRuntimeException(exception);
    }
  }
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.