Package net.sf.joafip.performance.items.entity

Examples of net.sf.joafip.performance.items.entity.ItemList.removeItem()


    String line;
    while ((line = reader.readLine()) != null) {// NOPMD
      reader.readLine();// skip one
      final int identifier = Integer.parseInt(line);
      final ItemList itemList = getItemList(session);
      final Item item = itemList.removeItem(identifier);
      if (item == null) {
        Exception closeException=null;
        try {
          reader.close();
        } catch (Exception exception) {
View Full Code Here


    int count = 0;
    String line = reader.readLine();
    while (line != null) { // NOPMD
      count++;
      final int identifier = Integer.parseInt(line);
      Item removed = itemList.removeItem(identifier);
      if( removed==null){
        logger.error("not found "+identifier);
      }
      if (count % BATCH_SIZE == BATCH_SIZE - 1) {
        session.close(EnumFilePersistenceCloseAction.SAVE);
View Full Code Here

    insertLogWriter.close();
    session.closeAndWait(EnumFilePersistenceCloseAction.SAVE);

    session.open();
    final ItemList itemList = getItemList(session);
    itemList.removeItem(NUMBER_OF_ITEM);
    session.closeAndWait(EnumFilePersistenceCloseAction.SAVE);

    FILE_FOR_LUC.delete();

    logSize(count, -1, duration);
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.