|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gridsystems.storage.FailSafeManager
public final class FailSafeManager
This class manages the safe load and stores.
Method Summary | |
---|---|
static void |
delete(FailSafe fs)
Deletes all files (including backups) for the specified FailSafe instance. |
static FailSafe |
load(java.lang.Class c)
Manages all load information of the class. |
static FailSafe |
load(java.lang.Class c,
java.util.Map map)
Manages all load information of the class. |
static FailSafe |
load(java.lang.Class c,
java.lang.Object obj)
Manages all load information of the class. |
static void |
load(FailSafe data)
Manages all load information of the class. |
static void |
store(FailSafe data)
Manages the store information of the class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void store(FailSafe data) throws java.lang.Exception
data
- The FailSafe instance to manage
java.lang.Exception
- if the files cannot be stored correctly.public static void load(FailSafe data) throws java.lang.Exception
data
- The FailSafe instance to manage
java.lang.Exception
- if the files cannot be loaded correctly.public static FailSafe load(java.lang.Class c) throws java.lang.Exception
As this method does not use initialization data, it is preferred to use it only with classes implementing the Singleton pattern.
c
- The class to load
java.lang.Exception
- In case of execution errorpublic static FailSafe load(java.lang.Class c, java.util.Map map) throws java.lang.Exception
The map parameter will be used as the argument for the constructor. If no appropriate constructor is found, it will fall back to the "no-argument" version.
c
- The class to loadmap
- The map to pass to the constructor
java.lang.Exception
- In case of execution errorpublic static FailSafe load(java.lang.Class c, java.lang.Object obj) throws java.lang.Exception
The object parameter will be used as the argument for the constructor. The object must be exactly of the same class than the expected constructor parameter. If no appropriate constructor is found, it will fall back to the "no-argument" version.
c
- The class to loadobj
- The object to pass to the constructor
java.lang.Exception
- In case of execution errorpublic static void delete(FailSafe fs) throws java.lang.Exception
fs
- The instance whose files to delete
java.lang.Exception
- In case of execution error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |