Class GridCacheEventManager

    • Constructor Detail

      • GridCacheEventManager

        public GridCacheEventManager()
    • Method Detail

      • addListener

        public void addListener​(GridLocalEventListener lsnr,
                                int... evts)
        Adds local event listener.
        Parameters:
        lsnr - Listener.
        evts - Types of events.
      • removeListener

        public void removeListener​(GridLocalEventListener lsnr)
        Removes local event listener.
        Parameters:
        lsnr - Local event listener.
      • readEvent

        public void readEvent​(KeyCacheObject key,
                              @Nullable
                              @Nullable IgniteInternalTx tx,
                              @Nullable
                              @Nullable String txLbl,
                              @Nullable
                              @Nullable CacheObject val,
                              @Nullable
                              @Nullable String taskName,
                              boolean keepBinary)
        Parameters:
        key - Key for event.
        tx - Possible surrounding transaction.
        txLbl - Possible lable of possible surrounding transaction.
        val - Read value.
        taskName - Task name.
        keepBinary - Keep binary flag.
      • addEvent

        public void addEvent​(int part,
                             KeyCacheObject key,
                             @Nullable
                             @Nullable IgniteInternalTx tx,
                             @Nullable
                             @Nullable GridCacheMvccCandidate owner,
                             int type,
                             @Nullable
                             @Nullable CacheObject newVal,
                             boolean hasNewVal,
                             @Nullable
                             @Nullable CacheObject oldVal,
                             boolean hasOldVal,
                             String cloClsName,
                             String taskName,
                             boolean keepBinary)
        Parameters:
        part - Partition.
        key - Key for the event.
        tx - Possible surrounding transaction.
        owner - Possible surrounding lock.
        type - Event type.
        newVal - New value.
        hasNewVal - Whether new value is present or not.
        oldVal - Old value.
        hasOldVal - Whether old value is present or not.
        cloClsName - Closure class name.
        taskName - Task name.
      • addEvent

        public void addEvent​(int type)
        Parameters:
        type - Event type (start or stop).
      • addEvent

        public void addEvent​(int part,
                             KeyCacheObject key,
                             UUID nodeId,
                             @Nullable
                             @Nullable IgniteInternalTx tx,
                             GridCacheMvccCandidate owner,
                             int type,
                             CacheObject newVal,
                             boolean hasNewVal,
                             CacheObject oldVal,
                             boolean hasOldVal,
                             String cloClsName,
                             String taskName,
                             boolean keepBinary)
        Parameters:
        part - Partition.
        key - Key for the event.
        nodeId - Node ID.
        tx - Possible surrounding transaction.
        owner - Possible surrounding lock.
        type - Event type.
        newVal - New value.
        hasNewVal - Whether new value is present or not.
        oldVal - Old value.
        hasOldVal - Whether old value is present or not.
        cloClsName - Closure class name.
        taskName - Task name.
      • addEvent

        public void addEvent​(int part,
                             KeyCacheObject key,
                             UUID evtNodeId,
                             @Nullable
                             @Nullable GridCacheMvccCandidate owner,
                             int type,
                             @Nullable
                             @Nullable CacheObject newVal,
                             boolean hasNewVal,
                             CacheObject oldVal,
                             boolean hasOldVal,
                             String cloClsName,
                             String taskName,
                             boolean keepBinary)
        Parameters:
        part - Partition.
        key - Key for the event.
        evtNodeId - Node ID.
        owner - Possible surrounding lock.
        type - Event type.
        newVal - New value.
        hasNewVal - Whether new value is present or not.
        oldVal - Old value.
        hasOldVal - Whether old value is present or not.
        cloClsName - Closure class name.
        taskName - Task name.
      • addEvent

        public void addEvent​(int part,
                             KeyCacheObject key,
                             UUID evtNodeId,
                             @Nullable
                             @Nullable IgniteInternalTx tx,
                             @Nullable
                             @Nullable String txLbl,
                             @Nullable
                             @Nullable Object lockId,
                             int type,
                             @Nullable
                             @Nullable CacheObject newVal,
                             boolean hasNewVal,
                             @Nullable
                             @Nullable CacheObject oldVal,
                             boolean hasOldVal,
                             @Nullable
                             @Nullable String cloClsName,
                             @Nullable
                             @Nullable String taskName,
                             boolean keepBinary)
        Parameters:
        part - Partition.
        key - Key for the event.
        evtNodeId - Event node ID.
        tx - Possible surrounding transaction.
        txLbl - Possible label of possible surrounding transaction.
        lockId - Lock ID.
        type - Event type.
        newVal - New value.
        hasNewVal - Whether new value is present or not.
        oldVal - Old value.
        hasOldVal - Whether old value is present or not.
        cloClsName - Closure class name.
        taskName - Task class name.
      • isRecordable

        public boolean isRecordable​(int type)
        Parameters:
        type - Event type.
        Returns:
        True if event is recordable.