|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstorage.advancedStorage.AdvancedStorageManager.Segment
This class represents a segment, a segmen is a set of spaces, each space inside a segment is identified by a number.
Nested Class Summary | |
class |
AdvancedStorageManager.Segment.Space
This class represents a space, a space is a set of units, each unit inside a space is identified by a unique number. |
class |
AdvancedStorageManager.Segment.SpaceNumberIterator
This class is used to retrieve the used space numbers inside the segment. |
Method Summary | |
AdvancedStorageManager.Segment.Space |
getSpace(int spaceNumber)
Returns the space with the specified number. |
AdvancedStorageManager.Segment.SpaceNumberIterator |
getSpaceNumbers()
Returns the sequence of used space numbers by the segment. |
int |
getUnitSize()
Returns the size of the units in the segmet. |
void |
loadSpace(int spaceNumber,
int chunkNumber,
boolean overwrite)
Load a space with a specified space number. |
void |
removeSpace(int spaceNumber)
Removes the space with the specified number inside the segment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void loadSpace(int spaceNumber, int chunkNumber, boolean overwrite) throws InvalidSpaceNumberException, AlreadyExistingSpaceNumberException, PrimitiveStorageException, IntermediateStorageException, java.io.IOException
spaceNumber
- The number which the space will be identified inside the segment.chunkNumber
- The number of the chunk to be used for mounting the space.overwrite
- If it is false
the previous chunk's content will not be changed,
if it is true
the space will be formated.
InvalidSpaceNumberException
AlreadyExistingSpaceNumberException
PrimitiveStorageException
IntermediateStorageException
java.io.IOException
public void removeSpace(int spaceNumber) throws NotExistingSpaceNumberException
spaceNumber
- The number of the space to be removed.
NotExistingSpaceNumberException
public AdvancedStorageManager.Segment.Space getSpace(int spaceNumber)
spaceNumber
- The number of the space to be retrieved.
Space
object requested.public AdvancedStorageManager.Segment.SpaceNumberIterator getSpaceNumbers()
public int getUnitSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |