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
public class GitConfigurationPersister extends XmlConfigurationPersister
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 interface org.jboss.as.controller.persistence.ConfigurationPersister
NULL_SNAPSHOT_INFO
-
-
Constructor Summary
Constructors Constructor Description GitConfigurationPersister(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteSnapshot(String name)ConfigurationPersister.SnapshotInfolistSnapshots()Stringpublish(String name)Stringsnapshot(String name, String comment)ConfigurationPersister.PersistenceResourcestore(org.jboss.dmr.ModelNode model, Set<PathAddress> affectedAddresses)voidsuccessfulBoot()-
Methods inherited from class org.jboss.as.controller.persistence.XmlConfigurationPersister
load, registerAdditionalRootElement, successfulBoot
-
Methods inherited from class org.jboss.as.controller.persistence.AbstractConfigurationPersister
marshallAsXml, registerSubsystemWriter, registerSubsystemWriter, unregisterSubsystemWriter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.controller.persistence.ConfigurationPersister
isPersisting, snapshot
-
-
-
-
Constructor Detail
-
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 Detail
-
successfulBoot
public void successfulBoot() throws ConfigurationPersistenceException- 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
public String snapshot(String name, String comment) throws ConfigurationPersistenceException
-
publish
public String publish(String name) throws ConfigurationPersistenceException
-
deleteSnapshot
public void deleteSnapshot(String name)
- Specified by:
deleteSnapshotin interfaceConfigurationPersister- Overrides:
deleteSnapshotin classAbstractConfigurationPersister
-
listSnapshots
public ConfigurationPersister.SnapshotInfo listSnapshots()
- Specified by:
listSnapshotsin interfaceConfigurationPersister- Overrides:
listSnapshotsin classAbstractConfigurationPersister
-
-