public class XmlConfigurationPersister extends AbstractConfigurationPersister
ConfigurationPersister.PersistenceResource, ConfigurationPersister.SnapshotInfoNULL_SNAPSHOT_INFO| Constructor and Description |
|---|
XmlConfigurationPersister(File fileName,
QName rootElement,
org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> rootParser,
org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser)
Construct a new instance.
|
XmlConfigurationPersister(File fileName,
QName rootElement,
org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> rootParser,
org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser,
boolean suppressLoad)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<org.jboss.dmr.ModelNode> |
load()
Load the configuration model, returning it as a list of updates to be
executed by the controller.
|
void |
registerAdditionalRootElement(QName anotherRoot,
org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> parser) |
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.
|
protected void |
successfulBoot(File file) |
deleteSnapshot, listSnapshots, marshallAsXml, registerSubsystemWriter, successfulBoot, unregisterSubsystemWriterpublic XmlConfigurationPersister(File fileName, QName rootElement, org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> rootParser, org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser)
fileName - the configuration base file namerootElement - the root element of the configuration filerootParser - the root model parserrootDeparser - the root model deparserpublic XmlConfigurationPersister(File fileName, QName rootElement, org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> rootParser, org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser, boolean suppressLoad)
fileName - the configuration base file namerootElement - the root element of the configuration filerootParser - the root model parserrootDeparser - the root model deparserpublic void registerAdditionalRootElement(QName anotherRoot, org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> parser)
public ConfigurationPersister.PersistenceResource store(org.jboss.dmr.ModelNode model, Set<PathAddress> affectedAddresses) throws ConfigurationPersistenceException
model - the model to persistConfigurationPersistenceExceptionpublic List<org.jboss.dmr.ModelNode> load() throws ConfigurationPersistenceException
protected void successfulBoot(File file) throws ConfigurationPersistenceException
public String snapshot() throws ConfigurationPersistenceException
ConfigurationPersistersnapshot in interface ConfigurationPersistersnapshot in class AbstractConfigurationPersisterConfigurationPersistenceException - if a problem happened when creating the snapshotCopyright © 2015 JBoss by Red Hat. All rights reserved.