Package net.sf.joafip.kvstore.service

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


  }

  public File getStateOkFlagFile() throws HeapException {
    if (crashSafeMode) {
      if (backupDataFile == null) {
        throw new HeapException(
            "crash safe mode set but state ok for data file not defined");
      }
    } else {
      throw new HeapException(
          "do not use state ok for data file is crash safe mode not set");
    }
    return stateOkFlagFile;
  }
View Full Code Here


    }
    fileAccessParameter.setMaxRetry(maxFileOperationRetry);
    fileAccessParameter.setRetryMsDelay(fileOperationRetryMsDelay);
    if (EnumFileAccessMode.MAPPED_RANDOM_FILE_ACCESS.equals(fileAccessMode)) {
      if (maxBufferSize == null) {
        throw new HeapException("max buffer size parameter not set");
      }
      fileAccessParameter.setMaxBufferSize(maxBufferSize);
      if (maxNumberOfBuffer == null) {
        throw new HeapException(
            "max number of buffers parameter not set");
      }
      fileAccessParameter.setMaxNumberOfBuffer(maxNumberOfBuffer);
    }
    return fileAccessParameter;
View Full Code Here

    return -1L;
  }

  @Override
  public void writeToFile() throws HeapException {
    throw new HeapException(NULL_FILE_STORABLE_CAN_NOT_BE_IN_FILE);
  }
View Full Code Here

    throw new HeapException(NULL_FILE_STORABLE_CAN_NOT_BE_IN_FILE);
  }

  @Override
  public byte[] writeToFileGetWrited() throws HeapException {
    throw new HeapException(NULL_FILE_STORABLE_CAN_NOT_BE_IN_FILE);
  }
View Full Code Here

    throw new HeapException(NULL_FILE_STORABLE_CAN_NOT_BE_IN_FILE);
  }

  @Override
  public void readFromFile() throws HeapException {
    throw new HeapException(NULL_FILE_STORABLE_CAN_NOT_BE_IN_FILE);
  }
View Full Code Here

    // no implementation
  }

  @Override
  public void setValueIsChangedValueToSave() throws HeapException {
    throw new HeapException(NULL_FILE_STORABLE_CAN_NOT_BE_IN_FILE);
  }
View Full Code Here

    return true;
  }

  @Override
  public int getRecordSize() throws HeapException {
    throw new HeapException(NULL_FILE_STORABLE_CAN_NOT_BE_IN_FILE);
  }
View Full Code Here

      readAndCheckCrc32(0);
    }

    @Override
    public long getPreviousRecordPositionInFile() throws HeapException {
      throw new HeapException("unsupported");
    }
View Full Code Here

      throw new HeapException("unsupported");
    }

    @Override
    public int getRecordSize() throws HeapException {
      throw new HeapException("unsupported");
    }
View Full Code Here

    this.fileAccessMode = fileAccessMode;
  }

  public EnumFileAccessMode getFileAccessMode() throws HeapException {
    if (fileAccessMode == null) {
      throw new HeapException("missing file access mode parameter");
    }
    return fileAccessMode;
  }
View Full Code Here

TOP

Related Classes of net.sf.joafip.kvstore.service.HeapException

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.