ThreadedProcessExecutionEngineImpl.java revision 2
2ronwalf private boolean resultReady = false;
2ronwalf private boolean interrupted = false;
2ronwalf * @see org.mindswap.owls.process.execution.ProcessExecutionEngine#execute(org.mindswap.owls.process.Process, org.mindswap.query.ValueMap)
2ronwalf public void execAsynchronous() {
2ronwalf setResultReady(false);
2ronwalf * @see impl.owls.process.execution.ProcessExecutionEngine#createSequence(org.mindswap.owls.process.Sequence)
2ronwalf if (isInterrupted())
2ronwalf * @see impl.owls.process.execution.ProcessExecutionEngineImpl#executeAnyOrder(org.mindswap.owls.process.AnyOrder)
2ronwalf if (isInterrupted())
2ronwalf if (isInterrupted())
2ronwalf if (isInterrupted())
2ronwalf if (isInterrupted())
2ronwalf public void continueExec() {
2ronwalf setInterrupted(false);
2ronwalf public void interruptExec() {
2ronwalf setInterrupted(true);
2ronwalf protected boolean isInterrupted() {
2ronwalf return interrupted;
2ronwalf setResultReady(true);
2ronwalf setResultReady(false);
2ronwalf public boolean isResultReady() {
2ronwalf return resultReady;
2ronwalf if (resultState)
2ronwalf private void processInterruption() {
2ronwalf while (isInterrupted()) {
2ronwalf } catch (InterruptedException e) {
2ronwalf e.printStackTrace();
2ronwalf protected void executionInterrupted() {
2ronwalf protected void executionContinued() {
2ronwalf ((ThreadedProcessExecutionListener) listeners[i]).parameterValueSet(process, param, value);
2ronwalf protected void executionHasFinished() {
2ronwalf protected void executionHasStarted() {
2ronwalf * @see org.mindswap.owls.process.execution.ThreadedProcessExecutionEngine#addExecutionListener(org.mindswap.owls.process.execution.ThreadedProcessExecutionListener)
2ronwalf * @see org.mindswap.owls.process.execution.ThreadedProcessExecutionEngine#removeExecutionListener(org.mindswap.owls.process.execution.ThreadedProcessExecutionListener)
2ronwalf synchronized public void removeExecutionListener(ThreadedProcessExecutionListener listener) {
2ronwalf public int getInterval() {
2ronwalf return processName;