Package com.orientechnologies.common.io

Examples of com.orientechnologies.common.io.OIOException


    dgram = new DatagramPacket(recvBuffer, recvBuffer.length);
    try {
      socket = new MulticastSocket(iManager.networkMulticastPort);
      socket.joinGroup(iManager.networkMulticastAddress);
    } catch (IOException e) {
      throw new OIOException(
          "Can't startup the Discovery Listener service to catch distributed server nodes, probably the IP MULTICAST is disabled in current network configuration: "
              + e.getMessage());
    }

    start();
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

            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

      if (buffer.length() > 0)
        buffer.append(',');
      buffer.append(server.getKey());
    }

    throw new OIOException("Can't connect to any configured remote nodes: " + buffer);
  }
View Full Code Here

      if (buffer.length() > 0)
        buffer.append(',');
      buffer.append(server.getKey());
    }

    throw new OIOException("Can't connect to any configured remote nodes: " + buffer);
  }
View Full Code Here

      if (buffer.length() > 0)
        buffer.append(',');
      buffer.append(server.getKey());
    }

    throw new OIOException("Can't connect to any configured remote nodes: " + buffer);
  }
View Full Code Here

    dgram = new DatagramPacket(recvBuffer, recvBuffer.length);
    try {
      socket = new MulticastSocket(iManager.networkMulticastPort);
      socket.joinGroup(iManager.networkMulticastAddress);
    } catch (IOException e) {
      throw new OIOException(
          "Can't startup the Discovery Listener service to catch distributed server nodes, probably the IP MULTICAST is disabled in current network configuration: "
              + e.getMessage());
    }

    start();
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

      start = iIndex;
      final int byteRead = input.read(buffer);
      end = start + byteRead;
      current = start;
    } catch (IOException e) {
      throw new OIOException("Error in read", e);
    }
  }
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.