|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.kedwards.swt.persist.TaggedPersistentData
TaggedPersistentData.java
SWT services that need to checkpoint and restore data do so indirectly, though a Persistifier. These services pass and receive TaggedPersistentData objects to and from their Persistifier. They write data to be checkpointed to the data object, and--upon recovery--read data from it.
A single TaggedPersistentData object will collect checkpoint data for the service's wrapper and backend. Different sub-components in a service may need to add or take different data from it. Each component thus "tags" any data they add with their class name with the name of the data appended to it. This allows the Persistifier framework to determine if a service component has written data that it never reads, etc.
This is an implementation of the collector pattern.
See http://www.kedwards.com/jini
No warranty expressed or implied; use at your own risk; for educational purposes only.
Constructor Summary | |
TaggedPersistentData()
|
Method Summary | |
java.lang.Object |
get(java.lang.String name)
Retrieved the named data. |
java.util.Iterator |
keyIterator()
|
void |
put(java.lang.String name,
java.io.Serializable data)
|
int |
size()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TaggedPersistentData()
Method Detail |
public void put(java.lang.String name, java.io.Serializable data) throws java.io.IOException
public java.lang.Object get(java.lang.String name) throws java.io.IOException, java.lang.ClassNotFoundException
public int size()
public java.util.Iterator keyIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |