public class ApplicationClientConfigurationPersister extends XmlConfigurationPersister
ConfigurationPersister.PersistenceResource, ConfigurationPersister.SnapshotInfoNULL_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, successfulBootunregisterSubsystemDeploymentWriter, unregisterSubsystemWriterpublic 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
XmlConfigurationPersisterstore in interface ConfigurationPersisterstore in class XmlConfigurationPersistermodel - the model to persistConfigurationPersistenceExceptionpublic void marshallAsXml(org.jboss.dmr.ModelNode model,
OutputStream output)
throws ConfigurationPersistenceException
AbstractConfigurationPersistermarshallAsXml in interface ConfigurationPersistermarshallAsXml in class AbstractConfigurationPersistermodel - the model to persistoutput - the streamConfigurationPersistenceExceptionpublic List<org.jboss.dmr.ModelNode> load() throws ConfigurationPersistenceException
XmlConfigurationPersisterload in interface ConfigurationPersisterload in class XmlConfigurationPersisterConfigurationPersistenceExceptionpublic void successfulBoot()
throws ConfigurationPersistenceException
ConfigurationPersistersuccessfulBoot in interface ConfigurationPersistersuccessfulBoot in class AbstractConfigurationPersisterConfigurationPersistenceExceptionpublic String snapshot() throws ConfigurationPersistenceException
ConfigurationPersistersnapshot in interface ConfigurationPersistersnapshot in class XmlConfigurationPersisterConfigurationPersistenceException - if a problem happened when creating the snapshotpublic ConfigurationPersister.SnapshotInfo listSnapshots()
ConfigurationPersisterlistSnapshots in interface ConfigurationPersisterlistSnapshots in class AbstractConfigurationPersisterpublic void deleteSnapshot(String name)
ConfigurationPersisterdeleteSnapshot in interface ConfigurationPersisterdeleteSnapshot in class AbstractConfigurationPersistername - 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)
SubsystemXmlWriterRegistryregisterSubsystemWriter in interface SubsystemXmlWriterRegistryregisterSubsystemWriter in class AbstractConfigurationPersistername - the name of the subsystemwriter - the XML writerpublic void registerSubsystemDeploymentWriter(String name, org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> writer)
SubsystemXmlWriterRegistryregisterSubsystemDeploymentWriter in interface SubsystemXmlWriterRegistryregisterSubsystemDeploymentWriter in class AbstractConfigurationPersistername - the name of the subsystemwriter - the XML writerCopyright © 2014 JBoss by Red Hat. All rights reserved.