BrooklynMementoPersisterToObjectStore
instead;
it has a multi-file filesystem backend for equivalent functionality, but is pluggable
to support other storage backends@Deprecated public class BrooklynMementoPersisterToMultiFile extends java.lang.Object implements BrooklynMementoPersister
BrooklynMementoPersister.Delta, BrooklynMementoPersister.LookupContext, BrooklynMementoPersister.MutableDelta
Constructor and Description |
---|
BrooklynMementoPersisterToMultiFile(java.io.File dir,
java.lang.ClassLoader classLoader)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
checkDirIsAccessible(java.io.File dir)
Deprecated.
|
void |
checkpoint(BrooklynMemento newMemento,
PersistenceExceptionHandler exceptionHandler)
Deprecated.
|
void |
checkpoint(BrooklynMementoRawData newMemento,
PersistenceExceptionHandler exceptionHandler)
Deprecated.
applies a full checkpoint (write) of all state
|
void |
delta(BrooklynMementoPersister.Delta delta,
PersistenceExceptionHandler exceptionHandler)
Deprecated.
applies a partial write of state delta
|
void |
disableWriteAccess(boolean graceful)
Deprecated.
|
void |
enableWriteAccess()
Deprecated.
|
java.lang.String |
getBackingStoreDescription()
Deprecated.
|
java.io.File |
getDir()
Deprecated.
|
BrooklynMemento |
loadMemento(BrooklynMementoPersister.LookupContext lookupContext,
RebindExceptionHandler exceptionHandler)
Deprecated.
|
BrooklynMemento |
loadMemento(BrooklynMementoRawData mementoData,
BrooklynMementoPersister.LookupContext lookupContext,
RebindExceptionHandler exceptionHandler)
Deprecated.
Retrieves the memento class, containing deserialized objects (but not the
BrooklynObject class). |
BrooklynMementoManifest |
loadMementoManifest(BrooklynMementoRawData mementoData,
RebindExceptionHandler exceptionHandler)
Deprecated.
Loads minimal manifest information (almost entirely *not* deserialized).
|
BrooklynMementoManifest |
loadMementoManifest(RebindExceptionHandler exceptionHandler)
Deprecated.
|
BrooklynMementoRawData |
loadMementoRawData(RebindExceptionHandler exceptionHandler)
Deprecated.
Loads raw data contents of the mementos.
|
void |
queueDelta(BrooklynMementoPersister.Delta delta)
Deprecated.
inserts an additional delta to be written on the next delta request
|
void |
stop(boolean graceful)
Deprecated.
permanently shuts down all access to the remote store
|
void |
waitForWritesCompleted(Duration timeout)
Deprecated.
|
void |
waitForWritesCompleted(long timeout,
java.util.concurrent.TimeUnit unit)
Deprecated.
|
public BrooklynMementoPersisterToMultiFile(java.io.File dir, java.lang.ClassLoader classLoader)
public void enableWriteAccess()
enableWriteAccess
in interface BrooklynMementoPersister
public void disableWriteAccess(boolean graceful)
disableWriteAccess
in interface BrooklynMementoPersister
public void stop(boolean graceful)
BrooklynMementoPersister
stop
in interface BrooklynMementoPersister
public BrooklynMementoRawData loadMementoRawData(RebindExceptionHandler exceptionHandler)
BrooklynMementoPersister
Some classes (esp deprecated ones) may return null here,
meaning that the BrooklynMementoPersister.loadMementoManifest(BrooklynMementoRawData, RebindExceptionHandler)
and BrooklynMementoPersister.loadMemento(BrooklynMementoRawData, LookupContext, RebindExceptionHandler)
methods
will populate the raw data via another source.
loadMementoRawData
in interface BrooklynMementoPersister
public BrooklynMementoManifest loadMementoManifest(RebindExceptionHandler exceptionHandler) throws java.io.IOException
loadMementoManifest
in interface BrooklynMementoPersister
java.io.IOException
public BrooklynMementoManifest loadMementoManifest(BrooklynMementoRawData mementoData, RebindExceptionHandler exceptionHandler) throws java.io.IOException
BrooklynMementoPersister
BrooklynMementoRawData
is not supplied,
but callers are encouraged to supply that for optimal performance.loadMementoManifest
in interface BrooklynMementoPersister
java.io.IOException
public BrooklynMemento loadMemento(BrooklynMementoPersister.LookupContext lookupContext, RebindExceptionHandler exceptionHandler) throws java.io.IOException
loadMemento
in interface BrooklynMementoPersister
java.io.IOException
public BrooklynMemento loadMemento(BrooklynMementoRawData mementoData, BrooklynMementoPersister.LookupContext lookupContext, RebindExceptionHandler exceptionHandler) throws java.io.IOException
BrooklynMementoPersister
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.
loadMemento
in interface BrooklynMementoPersister
java.io.IOException
public void checkpoint(BrooklynMemento newMemento, PersistenceExceptionHandler exceptionHandler)
checkpoint
in interface BrooklynMementoPersister
public void checkpoint(BrooklynMementoRawData newMemento, PersistenceExceptionHandler exceptionHandler)
BrooklynMementoPersister
checkpoint
in interface BrooklynMementoPersister
public void delta(BrooklynMementoPersister.Delta delta, PersistenceExceptionHandler exceptionHandler)
BrooklynMementoPersister
delta
in interface BrooklynMementoPersister
public void queueDelta(BrooklynMementoPersister.Delta delta)
BrooklynMementoPersister
queueDelta
in interface BrooklynMementoPersister
public java.io.File getDir()
public void waitForWritesCompleted(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
waitForWritesCompleted
in interface BrooklynMementoPersister
java.lang.InterruptedException
java.util.concurrent.TimeoutException
public void waitForWritesCompleted(Duration timeout) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
waitForWritesCompleted
in interface BrooklynMementoPersister
java.lang.InterruptedException
java.util.concurrent.TimeoutException
public static void checkDirIsAccessible(java.io.File dir)
public java.lang.String getBackingStoreDescription()
getBackingStoreDescription
in interface BrooklynMementoPersister