|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FailSafe
This interface gives file backup services.
Method Summary | |
---|---|
java.lang.String[] |
getFileNameList()
It returns all the files that will be safe saved. |
void |
load(java.lang.String[] fileNames)
Loads information of the class contained in the files. |
void |
recoverFromLoadError(java.lang.Exception error)
Error treatment of the load method. |
void |
recoverFromStoreError(java.lang.Exception error)
Error treatment of the store method. |
void |
store(java.lang.String[] fileNames)
It stores the information of the class in that files. |
Method Detail |
---|
java.lang.String[] getFileNameList()
void store(java.lang.String[] fileNames) throws java.lang.Exception
IMPORTANT: This method MUST be synchronized.
fileNames
- List of files to store the class information
java.lang.Exception
- if the files cannot be stored correctly.void recoverFromStoreError(java.lang.Exception error) throws java.lang.Exception
IMPORTANT: This method MUST be synchronized.
error
- Error thrown by store method.
java.lang.Exception
- if error cannot be handledvoid load(java.lang.String[] fileNames) throws java.lang.Exception
IMPORTANT: This method MUST be synchronized.
fileNames
- List of files to store the class information
java.lang.Exception
- if the files cannot be loaded correctly.void recoverFromLoadError(java.lang.Exception error) throws java.lang.Exception
IMPORTANT: This method MUST be synchronized.
error
- Error throwed by load method.
java.lang.Exception
- if error cannot be handled
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |