public class RetrievalJob extends PriorityJob
Modifier and Type | Class and Description |
---|---|
static class |
RetrievalJob.JobState |
Modifier and Type | Field and Description |
---|---|
protected ArchiveInformation |
archiveInformation |
protected RetrievalConnector |
connector |
protected List<RetrievalJob> |
executeAfter |
protected Exception |
jobException |
protected RetrievalJob.JobState |
state |
MAX_PRIORITY, MIN_PRIORITY, priority
Constructor and Description |
---|
RetrievalJob(ArchiveInformation archiveInformation,
RetrievalConnector connector,
int priority) |
Modifier and Type | Method and Description |
---|---|
void |
addExecuteAfter(RetrievalJob job)
Adds a Job, executed after this job.
|
Exception |
getException()
Returns the exception caused by this job or null.
|
List<RetrievalJob> |
getExecutedAfter() |
boolean |
hasError()
Returns true, if the job had thrown an exception.
|
boolean |
isFinished()
Returns true, if the job has finished.
|
protected void |
retrieve()
Execution routine.
|
void |
run() |
getPriority
protected RetrievalConnector connector
protected ArchiveInformation archiveInformation
protected volatile RetrievalJob.JobState state
protected Exception jobException
protected List<RetrievalJob> executeAfter
public RetrievalJob(ArchiveInformation archiveInformation, RetrievalConnector connector, int priority)
public void addExecuteAfter(RetrievalJob job)
job
- the jobpublic List<RetrievalJob> getExecutedAfter()
public boolean isFinished()
public boolean hasError()
public Exception getException()
public void run()
Copyright © 2019 SEMS project @ University of Rostock. All rights reserved.