|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use StorageException | |
---|---|
org.netbeans.mdr.persistence | |
org.netbeans.mdr.persistence.btreeimpl.btreeindex | Together, the btreestorage and btreeindex packages provide the btree storage implementation for the NetBeans meta-data repository. |
org.netbeans.mdr.persistence.btreeimpl.btreestorage | Together, the btreestorage and btreeindex packages provide the btree storage implementation for the NetBeans meta-data repository. |
Uses of StorageException in org.netbeans.mdr.persistence |
---|
Subclasses of StorageException in org.netbeans.mdr.persistence | |
---|---|
class |
StorageBadRequestException
This is thrown when an error caused by an invalid request from another layer occurs in the storage layer. |
class |
StorageIOException
This is thrown when an IO error occurs in the storage layer. |
class |
StoragePersistentDataException
This is thrown when an error caused by invalid persistent data occurs in the storage layer. |
class |
StorageTransientDataException
This is thrown when an error caused by invalid in-memory data occurs in the storage layer. |
Methods in org.netbeans.mdr.persistence that throw StorageException | |
---|---|
void |
MultivaluedOrderedIndex.add(java.lang.Object key,
int index,
java.lang.Object value)
Inserts the specified element at the specified position in the list of values associated with the specified key. |
void |
Index.add(java.lang.Object key,
java.lang.Object value)
Adds the specified value to values associated in this index with the specified key. |
void |
Storage.close()
|
void |
Storage.commitChanges()
Save all objects changed since this method was last call. |
void |
Storage.create(boolean replace,
ObjectResolver resolver)
|
MultivaluedIndex |
Storage.createMultivaluedIndex(java.lang.String name,
Storage.EntryType keyType,
Storage.EntryType valueType,
boolean unique)
Create index that hold a set of values for each key. |
MultivaluedOrderedIndex |
Storage.createMultivaluedOrderedIndex(java.lang.String name,
Storage.EntryType keyType,
Storage.EntryType valueType,
boolean unique)
Create index that holds sorted set of values for each key. |
MOFID |
StorageFactory.createNullMOFID()
Creates a NULL MOFID in the format used by this Storage implementation |
SinglevaluedIndex |
Storage.createSinglevaluedIndex(java.lang.String name,
Storage.EntryType keyType,
Storage.EntryType valueType)
Create index that holds exactly one value for each key. |
Storage |
StorageFactory.createStorage(java.util.Map properties)
Creates instance of class that implements Storage interface. |
boolean |
Storage.delete()
Delete any persistent resources associated with the Storage. |
void |
Storage.dropIndex(java.lang.String name)
Delete index. |
boolean |
Storage.exists()
|
java.lang.Object |
SinglevaluedIndex.get(java.lang.Object key)
Returns the value to which this index maps the specified key. |
java.lang.Object |
SinglevaluedIndex.getIfExists(java.lang.Object key)
Returns the value to which this index maps the specified key or null if there is no value for this key. |
Index |
Storage.getIndex(java.lang.String name)
Retrieve index by name. |
java.util.Collection |
MultivaluedIndex.getItems(java.lang.Object key)
Returns a collection view of the values associated in the index with specified key. |
java.util.List |
MultivaluedOrderedIndex.getItemsOrdered(java.lang.Object key)
Returns a list view of the values assosiated in the index with specified key. |
Storage.EntryType |
Index.getKeyType()
Returns the type of keys in index. |
MultivaluedIndex |
Storage.getMultivaluedIndex(java.lang.String name)
Retrieve index by name. |
MultivaluedOrderedIndex |
Storage.getMultivaluedOrderedIndex(java.lang.String name)
Retrieve index by name. |
java.lang.String |
Index.getName()
Returns the unique name of the index in the Storage. |
java.lang.Object |
SinglevaluedIndex.getObject(java.lang.Object key,
SinglevaluedIndex repos)
Like get, but if the index contains keys, this returns the object corresponding to the key |
java.lang.Object |
SinglevaluedIndex.getObjectIfExists(java.lang.Object key,
SinglevaluedIndex repos)
Like getIfExists, but if the index contains keys, this returns the object corresponding to the key |
java.util.Collection |
MultivaluedIndex.getObjects(java.lang.Object key,
SinglevaluedIndex repos)
Like getItems, but if the index contains keys, this returns the objects corresponding to the key |
java.util.Collection |
MultivaluedOrderedIndex.getObjectsOrdered(java.lang.Object key,
SinglevaluedIndex repos)
Like getItemsOrdered, but if the index contains keys, this returns the objects corresponding to the key |
SinglevaluedIndex |
Storage.getPrimaryIndex()
Returns the primary index in this Storage. |
SinglevaluedIndex |
Storage.getSinglevaluedIndex(java.lang.String name)
Retrieve index by name. |
Storage.EntryType |
Index.getValueType()
Returns the type of values indexed by this index. |
boolean |
MultivaluedIndex.isUnique()
If true, the collection of values is contrained to hold no more than one of any value. |
java.util.Set |
Index.keySet()
Returns a set view of the keys contained in this index. |
void |
Storage.objectStateChanged(java.lang.Object key)
Notify the Storage that state of the object associated with this key was changed. |
void |
Storage.objectStateWillChange(java.lang.Object key)
Notify the Storage that state of the object associated with this key will be changed. |
void |
Storage.open(boolean createOnNoExist,
ObjectResolver resolver)
|
boolean |
SinglevaluedIndex.put(java.lang.Object key,
java.lang.Object value)
Associates the specified value with the specified key in this index. |
java.util.Collection |
SinglevaluedIndex.queryByKeyPrefix(java.lang.Object prefix,
SinglevaluedIndex repos)
Returns a collection view of Map.Entry key-value pairs in the index,
where key matches the queried prefix. |
java.util.Collection |
MultivaluedIndex.queryByKeyPrefix(java.lang.Object prefix,
SinglevaluedIndex repos)
Returns a collection of Map.Entry key-value pairs in the index,
where key matches the queried prefix. |
void |
Streamable.read(java.io.InputStream inputStream)
Restore state of the Storable object from the stream. |
MOFID |
Storage.readMOFID(java.io.InputStream inputStream)
Reads a MOFID from Storage, must be called in the streamable read context. |
boolean |
Index.remove(java.lang.Object key)
Removes all values assosiated in the index with specified key. |
boolean |
MultivaluedOrderedIndex.remove(java.lang.Object key,
int index)
Removes the element at the specified position in the list of values associated with the specified key. |
boolean |
MultivaluedIndex.remove(java.lang.Object key,
java.lang.Object value)
Removes the first occurrence of the specified element in the list of values associated with the specified key. |
void |
MultivaluedOrderedIndex.replace(java.lang.Object key,
int index,
java.lang.Object element)
Replaces the element at the specified position in the list of values associated with the specified key with the specified element. |
void |
SinglevaluedIndex.replace(java.lang.Object key,
java.lang.Object value)
Replaces the original value associated with the specified key in this index with new value. |
java.lang.Object |
ObjectResolver.resolve(java.lang.String storageID,
java.lang.Object key)
Resolves object specified by storage id and key. |
void |
Storage.rollBackChanges()
Discard all changes since commitChanges() method was last call. |
void |
Storage.shutDown()
Performs operations needed on exit. |
java.util.Collection |
SinglevaluedIndex.values()
Returns a collection view of the values contained in this index. |
void |
Streamable.write(java.io.OutputStream outputStream)
This method will be used to move changed object from storage cache to the persistent part of storage. |
void |
Storage.writeMOFID(java.io.OutputStream outputStream,
MOFID mofid)
Writes a MOFID into Storage, must be called in the streamable write context. |
Constructors in org.netbeans.mdr.persistence with parameters of type StorageException | |
---|---|
RuntimeStorageException(StorageException err)
this constructs a RuntimeStorageException from an StorageException |
Uses of StorageException in org.netbeans.mdr.persistence.btreeimpl.btreeindex |
---|
Methods in org.netbeans.mdr.persistence.btreeimpl.btreeindex that throw StorageException | |
---|---|
void |
MultivaluedOrderedBtree.add(java.lang.Object key,
int index,
java.lang.Object data)
Inserts the specified element at the specified position in the list of values associated with the specified key. |
void |
Btree.add(java.lang.Object key,
java.lang.Object data)
Add a new entry to the index. |
void |
MultivaluedBtree.add(java.lang.Object key,
java.lang.Object data)
|
void |
MultivaluedOrderedBtree.add(java.lang.Object key,
java.lang.Object data)
Add an item to the end of the list of values for this key. |
protected void |
Btree.btreePut(java.lang.Object key,
java.lang.Object data,
byte operation,
int index)
|
int |
BtreePage.consistencyCheck(java.io.PrintWriter out)
|
int |
Btree.consistencyCheck(java.io.PrintWriter out)
Check the btree for consistency, for testing and debugging. |
void |
BtreePageSource.dirtyPage(BtreePage page)
Notify the BtreePageSource that the caller is going to modify this page. |
void |
BtreeCacheSource.dirtyPage(BtreePage page)
|
void |
BtreePage.dumpPage(java.io.PrintWriter out)
Print BtreePage contents for debugging. |
void |
BigKeyPage.dumpPageEntries(java.io.PrintWriter out)
|
void |
BtreePage.dumpPageEntries(java.io.PrintWriter out)
Print BtreePage entries for debugging. |
void |
BtreePage.dumpTree(java.io.PrintWriter out)
Print tree starting from this page for debugging. |
void |
Btree.dumpTree(java.io.PrintWriter out)
Print the contents of the btree for debugging purposes. |
byte[] |
BtreePage.get(byte[] key)
Retrieves the value associated with the given key. |
java.lang.Object |
SinglevaluedBtree.get(java.lang.Object key)
Return a single object associated with the specified key. |
java.lang.Object |
SinglevaluedBtree.getIfExists(java.lang.Object key)
Return a single object associated with the specified key. |
java.util.Collection |
MultivaluedBtree.getItems(java.lang.Object key)
Returns a collection view of the values associated in the index with specified key. |
java.util.List |
MultivaluedOrderedBtree.getItemsOrdered(java.lang.Object key)
Returns a list view of the values associated in the index with specified key. |
org.netbeans.mdr.persistence.btreeimpl.btreeindex.SearchResult |
BtreePage.getLocation(byte[] key)
Finds the first entry associated with the given key, navigating down the btree from this page. |
java.lang.Object |
SinglevaluedBtree.getObject(java.lang.Object key,
SinglevaluedIndex repos)
Like get, but if the index contains keys, this returns the object corresponding to the key |
java.lang.Object |
SinglevaluedBtree.getObjectIfExists(java.lang.Object key,
SinglevaluedIndex repos)
Like getIfExists, but if the index contains keys, this returns the object corresponding to the key |
java.util.Collection |
MultivaluedBtree.getObjects(java.lang.Object key,
SinglevaluedIndex repos)
Like getItems, but if the values in the index are a key type, returns the objects associated with the keys. |
java.util.Collection |
MultivaluedOrderedBtree.getObjectsOrdered(java.lang.Object key,
SinglevaluedIndex repos)
Like getItemsOrdered, but if the index contains keys, this returns the objects corresponding to the key |
BtreePage |
BtreePageSource.getPage(byte[] pageId,
Btree btree)
Retrieve a page. |
BtreePage |
BtreeCacheSource.getPage(byte[] pageId,
Btree btree)
|
BtreePage |
BtreePageSource.getRootPage(Btree btree)
Retrieve the root page for this btree. |
BtreePage |
BtreeCacheSource.getRootPage(Btree btree)
|
protected void |
Btree.init()
|
protected void |
MultivaluedBtree.init()
|
protected void |
SinglevaluedBtree.init()
|
void |
BigKeyPage.init(Btree btree,
byte[] pageId,
byte[] pageBuffer,
boolean isNew)
Initialize a newly-instantiated or recycled BigKeyPage. |
void |
BtreePage.init(Btree btree,
byte[] pageId,
byte[] pageBuffer,
boolean isNew)
Initialize a newly-instantiated or recycled BtreePage. |
void |
FixedKeyPage.init(Btree btree,
byte[] pageId,
byte[] pageBuffer,
boolean isNew)
Initialize a newly-instantiated or recycled FixedKeyPage. |
void |
ShrinkablePage.init(Btree btree,
byte[] pageId,
byte[] pageBuffer,
boolean isNew)
Initialize a newly-instantiated or recycled ShrinkablePage. |
void |
VarKeyPage.init(Btree btree,
byte[] pageId,
byte[] pageBuffer,
boolean isNew)
Initialize a newly-instantiated or recycled VarKeyPage. |
void |
VarRecordPage.init(Btree btree,
byte[] pageId,
byte[] pageBuffer,
boolean isNew)
|
java.util.Set |
Btree.keySet()
Returns a set view of the keys contained in this index. |
BigKeyPage |
BtreePageSource.newBigKeyPage(Btree btree)
Creates a new oversize-key page and returns it. |
BigKeyPage |
BtreeCacheSource.newBigKeyPage(Btree btree)
|
BtreePage |
BtreePageSource.newPage(Btree btree)
Creates a new page and returns it. |
BtreePage |
BtreeCacheSource.newPage(Btree btree)
|
void |
BtreePage.put(byte[] key,
byte[] data,
byte operation,
int index)
Add an entry to the btree, navigating down from this page. |
void |
BtreePage.put(byte[] key,
byte[] data,
byte operation,
int index,
org.netbeans.mdr.persistence.btreeimpl.btreeindex.SearchResult resultPosition)
Add an entry to the btree, navigating down from this page. |
boolean |
SinglevaluedBtree.put(java.lang.Object key,
java.lang.Object data)
Add a new entry to the index. |
java.util.Collection |
MultivaluedBtree.queryByKeyPrefix(java.lang.Object prefix,
SinglevaluedIndex primaryIndex)
Returns list of BtreeEntryImpl key-value pairs, where key contains
the queried prefix. |
java.util.Collection |
SinglevaluedBtree.queryByKeyPrefix(java.lang.Object prefix,
SinglevaluedIndex primaryIndex)
Returns BtreeEntryImpl key-value pairs, where the key contains the queried prefix. |
void |
BtreePage.read(java.io.InputStream in)
(Streamable Interface) Populate the pageBuffer from the InputStream. |
void |
Btree.read(java.io.InputStream inputStream)
Populate this Btree from the InputStream. |
boolean |
BtreePage.remove(byte[] key)
Remove all entries from the btree that match the given key. |
boolean |
BtreePage.remove(byte[] key,
byte[] data)
Remove the first entry encountered that matches the key/value pair. |
boolean |
BtreePage.remove(byte[] key,
int index)
Remove the item matching the key at the indexed position. |
boolean |
Btree.remove(java.lang.Object key)
Remove all entries associated with the specified key. |
boolean |
MultivaluedBtree.remove(java.lang.Object key)
|
boolean |
MultivaluedOrderedBtree.remove(java.lang.Object key,
int index)
Removes the element at the specified position in the list of values associated with the specified key. |
boolean |
MultivaluedBtree.remove(java.lang.Object key,
java.lang.Object value)
Removes the first occurrence of the specified element in the list of values associated with the specified key. |
void |
MultivaluedOrderedBtree.replace(java.lang.Object key,
int index,
java.lang.Object data)
Replaces the element at the specified position in the list of values associated with the specified key with the specified element. |
void |
SinglevaluedBtree.replace(java.lang.Object key,
java.lang.Object data)
Replace an index entry. |
protected org.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreePage.BtreeEntry |
BtreePage.split(org.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreePage.BtreeEntry entry,
int entryNum,
org.netbeans.mdr.persistence.btreeimpl.btreeindex.SearchResult resultPosition)
|
void |
BtreePageSource.unpinPage(BigKeyPage page)
Notify the BtreePageSource that the caller is done using this page. |
java.util.Collection |
SinglevaluedBtree.values()
Return a collection view of this btree's values. |
void |
BtreePage.write(java.io.OutputStream out)
(Streamable Interface) Write this page to the OutputStream. |
void |
Btree.write(java.io.OutputStream outputStream)
Write the state of this Btree to the OutputStream. |
Constructors in org.netbeans.mdr.persistence.btreeimpl.btreeindex that throw StorageException | |
---|---|
Btree(java.lang.String name,
Storage.EntryType keyType,
Storage.EntryType dataType,
BtreePageSource pageSource)
|
|
BtreeCacheSource(MDRCache cache,
int pageSize,
BtreeStorage storage)
|
|
MultivaluedBtree(java.lang.String name,
Storage.EntryType keyType,
Storage.EntryType dataType,
boolean uniqueValues,
BtreePageSource pageSource)
|
|
MultivaluedOrderedBtree(java.lang.String name,
Storage.EntryType keyType,
Storage.EntryType dataType,
boolean uniqueValues,
BtreePageSource pageSource)
|
|
SinglevaluedBtree(java.lang.String name,
Storage.EntryType keyType,
Storage.EntryType dataType,
BtreePageSource pageSource)
|
Uses of StorageException in org.netbeans.mdr.persistence.btreeimpl.btreestorage |
---|
Methods in org.netbeans.mdr.persistence.btreeimpl.btreestorage that throw StorageException | |
---|---|
void |
FileCache.abort()
close all files without comitting |
void |
BtreeDatabase.add(MOFID mKey,
java.lang.Object value)
Adds a repository record, throwing an exception if it already exists |
void |
BtreeDatabase.add(java.lang.Object key,
java.lang.Object value)
Adds a repository record, throwing an exception if it already exists |
int |
CounterIndex.add(java.lang.String name)
Add a name-MOFID pair to the MofidIndex. |
void |
MofidIndex.add(java.lang.String name,
MOFID id)
Add a name-MOFID pair to the MofidIndex. |
void |
FileHeader.addFiles(java.lang.String[] names,
int size,
boolean replace)
Create new files with a given header |
void |
BtreeDatabase.cacheThreshholdReached(MDRCache cach,
int size)
cache has reached threshhold |
void |
MDRCache.OverflowHandler.cacheThreshholdReached(MDRCache cache,
int size)
Notify handler that the cache has reached its threshhold |
int |
BtreeDatabase.checkConsistency(java.io.PrintWriter strm)
Check consistency of btree database |
void |
BtreeStorage.close()
close the btree repository. |
void |
FileCache.close()
commit all changes and close all cached files |
void |
FileCache.commit()
commit all changes |
void |
BtreeStorage.commitChanges()
Save all objects changed since this method was last call. |
void |
BtreeDatabase.commitChanges()
Commits changes to transaction cache, if cache treshold is reached, flushes cache to disk. |
void |
BtreeDatabase.compress()
Compress repository. |
void |
BtreeStorage.create(boolean replace,
ObjectResolver resolver)
Create btree repository |
static FileHeader |
FileHeader.createFiles(java.lang.String[] names,
int size,
boolean replace)
Create a set of files with a common header |
MultivaluedIndex |
BtreeStorage.createMultivaluedIndex(java.lang.String name,
Storage.EntryType keyType,
Storage.EntryType valueType,
boolean unique)
Create index that hold a set of values for each key. |
MultivaluedOrderedIndex |
BtreeStorage.createMultivaluedOrderedIndex(java.lang.String name,
Storage.EntryType keyType,
Storage.EntryType valueType,
boolean unique)
Create index that holds sorted set of values for each key. |
SinglevaluedIndex |
BtreeStorage.createSinglevaluedIndex(java.lang.String name,
Storage.EntryType keyType,
Storage.EntryType valueType)
Create index that holds exactly one value for each key. |
Storage |
BtreeFactory.createStorage(java.util.Map properties)
Creates BtreeStorage |
boolean |
BtreeStorage.delete()
delete the btree repository. |
void |
BtreeFileSource.dirtyPage(BtreePage page)
Notifies the btree that the caller is going to modify this page. |
void |
BtreeMDRSource.dirtyPage(BtreePage page)
|
void |
BtreeStorage.dropIndex(java.lang.String name)
Delete index. |
protected void |
CachedPageInputStream.finalize()
if the stream was never closed, unpin the pages now |
java.lang.Object |
BtreeDatabase.get(MOFID mKey)
Gets a record from the repository. |
java.lang.Object |
BtreeDatabase.get(java.lang.Object key)
Gets a record from the repository. |
int |
CounterIndex.get(java.lang.String name)
get an integer by its name. |
MOFID |
MofidIndex.get(java.lang.String name)
get a MOFID by its name. |
java.lang.Integer |
CounterIndex.getIf(java.lang.String name)
get an integer by its name. |
java.lang.Object |
BtreeDatabase.getIfExists(MOFID mKey)
Gets a record from the repository. |
java.lang.Object |
BtreeDatabase.getIfExists(java.lang.Object key)
Gets a record from the repository. |
Index |
BtreeStorage.getIndex(java.lang.String name)
Retrieve index by name. |
byte[] |
BtreeStorage.getMOFIDData(MOFID mofid)
|
MultivaluedIndex |
BtreeStorage.getMultivaluedIndex(java.lang.String name)
Retrieve index by name. |
MultivaluedOrderedIndex |
BtreeStorage.getMultivaluedOrderedIndex(java.lang.String name)
Retrieve index by name. |
java.lang.Object |
BtreeDatabase.getObject(java.lang.Object key,
SinglevaluedIndex dummy)
Like get, since we don't return keys |
java.lang.Object |
BtreeDatabase.getObjectIfExists(java.lang.Object key,
SinglevaluedIndex dummy)
Like getIfExists, since we don't return keys |
BtreePage |
BtreeFileSource.getPage(byte[] pageId,
Btree btree)
Get a BtreePage by its pageId. |
BtreePage |
BtreeMDRSource.getPage(byte[] pageId,
Btree btree)
|
CachedPage |
FileCache.getPage(int fileidx,
int pageNum)
Get the single page at the desired offset into the file This implicitly pins that pages. |
CachedPage[] |
FileCache.getPages(int fileidx,
int first,
int size)
Get the pages which contain the desired bytes from the file This implicitly pins these pages. |
SinglevaluedIndex |
BtreeStorage.getPrimaryIndex()
Return the primary index (the BtreeDatabase) |
BtreePage |
BtreeFileSource.getRootPage(Btree btree)
Return the root page if it already exists, otherwise create it. |
BtreePage |
BtreeMDRSource.getRootPage(Btree btree)
|
SinglevaluedIndex |
BtreeStorage.getSinglevaluedIndex(java.lang.String name)
Retrieve index by name. |
java.util.Set |
BtreeDatabase.keySet()
Returns a set view of the keys contained in this index. |
java.lang.String[] |
BtreeDatabase.listIndexes()
List all index names |
BigKeyPage |
BtreeFileSource.newBigKeyPage(Btree btree)
Returns a newly allocated BigKeyPage. |
BigKeyPage |
BtreeMDRSource.newBigKeyPage(Btree btree)
|
BtreePage |
BtreeFileSource.newPage(Btree btree)
Returns a newly allocated btree page. |
BtreePage |
BtreeMDRSource.newPage(Btree btree)
|
java.lang.String |
BtreeStorage.numberToStorageId(int number)
Resolves external storage number coded by an integer. |
void |
BtreeDatabase.objectStateChanged(MOFID mKey)
Mark that the object has changed, and so needs to be saved on commit |
void |
BtreeStorage.objectStateChanged(java.lang.Object key)
Notify the Storage that state of the object was changed. |
void |
BtreeDatabase.objectStateChanged(java.lang.Object key)
Mark that the object has changed, and so needs to be saved on commit |
void |
BtreeStorage.objectStateWillChange(java.lang.Object key)
Notify the Storage that state of the object will be changed. |
void |
BtreeStorage.open(boolean createIfNoExist,
ObjectResolver resolver)
Open a btree MDR |
void |
FileCache.NotifyOnCommit.prepareToCommit()
a callback method called before the cache commits. |
void |
BtreeFileSource.prepareToCommit()
Prepares all cached modified pages to be written out. |
boolean |
BtreeDatabase.put(java.lang.Object key,
java.lang.Object value)
Adds or replaces a repository record |
void |
MDRCache.put(java.lang.Object m,
java.lang.Object o)
add a new object to the cache |
void |
CounterIndex.read(java.io.DataInputStream dstrm)
read from a DataOutputStream |
MOFID |
BtreeStorage.readMOFID(java.io.InputStream inputStream)
|
MOFID |
BtreeStorage.readMOFIDData(java.io.InputStream in)
|
protected java.lang.Object |
CounterIndex.readObjectFromStream(java.io.DataInputStream strm)
read object from stream. |
protected java.lang.Object |
MofidIndex.readObjectFromStream(java.io.DataInputStream strm)
read object from stream. |
boolean |
BtreeDatabase.remove(MOFID mKey)
Deletes a repository record based on a MOFID |
boolean |
BtreeDatabase.remove(java.lang.Object key)
Deletes a repository record |
void |
BtreeDatabase.replace(MOFID mKey,
java.lang.Object value)
Replaces the original value associated with the specified key in this index with new value. |
void |
BtreeDatabase.replace(java.lang.Object key,
java.lang.Object value)
Replaces the original value associated with the specified key in this index with new value. |
void |
MDRCache.replace(java.lang.Object m,
java.lang.Object o)
replace an object in the cache |
java.lang.Object |
BtreeStorage.resolveObject(MOFID key)
Delegates resolving of external mof ids on the object resolver. |
void |
BtreeDatabase.rollbackChanges()
roll back all changes |
void |
BtreeStorage.rollBackChanges()
Discard all changes since commitChanges() method was last called. |
void |
BtreeDatabase.saveChanges()
save all changes to disk without comitting |
void |
MDRCache.setDirty(java.lang.Object key)
mark that the object with the given MOF ID is dirty |
void |
MDRCache.setNew(java.lang.Object key)
mark that the object with the given MOF ID is new |
void |
CachedPage.setWritable()
Make this page writable. |
void |
FileCache.setWritable(CachedPage page)
Make the specified page writable. |
void |
FileCache.setWritable(CachedPage[] pages)
Make the specified pages writable. |
void |
BtreeStorage.shutDown()
Shutdowns btree databes (i.e. |
void |
BtreeDatabase.shutDown()
Called on exit, commited data cached in transaction cache need to be written to disk. |
int |
BtreeStorage.storageIdToNumber(java.lang.String storageId)
Maps an external storage prefix to integer. |
void |
CachedPage.unpin()
client calls this when it is done with the page |
void |
FileCache.unpin(CachedPage page)
unpin a page. |
void |
FileCache.unpin(CachedPage[] pages)
unpin a set of pages. |
void |
BtreeFileSource.unpinPage(BigKeyPage page)
|
java.util.Collection |
BtreeDatabase.values()
Returns a collection view of the values contained in the repository. |
void |
CounterIndex.write(java.io.DataOutputStream dstrm)
|
void |
BtreeStorage.writeMOFID(java.io.OutputStream outputStream,
MOFID mofId)
|
void |
BtreeStorage.writeMOFIDData(java.io.OutputStream out,
MOFID mofid)
|
protected void |
CounterIndex.writeObjectToStream(java.lang.Object obj,
java.io.DataOutputStream strm)
write object to stream. |
protected void |
MofidIndex.writeObjectToStream(java.lang.Object obj,
java.io.DataOutputStream strm)
write object to stream. |
Constructors in org.netbeans.mdr.persistence.btreeimpl.btreestorage that throw StorageException | |
---|---|
BtreeFileSource(int fileId,
FileCache fileCache,
int pageSize,
boolean isNew,
MofidGenerator mGen,
BtreeStorage storage)
Constructor for a BtreeFileSource from a new or existing index file. |
|
BtreeMDRSource(BtreeStorage storage,
int pageSize)
|
|
FileCache(int pgSize,
int numBufs,
java.lang.String[] names,
java.lang.String logName)
Create the cache and open the files. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |