Package com.tangosol.persistence
Class AbstractPersistenceManager.AbstractPersistentStore.OpenTask
java.lang.Object
com.tangosol.util.Base
AbstractPersistenceManager<PS>.com.tangosol.persistence.AbstractPersistenceManager.Task
com.tangosol.persistence.AbstractPersistenceManager.AbstractPersistentStore.OpenTask
- All Implemented Interfaces:
Associated
,KeyAssociation
,Runnable
- Enclosing class:
AbstractPersistenceManager.AbstractPersistentStore
protected class AbstractPersistenceManager.AbstractPersistentStore.OpenTask
extends AbstractPersistenceManager<PS>.Task
implements KeyAssociation
An OpenTask opens the store (parent of this inner class) with the
provided store and notifies the Collector when complete.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
Field Summary
Modifier and TypeFieldDescriptionTheCollector
to notify upon completion of opening the store.protected final com.oracle.coherence.persistence.PersistentStore
<ReadBuffer> ThePersistentStore
to open with.Fields inherited from class com.tangosol.persistence.AbstractPersistenceManager.Task
f_canceled
-
Constructor Summary
ConstructorDescriptionOpenTask
(com.oracle.coherence.persistence.PersistentStore<ReadBuffer> storeFrom, Collector<Object> collector) Construct an OpenTask. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Execute the task.Determine the host key (or base) object to which this object is associated.Methods inherited from class com.tangosol.persistence.AbstractPersistenceManager.Task
cancel, notifyCanceled, register, run
Methods inherited from class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
-
Field Details
-
f_storeFrom
ThePersistentStore
to open with. The contents of this store are copied to the store being opened. -
f_collector
TheCollector
to notify upon completion of opening the store.
-
-
Constructor Details
-
OpenTask
public OpenTask(com.oracle.coherence.persistence.PersistentStore<ReadBuffer> storeFrom, Collector<Object> collector) Construct an OpenTask.- Parameters:
storeFrom
- store to open fromcollector
- collector to notify when the open completes
-
-
Method Details
-
getAssociatedKey
Description copied from interface:Associated
Determine the host key (or base) object to which this object is associated.Note: It's expected that the returned object is suitable to be used as an immutable identity (e.g. a key in a Map).
Note 2: Circular associations are not permitted.- Specified by:
getAssociatedKey
in interfaceAssociated
- Returns:
- the host key that for this object, or null if this object has no association
-
execute
public void execute()Description copied from class:AbstractPersistenceManager.Task
Execute the task.- Specified by:
execute
in classAbstractPersistenceManager<PS extends AbstractPersistenceManager.AbstractPersistentStore>.Task
-