use of com.navercorp.pinpoint.thrift.dto.TApiMetaData in project pinpoint by naver.
the class ThriftApiMetaDataHandler method handleRequest.
@Override
public void handleRequest(ServerRequest<TBase<?, ?>> serverRequest, ServerResponse<TBase<?, ?>> serverResponse) {
final TBase<?, ?> data = serverRequest.getData();
if (logger.isDebugEnabled()) {
logger.debug("Handle request data={}", data);
}
if (data instanceof TApiMetaData) {
TResult result = handleApiMetaData((TApiMetaData) data);
serverResponse.write(result);
} else {
logger.warn("invalid serverRequest:{}", serverRequest);
}
}
use of com.navercorp.pinpoint.thrift.dto.TApiMetaData in project pinpoint by naver.
the class MetadataMessageConverter method convertApiMetaData.
private TApiMetaData convertApiMetaData(final ApiMetaData apiMetaData) {
final TApiMetaData tApiMetaData = new TApiMetaData(agentId, agentStartTime, apiMetaData.getApiId(), apiMetaData.getApiInfo());
tApiMetaData.setLine(apiMetaData.getLine());
tApiMetaData.setType(apiMetaData.getType());
return tApiMetaData;
}
Aggregations