use of com.hazelcast.instance.BuildInfo in project hazelcast by hazelcast.
the class BuildInfoCollector method forEachMetric.
@Override
public void forEachMetric(Node node, BiConsumer<PhoneHomeMetrics, String> metricsConsumer) {
BuildInfo imdgInfo = node.getBuildInfo();
metricsConsumer.accept(PhoneHomeMetrics.HAZELCAST_DOWNLOAD_ID, getDownloadId());
metricsConsumer.accept(PhoneHomeMetrics.JAVA_VERSION_OF_SYSTEM, System.getProperty("java.version"));
metricsConsumer.accept(PhoneHomeMetrics.BUILD_VERSION, imdgInfo.getVersion());
String classpath = System.getProperty("java.class.path");
if (classpath != null) {
metricsConsumer.accept(PhoneHomeMetrics.JAVA_CLASSPATH, formatClassPath(classpath));
}
}
Aggregations