com.virtuosotechnologies.lib.asyncjob
Class AsyncJobStartedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.virtuosotechnologies.lib.asyncjob.AsyncJobEvent
          extended bycom.virtuosotechnologies.lib.asyncjob.AsyncJobStartedEvent
All Implemented Interfaces:
Serializable

public class AsyncJobStartedEvent
extends AsyncJobEvent

An event sent to a listener when a job has started.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AsyncJobStartedEvent(AsyncJobExecution execution)
          Constructor.
AsyncJobStartedEvent(AsyncJobRunner runner, AsyncJobExecution execution)
          Constructor.
 
Method Summary
 AsyncJobExecution getExecution()
          Get the execution tracker.
 
Methods inherited from class com.virtuosotechnologies.lib.asyncjob.AsyncJobEvent
getAsyncJob, getAsyncJobExecution, getAsyncJobRunner
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsyncJobStartedEvent

public AsyncJobStartedEvent(AsyncJobRunner runner,
                            AsyncJobExecution execution)
Constructor. This is for events broadcast by the AsyncJobRunner. runner must == execution.getAsyncJobRunner(), or IllegalArgumentException will be thrown.

Parameters:
runner - AsyncJobRunner broadcasting the event.
execution - AsyncJobExecution tracking the execution

AsyncJobStartedEvent

public AsyncJobStartedEvent(AsyncJobExecution execution)
Constructor. This is for events broadcast by the AsyncJobExecution.

Parameters:
execution - AsyncJobExecution tracking the execution
Method Detail

getExecution

public final AsyncJobExecution getExecution()
Get the execution tracker.

Returns:
the AsyncJobExecution tracking the execution