use of com.navercorp.pinpoint.profiler.monitor.metric.uri.UriStatInfo in project pinpoint by naver.
the class GrpcUriStatMessageConverterTest method convertTest.
@Test
public void convertTest() {
long currentTimeMillis = System.currentTimeMillis();
AgentUriStatData agentUriStatData = new AgentUriStatData(currentTimeMillis);
List<UriStatInfo> uriStatInfoList = createRandomUriStatInfo(100);
for (UriStatInfo uriStatInfo : uriStatInfoList) {
agentUriStatData.add(uriStatInfo);
}
GrpcUriStatMessageConverter converter = new GrpcUriStatMessageConverter();
PAgentUriStat agentUriStat = converter.toMessage(agentUriStatData);
List<PEachUriStat> eachUriStatList = agentUriStat.getEachUriStatList();
assertData(uriStatInfoList, eachUriStatList);
}
use of com.navercorp.pinpoint.profiler.monitor.metric.uri.UriStatInfo in project pinpoint by naver.
the class AsyncQueueingUriStatStorage method store.
@Override
public void store(String uri, boolean status, long elapsedTime) {
Objects.requireNonNull(uri, "uri");
UriStatInfo uriStatInfo = new UriStatInfo(uri, status, elapsedTime);
execute(uriStatInfo);
}
Aggregations