Search in sources :

Example 11 with BuildInfo

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));
    }
}
Also used : BuildInfo(com.hazelcast.instance.BuildInfo)

Aggregations

BuildInfo (com.hazelcast.instance.BuildInfo)11 Address (com.hazelcast.cluster.Address)2 LifecycleEvent (com.hazelcast.core.LifecycleEvent)2 LifecycleListener (com.hazelcast.core.LifecycleListener)2 JetBuildInfo (com.hazelcast.instance.JetBuildInfo)1 DefaultNodeExtension (com.hazelcast.instance.impl.DefaultNodeExtension)1 Node (com.hazelcast.instance.impl.Node)1 WhoisMasterOp (com.hazelcast.internal.cluster.impl.operations.WhoisMasterOp)1 DefaultSerializationServiceBuilder (com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder)1 LoggingServiceImpl (com.hazelcast.logging.impl.LoggingServiceImpl)1 PrivateApi (com.hazelcast.spi.annotation.PrivateApi)1 HazelcastProperties (com.hazelcast.spi.properties.HazelcastProperties)1 QuickTest (com.hazelcast.test.annotation.QuickTest)1 MemberVersion (com.hazelcast.version.MemberVersion)1 Before (org.junit.Before)1 Test (org.junit.Test)1