Package net.sf.joafip.store.service

Examples of net.sf.joafip.store.service.StoreException


      } else if (Double.class.equals(basicValueClass)) {
        toString = Double.toString((Double) basicValue);
      } else if (Boolean.class.equals(basicValueClass)) {
        toString = Boolean.toString((Boolean) basicValue);
      } else {
        throw new StoreException("not a basic type " + basicValueClass);
      }
    }
    return toString;
  }
View Full Code Here


      }
      output.flush();
      output.close();
      input.close();
    } catch (final IOException exception) {
      throw new StoreException(exception);
    }
  }
View Full Code Here

      storeSaver.resetModificationCount();
      final int numberOfToGarbage = garbageManager.getNumberOfToGarbage();
      storeSaver.saveModification();
      return numberOfToGarbage;
    } catch (GarbageException exception) {
      throw new StoreException(exception);
    }
  }
View Full Code Here

      final List<DataRecordIdentifierRBTNode> toGarbage = garbageManager
          .getToGarbage();
      storeSaver.saveModification();
      return toGarbage;
    } catch (GarbageException exception) {
      throw new StoreException(exception);
    }
  }
View Full Code Here

      final int numberOfGarbageCandidate = garbageManager
          .getNumberOfGarbageCandidate();
      storeSaver.saveModification();
      return numberOfGarbageCandidate;
    } catch (GarbageException exception) {
      throw new StoreException(exception);
    }
  }
View Full Code Here

      final List<DataRecordIdentifierRBTNode> candidate = garbageManager
          .getCandidate();
      storeSaver.saveModification();
      return candidate;
    } catch (GarbageException exception) {
      throw new StoreException(exception);
    }
  }
View Full Code Here

  @Fortest
  public ReferenceLink[] getAllReferenceLink() throws StoreException {
    try {
      return garbageManager.getAllReferenceLink();
    } catch (GarbageException exception) {
      throw new StoreException(exception);
    } catch (ReferenceLinkGarbageException exception) {
      throw new StoreException(exception);
    }
  }
View Full Code Here

      if (LOGGER.isInfoEnabled()) {
        LOGGER.info("end of garbage sweep");
      }

    } catch (GarbageException exception) {
      throw new StoreException(exception);
    } catch (ReferenceLinkGarbageException exception) {
      throw new StoreException(exception);
    } catch (HeapException exception) {
      throw new StoreException(exception);
    } catch (ObjectIOException exception) {
      throw new StoreException(exception);
    } catch (ObjectIOClassNotFoundException exception) {
      throw new StoreClassNotFoundException(exception);
    } catch (ObjectIODataRecordNotFoundException exception) {
      throw new StoreException(exception);
    } catch (ObjectIODataCorruptedException exception) {
      throw new StoreDataCorruptedException(exception);
    } finally {
      if (toPreserveSet != null) {
        try {
View Full Code Here

      while (stopped) {
        try {
          storeMutex.doWait();
          final Throwable throwable = storeMutex.getThrowable();
          if (throwable != null) {
            final StoreException exception = new StoreException(// NOPMD
                throwable);
            throw exception;
          }
        } catch (InterruptedException exception) {
          throw new StoreException(exception);
        }
      }
      if (LOGGER.debugEnabled) {
        LOGGER.debug("start");
      }
View Full Code Here

    while (!stopped) {
      try {
        storeMutex.doWait();
        final Throwable throwable = storeMutex.getThrowable();
        if (throwable != null) {
          final StoreException exception = new StoreException(// NOPMD
              throwable);
          throw exception;
        }
        if (LOGGER.debugEnabled) {
          LOGGER.debug("notification stopped=" + stopped);
        }
      } catch (InterruptedException exception) {
        throw new StoreException(exception);
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.service.StoreException

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.