com.ibm.notes.java.api.util
Class NotesJob

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.core.internal.jobs.InternalJob
          extended by org.eclipse.core.runtime.jobs.Job
              extended by com.ibm.notes.java.api.util.NotesJob
All Implemented Interfaces:
Comparable, IAdaptable

Deprecated. Use NotesSessionJob for better better security and memory handling

public abstract class NotesJob
extends Job

Instances of this class allow for executing code on a Notes thread. Clients must subclass implement the runInNotesThread method.


Field Summary
 
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
 
Fields inherited from class org.eclipse.core.internal.jobs.InternalJob
manager
 
Constructor Summary
NotesJob(String name)
          Deprecated. The Constructor.
 
Method Summary
protected  IStatus run(IProgressMonitor monitor)
          Deprecated.  
protected abstract  IStatus runInNotesThread(IProgressMonitor monitor)
          Deprecated. Clients must implement this method with code that is executed on the Notes thread.
 
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, belongsTo, cancel, canceling, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, wakeUp, wakeUp
 
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo, toString
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

NotesJob

public NotesJob(String name)
Deprecated. 
The Constructor.

Parameters:
name - name of the job
Since:
1.5.1
Method Detail

run

protected final IStatus run(IProgressMonitor monitor)
Deprecated. 
Specified by:
run in class Job

runInNotesThread

protected abstract IStatus runInNotesThread(IProgressMonitor monitor)
                                     throws NotesException 
Deprecated. 
Clients must implement this method with code that is executed on the Notes thread.

Parameters:
monitor - the progress monitor used for this job
Returns:
the status of the job
Throws:
NotesException - thrown when an error occurs during the operation
Since:
1.5.1