use of com.navercorp.pinpoint.io.util.HeaderFactory 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();
}
Aggregations