org.sonar.commons.commands
Class CommandAsynchronousExecutor

java.lang.Object
  extended by org.sonar.commons.commands.CommandAsynchronousExecutor

public class CommandAsynchronousExecutor
extends java.lang.Object


Constructor Summary
CommandAsynchronousExecutor()
           
CommandAsynchronousExecutor(int nbTaskExecutors)
           
CommandAsynchronousExecutor(int nbTaskExecutors, CommandExceptionNotifier notifier)
           
 
Method Summary
 java.util.concurrent.ThreadPoolExecutor getThreadPool()
           
 long getTimeout()
           
 void runTask(CommandTask task)
           
 void runTask(java.lang.String... args)
           
 void setThreadPool(java.util.concurrent.ThreadPoolExecutor threadPool)
           
 void setTimeout(long timeout)
           
 void shutDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandAsynchronousExecutor

public CommandAsynchronousExecutor()

CommandAsynchronousExecutor

public CommandAsynchronousExecutor(int nbTaskExecutors)

CommandAsynchronousExecutor

public CommandAsynchronousExecutor(int nbTaskExecutors,
                                   CommandExceptionNotifier notifier)
Method Detail

runTask

public void runTask(CommandTask task)

runTask

public void runTask(java.lang.String... args)

shutDown

public void shutDown()

getThreadPool

public java.util.concurrent.ThreadPoolExecutor getThreadPool()

setThreadPool

public void setThreadPool(java.util.concurrent.ThreadPoolExecutor threadPool)

getTimeout

public long getTimeout()

setTimeout

public void setTimeout(long timeout)


Copyright © 2007-2008 hortis. All Rights Reserved.