Author: challngr Date: Mon Nov 4 18:52:34 2013 New Revision: 1538712 URL: http://svn.apache.org/r1538712 Log: UIMA-3405 Make OR aware of service states Starting and Stopped. No semantic changes are brought in with these changes.
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/StateManager.java Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/StateManager.java URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/StateManager.java?rev=1538712&r1=1538711&r2=1538712&view=diff ============================================================================== --- uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/StateManager.java (original) +++ uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/StateManager.java Mon Nov 4 18:52:34 2013 @@ -1121,6 +1121,7 @@ public class StateManager { case WaitingForServices: switch(serviceState) { case Waiting: + case Starting: case Initializing: break; case Available: @@ -1129,6 +1130,7 @@ public class StateManager { logger.info(methodName, duccId, messages.fetchLabel("job state")+jobState+" "+messages.fetchLabel("services state")+serviceState); break; case NotAvailable: + case Stopped: case Stopping: stateJobAccounting.stateChange(duccWorkJob, JobState.Completing); duccWorkJob.getStandardInfo().setDateOfCompletion(TimeStamp.getCurrentMillis());