@Override public void receiveError(DispatchErrorEvent errorEvent) { StateModel model; String owningProcess = errorEvent.getOwningProcess(); synchronized(stateMap) { model = stateMap.get(owningProcess); } getAbove().receiveError(errorEvent); if (model == null) { logger.warn("Error received for unknown owning process: " + owningProcess); return; } model.finishWith(errorEvent.getIndex()); }
@Override public void receiveError(DispatchErrorEvent errorEvent) { // System.out.println(sentJobsCount); StateModel model; String owningProcess = errorEvent.getOwningProcess(); synchronized(stateMap) { model = stateMap.get(owningProcess); } getAbove().receiveError(errorEvent); if (model == null) { logger.warn("Error received for unknown owning process: " + owningProcess); return; } model.finishWith(errorEvent.getIndex()); }
@Override @SuppressWarnings("unchecked") public void receiveResult(DispatchResultEvent resultEvent) { StateModel model = stateMap.get(resultEvent.getOwningProcess()); DispatchLayer above = getAbove(); above.receiveResult(resultEvent); model.finishWith(resultEvent.getIndex()); }
@Override @SuppressWarnings("unchecked") public void receiveResult(DispatchResultEvent resultEvent) { StateModel model; String owningProcess = resultEvent.getOwningProcess(); synchronized(stateMap) { model = stateMap.get(owningProcess); } DispatchLayer above = getAbove(); above.receiveResult(resultEvent); if (model == null) { logger.warn("Error received for unknown owning process: " + owningProcess); return; } model.finishWith(resultEvent.getIndex()); }
@Override @SuppressWarnings("unchecked") public void receiveResult(DispatchResultEvent resultEvent) { StateModel model; String owningProcess = resultEvent.getOwningProcess(); synchronized(stateMap) { model = stateMap.get(owningProcess); } DispatchLayer above = getAbove(); above.receiveResult(resultEvent); if (model == null) { logger.warn("Error received for unknown owning process: " + owningProcess); return; } model.finishWith(resultEvent.getIndex()); }
@Override public void receiveError(DispatchErrorEvent errorEvent) { // System.out.println(sentJobsCount); StateModel model = stateMap.get(errorEvent.getOwningProcess()); getAbove().receiveError(errorEvent); model.finishWith(errorEvent.getIndex()); }
/** * Only going to receive this if the activity invocation was streaming, in * which case we need to handle all completion events and pass them up the * stack. */ @Override public void receiveResultCompletion(DispatchCompletionEvent completionEvent) { StateModel model = stateMap.get(completionEvent.getOwningProcess()); getAbove().receiveResultCompletion(completionEvent); model.finishWith(completionEvent.getIndex()); }
/** * Only going to receive this if the activity invocation was streaming, in * which case we need to handle all completion events and pass them up the * stack. */ @Override public void receiveResultCompletion(DispatchCompletionEvent completionEvent) { StateModel model; String owningProcess = completionEvent.getOwningProcess(); synchronized(stateMap) { model = stateMap.get(owningProcess); } getAbove().receiveResultCompletion(completionEvent); if (model == null) { logger.warn("Error received for unknown owning process: " + owningProcess); return; } model.finishWith(completionEvent.getIndex()); }
/** * Only going to receive this if the activity invocation was streaming, in * which case we need to handle all completion events and pass them up the * stack. */ @Override public void receiveResultCompletion(DispatchCompletionEvent completionEvent) { StateModel model; String owningProcess = completionEvent.getOwningProcess(); synchronized(stateMap) { model = stateMap.get(owningProcess); } getAbove().receiveResultCompletion(completionEvent); if (model == null) { logger.warn("Error received for unknown owning process: " + owningProcess); return; } model.finishWith(completionEvent.getIndex()); }