public class ApplicationClientConfigurationPersister extends XmlConfigurationPersister
ConfigurationPersister.PersistenceResource, ConfigurationPersister.SnapshotInfo
NULL_SNAPSHOT_INFO
Constructor and Description |
---|
ApplicationClientConfigurationPersister(String filePath,
String deploymentName,
String hostUrl,
String propertiesFileUrl,
List<String> parameters,
File configFile,
QName element,
org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> xmlParser) |
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.
|
void |
registerSubsystemDeploymentWriter(String name,
org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> writer)
Register the writer for the per-deployment configuration for 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.
|
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
|
registerAdditionalRootElement, successfulBoot
unregisterSubsystemDeploymentWriter, unregisterSubsystemWriter
public ApplicationClientConfigurationPersister(String filePath, String deploymentName, String hostUrl, String propertiesFileUrl, List<String> parameters, File configFile, QName element, org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> xmlParser)
public ConfigurationPersister.PersistenceResource store(org.jboss.dmr.ModelNode model, Set<PathAddress> affectedAddresses) throws ConfigurationPersistenceException
XmlConfigurationPersister
store
in interface ConfigurationPersister
store
in class XmlConfigurationPersister
model
- the model to persistConfigurationPersistenceException
public void marshallAsXml(org.jboss.dmr.ModelNode model, OutputStream output) throws ConfigurationPersistenceException
AbstractConfigurationPersister
marshallAsXml
in interface ConfigurationPersister
marshallAsXml
in class AbstractConfigurationPersister
model
- the model to persistoutput
- the streamConfigurationPersistenceException
public List<org.jboss.dmr.ModelNode> load() throws ConfigurationPersistenceException
XmlConfigurationPersister
load
in interface ConfigurationPersister
load
in class XmlConfigurationPersister
ConfigurationPersistenceException
public void successfulBoot() throws ConfigurationPersistenceException
ConfigurationPersister
successfulBoot
in interface ConfigurationPersister
successfulBoot
in class AbstractConfigurationPersister
ConfigurationPersistenceException
public String snapshot() throws ConfigurationPersistenceException
ConfigurationPersister
snapshot
in interface ConfigurationPersister
snapshot
in class XmlConfigurationPersister
ConfigurationPersistenceException
- if a problem happened when creating the snapshotpublic ConfigurationPersister.SnapshotInfo listSnapshots()
ConfigurationPersister
listSnapshots
in interface ConfigurationPersister
listSnapshots
in class AbstractConfigurationPersister
public void deleteSnapshot(String name)
ConfigurationPersister
deleteSnapshot
in interface ConfigurationPersister
deleteSnapshot
in class AbstractConfigurationPersister
name
- 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.public void registerSubsystemWriter(String name, org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> writer)
SubsystemXmlWriterRegistry
registerSubsystemWriter
in interface SubsystemXmlWriterRegistry
registerSubsystemWriter
in class AbstractConfigurationPersister
name
- the name of the subsystemwriter
- the XML writerpublic void registerSubsystemDeploymentWriter(String name, org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> writer)
SubsystemXmlWriterRegistry
registerSubsystemDeploymentWriter
in interface SubsystemXmlWriterRegistry
registerSubsystemDeploymentWriter
in class AbstractConfigurationPersister
name
- the name of the subsystemwriter
- the XML writerCopyright © 2013 JBoss by Red Hat. All rights reserved.