public abstract class IterableProcess<T extends IterableProcess<T,E>,E extends Enum<E>> extends ErrorableProcess
Modifier and Type | Field and Description |
---|---|
protected HashMap<E,Object[]> |
stepList |
errors, log
Constructor and Description |
---|
IterableProcess(co.ecg.alpaca.toolkit.model.BroadWorksServer bws,
Class<E> stepClazz)
Creates an iterable process with the provided BroadWorksServer and step class enum
|
Modifier and Type | Method and Description |
---|---|
T |
addStep(E... step)
Adds the provided step(s) to the step list.
|
T |
addStep(E step,
Object[] data)
Adds the provided step with additional data.
|
T |
all()
Perform All Steps
|
T |
allBut(E... step)
Perform all Steps except the listed steps
|
boolean |
isConcurrent()
Returns true IFF the process is allowed to return before completing
|
T |
only(E... step)
Adds the provided step(s) to the step list after clearing the list.
|
T |
setConcurrent(boolean concurrent)
Sets if the operation should return before the underyling threads have completed
|
protected boolean |
step(E... step)
Checks if any of the steps in the parameter list have been added to the step list
|
checkValidity, exception, getErrors, hasErrors, isError, isError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSessionLogger, logger
public IterableProcess(co.ecg.alpaca.toolkit.model.BroadWorksServer bws, Class<E> stepClazz) throws HelperException
bws
- The BroadWorksServer objectstepClazz
- The class of the step enumeration listHelperException
@SafeVarargs protected final boolean step(E... step)
step
- The steps to check for existence in the step list.public T all()
@SafeVarargs public final T allBut(E... step)
@SafeVarargs public final T only(E... step)
@SafeVarargs public final T addStep(E... step)
public T addStep(E step, Object[] data)
public boolean isConcurrent()
public T setConcurrent(boolean concurrent)
concurrent
- The desired concurrency valueCopyright © 2016. All rights reserved.