nl.toolforge.karma.core.cmd.threads
Class ParallelCommandWrapper

java.lang.Object
  extended byjava.lang.Thread
      extended bynl.toolforge.karma.core.cmd.threads.ParallelCommandWrapper
All Implemented Interfaces:
java.lang.Runnable

public final class ParallelCommandWrapper
extends java.lang.Thread

Version:
$Id: ParallelCommandWrapper.java,v 1.3 2004/09/23 07:18:08 asmedes Exp $
Author:
D.A. Smedes

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ParallelCommandWrapper(Command command, CommandResponseListener listener)
           
 
Method Summary
 CommandResponse getCommandResponse()
           
 CommandException getException()
          Returns the CommandException when the run-method had thrown one.
 boolean isRunning()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParallelCommandWrapper

public ParallelCommandWrapper(Command command,
                              CommandResponseListener listener)
Method Detail

getCommandResponse

public CommandResponse getCommandResponse()

run

public void run()

isRunning

public boolean isRunning()

getException

public CommandException getException()
Returns the CommandException when the run-method had thrown one. This method can thus be used to check the actual results (if an error occurred).

Returns:
A CommandException or null if no exception was thrown.


Copyright © 2002-2004 Toolforge. All Rights Reserved.