|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersistentDataClient
A PersistentDataClient is a class that wants to persist its own data in the persisted curn data store. A PersistentDataClient object can store and retrieve three kinds of data in the store:
Each PersistentDataClient object has its own namespace, to ensure that its variable names don't clash with other data. The namespace name is supplied by the PersistentDataClient itself; the fully-qualified class name is typically a good choice for a namespace name.
A PersistentDataClient must register itself with the
DataPersister class to activate itself; once registered, the
client will be invoked automatically during the appropriate phases
of execution. Note: Plug-in classes that implement this interface are
automatically registered during plug-in discovery.
When saving the feed meta data, curn polls each registered PersistentDataClient for its data.
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getExtraFeedMetadata()
Get any extra metadata (i.e., data that is not associated with a feed or an item) that is to be saved. |
java.util.Map<java.lang.String,java.lang.String> |
getMetadataForFeed(FeedCacheEntry feedData)
Get the metadata that is to be saved with a particular feed or channel. |
java.util.Map<java.lang.String,java.lang.String> |
getMetadataForItem(FeedCacheEntry itemData,
FeedCacheEntry feedData)
Get the metadata that is to be saved with a particular item within a feed. |
java.lang.String |
getMetatdataNamespace()
Get the namespace for this object's metadata. |
void |
parseExtraMetadata(java.lang.String name,
java.lang.String value)
Process an "extra" data item that is not associated with a feed or an item. |
void |
parseFeedMetadata(java.lang.String name,
java.lang.String value,
FeedCacheEntry feedData)
Process a data item that has been read from the metadata store and is associated with a feed (or channel). |
void |
parseItemMetadata(java.lang.String name,
java.lang.String value,
FeedCacheEntry itemData)
Process a data item that has been read from the metadata store and is associated with a cached item. |
| Method Detail |
|---|
void parseFeedMetadata(java.lang.String name,
java.lang.String value,
FeedCacheEntry feedData)
throws CurnException
name - the name associated with the data itemvalue - the (string) value of the datafeedData - the FeedCacheEntry record for the feed
CurnException - on errorgetMetatdataNamespace()
void parseItemMetadata(java.lang.String name,
java.lang.String value,
FeedCacheEntry itemData)
throws CurnException
name - the name associated with the data itemvalue - the (string) value of the dataitemData - The FeedCacheEntry data for the item
CurnException - on errorgetMetatdataNamespace()
void parseExtraMetadata(java.lang.String name,
java.lang.String value)
throws CurnException
name - the name of the data itemvalue - its value
CurnException - on errorgetMetatdataNamespace()
java.util.Map<java.lang.String,java.lang.String> getMetadataForFeed(FeedCacheEntry feedData)
throws CurnException
feedData - the FeedCacheEntry record for the feed
CurnException - on error
java.util.Map<java.lang.String,java.lang.String> getMetadataForItem(FeedCacheEntry itemData,
FeedCacheEntry feedData)
throws CurnException
itemData - the FeedCacheEntry record for the itemfeedData - the FeedCacheEntry record for the parent feed
CurnException - on error
java.util.Map<java.lang.String,java.lang.String> getExtraFeedMetadata()
throws CurnException
CurnException - on errorjava.lang.String getMetatdataNamespace()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||