|
OracleAS Personalization Java API Reference 10g Release 2 (10.1.2) B14053-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.dmt.op.re.reapi.rt.DataCollectionCache
This class stores the collected user profile data in the memory and archives the data in RE schema periodically or when the cache is full.
Constructor Summary | |
DataCollectionCache(REProxyRT proxy) Creates a new DataCollectionCache object. |
Method Summary | |
void |
addItem(IdentificationData idd, DataItem item) Adds the specified item to the profile of the user or the session specified by idData . |
void |
addItems(IdentificationData idd, DataItem[] items) Adds one or more items to the profile of the user or the session specified by idData . |
void |
archive() Flushes cached item data in the main buffer to the database. |
void |
close() Closes the cache after cached data are properly archived |
static int |
kbyes2NItems(int kb) Converts Kbytes to array size. |
void |
removeItem(IdentificationData idData, DataItem item) Removes the item from the specified session or from the profile of the specified user. |
void |
removeItems(IdentificationData idData, DataItem[] items) Removes the items from the specified session or from the profile of the specified user. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataCollectionCache(REProxyRT proxy) throws java.lang.OutOfMemoryError, BadDBConnectionException, java.sql.SQLException
DataCollectionCache
object.proxy
- the proxy it belongs toMethod Detail |
public static int kbyes2NItems(int kb)
public void archive()
public void addItem(IdentificationData idd, DataItem item) throws BufferIsFullException
idData
. Item
specifies the data source type, item type, item ID, and value of the item.BufferIsFullException
public void addItems(IdentificationData idd, DataItem[] items) throws BufferIsFullException
idData
. Item[i]
specifies the data source type, item type, item ID, and value of the ith item. The items are stored in an array.BufferIsFullException
public void removeItem(IdentificationData idData, DataItem item)
This method cannot be used to remove an item from a user profile that has been written to permanent storage.
If a specified item is not in the user's profile, OP does nothing.
public void removeItems(IdentificationData idData, DataItem[] items)
Cannot be used to remove items from a user profile that have been written to permanent storage.
If a specified item is not in the user's profile, OP does nothing.
public void close()
|
OracleAS Personalization Java API Reference 10g Release 2 (10.1.2) B14053-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |