|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.kedwards.swt.persist.FSPersistifier
FSPersistifier.java
This is the default persistifier used by the SWT for non-activatable services. It simply writes checkpoint data to a file.
See http://www.kedwards.com/jini
No warranty expressed or implied; use at your own risk; for educational purposes only.
Constructor Summary | |
FSPersistifier(java.lang.String loc)
|
Method Summary | |
void |
checkpoint(TaggedPersistentData data)
Write the persistent data to stable storage. |
void |
delete()
Irrevocably remote persistent storage. |
java.lang.String |
getStorageLocation()
Get the "location" of storage. |
boolean |
restorable()
Is the persistifier able to restore any prior state? This method may return false if, for instance, the service has never before been checkpointed. |
TaggedPersistentData |
restore()
Read persistent data from stable storage and return it. |
void |
setStorageLocation(java.lang.String newLoc)
Change the "location" of storage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FSPersistifier(java.lang.String loc) throws java.io.IOException
Method Detail |
public boolean restorable()
Persistifier
restorable
in interface Persistifier
public void checkpoint(TaggedPersistentData data) throws java.io.IOException
Persistifier
checkpoint
in interface Persistifier
public TaggedPersistentData restore() throws java.io.IOException
Persistifier
restore
in interface Persistifier
public java.lang.String getStorageLocation()
Persistifier
getStorageLocation
in interface Persistifier
public void setStorageLocation(java.lang.String newLoc) throws java.io.IOException
Persistifier
setStorageLocation
in interface Persistifier
public void delete() throws java.io.IOException
Persistifier
delete
in interface Persistifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |