Repository: incubator-ignite Updated Branches: refs/heads/ignite-45 1c97e8449 -> 0003d705a
# IGNITE-459 Bug fix: node cannot be run by ignite.bat Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/0003d705 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/0003d705 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/0003d705 Branch: refs/heads/ignite-45 Commit: 0003d705aa4cfe237d70f09a787c28c5b7c3d723 Parents: 1c97e84 Author: sevdokimov <sevdoki...@gridgain.com> Authored: Fri Mar 13 16:26:05 2015 +0300 Committer: sevdokimov <sevdoki...@gridgain.com> Committed: Fri Mar 13 16:26:05 2015 +0300 ---------------------------------------------------------------------- examples/config/example-compute.xml | 15 ++++++++++++++- .../org/apache/ignite/examples/ExamplesUtils.java | 14 -------------- 2 files changed, 14 insertions(+), 15 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0003d705/examples/config/example-compute.xml ---------------------------------------------------------------------- diff --git a/examples/config/example-compute.xml b/examples/config/example-compute.xml index 0bdca04..90bd417 100644 --- a/examples/config/example-compute.xml +++ b/examples/config/example-compute.xml @@ -41,7 +41,20 @@ <!-- Enable task execution events for examples. --> <property name="includeEventTypes"> - <util:constant static-field="org.apache.ignite.examples.ExamplesUtils.EVTS"/> + <array> + <!--Task execution events--> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_STARTED"/> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_FINISHED"/> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_FAILED"/> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_TIMEDOUT"/> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_SESSION_ATTR_SET"/> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_REDUCED"/> + + <!--Cache events--> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_PUT"/> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_READ"/> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_REMOVED"/> + </array> </property> <!-- Explicitly configure TCP discovery SPI to provide list of initial nodes. --> http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0003d705/examples/src/main/java/org/apache/ignite/examples/ExamplesUtils.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/ExamplesUtils.java b/examples/src/main/java/org/apache/ignite/examples/ExamplesUtils.java index d6cbd68..a1d59c9 100644 --- a/examples/src/main/java/org/apache/ignite/examples/ExamplesUtils.java +++ b/examples/src/main/java/org/apache/ignite/examples/ExamplesUtils.java @@ -18,14 +18,10 @@ package org.apache.ignite.examples; import org.apache.ignite.*; -import org.apache.ignite.cache.*; import org.apache.ignite.cluster.*; -import org.apache.ignite.configuration.*; -import org.apache.ignite.events.*; import org.apache.ignite.streamer.*; import java.net.*; -import java.util.*; /** * @@ -34,16 +30,6 @@ public class ExamplesUtils { /** */ private static final ClassLoader CLS_LDR = ExamplesUtils.class.getClassLoader(); - /** Events of these types should be recorded in examples. */ - public static final int[] EVTS; - - static { - EVTS = Arrays.copyOf(EventType.EVTS_CACHE, EventType.EVTS_CACHE.length + EventType.EVTS_TASK_EXECUTION.length); - - System.arraycopy(EventType.EVTS_TASK_EXECUTION, 0, EVTS, EventType.EVTS_CACHE.length, - EventType.EVTS_TASK_EXECUTION.length); - } - /** * Exits with code {@code -1} if maximum memory is below 90% of minimally allowed threshold. *