use of com.navercorp.pinpoint.thrift.io.TCommandType in project pinpoint by naver.
the class DefaultProfilerCommandServiceLocator method getCommandServiceCodes.
@Override
public Set<Short> getCommandServiceCodes() {
Set<Short> commandServiceCodes = new HashSet<Short>(profilerCommandServiceRepository.size());
Set<Class<? extends TBase>> clazzSet = profilerCommandServiceRepository.keySet();
for (Class<? extends TBase> clazz : clazzSet) {
TCommandType commandType = TCommandType.getType(clazz);
if (commandType != null) {
commandServiceCodes.add(commandType.getCode());
}
}
return commandServiceCodes;
}
use of com.navercorp.pinpoint.thrift.io.TCommandType in project pinpoint by naver.
the class TCommandTypeVersionTest method versionTest2.
@Test
public void versionTest2() {
TCommandTypeVersion version = TCommandTypeVersion.UNKNOWN;
List<TCommandType> supportTypeList = version.getSupportCommandList();
Assert.assertEquals(0, supportTypeList.size());
}
use of com.navercorp.pinpoint.thrift.io.TCommandType in project pinpoint by naver.
the class TCommandTypeVersionTest method versionTest1.
@Test
public void versionTest1() {
TCommandTypeVersion version = TCommandTypeVersion.V_1_0_2_SNAPSHOT;
List<TCommandType> supportTypeList = version.getSupportCommandList();
Assert.assertEquals(2, supportTypeList.size());
Assert.assertTrue(supportTypeList.contains(TCommandType.THREAD_DUMP));
Assert.assertTrue(supportTypeList.contains(TCommandType.RESULT));
}
Aggregations