mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-18 01:06:03 +10:00
[강운덕] [LUCYSUS-1744] 기본 TBase Type selector구현
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@496 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -50,15 +50,17 @@ public class HeaderTBaseDeserializer {
|
||||
}
|
||||
|
||||
private void validate(Header header) {
|
||||
//To change body of created methods use File | Settings | File Templates.
|
||||
boolean accepted = HeaderUtil.validateSignature(header.getSignature());
|
||||
if(!accepted) {
|
||||
throw new IllegalArgumentException("Invalid Signature:" + header);
|
||||
}
|
||||
}
|
||||
|
||||
private Header readHeader() throws TException {
|
||||
byte signature = protocol_.readByte();
|
||||
byte version = protocol_.readByte();
|
||||
short type = protocol_.readI16();
|
||||
Header header = new Header(signature, version, type);
|
||||
return header;
|
||||
return new Header(signature, version, type);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user