Class NodeDistributionInfo

  • All Implemented Interfaces:
    org.infinispan.commons.dataconversion.internal.JsonSerialization, NodeDataDistribution

    @Immutable
    @ProtoTypeId(6002)
    public class NodeDistributionInfo
    extends Object
    implements org.infinispan.commons.dataconversion.internal.JsonSerialization, NodeDataDistribution
    Collect node's information and statistics of the local JVM.

    Contains information about the node name and address; the JVM statistics are memory used and available, all in bytes. We rely on ClusterContainerStats to retrieve the JVM values, so if the collector is disabled, we return -1.

    Author:
    José Bolina
    • Constructor Detail

      • NodeDistributionInfo

        @ProtoFactory
        public NodeDistributionInfo​(String name,
                                    List<String> addresses,
                                    long memoryAvailable,
                                    long memoryUsed)
    • Method Detail

      • memoryAvailable

        @ProtoField(value=3,
                    defaultValue="0")
        public long memoryAvailable()
      • memoryUsed

        @ProtoField(value=4,
                    defaultValue="0")
        public long memoryUsed()
      • toJson

        public org.infinispan.commons.dataconversion.internal.Json toJson()
        Specified by:
        toJson in interface org.infinispan.commons.dataconversion.internal.JsonSerialization
      • resolve

        public static NodeDistributionInfo resolve​(org.infinispan.manager.CacheManagerInfo manager,
                                                   org.infinispan.factories.GlobalComponentRegistry registry)