|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.util.AbstractPollableRunnable
com.jivesoftware.forum.util.AttachmentUpgradeTask
public class AttachmentUpgradeTask
A task to upgrade JF 3.x file system attachments to JF 4.x attachments which can be stored in the database. This task will not check to see if database mode is explicitly enabled - it assumes it is.
Constructor Summary | |
---|---|
AttachmentUpgradeTask(ForumFactory factory)
Creates a new task - to run it, submit it to the task engine or call doRun() directly. |
Method Summary | |
---|---|
void |
doRun()
Scans the attachment directory for .bin files. |
java.lang.Throwable |
getException()
|
int |
getTaskMaximum()
Returns the maximum value of task progress (default is 100). |
int |
getTaskValue()
Returns the current value of the task's progress. |
Methods inherited from class com.jivesoftware.util.AbstractPollableRunnable |
---|
cancel, getEndDate, getPercentComplete, getStartDate, getTaskMinimum, isFinished, isIndeterminate, isRunning, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttachmentUpgradeTask(ForumFactory factory)
Method Detail |
---|
public int getTaskValue()
PollableRunnable
indeterminate
mode then this will return -1.
getTaskValue
in interface PollableRunnable
getTaskValue
in class AbstractPollableRunnable
public int getTaskMaximum()
PollableRunnable
indeterminate
mode then this will return -1.
getTaskMaximum
in interface PollableRunnable
getTaskMaximum
in class AbstractPollableRunnable
public java.lang.Throwable getException()
public void doRun()
doRun
in class AbstractPollableRunnable
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |