public interface RebindManager
Modifier and Type | Interface and Description |
---|---|
static class |
RebindManager.RebindFailureMode |
Modifier and Type | Method and Description |
---|---|
void |
forcePersistNow()
Forcibly performs persistence, in the foreground
|
ChangeListener |
getChangeListener() |
BrooklynMementoPersister |
getPersister() |
java.util.List<Application> |
rebind()
Deprecated.
|
java.util.List<Application> |
rebind(java.lang.ClassLoader classLoader)
Deprecated.
|
java.util.List<Application> |
rebind(java.lang.ClassLoader classLoader,
RebindExceptionHandler exceptionHandler)
Deprecated.
|
java.util.List<Application> |
rebind(java.lang.ClassLoader classLoader,
RebindExceptionHandler exceptionHandler,
ManagementNodeState mode)
Causes this management context to rebind, loading data from the given backing store.
|
BrooklynMementoRawData |
retrieveMementoRawData() |
void |
setPersister(BrooklynMementoPersister persister) |
void |
setPersister(BrooklynMementoPersister persister,
PersistenceExceptionHandler exceptionHandler) |
void |
start()
Starts the appropriate background processes,
startPersistence() if ManagementNodeState.MASTER ,
startReadOnly() if ManagementNodeState.HOT_STANDBY |
void |
startPersistence()
Starts the background persisting of state
(if persister is set; otherwise will start persisting as soon as persister is set).
|
void |
startReadOnly()
Perform an initial load of state read-only and starts a background process
reading (mirroring) state periodically.
|
void |
stop()
Stops the appropriate background processes,
stopPersistence() or stopReadOnly() ,
waiting for activity there to cease (interrupting in the case of stopReadOnly() ). |
void |
stopPersistence()
Stops the background persistence of state.
|
void |
stopReadOnly()
Stops the background reading (mirroring) of state.
|
void |
waitForPendingComplete(Duration duration)
waits for any needed or pending writes to complete
|
void |
waitForPendingComplete(long timeout,
java.util.concurrent.TimeUnit unit)
Deprecated.
since 0.7.0; use
waitForPendingComplete(Duration) |
void setPersister(BrooklynMementoPersister persister)
void setPersister(BrooklynMementoPersister persister, PersistenceExceptionHandler exceptionHandler)
BrooklynMementoPersister getPersister()
@Deprecated java.util.List<Application> rebind()
rebind(ClassLoader, RebindExceptionHandler, ManagementNodeState)
@Deprecated java.util.List<Application> rebind(java.lang.ClassLoader classLoader)
rebind(ClassLoader, RebindExceptionHandler, ManagementNodeState)
@Deprecated java.util.List<Application> rebind(java.lang.ClassLoader classLoader, RebindExceptionHandler exceptionHandler)
rebind(ClassLoader, RebindExceptionHandler, ManagementNodeState)
@Beta java.util.List<Application> rebind(java.lang.ClassLoader classLoader, RebindExceptionHandler exceptionHandler, ManagementNodeState mode)
ManagementNodeState.MASTER
or periodically for a node in ManagementNodeState.HOT_STANDBY
.BrooklynMementoRawData retrieveMementoRawData() throws java.io.IOException
java.io.IOException
ChangeListener getChangeListener()
void startPersistence()
void stopPersistence()
void startReadOnly()
void stopReadOnly()
void start()
startPersistence()
if ManagementNodeState.MASTER
,
startReadOnly()
if ManagementNodeState.HOT_STANDBY
void stop()
stopPersistence()
or stopReadOnly()
,
waiting for activity there to cease (interrupting in the case of stopReadOnly()
).@Deprecated void waitForPendingComplete(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
waitForPendingComplete(Duration)
java.lang.InterruptedException
java.util.concurrent.TimeoutException
void waitForPendingComplete(Duration duration) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
void forcePersistNow()