public class BrooklynPersistenceUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BrooklynPersistenceUtils.CreateBackupMode |
Modifier and Type | Field and Description |
---|---|
static java.util.List<BrooklynObjectType> |
STANDARD_BROOKLYN_OBJECT_TYPE_PERSISTENCE_ORDER |
Constructor and Description |
---|
BrooklynPersistenceUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
createBackup(ManagementContext managementContext,
BrooklynPersistenceUtils.CreateBackupMode mode,
MementoCopyMode source) |
static CompoundTransformer |
loadTransformer(ResourceUtils resources,
java.lang.String transformationsFileUrl) |
static ManagementPlaneSyncRecord |
newManagerMemento(ManagementContext mgmt,
MementoCopyMode source) |
static Memento |
newObjectMemento(BrooklynObject instance) |
static PersistenceObjectStore |
newPersistenceObjectStore(ManagementContext managementContext,
java.lang.String locationSpec,
java.lang.String locationContainer)
Creates a
PersistenceObjectStore for general-purpose use. |
static PersistenceObjectStore |
newPersistenceObjectStore(ManagementContext managementContext,
java.lang.String locationSpec,
java.lang.String locationContainer,
PersistMode persistMode,
HighAvailabilityMode highAvailabilityMode)
Creates a
PersistenceObjectStore for use with a specified set of modes. |
static BrooklynMementoRawData |
newStateMemento(ManagementContext mgmt,
MementoCopyMode source) |
static void |
writeManagerMemento(ManagementContext managementContext,
ManagementPlaneSyncRecord optionalPlaneRecord,
PersistenceObjectStore destinationObjectStore) |
static void |
writeMemento(ManagementContext managementContext,
BrooklynMementoRawData memento,
PersistenceObjectStore destinationObjectStore) |
static void |
writeMemento(ManagementContext mgmt,
PersistenceObjectStore targetStore,
MementoCopyMode source)
generates and writes mementos for the given mgmt context to the given targetStore;
this may be taken from
MementoCopyMode.LOCAL current state
or MementoCopyMode.REMOTE persisted state, or the default MementoCopyMode.AUTO detected |
@Beta public static final java.util.List<BrooklynObjectType> STANDARD_BROOKLYN_OBJECT_TYPE_PERSISTENCE_ORDER
public static PersistenceObjectStore newPersistenceObjectStore(ManagementContext managementContext, java.lang.String locationSpec, java.lang.String locationContainer)
PersistenceObjectStore
for general-purpose use.public static PersistenceObjectStore newPersistenceObjectStore(ManagementContext managementContext, java.lang.String locationSpec, java.lang.String locationContainer, PersistMode persistMode, HighAvailabilityMode highAvailabilityMode)
PersistenceObjectStore
for use with a specified set of modes.public static void writeMemento(ManagementContext managementContext, BrooklynMementoRawData memento, PersistenceObjectStore destinationObjectStore)
public static void writeManagerMemento(ManagementContext managementContext, ManagementPlaneSyncRecord optionalPlaneRecord, PersistenceObjectStore destinationObjectStore)
public static CompoundTransformer loadTransformer(ResourceUtils resources, java.lang.String transformationsFileUrl)
public static Memento newObjectMemento(BrooklynObject instance)
public static BrooklynMementoRawData newStateMemento(ManagementContext mgmt, MementoCopyMode source)
public static ManagementPlaneSyncRecord newManagerMemento(ManagementContext mgmt, MementoCopyMode source)
public static void writeMemento(ManagementContext mgmt, PersistenceObjectStore targetStore, MementoCopyMode source)
MementoCopyMode.LOCAL
current state
or MementoCopyMode.REMOTE
persisted state, or the default MementoCopyMode.AUTO
detectedpublic static void createBackup(ManagementContext managementContext, BrooklynPersistenceUtils.CreateBackupMode mode, MementoCopyMode source)