org.ow2.orchestra.pvm.internal.jobexecutor
Interface JobExecutor

All Known Implementing Classes:
AbstractJobExecutor, JdkJobExecutor, PvmJobExecutor

public interface JobExecutor

Author:
Tom Baeyens, Guillaume Porcher

Method Summary
 DeadJobHandler getDeadJobHandler()
           
 String getName()
          returns JobExecutor name
 boolean isActive()
          returns true if this JobExecutor is started
 void jobWasAdded()
          signals jobExecutor that a job has been added
 void start()
          starts the DispatcherThread and org.ow2.orchestra.pvm.internal.jobexecutor.pvm.JobExecutorThreads for this jobImpl executor
 void stop()
          stops with join set to false.
 void stop(boolean join)
          signals to all threads managed by this jobImpl executor to stop.
 

Method Detail

start

void start()
starts the DispatcherThread and org.ow2.orchestra.pvm.internal.jobexecutor.pvm.JobExecutorThreads for this jobImpl executor


stop

void stop()
stops with join set to false.

See Also:
stop(boolean)

stop

void stop(boolean join)
signals to all threads managed by this jobImpl executor to stop. Stopping the dispatcher thread is blocking till the dispatcher is no more alive. If join is set to true, this method will block until all jobImpl executor threads are joined and actually dead. If join is false, the jobImpl executor threads are only told to stop, without waiting till they are actually stopped. It may be that jobImpl executor threads are in the middle of executing a jobImpl and they may finish after this method returned.


jobWasAdded

void jobWasAdded()
signals jobExecutor that a job has been added


getName

String getName()
returns JobExecutor name


isActive

boolean isActive()
returns true if this JobExecutor is started


getDeadJobHandler

DeadJobHandler getDeadJobHandler()
Returns:
the handler to execute when a job has no retries left.


Copyright © 2011 OW2 Consortium. All Rights Reserved.