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 |
callerThread, completionTime, docId, docIds, id, isTree, loginContext, originatingUsername, 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 String |
computeEntryKey(String id) |
static boolean |
containsBlobHolder(String key)
Returns true if a
BlobHolder is stored for the given key . |
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. |
String |
getEntryKey() |
protected static TransientStore |
getStore() |
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, getOriginatingUsername, getProgress, getRetryCount, getSchedulePath, getSchedulingTime, getStartTime, getStatus, getWorkInstanceState, hashCode, initSession, initSession, isDocumentTree, isSuspending, isWorkInstanceSuspended, newDocumentLocation, openSystemSession, openUserSession, run, runWorkWithTransaction, setCompletionTime, setDocument, setDocument, setDocuments, setOriginatingUsername, 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 String computeEntryKey(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 boolean containsBlobHolder(String key)
BlobHolder
is stored for the given key
.public static void removeBlobHolder(String key)
protected static TransientStore getStore()
protected void computeEntryKey()
protected void putBlobHolder(BlobHolder bh)
public String getEntryKey()
Copyright © 2017 Nuxeo. All rights reserved.