org.logstash.beats.Protocol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proxy-test Show documentation
Show all versions of proxy-test Show documentation
Service for batching and relaying metric traffic to Wavefront
package org.logstash.beats;
/**
* Created by ph on 2016-05-16.
*/
public class Protocol {
public static final byte VERSION_1 = '1';
public static final byte VERSION_2 = '2';
public static final byte CODE_WINDOW_SIZE = 'W';
public static final byte CODE_JSON_FRAME = 'J';
public static final byte CODE_COMPRESSED_FRAME = 'C';
public static final byte CODE_FRAME = 'D';
public static boolean isVersion2(byte versionRead) {
if(Protocol.VERSION_2 == versionRead){
return true;
} else {
return false;
}
}
}