Class GitConfigurationPersister
java.lang.Object
org.jboss.as.controller.persistence.AbstractConfigurationPersister
org.jboss.as.controller.persistence.XmlConfigurationPersister
org.jboss.as.server.controller.git.GitConfigurationPersister
- All Implemented Interfaces:
ConfigurationPersister,ExtensibleConfigurationPersister,SubsystemXmlWriterRegistry
A configuration persister which uses an XML file for backing storage and Git for history support.
- Author:
- Emmanuel Hugonnet (c) 2015 Red Hat, inc.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.as.controller.persistence.ConfigurationPersister
ConfigurationPersister.PersistenceResource, ConfigurationPersister.SnapshotInfo -
Field Summary
Fields inherited from class org.jboss.as.controller.persistence.XmlConfigurationPersister
storedFields inherited from interface org.jboss.as.controller.persistence.ConfigurationPersister
NULL_SNAPSHOT_INFO -
Constructor Summary
ConstructorsConstructorDescriptionGitConfigurationPersister(GitRepository gitRepository, ConfigurationFile file, QName rootElement, org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> rootParser, org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser) GitConfigurationPersister(GitRepository gitRepository, ConfigurationFile file, QName rootElement, org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> rootParser, org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser, boolean suppressLoad) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteSnapshot(String name) store(org.jboss.dmr.ModelNode model, Set<PathAddress> affectedAddresses) voidMethods inherited from class org.jboss.as.controller.persistence.XmlConfigurationPersister
hasStored, load, registerAdditionalRootElement, successfulBootMethods inherited from class org.jboss.as.controller.persistence.AbstractConfigurationPersister
marshallAsXml, registerSubsystemWriter, unregisterSubsystemWriterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.controller.persistence.ConfigurationPersister
isPersisting
-
Constructor Details
-
GitConfigurationPersister
public GitConfigurationPersister(GitRepository gitRepository, ConfigurationFile file, QName rootElement, org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> rootParser, org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser, boolean suppressLoad) -
GitConfigurationPersister
public GitConfigurationPersister(GitRepository gitRepository, ConfigurationFile file, QName rootElement, org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> rootParser, org.jboss.staxmapper.XMLElementWriter<ModelMarshallingContext> rootDeparser)
-
-
Method Details
-
successfulBoot
- Specified by:
successfulBootin interfaceConfigurationPersister- Overrides:
successfulBootin classAbstractConfigurationPersister- Throws:
ConfigurationPersistenceException
-
store
public ConfigurationPersister.PersistenceResource store(org.jboss.dmr.ModelNode model, Set<PathAddress> affectedAddresses) throws ConfigurationPersistenceException - Specified by:
storein interfaceConfigurationPersister- Overrides:
storein classXmlConfigurationPersister- Throws:
ConfigurationPersistenceException
-
snapshot
-
publish
-
deleteSnapshot
- Specified by:
deleteSnapshotin interfaceConfigurationPersister- Overrides:
deleteSnapshotin classAbstractConfigurationPersister
-
listSnapshots
- Specified by:
listSnapshotsin interfaceConfigurationPersister- Overrides:
listSnapshotsin classAbstractConfigurationPersister
-