public interface ConfigurationPersister
Modifier and Type | Interface and Description |
---|---|
static interface |
ConfigurationPersister.PersistenceResource
Callback for use by callers to
store(org.jboss.dmr.ModelNode, java.util.Set)
to control whether the stored model should be flushed to permanent storage. |
static interface |
ConfigurationPersister.SnapshotInfo
Contains the info about the configuration snapshots
|
Modifier and Type | Field and Description |
---|---|
static ConfigurationPersister.SnapshotInfo |
NULL_SNAPSHOT_INFO |
Modifier and Type | Method and Description |
---|---|
void |
deleteSnapshot(String name)
Deletes a snapshot using its name.
|
ConfigurationPersister.SnapshotInfo |
listSnapshots()
Gets the names of the snapshots in the snapshots directory
|
List<org.jboss.dmr.ModelNode> |
load()
Load the configuration model, returning it as a list of updates to be
executed by the controller.
|
void |
marshallAsXml(org.jboss.dmr.ModelNode model,
OutputStream output)
Marshals the given configuration model to XML, writing to the given stream.
|
String |
snapshot()
Take a snapshot of the current configuration
|
ConfigurationPersister.PersistenceResource |
store(org.jboss.dmr.ModelNode model,
Set<PathAddress> affectedAddresses)
Persist the given configuration model.
|
void |
successfulBoot()
Called once the xml has been successfully parsed, translated into updates, executed in the target controller
and all services have started successfully
|
static final ConfigurationPersister.SnapshotInfo NULL_SNAPSHOT_INFO
ConfigurationPersister.PersistenceResource store(org.jboss.dmr.ModelNode model, Set<PathAddress> affectedAddresses) throws ConfigurationPersistenceException
model
- the model to persistaffectedAddresses
- ConfigurationPersistenceException
void marshallAsXml(org.jboss.dmr.ModelNode model, OutputStream output) throws ConfigurationPersistenceException
model
- the model to persistoutput
- the streamConfigurationPersistenceException
List<org.jboss.dmr.ModelNode> load() throws ConfigurationPersistenceException
void successfulBoot() throws ConfigurationPersistenceException
String snapshot() throws ConfigurationPersistenceException
ConfigurationPersistenceException
- if a problem happened when creating the snapshotConfigurationPersister.SnapshotInfo listSnapshots()
void deleteSnapshot(String name)
name
- the name of the snapshot (as returned by ConfigurationPersister.SnapshotInfo.names()
returned from listSnapshots()
. The whole name is not
needed, just enough to uniquely identify it.IllegalArgumentException
- if there is no snapshot with the given name, or if the name resolves to more than one snapshot.Copyright © 2023 JBoss by Red Hat. All rights reserved.