use of com.navercorp.pinpoint.io.request.DefaultMessage in project pinpoint by naver.
the class ChunkHeaderTBaseDeserializer method readInternal.
private Message<TBase<?, ?>> readInternal() throws TException {
final HeaderReader reader = newHeaderReader();
final Header header = readHeader(reader);
final HeaderEntity headerEntity = readHeaderEntity(reader, header);
skipHeaderOffset(reader);
final TBase<?, ?> base = locator.bodyLookup(header.getType());
if (base == null) {
throw new TException("base must not be null type:" + header.getType());
}
base.read(protocol);
return new DefaultMessage<TBase<?, ?>>(header, headerEntity, base);
}
use of com.navercorp.pinpoint.io.request.DefaultMessage in project pinpoint by naver.
the class MetadataService method newMessage.
private <T> Message<T> newMessage(T requestData, short type) {
final Header header = new HeaderV2(Header.SIGNATURE, HeaderV2.VERSION, type);
final HeaderEntity headerEntity = new HeaderEntity(Collections.emptyMap());
return new DefaultMessage<>(header, headerEntity, requestData);
}
use of com.navercorp.pinpoint.io.request.DefaultMessage in project pinpoint by naver.
the class StatService method newMessage.
private <T> Message<T> newMessage(T requestData, short serviceType) {
final Header header = new HeaderV2(Header.SIGNATURE, HeaderV2.VERSION, serviceType);
final HeaderEntity headerEntity = new HeaderEntity(new HashMap<>());
return new DefaultMessage<>(header, headerEntity, requestData);
}
use of com.navercorp.pinpoint.io.request.DefaultMessage in project pinpoint by naver.
the class SpanService method newMessage.
private <T> Message<T> newMessage(T requestData, short serviceType) {
final Header header = new HeaderV2(Header.SIGNATURE, HeaderV2.VERSION, serviceType);
final HeaderEntity headerEntity = new HeaderEntity(new HashMap<>());
return new DefaultMessage<>(header, headerEntity, requestData);
}
use of com.navercorp.pinpoint.io.request.DefaultMessage in project pinpoint by naver.
the class AgentService method newMessage.
private <T> Message<T> newMessage(T requestData, short type) {
final Header header = new HeaderV2(Header.SIGNATURE, HeaderV2.VERSION, type);
final HeaderEntity headerEntity = new HeaderEntity(Collections.emptyMap());
return new DefaultMessage<T>(header, headerEntity, requestData);
}
Aggregations