public class QuotaStatsInitialWork extends AbstractWork
QuotaStatsUpdater
.Work.Progress, Work.State
Modifier and Type | Field and Description |
---|---|
static String |
CATEGORY_QUOTA_INITIAL |
Constructor and Description |
---|
QuotaStatsInitialWork(String updaterName,
String repositoryName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
String |
getCategory()
Gets the category for this work.
|
String |
getTitle()
Gets a human-readable name for this work instance.
|
int |
hashCode() |
void |
notifyProgress(float percent) |
void |
notifyProgress(long current,
long total) |
String |
toString() |
void |
work()
This method should implement the actual work done by the
Work
instance. |
afterRun, awaitTermination, beforeRun, cleanUp, getCompletionTime, getData, getDocuments, getPrincipal, getProgress, getSchedulingTime, getStartTime, getState, getStatus, run, setCanceled, setData, suspend
public static final String CATEGORY_QUOTA_INITIAL
public String getCategory()
Work
Used to choose a thread pool queue.
getCategory
in interface Work
getCategory
in class AbstractWork
null
for the defaultpublic String getTitle()
Work
public void notifyProgress(float percent)
public void notifyProgress(long current, long total)
public void work() throws ClientException
AbstractWork
Work
instance.
It should periodically call #setProgress()
to report its
progress.
To allow for suspension by the WorkManager
, it should
periodically call AbstractWork.isSuspending()
, and if true call
#suspended()
with saved state data and return early.
work
in class AbstractWork
ClientException
public String toString()
toString
in class AbstractWork
Copyright © 2012 Nuxeo SA. All Rights Reserved.