public abstract class NNUpgradeUtil
extends java.lang.Object
| Constructor | Description |
|---|---|
NNUpgradeUtil() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
doUpgrade(Storage.StorageDirectory sd,
Storage storage) |
Perform the upgrade of the storage dir to the given storage info.
|
static void |
renameCurToTmp(Storage.StorageDirectory sd) |
Rename the existing current dir to previous.tmp, and create a new empty
current dir.
|
public static void renameCurToTmp(Storage.StorageDirectory sd) throws java.io.IOException
java.io.IOExceptionpublic static void doUpgrade(Storage.StorageDirectory sd, Storage storage) throws java.io.IOException
sd - the storage directory to upgradestorage - info about the new upgraded versions.java.io.IOException - in the event of errorCopyright © 2008–2025 Apache Software Foundation. All rights reserved.