org.wildfly.extras.creaper.commands.foundation.offline
Class ConfigurationFileBackup

java.lang.Object
  extended by org.wildfly.extras.creaper.commands.foundation.offline.ConfigurationFileBackup

public final class ConfigurationFileBackup
extends Object

Provides a pair of offline commands to backup and then restore the configuration file. The backup command must be applied before restore, and both commands can only be applied once. If any one of these rules is violated, an exception is thrown. For special circumstances, when the backup that was already acquired is no longer needed and is not going to be restored, a destroy command is provided. If there was no backup acquired, the destroy command does nothing.


Constructor Summary
ConfigurationFileBackup()
           
 
Method Summary
 OfflineCommand backup()
           
 OfflineCommand destroy()
           
 OfflineCommand restore()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationFileBackup

public ConfigurationFileBackup()
Method Detail

backup

public OfflineCommand backup()

restore

public OfflineCommand restore()

destroy

public OfflineCommand destroy()


Copyright © 2016. All rights reserved.