com.virtuosotechnologies.lib.asyncjob
Class AsyncJobEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.virtuosotechnologies.lib.asyncjob.AsyncJobEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AsyncJobCompletedEvent, AsyncJobFailedEvent, AsyncJobProgressEvent, AsyncJobStartedEvent

public class AsyncJobEvent
extends EventObject

Base class for events emitted regarding AsyncJobs. AsyncJobEvent cannot be instantiated directly, but event classes will subclass it.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
protected AsyncJobEvent(AsyncJobExecution execution)
          Constructor
protected AsyncJobEvent(AsyncJobRunner runner, AsyncJob job)
          Constructor
 
Method Summary
 AsyncJob getAsyncJob()
          Get the job associated with the event.
 AsyncJobExecution getAsyncJobExecution()
          Get the job execution tracker that sent the event, or null if it wasn't an AsyncJobExecution
 AsyncJobRunner getAsyncJobRunner()
          Get the job runner that sent the event, or null if it wasn't an AsyncJobRunner.
 
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

AsyncJobEvent

protected AsyncJobEvent(AsyncJobRunner runner,
                        AsyncJob job)
Constructor

Parameters:
runner - AsyncJobRunner running the job
job - AsyncJob that just completed

AsyncJobEvent

protected AsyncJobEvent(AsyncJobExecution execution)
Constructor

Method Detail

getAsyncJobRunner

public final AsyncJobRunner getAsyncJobRunner()
Get the job runner that sent the event, or null if it wasn't an AsyncJobRunner.


getAsyncJobExecution

public final AsyncJobExecution getAsyncJobExecution()
Get the job execution tracker that sent the event, or null if it wasn't an AsyncJobExecution


getAsyncJob

public final AsyncJob getAsyncJob()
Get the job associated with the event.