public abstract class TransientStoreWork extends AbstractWork
TransientStore
.Work.Progress, Work.State
Modifier and Type | Field and Description |
---|---|
protected StorageEntry |
entry |
protected String |
entryKey |
static String |
KEY_SUFFIX |
static String |
STORE_NAME |
completionTime, docId, docIds, id, isTree, progress, RANDOM, repositoryName, schedulePath, schedulingTime, session, startTime, state, status, suspended, suspending
Constructor and Description |
---|
TransientStoreWork() |
TransientStoreWork(String id) |
Modifier and Type | Method and Description |
---|---|
protected void |
computeEntryKey() |
protected StorageEntry |
getStorageEntry() |
static StorageEntry |
getStorageEntry(String key)
Returns a storage entry given its
key from the transient store used by the TransientStoreWork . |
protected static TransientStore |
getStore() |
String |
getWorkInstanceResult()
CALLED BY THE WORK MANAGER (not user code) to get this work instance's result.
|
static void |
removeStorageEntry(String key)
Remove a storage entry given its
key from the transient store used by the TransientStoreWork . |
protected void |
saveStorageEntry() |
protected static void |
saveStorageEntry(StorageEntry storageEntry) |
cleanUp, closeSession, commitOrRollbackTransaction, equals, getCategory, getCompletionTime, getDocument, getDocuments, getId, getProgress, getRetryCount, getSchedulePath, getSchedulingTime, getStartTime, getState, getStatus, getUserId, getWorkInstanceState, hashCode, initSession, initSession, isDocumentTree, isSuspending, isWorkInstanceSuspended, newDocumentLocation, run, runWorkWithTransaction, runWorkWithTransactionAndCheckExceptions, setCompletionTime, setDocument, setDocument, setDocuments, setProgress, setSchedulePath, setStartTime, setStatus, setWorkInstanceState, setWorkInstanceSuspending, startTransaction, suspended, toString, work
public static final String STORE_NAME
public static final String KEY_SUFFIX
protected transient StorageEntry entry
public TransientStoreWork()
public TransientStoreWork(String id)
public static StorageEntry getStorageEntry(String key)
key
from the transient store used by the TransientStoreWork
.public static void removeStorageEntry(String key)
key
from the transient store used by the TransientStoreWork
.protected static void saveStorageEntry(StorageEntry storageEntry)
protected static TransientStore getStore()
protected void computeEntryKey()
protected StorageEntry getStorageEntry()
protected void saveStorageEntry()
public String getWorkInstanceResult()
Work
getWorkInstanceResult
in interface Work
getWorkInstanceResult
in class AbstractWork
Copyright © 2015 Nuxeo SA. All rights reserved.