Change in asterixdb-bad[master]: Replace byte value with enum for active events

2017-08-09 Thread abdullah alamoudi (Code Review)
abdullah alamoudi has submitted this change and it was merged.

Change subject: Replace byte value with enum for active events
..


Replace byte value with enum for active events

Change-Id: Ib9e93fc704ede2a6d2990d62ed7f9bf052cb4be2
---
M 
asterix-bad/src/main/java/org/apache/asterix/bad/metadata/PrecompiledJobEventListener.java
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Xikui Wang: Looks good to me, approved
  Jenkins: Verified



diff --git 
a/asterix-bad/src/main/java/org/apache/asterix/bad/metadata/PrecompiledJobEventListener.java
 
b/asterix-bad/src/main/java/org/apache/asterix/bad/metadata/PrecompiledJobEventListener.java
index 8e0cf5f..b2d60fe 100644
--- 
a/asterix-bad/src/main/java/org/apache/asterix/bad/metadata/PrecompiledJobEventListener.java
+++ 
b/asterix-bad/src/main/java/org/apache/asterix/bad/metadata/PrecompiledJobEventListener.java
@@ -30,6 +30,7 @@
 import org.apache.asterix.active.IActiveEntityEventSubscriber;
 import org.apache.asterix.active.IActiveEntityEventsListener;
 import org.apache.asterix.active.message.ActivePartitionMessage;
+import org.apache.asterix.active.message.ActivePartitionMessage.Event;
 import org.apache.asterix.app.result.ResultReader;
 import org.apache.asterix.common.dataflow.ICcApplicationContext;
 import org.apache.asterix.common.metadata.IDataset;
@@ -92,7 +93,7 @@
 }
 
 protected synchronized void handle(ActivePartitionMessage message) {
-if (message.getEvent() == 
ActivePartitionMessage.ACTIVE_RUNTIME_REGISTERED) {
+if (message.getEvent() == Event.RUNTIME_REGISTERED) {
 numRegistered++;
 if (numRegistered == locations.getLocations().length) {
 state = ActivityState.RUNNING;

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1931
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib9e93fc704ede2a6d2990d62ed7f9bf052cb4be2
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb-bad
Gerrit-Branch: master
Gerrit-Owner: abdullah alamoudi 
Gerrit-Reviewer: Jenkins 
Gerrit-Reviewer: Xikui Wang 
Gerrit-Reviewer: abdullah alamoudi 


Change in asterixdb-bad[master]: Replace byte value with enum for active events

2017-08-09 Thread Xikui Wang (Code Review)
Xikui Wang has posted comments on this change.

Change subject: Replace byte value with enum for active events
..


Patch Set 1: Code-Review+2

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1931
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib9e93fc704ede2a6d2990d62ed7f9bf052cb4be2
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb-bad
Gerrit-Branch: master
Gerrit-Owner: abdullah alamoudi 
Gerrit-Reviewer: Jenkins 
Gerrit-Reviewer: Xikui Wang 
Gerrit-HasComments: No


Change in asterixdb-bad[master]: Replace byte value with enum for active events

2017-08-09 Thread Jenkins (Code Review)
Jenkins has posted comments on this change.

Change subject: Replace byte value with enum for active events
..


Patch Set 1:

Build Started https://asterix-jenkins.ics.uci.edu/job/asterixbad-gerrit/162/

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1931
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib9e93fc704ede2a6d2990d62ed7f9bf052cb4be2
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb-bad
Gerrit-Branch: master
Gerrit-Owner: abdullah alamoudi 
Gerrit-Reviewer: Jenkins 
Gerrit-HasComments: No


Change in asterixdb-bad[master]: Replace byte value with enum for active events

2017-08-09 Thread abdullah alamoudi (Code Review)
abdullah alamoudi has uploaded a new change for review.

  https://asterix-gerrit.ics.uci.edu/1931

Change subject: Replace byte value with enum for active events
..

Replace byte value with enum for active events

Change-Id: Ib9e93fc704ede2a6d2990d62ed7f9bf052cb4be2
---
M 
asterix-bad/src/main/java/org/apache/asterix/bad/metadata/PrecompiledJobEventListener.java
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb-bad 
refs/changes/31/1931/1

diff --git 
a/asterix-bad/src/main/java/org/apache/asterix/bad/metadata/PrecompiledJobEventListener.java
 
b/asterix-bad/src/main/java/org/apache/asterix/bad/metadata/PrecompiledJobEventListener.java
index 8e0cf5f..b2d60fe 100644
--- 
a/asterix-bad/src/main/java/org/apache/asterix/bad/metadata/PrecompiledJobEventListener.java
+++ 
b/asterix-bad/src/main/java/org/apache/asterix/bad/metadata/PrecompiledJobEventListener.java
@@ -30,6 +30,7 @@
 import org.apache.asterix.active.IActiveEntityEventSubscriber;
 import org.apache.asterix.active.IActiveEntityEventsListener;
 import org.apache.asterix.active.message.ActivePartitionMessage;
+import org.apache.asterix.active.message.ActivePartitionMessage.Event;
 import org.apache.asterix.app.result.ResultReader;
 import org.apache.asterix.common.dataflow.ICcApplicationContext;
 import org.apache.asterix.common.metadata.IDataset;
@@ -92,7 +93,7 @@
 }
 
 protected synchronized void handle(ActivePartitionMessage message) {
-if (message.getEvent() == 
ActivePartitionMessage.ACTIVE_RUNTIME_REGISTERED) {
+if (message.getEvent() == Event.RUNTIME_REGISTERED) {
 numRegistered++;
 if (numRegistered == locations.getLocations().length) {
 state = ActivityState.RUNNING;

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1931
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib9e93fc704ede2a6d2990d62ed7f9bf052cb4be2
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb-bad
Gerrit-Branch: master
Gerrit-Owner: abdullah alamoudi