Package com.orientechnologies.common.io

Examples of com.orientechnologies.common.io.OIOException


  public boolean ready() {
    try {
      return current < end || input.ready();
    } catch (IOException e) {
      throw new OIOException("Error in ready", e);
    }
  }
View Full Code Here


            maxMemory);
      }
    } while (entry == null && maxMemory > MIN_MEMORY);

    if (entry == null)
      throw new OIOException("You can't access to the file portion " + iBeginOffset + "-" + iBeginOffset + iSize + " bytes");

    totalMemory += bufferSize;
    bufferPoolLRU.add(entry);

    p = (position + 2) * -1;
 
View Full Code Here

    return offset;
  }

  protected long checkRegions(final long iOffset, final int iLength) {
    if (iOffset + iLength > filledUpTo)
      throw new OIOException("You can't access outside the file size (" + filledUpTo + " bytes). You've requested portion "
          + iOffset + "-" + (iOffset + iLength) + " bytes. File: " + toString());

    return iOffset;// + HEADER_SIZE;
  }
View Full Code Here

    return offset;
  }

  protected long checkRegions(final long iOffset, final int iLength) {
    if (iOffset + iLength > filledUpTo)
      throw new OIOException("You can't access outside the file size (" + filledUpTo + " bytes). You've requested portion "
          + iOffset + "-" + (iOffset + iLength) + " bytes. File: " + toString());

    return iOffset;// + HEADER_SIZE;
  }
View Full Code Here

            maxMemory);
      }
    } while (entry == null && maxMemory > MIN_MEMORY);

    if (entry == null)
      throw new OIOException("You can't access to the file portion " + iBeginOffset + "-" + iBeginOffset + iSize + " bytes");

    totalMemory += bufferSize;
    bufferPoolLRU.add(entry);

    p = (position + 2) * -1;
 
View Full Code Here

          } // end if: quartet built
        } // end if: equals sign or better
      } // end if: white space, equals sign or better
      else {
        // There's a bad input character in the Base64 stream.
        throw new OIOException(String.format("Bad Base64 input character decimal %d in array position %d", (source[i]) & 0xFF, i));
      } // end else:
    } // each input character

    byte[] out = new byte[outBuffPosn];
    System.arraycopy(outBuff, 0, out, 0, outBuffPosn);
View Full Code Here

      try {
        final ODocument clusterConfig = getClusterConfiguration(iConnection.database.getName());
        byte[] serializedDocument = clusterConfig != null ? clusterConfig.toStream() : null;
        ((OChannelBinary) iConnection.protocol.getChannel()).writeBytes(serializedDocument);
      } catch (IOException e) {
        throw new OIOException("Error on marshalling of cluster configuration", e);
      }
  }
View Full Code Here

    return offset;
  }

  protected long checkRegions(final long iOffset, final int iLength) {
    if (iOffset + iLength > filledUpTo)
      throw new OIOException("You can't access outside the file size (" + filledUpTo + " bytes). You've requested portion "
          + iOffset + "-" + (iOffset + iLength) + " bytes. File: " + toString());

    return iOffset;// + HEADER_SIZE;
  }
View Full Code Here

     } else {
       ODatabaseRecordThreadLocal.INSTANCE.remove();
       if (requestType != OChannelBinaryProtocol.REQUEST_DB_CLOSE && requestType != OChannelBinaryProtocol.REQUEST_SHUTDOWN) {
         OLogManager.instance().debug(this, "Found unknown session %d, shutdown current connection", clientTxId);
         shutdown();
         throw new OIOException("Found unknown session " + clientTxId);
       }
     }

     OServerPluginHelper.invokeHandlerCallbackOnBeforeClientRequest(server, connection, (byte) requestType);
   }
View Full Code Here

          } // end if: quartet built
        } // end if: equals sign or better
      } // end if: white space, equals sign or better
      else {
        // There's a bad input character in the Base64 stream.
        throw new OIOException(String.format("Bad Base64 input character decimal %d in array position %d", (source[i]) & 0xFF, i));
      } // end else:
    } // each input character

    byte[] out = new byte[outBuffPosn];
    System.arraycopy(outBuff, 0, out, 0, outBuffPosn);
View Full Code Here

TOP

Related Classes of com.orientechnologies.common.io.OIOException

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.