net.sourceforge.java.feednread.backend.jobs
Class NewsFeedArchivingJob

java.lang.Object
  extended bynet.sourceforge.java.util.jobs.Job
      extended bynet.sourceforge.java.feednread.backend.jobs.NewsFeedArchivingJob
All Implemented Interfaces:
IJob, IRunnableWithProgress

public class NewsFeedArchivingJob
extends Job

Job which adds a NewsFeed to the NewsFeedArchive.

Author:
Sebastian Machhausen

Field Summary
private  NewsFeedArchive archive
           The archive to use for archiving
private  NewsFeed newsFeed
           The NewsFeed to archive
 
Fields inherited from class net.sourceforge.java.util.jobs.Job
 
Fields inherited from interface net.sourceforge.java.util.jobs.IJob
HIGH_PRIORITY, LOW_PRIORITY, NORM_PRIORITY
 
Constructor Summary
NewsFeedArchivingJob(NewsFeedArchive archive, NewsFeed newsFeed)
           Creates a new NewsFeedArchivingJob which archives the specified NewsFeed in the specified NewsFeedArchive.
 
Method Summary
 void run(IProgressMonitor monitor)
           Activates this NewsFeedArchivingJob.
 
Methods inherited from class net.sourceforge.java.util.jobs.Job
cancel, done, getException, getJobManager, getName, getPriority, getStatus, getThread, isCanceled, join, setException, setJobManager, setName, setPriority, setThread, start, started, statusChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

archive

private NewsFeedArchive archive

The archive to use for archiving


newsFeed

private NewsFeed newsFeed

The NewsFeed to archive

Constructor Detail

NewsFeedArchivingJob

public NewsFeedArchivingJob(NewsFeedArchive archive,
                            NewsFeed newsFeed)

Creates a new NewsFeedArchivingJob which archives the specified NewsFeed in the specified NewsFeedArchive.

Parameters:
archive - the NewsFeedArchive to use for archiving
newsFeed - the NewsFeed to archive
Method Detail

run

public void run(IProgressMonitor monitor)

Activates this NewsFeedArchivingJob.

Parameters:
monitor - the IProgressMonitor to make use of for reporting the progress of this NewsFeedArchivingJob