public boolean isFlaky()

in src/main/java/jetbrains/buildServer/investigationsAutoAssigner/utils/FlakyTestDetector.java [27:43]


  public boolean isFlaky(final long testNameId) {
    if (instanceNotFound) return false;

    final MBeanServer mBeanServer = getPlatformMBeanServer();
    try {
      return (Boolean)mBeanServer.invoke(new ObjectName(OBJECT_NAME),
                                         "isFlaky",
                                         new Long[]{testNameId},
                                         new String[]{"long"});
    } catch (final InstanceNotFoundException ignored) {
      instanceNotFound = true;
      LOGGER.warn(format("Flaky Test Detector is not available at %s", OBJECT_NAME));
    } catch (final MBeanException | ReflectionException | MalformedObjectNameException e) {
      LOGGER.warn(e);
    }
    return false;
  }