Search in sources :

Example 1 with HeaderV2

use of com.navercorp.pinpoint.io.header.v2.HeaderV2 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);
}
Also used : HeaderEntity(com.navercorp.pinpoint.io.header.HeaderEntity) DefaultMessage(com.navercorp.pinpoint.io.request.DefaultMessage) Header(com.navercorp.pinpoint.io.header.Header) HeaderV2(com.navercorp.pinpoint.io.header.v2.HeaderV2)

Example 2 with HeaderV2

use of com.navercorp.pinpoint.io.header.v2.HeaderV2 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);
}
Also used : HeaderEntity(com.navercorp.pinpoint.io.header.HeaderEntity) DefaultMessage(com.navercorp.pinpoint.io.request.DefaultMessage) Header(com.navercorp.pinpoint.io.header.Header) HeaderV2(com.navercorp.pinpoint.io.header.v2.HeaderV2)

Example 3 with HeaderV2

use of com.navercorp.pinpoint.io.header.v2.HeaderV2 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);
}
Also used : HeaderEntity(com.navercorp.pinpoint.io.header.HeaderEntity) DefaultMessage(com.navercorp.pinpoint.io.request.DefaultMessage) Header(com.navercorp.pinpoint.io.header.Header) HeaderV2(com.navercorp.pinpoint.io.header.v2.HeaderV2)

Example 4 with HeaderV2

use of com.navercorp.pinpoint.io.header.v2.HeaderV2 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);
}
Also used : HeaderEntity(com.navercorp.pinpoint.io.header.HeaderEntity) DefaultMessage(com.navercorp.pinpoint.io.request.DefaultMessage) Header(com.navercorp.pinpoint.io.header.Header) HeaderV2(com.navercorp.pinpoint.io.header.v2.HeaderV2)

Aggregations

Header (com.navercorp.pinpoint.io.header.Header)4 HeaderEntity (com.navercorp.pinpoint.io.header.HeaderEntity)4 HeaderV2 (com.navercorp.pinpoint.io.header.v2.HeaderV2)4 DefaultMessage (com.navercorp.pinpoint.io.request.DefaultMessage)4