use of com.navercorp.pinpoint.profiler.metadata.SqlMetaData in project pinpoint by naver.
the class TestTcpDataSender method addData.
private void addData(MetaDataType data) {
if (data instanceof ApiMetaData) {
ApiMetaData md = (ApiMetaData) data;
int apiId = md.getApiId();
String javaMethodDescriptor = toJavaMethodDescriptor(md);
syncPut(this.apiIdMap, apiId, javaMethodDescriptor);
} else if (data instanceof SqlMetaData) {
SqlMetaData md = (SqlMetaData) data;
int id = md.getSqlId();
String sql = md.getSql();
syncPut(sqlIdMap, id, sql);
} else if (data instanceof StringMetaData) {
StringMetaData md = (StringMetaData) data;
int id = md.getStringId();
String string = md.getStringValue();
syncPut(stringIdMap, id, string);
}
datas.add(data);
}
Aggregations