public interface BrooklynMementoPersister
RebindManager
to support brooklyn restart.Modifier and Type | Interface and Description |
---|---|
static interface |
BrooklynMementoPersister.Delta
All methods on this interface are unmodifiable by the caller.
|
static interface |
BrooklynMementoPersister.LookupContext |
static interface |
BrooklynMementoPersister.MutableDelta |
Modifier and Type | Method and Description |
---|---|
void |
checkpoint(BrooklynMementoRawData newMemento,
PersistenceExceptionHandler exceptionHandler)
applies a full checkpoint (write) of all state
|
void |
delta(BrooklynMementoPersister.Delta delta,
PersistenceExceptionHandler exceptionHandler)
applies a partial write of state delta
|
void |
disableWriteAccess(boolean graceful) |
void |
enableWriteAccess() |
java.lang.String |
getBackingStoreDescription() |
BrooklynMemento |
loadMemento(BrooklynMementoRawData mementoData,
BrooklynMementoPersister.LookupContext lookupContext,
RebindExceptionHandler exceptionHandler)
Retrieves the memento class, containing deserialized objects (but not the
BrooklynObject class). |
BrooklynMementoManifest |
loadMementoManifest(BrooklynMementoRawData mementoData,
RebindExceptionHandler exceptionHandler)
Loads minimal manifest information (almost entirely *not* deserialized).
|
BrooklynMementoRawData |
loadMementoRawData(RebindExceptionHandler exceptionHandler)
Loads raw data contents of the mementos.
|
void |
queueDelta(BrooklynMementoPersister.Delta delta)
inserts an additional delta to be written on the next delta request
|
void |
stop(boolean graceful)
permanently shuts down all access to the remote store
|
void |
waitForWritesCompleted(Duration timeout) |
BrooklynMementoRawData loadMementoRawData(RebindExceptionHandler exceptionHandler)
Some classes (esp deprecated ones) may return null here,
meaning that the loadMementoManifest(BrooklynMementoRawData, RebindExceptionHandler)
and loadMemento(BrooklynMementoRawData, LookupContext, RebindExceptionHandler)
methods
will populate the raw data via another source.
BrooklynMementoManifest loadMementoManifest(@Nullable BrooklynMementoRawData mementoData, RebindExceptionHandler exceptionHandler) throws java.io.IOException
BrooklynMementoRawData
is not supplied,
but callers are encouraged to supply that for optimal performance.java.io.IOException
BrooklynMemento loadMemento(@Nullable BrooklynMementoRawData mementoData, BrooklynMementoPersister.LookupContext lookupContext, RebindExceptionHandler exceptionHandler) throws java.io.IOException
BrooklynObject
class).
Implementations should load the raw data if BrooklynMementoRawData
is not supplied,
but callers are encouraged to supply that for optimal performance.
Note that this method is *not* thread safe.
java.io.IOException
void checkpoint(BrooklynMementoRawData newMemento, PersistenceExceptionHandler exceptionHandler)
void delta(BrooklynMementoPersister.Delta delta, PersistenceExceptionHandler exceptionHandler)
void queueDelta(BrooklynMementoPersister.Delta delta)
void enableWriteAccess()
void disableWriteAccess(boolean graceful)
void stop(boolean graceful)
void waitForWritesCompleted(Duration timeout) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
java.lang.String getBackingStoreDescription()