Class CacheRebalancingEvent

    • Constructor Detail

      • CacheRebalancingEvent

        public CacheRebalancingEvent​(String cacheName,
                                     ClusterNode node,
                                     String msg,
                                     int type,
                                     int part,
                                     ClusterNode discoNode,
                                     int discoEvtType,
                                     long discoTs)
        Constructs cache event.
        Parameters:
        cacheName - Cache name.
        node - Event node.
        msg - Event message.
        type - Event type.
        part - Partition for the event (usually the partition the key belongs to).
        discoNode - Node that triggered this rebalancing event.
        discoEvtType - Discovery event type that triggered this rebalancing event.
        discoTs - Timestamp of discovery event that triggered this rebalancing event.
    • Method Detail

      • cacheName

        public String cacheName()
        Gets cache name.
        Returns:
        Cache name.
      • partition

        public int partition()
        Gets partition for the event.
        Returns:
        Partition for the event.
      • discoveryNode

        public ClusterNode discoveryNode()
        Gets shadow of the node that triggered this rebalancing event.
        Returns:
        Shadow of the node that triggered this rebalancing event.
      • discoveryEventType

        public int discoveryEventType()
        Gets type of discovery event that triggered this rebalancing event.
        Returns:
        Type of discovery event that triggered this rebalancing event.
        See Also:
        EventAdapter.type()
      • discoveryEventName

        public String discoveryEventName()
        Gets name of discovery event that triggered this rebalancing event.
        Returns:
        Name of discovery event that triggered this rebalancing event.
        See Also:
        EventAdapter.name()
      • discoveryTimestamp

        public long discoveryTimestamp()
        Gets timestamp of discovery event that caused this rebalancing event.
        Returns:
        Timestamp of discovery event that caused this rebalancing event.
      • shortDisplay

        public String shortDisplay()
        Gets a shortened version of toString() result. Suitable for humans to read.
        Specified by:
        shortDisplay in interface Event
        Overrides:
        shortDisplay in class EventAdapter
        Returns:
        Shortened version of toString() result.