public abstract class StoreInstancesJob
extends org.eclipse.core.runtime.jobs.Job
Modifier and Type | Field and Description |
---|---|
protected Reporter<Message> |
report
The job report, may be
null . |
Constructor and Description |
---|
StoreInstancesJob(String name,
LocalOrientDB database,
InstanceCollection instances,
ReportHandler reportHandler)
Create a job that stores instances in a database
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
onComplete()
Called when the job has been completed
|
protected void |
processInstance(Instance instance)
Process an instance before it is saved.
|
org.eclipse.core.runtime.IStatus |
run(org.eclipse.core.runtime.IProgressMonitor monitor) |
protected void |
updateInstance(MutableInstance instance)
Update an instance before it is converted and saved, e.g.
|
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, toString, wakeUp, wakeUp, yieldRule
public StoreInstancesJob(String name, LocalOrientDB database, InstanceCollection instances, ReportHandler reportHandler)
name
- the (human readable) job nameinstances
- the instances to store in the databasedatabase
- the databasereportHandler
- the report handler, null
if no report
should be generatedpublic org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
run
in class org.eclipse.core.runtime.jobs.Job
Job.run(IProgressMonitor)
protected void updateInstance(MutableInstance instance)
instance
- the instanceprotected void processInstance(Instance instance)
instance
- the instance, may not be changed in any wayprotected abstract void onComplete()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a