|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.jobs.InternalJob
org.eclipse.core.runtime.jobs.Job
eu.esdihumboldt.hale.common.instance.orient.storage.StoreInstancesJob
public abstract class StoreInstancesJob
Store instances in a database
Field Summary | |
---|---|
protected Reporter<Message> |
report
The job report, may be null . |
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 | |
---|---|
StoreInstancesJob(String name,
LocalOrientDB database,
InstanceCollection instances,
ReportHandler reportHandler)
Create a job that stores instances in a database |
Method Summary | |
---|---|
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. |
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, 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 |
---|
protected final Reporter<Message> report
null
.
Constructor Detail |
---|
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 generatedMethod Detail |
---|
public 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()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |