protected LoopConfigureAction(Frame owner, LoopContextualView contextualView, Loop loopLayer) { super("Configure"); this.owner = owner; this.contextualView = contextualView; this.loopLayer = loopLayer; this.processor = loopLayer.getProcessor(); }
/** * Test constructor, only used by unit tests, should probably not be public * access here? * * @param maxJobs */ public Parallelize(int maxJobs) { super(); config.setMaximumJobs(maxJobs); }
public void uncaughtException(Thread t, Throwable e) { fail("Uncaught exception while invoking " + jobIdentifier, e); } });
public Retry(int maxRetries, int initialDelay, int maxDelay, float backoffFactor) { super(); this.config.setMaxRetries(maxRetries); this.config.setInitialDelay(initialDelay); this.config.setMaxDelay(maxDelay); this.config.setBackoffFactor(backoffFactor); }
/** * Always send the error document job result on receiving a failure, at * least for now! This should be configurable, in effect this is the part * that ensures the processor never sees a top level failure. */ @Override public void receiveError(DispatchErrorEvent errorEvent) { getState(errorEvent.getOwningProcess()).incrementErrorsTranslated(); sendErrorOutput(errorEvent); }
@Override public Object createDispatchLayerConfiguration(URI uri) { Object dispatchLayerConfiguration = null; if (parallelizeLayer.equals(uri)) { dispatchLayerConfiguration = new ParallelizeConfig(); } else if (retryLayer.equals(uri)) { dispatchLayerConfiguration = new RetryConfig(); } else if (loopLayer.equals(uri)) { dispatchLayerConfiguration = new LoopConfiguration(); } return dispatchLayerConfiguration; }
@Override protected JobState getStateObject(DispatchJobEvent jobEvent) { return new RetryState(jobEvent); }
@Override protected JobState getStateObject(DispatchJobEvent jobEvent) { return new FailoverState(jobEvent); }
public void uncaughtException(Thread t, Throwable e) { fail("Uncaught exception while invoking " + asyncActivity, e); }}); thread.start();
public Retry(int maxRetries, int initialDelay, int maxDelay, float backoffFactor) { super(); this.config.setMaxRetries(maxRetries); this.config.setInitialDelay(initialDelay); this.config.setMaxDelay(maxDelay); this.config.setBackoffFactor(backoffFactor); }
/** * Always send the error document job result on receiving a failure, at * least for now! This should be configurable, in effect this is the part * that ensures the processor never sees a top level failure. */ @Override public void receiveError(DispatchErrorEvent errorEvent) { getState(errorEvent.getOwningProcess()).incrementErrorsTranslated();this. sendErrorOutput(errorEvent, errorEvent.getCause(), null); }
/** * Test constructor, only used by unit tests, should probably not be public * access here? * * @param maxJobs */ public Parallelize(int maxJobs) { super(); config.setMaximumJobs(maxJobs); }
@Override protected JobState getStateObject(DispatchJobEvent jobEvent) { return new RetryState(jobEvent); }
@Override protected JobState getStateObject(DispatchJobEvent jobEvent) { return new FailoverState(jobEvent); }
public void uncaughtException(Thread t, Throwable e) { fail("Uncaught exception while invoking " + jobIdentifier, e); } });
public void uncaughtException(Thread t, Throwable e) { fail("Uncaught exception while invoking " + asyncActivity, e); }}); thread.start();
public Retry(int maxRetries, int initialDelay, int maxDelay, float backoffFactor) { super(); this.config.setMaxRetries(maxRetries); this.config.setInitialDelay(initialDelay); this.config.setMaxDelay(maxDelay); this.config.setBackoffFactor(backoffFactor); }
/** * Always send the error document job result on receiving a failure, at * least for now! This should be configurable, in effect this is the part * that ensures the processor never sees a top level failure. */ @Override public void receiveError(DispatchErrorEvent errorEvent) { getState(errorEvent.getOwningProcess()).incrementErrorsTranslated(); sendErrorOutput(errorEvent, errorEvent.getCause(), null); }
/** * Test constructor, only used by unit tests, should probably not be public * access here? * * @param maxJobs */ public Parallelize(int maxJobs) { super(); config.setMaximumJobs(maxJobs); }
@Override protected JobState getStateObject(DispatchJobEvent jobEvent) { return new RetryState(jobEvent); }