public class QuotaMaxSizeSetterWork extends AbstractWork
Work.Progress, Work.State
Modifier and Type | Field and Description |
---|---|
static String |
QUOTA_MAX_SIZE_UPDATE_WORK |
Constructor and Description |
---|
QuotaMaxSizeSetterWork(long maxSize,
List<String> ids,
String repositoryName) |
Modifier and Type | Method and Description |
---|---|
String |
getCategory()
Gets the category for this work.
|
String |
getTitle()
Gets a human-readable name for this work instance.
|
void |
notifyProgress(long current) |
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, initSession, run, setCanceled, setData, suspend, toString
public static final String QUOTA_MAX_SIZE_UPDATE_WORK
public String getTitle()
Work
public String getCategory()
Work
Used to choose a thread pool queue.
getCategory
in interface Work
getCategory
in class AbstractWork
null
for the defaultpublic void notifyProgress(long current)
public void work() throws Exception
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
Exception
Copyright © 2013 Nuxeo SA. All Rights Reserved.