net.sourceforge.rssowl.controller.statusline
Class LoadJob

java.lang.Object
  extended bynet.sourceforge.rssowl.controller.statusline.LoadJob

public class LoadJob
extends Object

Objects from this class represent a Job in RSSOwl, which is currently performed. This may be the loading, reloading or searching of a newsfeed. A job may either be created from an aggregation, or not.

Version:
1.1.3
Author:
Benjamin Pasero

Field Summary
private  ExtendedThread aggregationThread
           
private  boolean isFromAggregation
           
private  ExtendedThread loadingThread
           
private  int style
           
private  String title
           
 
Constructor Summary
LoadJob(String identifier, String title, boolean isFromAggregation, int style, ExtendedThread loadingThread)
          Instantiate a new LoadJob
 
Method Summary
 void cancelJob(boolean forceAggregationStop)
          Cancel this job.
 int getStyle()
          Get the style of this Job.
 String getTitle()
          Get the title of the Job.
 boolean isFromAggregation()
          If this job is from an aggregation, this Method returns TRUE
 void setAggregationThread(ExtendedThread aggregationThread)
          Set the aggregation Thread to this Job, if it is from an aggregation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aggregationThread

private ExtendedThread aggregationThread

isFromAggregation

private boolean isFromAggregation

loadingThread

private ExtendedThread loadingThread

style

private int style

title

private String title
Constructor Detail

LoadJob

public LoadJob(String identifier,
               String title,
               boolean isFromAggregation,
               int style,
               ExtendedThread loadingThread)
Instantiate a new LoadJob

Parameters:
identifier - The unique identifier (e.g. the URL of the feed)
title - The title of the job (e.g. the Title of the feed)
isFromAggregation - If TRUE the job is created from an aggregation
style - The style of the job (reload, load or search)
loadingThread - The thread that is running the job
Method Detail

cancelJob

public void cancelJob(boolean forceAggregationStop)
Cancel this job. This is done by stopping or interrupting the Thread(s) that is performing the job.

Parameters:
forceAggregationStop - If TRUE, forces the Thread that is running the aggregation to stop. This only works in case this job is part of an aggregation.

getStyle

public int getStyle()
Get the style of this Job. That is either loading, reloading or searching of a feed.

Returns:
Returns the style.

getTitle

public String getTitle()
Get the title of the Job.

Returns:
Returns the title.

isFromAggregation

public boolean isFromAggregation()
If this job is from an aggregation, this Method returns TRUE

Returns:
Returns the isFromAggregation.

setAggregationThread

public void setAggregationThread(ExtendedThread aggregationThread)
Set the aggregation Thread to this Job, if it is from an aggregation.

Parameters:
aggregationThread - The aggregationThread to set.


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo