ClassLoader classLoader = Utils.buildPluginSpecificClassLoader(plugin, getClass().getClassLoader());
JMXClusterValidator validator = Utils.instantiate(classLoader, validatorClass);
validator.init(filteredSlaveJMXEndpoints, jmxConnectionTimeout, prop1, prop2, prop3);
log.info("Waiting for cluster formation ...");
return validator.waitUntilClusterFormed(waitTimeout) ? StageResult.SUCCESS : errorResult();
} catch (Exception e) {
log.error("Error while validating cluster", e);
return errorResult();
}
}