| java.lang.Object com.sun.midp.jump.push.executive.persistence.AppSuiteDataStore
AppSuiteDataStore | final class AppSuiteDataStore (Code) | | Manages storing information associated with an application suite.
The class is not thread-safe.
IMPORTANT_NOTE: The clients of this class should ensure that content store
manager passed into the constructor doesn't have exclusive lock when
methods are invoked. Otherwise we'll face deadlocks.
|
Inner Class :static interface DataConverter | |
Inner Class :static interface DataConsumer | |
AppSuiteDataStore | AppSuiteDataStore(StoreOperationManager storeManager, String dir, DataConverter dataConverter) throws IOException(Code) | | Creats an app data store and reads the data.
Parameters: storeManager - JUMP content store manager to use Parameters: dir - dir to store data in Parameters: dataConverter - data converter to use throws: IOException - if IO fails |
getSuiteData | Object getSuiteData(int suiteId)(Code) | | Gets data associated with the app suite.
Parameters: suiteId - app suite to fetch data for data or null |
listData | void listData(DataConsumer dataLister)(Code) | | Lists all the data.
Parameters: dataLister - data lister |
removeSuiteData | void removeSuiteData(int suiteId) throws IOException(Code) | | Removes data for the given suite.
Parameters: suiteId - app suite to remove data for throws: IOException - if the content store failed |
updateSuiteData | void updateSuiteData(int suiteId, Object suiteData) throws IOException(Code) | | Updates data for the given suite.
Parameters: suiteId - app suite to update data for Parameters: suiteData - data to store throws: IOException - if the content store failed |
|
|