public class UpdateThread extends AbstractXWikiRunnable
Modifier and Type | Field and 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 and Description |
---|
UpdateThread(String spaceReference,
boolean fullContent,
int scheduleTimer,
FeedPlugin feedPlugin,
XWikiContext context) |
Modifier and Type | Method and 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() |
cleanupExecutionContext, initExecutionContext, run
protected boolean fullContent
protected String space
protected FeedPlugin feedPlugin
protected int scheduleTimer
protected boolean updateInProgress
protected boolean forceUpdate
protected boolean stopUpdate
protected Date startDate
protected Date endDate
protected int nbLoadedArticles
protected int nbLoadedFeeds
protected int nbLoadedFeedsErrors
protected Exception exception
public UpdateThread(String spaceReference, boolean fullContent, int scheduleTimer, FeedPlugin feedPlugin, XWikiContext context)
protected void declareProperties(org.xwiki.context.ExecutionContext executionContext)
declareProperties
in class AbstractXWikiRunnable
public void update()
public String getSpace()
public boolean isUpdateInProgress()
public Date getStartDate()
public Date getEndDate()
public int getNbLoadedArticles()
public Exception getException()
public void stopUpdate()
public int getNbLoadedFeeds()
public void setNbLoadedFeeds(int nbLoadedFeeds)
public int getNbLoadedFeedsErrors()
public void setNbLoadedFeedsErrors(int nbLoadedFeedsErrors)
protected void runInternal() throws InterruptedException
runInternal
in class AbstractXWikiRunnable
InterruptedException
Copyright © 2004–2021 XWiki. All rights reserved.