ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [09/50] [abbrv] incubator-ignite git commit: # sprint-2 Drop EVT_VISOR_EVENTS_LOST.
Date Fri, 27 Mar 2015 17:11:30 GMT
# sprint-2 Drop EVT_VISOR_EVENTS_LOST.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/9a955e75
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/9a955e75
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/9a955e75

Branch: refs/heads/ignite-424
Commit: 9a955e75b0005f918dcd17d5da67e7a14760c409
Parents: 62cd664
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Thu Mar 26 22:16:51 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Thu Mar 26 22:16:51 2015 +0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/ignite/events/EventType.java    | 8 --------
 .../ignite/internal/visor/event/VisorGridEventsLost.java     | 7 ++-----
 2 files changed, 2 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/9a955e75/modules/core/src/main/java/org/apache/ignite/events/EventType.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/events/EventType.java b/modules/core/src/main/java/org/apache/ignite/events/EventType.java
index 31a9f2f..f29ebab 100644
--- a/modules/core/src/main/java/org/apache/ignite/events/EventType.java
+++ b/modules/core/src/main/java/org/apache/ignite/events/EventType.java
@@ -716,14 +716,6 @@ public interface EventType {
     public static final int EVT_CACHE_NODES_LEFT = 100;
 
     /**
-     * Built-in event type: Visor detects that some events were evicted from events buffer
since last poll.
-     * <p>
-     * NOTE: all types in range <b>from 1 to 1000 are reserved</b> for
-     * internal Ignite events and should not be used by user-defined events.
-     */
-    public static final int EVT_VISOR_EVENTS_LOST = 115;
-
-    /**
      * Built-in event type: IGFS file created.
      * <p>
      * Fired when IGFS component creates new file.

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/9a955e75/modules/core/src/main/java/org/apache/ignite/internal/visor/event/VisorGridEventsLost.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/event/VisorGridEventsLost.java
b/modules/core/src/main/java/org/apache/ignite/internal/visor/event/VisorGridEventsLost.java
index 2e64d3f..b9dbb6a 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/event/VisorGridEventsLost.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/visor/event/VisorGridEventsLost.java
@@ -22,8 +22,6 @@ import org.apache.ignite.lang.*;
 
 import java.util.*;
 
-import static org.apache.ignite.events.EventType.*;
-
 /**
  * Special event for events lost situations.
  */
@@ -37,9 +35,8 @@ public class VisorGridEventsLost extends VisorGridEvent {
      * @param nid Node where events were lost.
      */
     public VisorGridEventsLost(UUID nid) {
-        super(EVT_VISOR_EVENTS_LOST, IgniteUuid.randomUuid(), "EVT_VISOR_EVENTS_LOST", nid,
U.currentTimeMillis(),
+        super(0, IgniteUuid.randomUuid(), "EVT_VISOR_EVENTS_LOST", nid, U.currentTimeMillis(),
             "Some Visor events were lost and Visor may show inconsistent results. " +
-                "Configure your grid to disable not important events.",
-            "");
+            "Configure your grid to disable not important events.", "");
     }
 }


Mime
View raw message