public class StorageManager extends Object
| Constructor and Description |
|---|
StorageManager() |
| Modifier and Type | Method and Description |
|---|---|
static IStorageUtility<? extends Externalizable> |
getStorage(String key) |
static void |
halt() |
static String[] |
listRegisteredUtilities() |
static void |
registerStorage(String key,
Class type) |
static void |
registerStorage(String key,
IStorageUtility<? extends Externalizable> storage)
It is strongly, strongly advised that you do not register storage in this way.
|
static void |
registerStorage(String storageKey,
String storageName,
Class type) |
static void |
registerWrappedStorage(String key,
String storeName,
WrappingStorageUtility.SerializationWrapper wrapper) |
static void |
repairAll() |
static void |
setStorageFactory(IStorageFactory fact)
Attempts to set the storage factory for the current environment.
|
static void |
setStorageFactory(IStorageFactory fact,
boolean mustWork)
Attempts to set the storage factory for the current environment and fails and dies if there
is already a storage factory set if specified.
|
public static void setStorageFactory(IStorageFactory fact)
fact - An available storage factory.public static void setStorageFactory(IStorageFactory fact, boolean mustWork)
fact - An available storage factory.mustWork - true if it is intolerable for another storage factory to have been set. False otherwisepublic static void registerStorage(String storageKey, String storageName, Class type)
public static void registerStorage(String key, IStorageUtility<? extends Externalizable> storage)
key - storage - public static void registerWrappedStorage(String key, String storeName, WrappingStorageUtility.SerializationWrapper wrapper)
public static IStorageUtility<? extends Externalizable> getStorage(String key)
public static void repairAll()
public static String[] listRegisteredUtilities()
public static void halt()
Copyright © 2024. All rights reserved.