package com.speed.service.network.protocol;

import com.speed.service.common.protocol.InvokeDefinition;

import java.io.Serializable;

/**
 * communication protocol
 * <p/>
 * User: gais.ch
 * Date: 15-5-2
 * Time: 上午6:48
 */
public class CommunicationProtocol implements Serializable {

    private byte magic;
    private String callFrom;//consumerIp
    private int callPort;//port

    private InvokeDefinition invokeDefinition;
    private Object value;//return value

    private long cost;//cost time

    public String getCallFrom() {
        return callFrom;
    }

    public void setCallFrom(String callFrom) {
        this.callFrom = callFrom;
    }

    public int getCallPort() {
        return callPort;
    }

    public void setCallPort(int callPort) {
        this.callPort = callPort;
    }

    public long getCost() {
        return cost;
    }

    public void setCost(long cost) {
        this.cost = cost;
    }

    public InvokeDefinition getInvokeDefinition() {
        return invokeDefinition;
    }

    public void setInvokeDefinition(InvokeDefinition invokeDefinition) {
        this.invokeDefinition = invokeDefinition;
    }

    public byte getMagic() {
        return magic;
    }

    public void setMagic(byte magic) {
        this.magic = magic;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }
}

@@ -500,16 +500,42 @@
 ost time
+%0A    private String crc32;
 %0A%0A    pu
@@ -1444,11 +1444,147 @@
 e;%0A    %7D
+%0A%0A    public String getCrc32() %7B%0A        return crc32;%0A    %7D%0A%0A    public void setCrc32(String crc32) %7B%0A        this.crc32 = crc32;%0A    %7D
 %0A%7D%0A

add crc 32