Package com.avaje.ebeaninternal.server.cluster

Examples of com.avaje.ebeaninternal.server.cluster.BinaryMessage


        return new IndexEvent(eventType, indexName);
    }
   
    public void writeBinaryMessage(BinaryMessageList msgList) throws IOException {
       
        BinaryMessage msg = new BinaryMessage(indexName.length()+10);
        DataOutputStream os = msg.getOs();
        os.writeInt(BinaryMessage.TYPE_INDEX);
        os.writeInt(eventType);
        os.writeUTF(indexName);
       
        msgList.add(msg);
View Full Code Here


            int eof = idList.size();
            do {
                ++loop;
                int endOfLoop = Math.min(eof, loop * 100);

                BinaryMessage m = new BinaryMessage(endOfLoop * 4 + 20);
               
                DataOutputStream os = m.getOs();
                os.writeInt(BinaryMessage.TYPE_BEANIUD);
                os.writeUTF(descriptorId);
                os.writeInt(iudType);
                os.writeInt(count);

View Full Code Here

            int eof = ids.size();
            do {
                ++loop;
                int endOfLoop = Math.min(eof, loop * 100);

                BinaryMessage m = new BinaryMessage(endOfLoop * 4 + 20);
               
                DataOutputStream os = m.getOs();
                os.writeInt(BinaryMessage.TYPE_BEANPATHUPDATE);
                os.writeUTF(descriptorId);
                os.writeUTF(path);
                os.writeInt(count);

View Full Code Here

    /**
     * Write this bean delta in binary message format.
     */
    public void writeBinaryMessage(BinaryMessageList msgList) throws IOException {

        BinaryMessage m = new BinaryMessage(50);
       
        DataOutputStream os = m.getOs();
        os.writeInt(BinaryMessage.TYPE_BEANDELTA);
        os.writeUTF(beanDescriptor.getDescriptorId());
       
        beanDescriptor.getIdBinder().writeData(os, id);
        os.writeInt(properties.size());
View Full Code Here

        return new IndexInvalidate(indexName);
    }
   
    public void writeBinaryMessage(BinaryMessageList msgList) throws IOException {
       
        BinaryMessage msg = new BinaryMessage(indexName.length()+10);
        DataOutputStream os = msg.getOs();
        os.writeInt(BinaryMessage.TYPE_INDEX_INVALIDATE);
        os.writeUTF(indexName);
       
        msgList.add(msg);
    }
View Full Code Here

          return new TableIUD(table, insert, update, delete);
      }
     
      public void writeBinaryMessage(BinaryMessageList msgList) throws IOException {
         
          BinaryMessage msg = new BinaryMessage(table.length()+10);
          DataOutputStream os = msg.getOs();
          os.writeInt(BinaryMessage.TYPE_TABLEIUD);
            os.writeUTF(table);
            os.writeBoolean(insert);
            os.writeBoolean(update);
            os.writeBoolean(delete);
View Full Code Here

        return new MessageAck(hostPort, gotAllPacketId);
    }

    public void writeBinaryMessage(BinaryMessageList msgList) throws IOException {
       
        BinaryMessage m = new BinaryMessage(toHostPort.length() * 2 + 20);
       
        DataOutputStream os = m.getOs();
        os.writeInt(BinaryMessage.TYPE_MSGACK);
        os.writeUTF(toHostPort);
        os.writeLong(gotAllPacketId);
        os.flush();
       
View Full Code Here

        return fromHostPort;
    }

    public void writeBinaryMessage(BinaryMessageList msgList) throws IOException {
       
        BinaryMessage m = new BinaryMessage(fromHostPort.length() * 2 + 10);
       
        DataOutputStream os = m.getOs();
        os.writeInt(BinaryMessage.TYPE_MSGCONTROL);
        os.writeShort(controlType);
        os.writeUTF(fromHostPort);
        os.flush();
       
View Full Code Here

        return msg;
    }

    public void writeBinaryMessage(BinaryMessageList msgList) throws IOException {
       
        BinaryMessage m = new BinaryMessage(toHostPort.length() * 2 + 20);
       
        DataOutputStream os = m.getOs();
        os.writeInt(BinaryMessage.TYPE_MSGRESEND);
        os.writeUTF(toHostPort);
        os.writeInt(resendPacketIds.size());
        for (int i = 0; i < resendPacketIds.size(); i++) {
            Long packetId = resendPacketIds.get(i);
View Full Code Here

TOP

Related Classes of com.avaje.ebeaninternal.server.cluster.BinaryMessage

Copyright © 2018 www.massapicom. 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.