Klasse WireProtocolMessage

java.lang.Object
de.caluga.morphium.driver.wireprotocol.WireProtocolMessage
Bekannte direkte Unterklassen:
OpCompressed, OpDelete, OpGetMore, OpInsert, OpKillCursors, OpMsg, OpQuery, OpReply, OpUpdate

public abstract class WireProtocolMessage extends Object
  • Konstruktordetails

    • WireProtocolMessage

      public WireProtocolMessage()
  • Methodendetails

    • parseFromStream

      public static WireProtocolMessage parseFromStream(InputStream in) throws SocketException
      Löst aus:
      SocketException
    • readString

      public static String readString(byte[] bytes, int idx)
    • strLen

      public static int strLen(byte[] bytes, int idx)
    • readInt

      public static int readInt(byte[] bytes, int idx)
    • readLong

      public static long readLong(byte[] bytes, int idx)
    • writeLong

      public static void writeLong(long lng, OutputStream out) throws IOException
      Löst aus:
      IOException
    • parsePayload

      public abstract void parsePayload(byte[] bytes, int offset) throws IOException
      Löst aus:
      IOException
    • getPayload

      public abstract byte[] getPayload() throws IOException
      Löst aus:
      IOException
    • getOpCode

      public abstract int getOpCode()
    • bytes

      public final byte[] bytes() throws IOException
      Löst aus:
      IOException
    • getSize

      public int getSize()
    • setSize

      public void setSize(int size)
    • getMessageId

      public int getMessageId()
    • setMessageId

      public void setMessageId(int messageId)
    • getResponseTo

      public int getResponseTo()
    • setResponseTo

      public void setResponseTo(int responseTo)
    • writeInt

      public void writeInt(int value, OutputStream to) throws IOException
      Löst aus:
      IOException
    • writeString

      public void writeString(String n, OutputStream to) throws IOException
      Löst aus:
      IOException