Class CheckpointEvent

    • Constructor Detail

      • CheckpointEvent

        public CheckpointEvent()
        No-arg constructor.
      • CheckpointEvent

        public CheckpointEvent​(ClusterNode node,
                               String msg,
                               int type,
                               String cpKey)
        Creates new checkpoint event with given parameters.
        Parameters:
        node - Local node.
        msg - Optional event message.
        type - Event type.
        cpKey - Checkpoint key associated with this event.
    • Method Detail

      • 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.
      • key

        public String key()
        Gets checkpoint key associated with this event.
        Returns:
        Checkpoint key associated with this event.
      • key

        public void key​(String cpKey)
        Sets checkpoint key.
        Parameters:
        cpKey - Checkpoint key to set.