public abstract class AbstractConfigurationPersister extends Object implements ExtensibleConfigurationPersister
ExtensibleConfigurationPersister implementations.ConfigurationPersister.PersistenceResource, ConfigurationPersister.SnapshotInfoNULL_SNAPSHOT_INFO| Constructor and Description |
|---|
AbstractConfigurationPersister(org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser)
Construct a new instance.
|
| 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
|
void |
marshallAsXml(org.jboss.dmr.ModelNode model,
OutputStream output)
Marshals the given configuration model to XML, writing to the given stream.
|
void |
registerSubsystemWriter(String name,
Supplier<org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext>> writer)
Registers the writer that can marshal to XML the configuration of the
named subsystem.
|
void |
registerSubsystemWriter(String name,
org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> writer)
Registers the writer that can marshal to XML the configuration of the
named subsystem.
|
void |
successfulBoot()
Called once the xml has been successfully parsed, translated into updates, executed in the target controller
and all services have started successfully.
|
void |
unregisterSubsystemWriter(String name)
Unregisters the XML configuration writer of the named subsystem.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisPersisting, load, publish, snapshot, snapshot, storepublic AbstractConfigurationPersister(org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser)
rootDeparser - the root model deparserpublic void registerSubsystemWriter(String name, org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> writer)
SubsystemXmlWriterRegistryregisterSubsystemWriter in interface SubsystemXmlWriterRegistryname - the name of the subsystemwriter - the XML writerpublic void registerSubsystemWriter(String name, Supplier<org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext>> writer)
SubsystemXmlWriterRegistryregisterSubsystemWriter in interface SubsystemXmlWriterRegistryname - the name of the subsystemwriter - the XML writerpublic void unregisterSubsystemWriter(String name)
SubsystemXmlWriterRegistryunregisterSubsystemWriter in interface SubsystemXmlWriterRegistryname - the name of the subsystempublic void marshallAsXml(org.jboss.dmr.ModelNode model,
OutputStream output)
throws ConfigurationPersistenceException
marshallAsXml in interface ConfigurationPersistermodel - the model to persistoutput - the streamConfigurationPersistenceException - if a configuration persistence problem occurspublic void successfulBoot()
throws ConfigurationPersistenceException
ConfigurationPersistersuccessfulBoot in interface ConfigurationPersisterConfigurationPersistenceExceptionConfigurationPersister.isPersisting()public ConfigurationPersister.SnapshotInfo listSnapshots()
ConfigurationPersisterlistSnapshots in interface ConfigurationPersisterpublic void deleteSnapshot(String name)
ConfigurationPersisterdeleteSnapshot in interface ConfigurationPersistername - the name of the snapshot (as returned by ConfigurationPersister.SnapshotInfo.names() returned from ConfigurationPersister.listSnapshots(). The whole name is not
needed, just enough to uniquely identify it.Copyright © 2019 JBoss by Red Hat. All rights reserved.