Package net.sf.joafip.service

Examples of net.sf.joafip.service.IExclusiveDataAccessSession.open()


    garbageDataIntegrityChecker.check(filePersistence);

    _LOG.debug("garbage sweep");
    filePersistence.garbageSweep("runtime/set");

    session.open();

    assertDeleted(dataRecordIdentifier);
    final Integer integer = (Integer) session.getObject("K0");
    assertNotNull("must have value", integer);
    assertEquals("bad balue", 0, integer.intValue());
View Full Code Here


    // filePersistence.setAutoSaveEventListener(this);
    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();

    session.open();

    int count = 0;
    try {
      final SimpleTreeOp<String> tree = SimpleTreeOp
          .newInstance(instanceFactory);
View Full Code Here

      FilePersistenceDataCorruptedException,
      FilePersistenceNotSerializableException, ProxyException,
      FilePersistenceTooBigForSerializationException {
    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();
    session.open();
    saveDone = false;
    final BobContainer bobContainer = BobContainer.newBobContainer(session
        .getInstanceFactory());
    assertSaved();
    assertTrue("must be a proxy",
View Full Code Here

        getSubstitutionClass(), createSubstituteObjectManager());

    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();

    session.open();

    SubstitutedBob bob = initialBob();
    saveDone = false;
    session.setObject(KEY, bob);
    assertSaved();
View Full Code Here

    // filePersistence.setAutoSaveEventListener(this);
    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();
    final IInstanceFactory instanceFactory = session.getInstanceFactory();

    session.open();

    try {
      final RBTree tree = RBTree.newInstance(instanceFactory);
      session.setObject("tree", tree);
View Full Code Here

      FilePersistenceDataCorruptedException,
      FilePersistenceTooBigForSerializationException {
    final int max = 10000;
    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();
    session.open();
    List<Integer> bigList = new PLinkedList<Integer>(); // bigList instance
    // is in memory
    for (int count = 0; count < max; count++) {
      final int value = aValue(count);
      bigList.add(value); // this make bigList growing in memory
View Full Code Here

      FilePersistenceDataCorruptedException,
      FilePersistenceTooBigForSerializationException {
    final int max = 100000;
    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();
    session.open();
    // List<Integer> bigList = new PLinkedList<Integer>(); // bigList
    // instance
    // // is in memory
    session.setObject("myBigList", new PLinkedList<Integer>());// NOPMD
    session.save();
View Full Code Here

      FilePersistenceDataCorruptedException,
      FilePersistenceTooBigForSerializationException {
    final int max = 10000;
    final IExclusiveDataAccessSession session = filePersistence
        .createExclusiveDataAccessSession();
    session.open();
    // List<Integer> bigList = new PLinkedList<Integer>(); // bigList
    // instance
    // // is in memory
    session.setObject("myBigList", new PLinkedList<Integer>());// NOPMD
    session.save();
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.