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(BrooklynMemento memento,
PersistenceExceptionHandler exceptionHandler)
Deprecated.
since 0.7.0, use
checkpoint(BrooklynMementoRawData, PersistenceExceptionHandler)
and javadoc on implementations of that |
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(BrooklynMementoPersister.LookupContext lookupContext,
RebindExceptionHandler exceptionHandler)
Deprecated.
since 0.7.0 use
#loadMemento(RebindExceptionHandler) |
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).
|
BrooklynMementoManifest |
loadMementoManifest(RebindExceptionHandler exceptionHandler)
Deprecated.
|
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) |
void |
waitForWritesCompleted(long timeout,
java.util.concurrent.TimeUnit unit)
Deprecated.
since 0.7.0; use
waitForWritesCompleted(Duration) |
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(RebindExceptionHandler exceptionHandler) throws java.io.IOException
loadMementoManifest(BrooklynMementoRawData, RebindExceptionHandler)
java.io.IOException
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(BrooklynMementoPersister.LookupContext lookupContext, RebindExceptionHandler exceptionHandler) throws java.io.IOException
#loadMemento(RebindExceptionHandler)
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
@Deprecated void checkpoint(BrooklynMemento memento, PersistenceExceptionHandler exceptionHandler)
checkpoint(BrooklynMementoRawData, PersistenceExceptionHandler)
and javadoc on implementations of thatvoid checkpoint(BrooklynMementoRawData newMemento, PersistenceExceptionHandler exceptionHandler)
void delta(BrooklynMementoPersister.Delta delta, PersistenceExceptionHandler exceptionHandler)
@Beta 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
void waitForWritesCompleted(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
waitForWritesCompleted(Duration)
java.lang.InterruptedException
java.util.concurrent.TimeoutException
java.lang.String getBackingStoreDescription()