@Override public String getPendingMessage() { return wrappedInvoker.getPendingMessage(); }
public String getPendingMessage() { return wrappedInvoker.getPendingMessage(); }
private void publishStep(StepInvoker invoker) { PublishStepMessage publishStepMessage = new PublishStepMessage( invoker.getId(), chorusClientId, invoker.getStepPattern().toString(), invoker.isPending(), invoker.getPendingMessage() == null ? Step.NO_PENDING_MESSAGE : invoker.getPendingMessage(), invoker.getTechnicalDescription(), invoker.getRetry().getDuration(), invoker.getRetry().getInterval() ); chorusWebSocketClient.sendMessage(publishStepMessage); }
private StepEndState callStepMethod(ExecutionToken executionToken, StepToken step, StepEndState endState, StepMatcher stepMatcher, StepCatalogue stepCatalogue) { //setting a pending message in the step annotation implies the step is pending - we don't execute it StepInvoker chosenStepInvoker = stepMatcher.getFoundStepInvoker(); if ( chosenStepInvoker.isPending()) { String pendingMessage = chosenStepInvoker.getPendingMessage(); log.debug("Step has a pending message " + pendingMessage + " skipping step"); step.setMessage(pendingMessage); endState = StepEndState.PENDING; executionToken.incrementStepsPending(); } else { if (dryRun) { log.debug("Dry Run, so not executing this step"); step.setMessage("This step is OK"); endState = StepEndState.DRYRUN; executionToken.incrementStepsPassed(); // treat dry run as passed? This state was unsupported in previous results } else { endState = executeStepMethod(executionToken, step, stepMatcher, stepCatalogue); } } return endState; }
/** * a map of properties representing a step invoker exported over the network using RMI protocol, * or null if the step invoker cannot be converted for remoting */ public JmxInvokerResult(StepInvoker i) { put(API_VERSION, ApiVersion.API_VERSION); put(STEP_ID, i.getId()); put(PENDING_MSG, i.getPendingMessage()); put(IS_PENDING, i.isPending()); put(PATTERN, i.getStepPattern().toString()); put(TECHNICAL_DESCRIPTION, i.getTechnicalDescription()); put(RETRY_DURATION, i.getRetry().getDuration()); put(RETRY_INTERVAL, i.getRetry().getInterval()); put(IS_DEPRECATED, i.isDeprecated()); }