public class UpgradeFileStorageTask extends java.lang.Object implements TaskImplementation, TitledTaskImplementation
Modifier and Type | Field and Description |
---|---|
static boolean |
_running |
static java.lang.String |
OPTION_DBKEY |
Constructor and Description |
---|
UpgradeFileStorageTask() |
Modifier and Type | Method and Description |
---|---|
void |
execute(JobContext jobContext)
Method called to execute the tasks operations.
|
java.lang.String |
getTitle(java.util.Locale locale,
java.util.Map<java.lang.String,java.lang.String> options) |
static boolean |
isRunning() |
static java.lang.Long |
performUpgrade(JobContext jobContext,
de.innovationgate.webgate.api.WGDatabase db) |
public static final java.lang.String OPTION_DBKEY
public static volatile boolean _running
public void execute(JobContext jobContext) throws JobFailedException
TaskImplementation
execute
in interface TaskImplementation
jobContext
- The context of the current jobJobFailedException
public static java.lang.Long performUpgrade(JobContext jobContext, de.innovationgate.webgate.api.WGDatabase db) throws de.innovationgate.webgate.api.WGAPIException, JobFailedException
de.innovationgate.webgate.api.WGAPIException
JobFailedException
public java.lang.String getTitle(java.util.Locale locale, java.util.Map<java.lang.String,java.lang.String> options)
getTitle
in interface TitledTaskImplementation
public static boolean isRunning()