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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.virtuosotechnologies.lib.propertyset.BasicPropertySet
      extended bycom.virtuosotechnologies.lib.asyncjob.AbstractAsyncJob
All Implemented Interfaces:
AsyncJob, com.virtuosotechnologies.lib.propertyset.PropertySet

public abstract class AbstractAsyncJob
extends com.virtuosotechnologies.lib.propertyset.BasicPropertySet
implements AsyncJob

Abstract base implementation of AsyncJob


Field Summary
 
Fields inherited from class com.virtuosotechnologies.lib.propertyset.BasicPropertySet
 
Fields inherited from interface com.virtuosotechnologies.lib.asyncjob.AsyncJob
CAN_CANCEL_PROPERTY, INDETERMINATE_PROGRESS, INITIAL_FRACTION_DONE_PROPERTY, INITIAL_PROGRESS_STRING_PROPERTY, JOB_NAME_PROPERTY
 
Constructor Summary
protected AbstractAsyncJob()
          Constructor
protected AbstractAsyncJob(com.virtuosotechnologies.lib.propertyset.PropertySet defaultProperties)
          Constructor
protected AbstractAsyncJob(com.virtuosotechnologies.lib.propertyset.PropertySet defaultProperties, java.lang.String jobName, boolean canCancel)
          Constructor
protected AbstractAsyncJob(com.virtuosotechnologies.lib.propertyset.PropertySet defaultProperties, java.lang.String jobName, boolean canCancel, float initialFractionDone, java.lang.String initialProgressString)
          Constructor
protected AbstractAsyncJob(java.lang.String jobName, boolean canCancel)
          Constructor
protected AbstractAsyncJob(java.lang.String jobName, boolean canCancel, float initialFractionDone, java.lang.String initialProgressString)
          Constructor
 
Method Summary
 boolean interrupt(AsyncJobException exception)
          Interrupt the job if it is currently running.
 
Methods inherited from class com.virtuosotechnologies.lib.propertyset.BasicPropertySet
addPropertySetListener, firePropertySetEvent, getDefaultValue, getValue, putValue, removePropertySetListener, resetValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.virtuosotechnologies.lib.asyncjob.AsyncJob
run
 
Methods inherited from interface com.virtuosotechnologies.lib.propertyset.PropertySet
addPropertySetListener, getDefaultValue, getValue, putValue, removePropertySetListener, resetValue
 

Constructor Detail

AbstractAsyncJob

protected AbstractAsyncJob(com.virtuosotechnologies.lib.propertyset.PropertySet defaultProperties,
                           java.lang.String jobName,
                           boolean canCancel,
                           float initialFractionDone,
                           java.lang.String initialProgressString)
Constructor


AbstractAsyncJob

protected AbstractAsyncJob(java.lang.String jobName,
                           boolean canCancel,
                           float initialFractionDone,
                           java.lang.String initialProgressString)
Constructor


AbstractAsyncJob

protected AbstractAsyncJob(com.virtuosotechnologies.lib.propertyset.PropertySet defaultProperties,
                           java.lang.String jobName,
                           boolean canCancel)
Constructor


AbstractAsyncJob

protected AbstractAsyncJob(java.lang.String jobName,
                           boolean canCancel)
Constructor


AbstractAsyncJob

protected AbstractAsyncJob(com.virtuosotechnologies.lib.propertyset.PropertySet defaultProperties)
Constructor


AbstractAsyncJob

protected AbstractAsyncJob()
Constructor

Method Detail

interrupt

public boolean interrupt(AsyncJobException exception)
Interrupt the job if it is currently running. The implementation should respond by throwing the given AsyncJobException out of run. If no custom exception is specified, the job should throw a new AsyncJobInterruptedException.

This default implementation returns false to indicate that the job cannot be interrupted.

Specified by:
interrupt in interface AsyncJob