Search in sources :

Example 1 with TypeLocatorBuilder

use of com.navercorp.pinpoint.io.util.TypeLocatorBuilder in project pinpoint by naver.

the class FlinkTBaseLocator method newTypeLocator.

private TypeLocator<TBase<?, ?>> newTypeLocator() {
    HeaderFactory headerFactory = new FlinkHeaderFactory();
    TypeLocatorBuilder<TBase<?, ?>> typeLocatorBuilder = new TypeLocatorBuilder<>(headerFactory);
    typeLocatorBuilder.addBodyFactory(AGENT_STAT_BATCH, new BodyFactory<TBase<?, ?>>() {

        @Override
        public TBase<?, ?> getObject() {
            return new TFAgentStatBatch();
        }
    });
    return typeLocatorBuilder.build();
}
Also used : TBase(org.apache.thrift.TBase) HeaderFactory(com.navercorp.pinpoint.io.util.HeaderFactory) TypeLocatorBuilder(com.navercorp.pinpoint.io.util.TypeLocatorBuilder) TFAgentStatBatch(com.navercorp.pinpoint.thrift.dto.flink.TFAgentStatBatch)

Aggregations

HeaderFactory (com.navercorp.pinpoint.io.util.HeaderFactory)1 TypeLocatorBuilder (com.navercorp.pinpoint.io.util.TypeLocatorBuilder)1 TFAgentStatBatch (com.navercorp.pinpoint.thrift.dto.flink.TFAgentStatBatch)1 TBase (org.apache.thrift.TBase)1