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

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


      try {

        final OChannelBinaryClient network = beginRequest(OChannelBinaryProtocol.REQUEST_RECORD_LOAD);
        try {
          network.writeRID(iRid);
          network.writeString(iFetchPlan != null ? iFetchPlan : "");
        } finally {
          endRequest(network);
        }

        try {
View Full Code Here


      try {

        final OChannelBinaryClient network = beginRequest(OChannelBinaryProtocol.REQUEST_COUNT);
        try {
          network.writeString(iClassName);
        } finally {
          endRequest(network);
        }

        try {
View Full Code Here

      try {

        final OChannelBinaryClient network = beginRequest(OChannelBinaryProtocol.REQUEST_DATACLUSTER_ADD);
        try {
          network.writeString(iClusterType.toString());
          network.writeString(iClusterName);

          switch (iClusterType) {
          case PHYSICAL:
            // FILE PATH + START SIZE
View Full Code Here

      try {

        final OChannelBinaryClient network = beginRequest(OChannelBinaryProtocol.REQUEST_DATACLUSTER_ADD);
        try {
          network.writeString(iClusterType.toString());
          network.writeString(iClusterName);

          switch (iClusterType) {
          case PHYSICAL:
            // FILE PATH + START SIZE
            network.writeString(iArguments.length > 0 ? (String) iArguments[0] : "").writeInt(
View Full Code Here

          network.writeString(iClusterName);

          switch (iClusterType) {
          case PHYSICAL:
            // FILE PATH + START SIZE
            network.writeString(iArguments.length > 0 ? (String) iArguments[0] : "").writeInt(
                iArguments.length > 0 ? (Integer) iArguments[1] : -1);
            break;

          case LOGICAL:
            // PHY CLUSTER ID
View Full Code Here

      try {

        final OChannelBinaryClient network = beginRequest(OChannelBinaryProtocol.REQUEST_DATASEGMENT_ADD);
        try {
          network.writeString(iSegmentName).writeString(iSegmentFileName);
        } finally {
          endRequest(network);
        }

        try {
View Full Code Here

      try {
        final ORID rid = iRecord.getIdentity();

        final OChannelBinaryClient network = beginRequest(OChannelBinaryProtocol.REQUEST_INDEX_PUT);
        try {
          network.writeString(iKey);
          network.writeByte(iRecord.getRecordType());
          network.writeRID(rid);
        } finally {
          endRequest(network);
        }
View Full Code Here

      try {

        final OChannelBinaryClient network = beginRequest(OChannelBinaryProtocol.REQUEST_INDEX_LOOKUP);
        try {
          network.writeString(iKey);
        } finally {
          endRequest(network);
        }

        try {
View Full Code Here

    do {
      try {

        final OChannelBinaryClient network = beginRequest(OChannelBinaryProtocol.REQUEST_INDEX_REMOVE);
        try {
          network.writeString(iKey.toString());
        } finally {
          endRequest(network);
        }

        try {
View Full Code Here

  protected void openRemoteDatabase(final String iUserName, final String iUserPassword) throws IOException {
    createConnectionPool();

    final OChannelBinaryClient network = beginRequest(OChannelBinaryProtocol.REQUEST_DB_OPEN);
    try {
      network.writeString(name).writeString(iUserName).writeString(iUserPassword);
    } finally {
      endRequest(network);
    }

    try {
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.