public class HostControllerConfigurationPersister extends Object implements ExtensibleConfigurationPersister
ConfigurationPersister.PersistenceResource, ConfigurationPersister.SnapshotInfoNULL_SNAPSHOT_INFO| Constructor and Description |
|---|
HostControllerConfigurationPersister(HostControllerEnvironment environment,
LocalHostControllerInfo localHostControllerInfo,
ExecutorService executorService,
ExtensionRegistry extensionRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSnapshot(String name)
Deletes a snapshot using its name.
|
ExtensibleConfigurationPersister |
getDomainPersister() |
ExtensibleConfigurationPersister |
getHostPersister() |
void |
initializeDomainConfigurationPersister(boolean slave) |
boolean |
isSlave() |
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)
Deprecated.
|
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
|
void |
unregisterSubsystemDeploymentWriter(String name)
Deprecated.
|
void |
unregisterSubsystemWriter(String name)
Unregisters the XML configuration writer of the named subsystem.
|
public HostControllerConfigurationPersister(HostControllerEnvironment environment, LocalHostControllerInfo localHostControllerInfo, ExecutorService executorService, ExtensionRegistry extensionRegistry)
public void initializeDomainConfigurationPersister(boolean slave)
public boolean isSlave()
public ExtensibleConfigurationPersister getDomainPersister()
public ExtensibleConfigurationPersister getHostPersister()
public ConfigurationPersister.PersistenceResource store(org.jboss.dmr.ModelNode model, Set<PathAddress> affectedAddresses) throws ConfigurationPersistenceException
ConfigurationPersisterstore in interface ConfigurationPersistermodel - the model to persistConfigurationPersistenceExceptionpublic void marshallAsXml(org.jboss.dmr.ModelNode model,
OutputStream output)
throws ConfigurationPersistenceException
ConfigurationPersistermarshallAsXml in interface ConfigurationPersistermodel - the model to persistoutput - the streamConfigurationPersistenceExceptionpublic List<org.jboss.dmr.ModelNode> load() throws ConfigurationPersistenceException
ConfigurationPersisterload in interface ConfigurationPersisterConfigurationPersistenceExceptionpublic void successfulBoot()
throws ConfigurationPersistenceException
ConfigurationPersistersuccessfulBoot in interface ConfigurationPersisterConfigurationPersistenceExceptionpublic String snapshot() throws ConfigurationPersistenceException
ConfigurationPersistersnapshot in interface ConfigurationPersisterConfigurationPersistenceException - if a problem happened when creating the snapshotpublic 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.public void registerSubsystemWriter(String name, 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 subsystem@Deprecated public void registerSubsystemDeploymentWriter(String name, org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> writer)
SubsystemXmlWriterRegistryregisterSubsystemDeploymentWriter in interface SubsystemXmlWriterRegistryname - the name of the subsystemwriter - the XML writer@Deprecated public void unregisterSubsystemDeploymentWriter(String name)
SubsystemXmlWriterRegistryunregisterSubsystemDeploymentWriter in interface SubsystemXmlWriterRegistryname - the name of the subsystemCopyright © 2014 JBoss by Red Hat. All rights reserved.