Search in sources :

Example 6 with TDataSource

use of com.navercorp.pinpoint.thrift.dto.TDataSource in project pinpoint by naver.

the class DefaultDataSourceMetricTest method assertIdIsUnique.

private void assertIdIsUnique(List<TDataSource> dataSourceList) {
    Set<Integer> idSet = new HashSet<Integer>();
    for (TDataSource dataSource : dataSourceList) {
        idSet.add(dataSource.getId());
    }
    Assert.assertEquals(dataSourceList.size(), idSet.size());
}
Also used : TDataSource(com.navercorp.pinpoint.thrift.dto.TDataSource) HashSet(java.util.HashSet)

Aggregations

TDataSource (com.navercorp.pinpoint.thrift.dto.TDataSource)6 TDataSourceList (com.navercorp.pinpoint.thrift.dto.TDataSourceList)3 ActiveTraceBo (com.navercorp.pinpoint.common.server.bo.stat.ActiveTraceBo)2 AgentStatBo (com.navercorp.pinpoint.common.server.bo.stat.AgentStatBo)2 CpuLoadBo (com.navercorp.pinpoint.common.server.bo.stat.CpuLoadBo)2 DataSourceBo (com.navercorp.pinpoint.common.server.bo.stat.DataSourceBo)2 DataSourceListBo (com.navercorp.pinpoint.common.server.bo.stat.DataSourceListBo)2 JvmGcBo (com.navercorp.pinpoint.common.server.bo.stat.JvmGcBo)2 JvmGcDetailedBo (com.navercorp.pinpoint.common.server.bo.stat.JvmGcDetailedBo)2 TransactionBo (com.navercorp.pinpoint.common.server.bo.stat.TransactionBo)2 DatabaseInfo (com.navercorp.pinpoint.bootstrap.context.DatabaseInfo)1 DataSourceMonitorWrapper (com.navercorp.pinpoint.profiler.context.monitor.DataSourceMonitorWrapper)1 TAgentStat (com.navercorp.pinpoint.thrift.dto.TAgentStat)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1