public interface BrooklynMementoPersister
RebindManager
to support brooklyn restart.Modifier and Type | Interface and Description |
---|---|
static interface |
BrooklynMementoPersister.Delta |
static interface |
BrooklynMementoPersister.LookupContext |
Modifier and Type | Method and Description |
---|---|
void |
checkpoint(BrooklynMemento memento,
PersistenceExceptionHandler exceptionHandler) |
void |
delta(BrooklynMementoPersister.Delta delta,
PersistenceExceptionHandler exceptionHandler) |
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 |
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
void checkpoint(BrooklynMemento memento, PersistenceExceptionHandler exceptionHandler)
void delta(BrooklynMementoPersister.Delta delta, PersistenceExceptionHandler exceptionHandler)
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()