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

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


        try {
          network = beginRequest(OChannelBinaryProtocol.REQUEST_RECORD_UPDATE);

          network.writeRID(iRid);
          network.writeBytes(iContent);
          network.writeInt(iVersion);
          network.writeByte(iRecordType);

        } finally {
          endRequest(network);
        }
View Full Code Here


        OChannelBinaryClient network = null;
        try {
          network = beginRequest(OChannelBinaryProtocol.REQUEST_RECORD_DELETE);

          network.writeRID(iRid);
          network.writeInt(iVersion);

        } finally {
          endRequest(network);
        }
View Full Code Here

      try {
        OChannelBinaryClient network = null;
        try {
          network = beginRequest(OChannelBinaryProtocol.REQUEST_TX_COMMIT);

          network.writeInt(((OTransaction) iTx).getId());
          network.writeByte((byte) (((OTransaction) iTx).isUsingLog() ? 1 : 0));

          final List<OTransactionRecordEntry> tmpEntries = new ArrayList<OTransactionRecordEntry>();

          while (iTx.getCurrentRecordEntries().iterator().hasNext()) {
View Full Code Here

                iArguments.length > 0 ? (Integer) iArguments[1] : -1);
            break;

          case LOGICAL:
            // PHY CLUSTER ID
            network.writeInt(iArguments.length > 0 ? (Integer) iArguments[0] : -1);
            break;
          }
        } finally {
          endRequest(network);
        }
View Full Code Here

        }
      }
    }

    network.writeByte(iCommand);
    network.writeInt(getSessionId());

    return network;
  }

  /**
 
View Full Code Here

    } finally {
      lock.releaseSharedLock();
    }

    network.writeByte(iCommand);
    network.writeInt(getSessionId());

    return network;
  }

  /**
 
View Full Code Here

        final OChannelBinaryClient network = beginRequest(OChannelBinaryProtocol.REQUEST_RECORD_UPDATE);
        try {
          network.writeRID(iRid);
          network.writeBytes(iContent);
          network.writeInt(iVersion);
          network.writeByte(iRecordType);
        } finally {
          endRequest(network);
        }
View Full Code Here

      try {

        final OChannelBinaryClient network = beginRequest(OChannelBinaryProtocol.REQUEST_RECORD_DELETE);
        try {
          network.writeRID(iRid);
          network.writeInt(iVersion);
        } finally {
          endRequest(network);
        }

        try {
View Full Code Here

        final Set<OTransactionRecordEntry> allEntries = new HashSet<OTransactionRecordEntry>();

        final OChannelBinaryClient network = beginRequest(OChannelBinaryProtocol.REQUEST_TX_COMMIT);
        try {
          network.writeInt(((OTransactionRealAbstract) iTx).getId());

          final List<OTransactionRecordEntry> tmpEntries = new ArrayList<OTransactionRecordEntry>();

          while (iTx.getRecordEntries().iterator().hasNext()) {
            for (OTransactionRecordEntry txEntry : iTx.getRecordEntries())
View Full Code Here

                iArguments.length > 0 ? (Integer) iArguments[1] : -1);
            break;

          case LOGICAL:
            // PHY CLUSTER ID
            network.writeInt(iArguments.length > 0 ? (Integer) iArguments[0] : -1);
            break;
          }
        } finally {
          endRequest(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.