Examples of ONetworkProtocolException


Examples of com.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolException

    default:
      data.commandInfo = "Command not supported";
      OLogManager.instance().error(this, "Request not supported. Code: " + lastRequestType);
      channel.clearInput();
      sendError(lastClientTxId, new ONetworkProtocolException("Request not supported. Code: " + lastRequestType));
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolException

    synchronized (networkPool) {
      final int beginCursor = networkPoolCursor;

      while (network == null) {
        if (networkPool.size() == 0)
          throw new ONetworkProtocolException("Connection pool closed");

        network = networkPool.get(networkPoolCursor);
        if (network.getLockWrite().tryLock())
          break;
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolException

        break;
      } catch (Exception e) {
      }

    if (channel == null)
      throw new ONetworkProtocolException("Can't connect to server host '" + networkAddress + "', ports: "
          + Arrays.toString(networkPort));

    channel.writeByte(OChannelBinaryProtocol.REQUEST_SHUTDOWN);
    channel.writeInt(0);
    channel.writeString(OServerConfiguration.SRV_ROOT_ADMIN);
    channel.writeString(rootPassword);
    channel.flush();

    if (channel.readByte() == OChannelBinaryProtocol.RESPONSE_STATUS_ERROR) {
      channel.readInt();
      channel.readString();
      throw new ONetworkProtocolException(channel.readString());
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolException

    default:
      data.commandInfo = "Command not supported";
      OLogManager.instance().error(this, "Request not supported. Code: " + lastRequestType);
      channel.clearInput();
      sendError(lastClientTxId, new ONetworkProtocolException("Request not supported. Code: " + lastRequestType));
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolException

    default:
      data.commandInfo = "Command not supported";
      OLogManager.instance().error(this, "Request not supported. Code: " + lastRequestType);
      channel.clearInput();
      sendError(lastClientTxId, new ONetworkProtocolException("Request not supported. Code: " + lastRequestType));
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolException

    default:
      data.commandInfo = "Command not supported";
      OLogManager.instance().error(this, "Request not supported. Code: " + lastRequestType);
      channel.clearInput();
      sendError(lastClientTxId, new ONetworkProtocolException("Request not supported. Code: " + lastRequestType));
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolException

       } catch (Exception e) {
         OLogManager.instance().error(this, "Error on connecting to %s:%d", e, networkAddress, port);
       }

     if (channel == null)
       throw new ONetworkProtocolException("Cannot connect to server host '" + networkAddress + "', ports: "
           + Arrays.toString(networkPort));

     channel.writeByte(OChannelBinaryProtocol.REQUEST_SHUTDOWN);
     channel.writeInt(0);
     channel.writeString(OServerConfiguration.SRV_ROOT_ADMIN);
     channel.writeString(rootPassword);
     channel.flush();

     if (channel.readByte() == OChannelBinaryProtocol.RESPONSE_STATUS_ERROR) {
       channel.readInt();
       channel.readString();
       throw new ONetworkProtocolException(channel.readString());
     }
     channel.readInt();
   }
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolException

       try {
         if (!executeRequest()) {
           OLogManager.instance().error(this, "Request not supported. Code: " + requestType);
           channel.clearInput();
           sendErrorOrDropConnection(clientTxId, new ONetworkProtocolException("Request not supported. Code: " + requestType));
         }
       } finally {
         onAfterRequest();
       }
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.