Package com.orientechnologies.orient.enterprise.channel.binary

Examples of com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryClient.readInt()


          endRequest(network);
        }

        try {
          beginResponse(network);
          final int updatedRecords = network.readInt();
          ORecordId rid;
          for (int i = 0; i < updatedRecords; ++i) {
            rid = network.readRID();

            // SEARCH THE RECORD WITH THAT ID TO UPDATE THE VERSION
View Full Code Here


            rid = network.readRID();

            // SEARCH THE RECORD WITH THAT ID TO UPDATE THE VERSION
            for (OTransactionEntry txEntry : allEntries) {
              if (txEntry.getRecord().getIdentity().equals(rid)) {
                txEntry.getRecord().setVersion(network.readInt());
                break;
              }
            }
          }
        } finally {
View Full Code Here

        final OChannelBinaryClient network = beginRequest(OChannelBinaryProtocol.REQUEST_INDEX_SIZE);
        endRequest(network);

        try {
          beginResponse(network);
          return network.readInt();
        } finally {
          endResponse(network);
        }

      } catch (Exception e) {
View Full Code Here

    }

    try {
      beginResponse(network);

      final int sessionId = network.readInt();
      setSessionId(sessionId);

      OLogManager.instance().debug(null, "Client connected with session id: " + sessionId);

      int tot = network.readInt();
View Full Code Here

      final int sessionId = network.readInt();
      setSessionId(sessionId);

      OLogManager.instance().debug(null, "Client connected with session id: " + sessionId);

      int tot = network.readInt();
      String clusterName;
      for (int i = 0; i < tot; ++i) {
        clusterName = network.readString().toLowerCase();
        clustersIds.put(clusterName, network.readInt());
        clustersTypes.put(clusterName, network.readString());
View Full Code Here

      int tot = network.readInt();
      String clusterName;
      for (int i = 0; i < tot; ++i) {
        clusterName = network.readString().toLowerCase();
        clustersIds.put(clusterName, network.readInt());
        clustersTypes.put(clusterName, network.readString());
      }

      // READ CLUSTER CONFIGURATION
      updateClusterConfiguration(network.readBytes());
View Full Code Here

        storage.endRequest(network);
      }

      try {
        storage.beginResponse(network);
        sessionId = network.readInt();
        storage.setSessionId(sessionId);
      } finally {
        storage.endResponse(network);
      }
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.