Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.virtuosotechnologies.lib.asyncjob
Class AsyncJobEvent  view AsyncJobEvent download AsyncJobEvent.java

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

public class AsyncJobEvent
extends java.util.EventObject

Base class for events emitted regarding AsyncJobs.


Field Summary
private  AsyncJob job_
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
protected AsyncJobEvent(AsyncJobExecution execution, AsyncJob job)
          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
 

Field Detail

job_

private AsyncJob job_
Constructor Detail

AsyncJobEvent

protected AsyncJobEvent(AsyncJobRunner runner,
                        AsyncJob job)
Constructor


AsyncJobEvent

protected AsyncJobEvent(AsyncJobExecution execution,
                        AsyncJob job)
Constructor

Method Detail

getAsyncJobRunner

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


getAsyncJobExecution

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


getAsyncJob

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