Package com.xpn.xwiki.plugin.feed
Class UpdateThread
- java.lang.Object
-
- com.xpn.xwiki.util.AbstractXWikiRunnable
-
- com.xpn.xwiki.plugin.feed.UpdateThread
-
- All Implemented Interfaces:
Runnable
public class UpdateThread extends AbstractXWikiRunnable
-
-
Field Summary
Fields Modifier and Type Field Description protected Date
endDate
protected Exception
exception
protected FeedPlugin
feedPlugin
protected boolean
forceUpdate
protected boolean
fullContent
protected int
nbLoadedArticles
protected int
nbLoadedFeeds
protected int
nbLoadedFeedsErrors
protected int
scheduleTimer
protected String
space
protected Date
startDate
protected boolean
stopUpdate
protected boolean
updateInProgress
-
Constructor Summary
Constructors Constructor Description UpdateThread(String spaceReference, boolean fullContent, int scheduleTimer, FeedPlugin feedPlugin, XWikiContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
declareProperties(org.xwiki.context.ExecutionContext executionContext)
Date
getEndDate()
Exception
getException()
int
getNbLoadedArticles()
int
getNbLoadedFeeds()
int
getNbLoadedFeedsErrors()
String
getSpace()
Date
getStartDate()
boolean
isUpdateInProgress()
protected void
runInternal()
void
setNbLoadedFeeds(int nbLoadedFeeds)
void
setNbLoadedFeedsErrors(int nbLoadedFeedsErrors)
void
stopUpdate()
void
update()
-
Methods inherited from class com.xpn.xwiki.util.AbstractXWikiRunnable
cleanupExecutionContext, initExecutionContext, run
-
-
-
-
Field Detail
-
fullContent
protected boolean fullContent
-
space
protected String space
-
feedPlugin
protected FeedPlugin feedPlugin
-
scheduleTimer
protected int scheduleTimer
-
updateInProgress
protected boolean updateInProgress
-
forceUpdate
protected boolean forceUpdate
-
stopUpdate
protected boolean stopUpdate
-
startDate
protected Date startDate
-
endDate
protected Date endDate
-
nbLoadedArticles
protected int nbLoadedArticles
-
nbLoadedFeeds
protected int nbLoadedFeeds
-
nbLoadedFeedsErrors
protected int nbLoadedFeedsErrors
-
exception
protected Exception exception
-
-
Constructor Detail
-
UpdateThread
public UpdateThread(String spaceReference, boolean fullContent, int scheduleTimer, FeedPlugin feedPlugin, XWikiContext context)
-
-
Method Detail
-
declareProperties
protected void declareProperties(org.xwiki.context.ExecutionContext executionContext)
- Overrides:
declareProperties
in classAbstractXWikiRunnable
-
update
public void update()
-
getSpace
public String getSpace()
-
isUpdateInProgress
public boolean isUpdateInProgress()
-
getStartDate
public Date getStartDate()
-
getEndDate
public Date getEndDate()
-
getNbLoadedArticles
public int getNbLoadedArticles()
-
getException
public Exception getException()
-
stopUpdate
public void stopUpdate()
-
getNbLoadedFeeds
public int getNbLoadedFeeds()
-
setNbLoadedFeeds
public void setNbLoadedFeeds(int nbLoadedFeeds)
-
getNbLoadedFeedsErrors
public int getNbLoadedFeedsErrors()
-
setNbLoadedFeedsErrors
public void setNbLoadedFeedsErrors(int nbLoadedFeedsErrors)
-
runInternal
protected void runInternal() throws InterruptedException
- Specified by:
runInternal
in classAbstractXWikiRunnable
- Throws:
InterruptedException
-
-