public abstract class TransientStoreWork extends AbstractWork
TransientStore
.Work.Progress, Work.State
Modifier and Type | Field and Description |
---|---|
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() |
static BlobHolder |
getBlobHolder(String key)
Returns a
BlobHolder representing the entry with the given key in the transient store used by the
TransientStoreWork or null if the entry doesn't exist. |
protected static TransientStore |
getStore() |
String |
getWorkInstanceResult()
CALLED BY THE WORK MANAGER (not user code) to get this work instance's result.
|
protected void |
putBlobHolder(BlobHolder bh) |
static void |
putBlobHolder(String key,
BlobHolder bh)
Stores the given
BlobHolder as an entry with the given key in the transient store used by the
TransientStoreWork . |
static void |
removeBlobHolder(String key) |
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
public TransientStoreWork()
public TransientStoreWork(String id)
public static void putBlobHolder(String key, BlobHolder bh)
BlobHolder
as an entry with the given key
in the transient store used by the
TransientStoreWork
.public static BlobHolder getBlobHolder(String key)
BlobHolder
representing the entry with the given key
in the transient store used by the
TransientStoreWork
or null if the entry doesn't exist.public static void removeBlobHolder(String key)
protected static TransientStore getStore()
protected void computeEntryKey()
protected void putBlobHolder(BlobHolder bh)
public String getWorkInstanceResult()
Work
getWorkInstanceResult
in interface Work
getWorkInstanceResult
in class AbstractWork
Copyright © 2015 Nuxeo SA. All rights reserved.