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

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


      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

          beginResponse(network);

          if (network.readByte() == 0)
            return null;

          final ORawBuffer buffer = new ORawBuffer(network.readBytes(), network.readInt(), network.readByte());

          ORecordInternal<?> record;
          while (network.readByte() == 2) {
            record = (ORecordInternal<?>) readIdentifiable(network, iDatabase);
View Full Code Here

          endRequest(network);
        }

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

      } catch (OException e) {
View Full Code Here

              if (result instanceof ORecord<?>)
                iCommand.getDatabase().getLevel1Cache().updateRecord((ORecordInternal<?>) result);
              break;

            case 'l':
              final int tot = network.readInt();
              final Collection<OIdentifiable> list = new ArrayList<OIdentifiable>();
              for (int i = 0; i < tot; ++i) {
                final OIdentifiable resultItem = readIdentifiable(network, iCommand.getDatabase());
                if (resultItem instanceof ORecord<?>)
                  iCommand.getDatabase().getLevel1Cache().updateRecord((ORecordInternal<?>) resultItem);
View Full Code Here

          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 (OTransactionRecordEntry txEntry : allEntries) {
              if (txEntry.getRecord().getIdentity().equals(rid)) {
                txEntry.getRecord().setVersion(network.readInt());
                break;
              }
            }
          }
        } finally {
View Full Code Here

          beginResponse(network);

          if (network.readByte() == 0)
            return null;

          final ORawBuffer buffer = new ORawBuffer(network.readBytes(), network.readInt(), network.readByte());

          ORecordInternal<?> record;
          while (network.readByte() == 2) {
            record = (ORecordInternal<?>) readRecordFromNetwork(network, iDatabase);
View Full Code Here

          endRequest(network);
        }

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

      } catch (Exception e) {
View Full Code Here

            case 'r':
              result = readRecordFromNetwork(network, iCommand.getDatabase());
              break;

            case 'l':
              final int tot = network.readInt();
              final Collection<OIdentifiable> list = new ArrayList<OIdentifiable>();
              for (int i = 0; i < tot; ++i) {
                list.add(readRecordFromNetwork(network, iCommand.getDatabase()));
              }
              result = list;
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.