Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.headless.transform
Class AbstractTransformationJob

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 eu.esdihumboldt.hale.common.headless.transform.AbstractTransformationJob
All Implemented Interfaces:
Comparable, org.eclipse.core.runtime.IAdaptable
Direct Known Subclasses:
ExportJob, ValidationJob

public abstract class AbstractTransformationJob
extends org.eclipse.core.runtime.jobs.Job

Abstract transformation job. It allows setting a process ID to combine multiple transformation jobs to a job family.

Author:
Simon Templer

Field Summary
protected static org.eclipse.core.runtime.Status ERROR_STATUS
          Constant for an error status.
 
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
AbstractTransformationJob(String name)
           
 
Method Summary
 boolean belongsTo(Object family)
           
static Serializable createFamily(Object processId)
          Create a family token based on the given process identifier.
 void setProcessId(Object processId)
          Set the process identifier to set the job family.
 
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, cancel, canceling, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, run, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
 
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo
 
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
 

Field Detail

ERROR_STATUS

protected static final org.eclipse.core.runtime.Status ERROR_STATUS
Constant for an error status.

Constructor Detail

AbstractTransformationJob

public AbstractTransformationJob(String name)
See Also:
Job.Job(String)
Method Detail

setProcessId

public void setProcessId(Object processId)
Set the process identifier to set the job family.

Parameters:
processId - the process identifier

createFamily

public static Serializable createFamily(Object processId)
Create a family token based on the given process identifier.

Parameters:
processId - the process identifier
Returns:
the job family

belongsTo

public boolean belongsTo(Object family)
Overrides:
belongsTo in class org.eclipse.core.runtime.jobs.Job
See Also:
Job.belongsTo(java.lang.Object)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d