| Modifier and Type | Field and Description |
|---|---|
| private StorageFile |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | backupContainer(BaseContainerHandle
the container handle. handle, String location of the backup container. backupLocation)Implements abstract org. Backup the container. |
| public final void | clean(boolean
True if the object will be removed forRemove)Implements org. Write out the header information for this container. |
| pack-priv void | closeContainer()
Implements abstract org.
|
| pack-priv void | createContainer(ContainerKey newIdentity)
Implements abstract org. Create a new container, all references to identity must be through the passed in identity, this object will no identity until after this method returns. |
| protected void | encryptOrDecryptContainer(BaseContainerHandle
the container handle handle, String file to store the new version of the container newFilePath, boolean tells whether to encrypt or decrypt doEncrypt)Implements abstract org. Encrypts or decrypts the container. |
| protected final void | flushAll()
Implements abstract org. Flush all outstanding changes in this container to persistent storage. |
| protected InputStream | |
| pack-priv final boolean | openContainer(ContainerKey newIdentity)
Implements abstract org. Open a container. |
| protected final int | preAllocate(long
the last preallocated page number as known
by the allocation page lastPreallocPagenum, int try to preallocate this page number of pages.
Since only the container knows how many pages are actually on
disk, it may determine that certain number of pages that the
allocation page thinks need to be preallocated is already
allocated, in those case, act as if the preallocation is
successful. preAllocSize)Implements abstract org. Preallocate page. |
| protected final void | readPage(long pageNumber, byte[] pageData)
Implements abstract org. Read a page into the supplied array. |
| protected void | |
| protected final void | removeContainer(LogInstant instant, boolean
if true, leave a stub. If false, remove everything leaveStub)Implements abstract org. Remove the container. |
| protected void | truncatePages(long lastValidPagenum)
Implements abstract org.
|
| protected final void | writePage(long pageNumber, byte[] pageData, boolean syncPage)
Implements abstract org. Write a page from the supplied array. |
| containerPath | back to summary |
|---|---|
| private StorageFile containerPath | |
| InputStreamContainer | back to summary |
|---|---|
| pack-priv InputStreamContainer(BaseDataFileFactory factory) | |
| backupContainer | back to summary |
|---|---|
| protected void backupContainer(BaseContainerHandle handle, String backupLocation) throws StandardException Implements abstract org. Backup the container. There is no support to backup this type of containers. It may not be any real use for users because users can simply make copies of the read only database in Zip files easily using OS utilities.
| |
| clean | back to summary |
|---|---|
| public final void clean(boolean forRemove) throws StandardException Implements org. Write out the header information for this container. If an i/o exception occurs then ...
| |
| closeContainer | back to summary |
|---|---|
| pack-priv void closeContainer() Implements abstract org. | |
| createContainer | back to summary |
|---|---|
| pack-priv void createContainer(ContainerKey newIdentity) throws StandardException Implements abstract org. Create a new container, all references to identity must be through the passed in identity, this object will no identity until after this method returns.
| |
| encryptOrDecryptContainer | back to summary |
|---|---|
| protected void encryptOrDecryptContainer(BaseContainerHandle handle, String newFilePath, boolean doEncrypt) throws StandardException Implements abstract org. Encrypts or decrypts the container. These operations are unsupported for this type of container.
| |
| flushAll | back to summary |
|---|---|
| protected final void flushAll() Implements abstract org. Doc from org. Flush all outstanding changes in this container to persistent storage. | |
| getInputStream | back to summary |
|---|---|
| protected InputStream getInputStream() throws IOException Get an input stream positioned at the beginning of the file | |
| openContainer | back to summary |
|---|---|
| pack-priv final boolean openContainer(ContainerKey newIdentity) throws StandardException Implements abstract org. Doc from org. Open a container. Longer descrption of routine.
Open a container. Open the file that maps to this container, if the
file does not exist then we assume the container was never created.
If the file exists but we have trouble opening it then we throw some
exception.
| |
| preAllocate | back to summary |
|---|---|
| protected final int preAllocate(long lastPreallocPagenum, int preAllocSize) Implements abstract org. Preallocate page.
| |
| readPage | back to summary |
|---|---|
| protected final void readPage(long pageNumber, byte[] pageData) throws IOException, StandardException Implements abstract org. Read a page into the supplied array.
| |
| readPositionedPage | back to summary |
|---|---|
| protected void readPositionedPage(long pageOffset, byte[] pageData) throws IOException Read the page at the positioned offset. This default implementation, opens the stream and skips to the offset and then reads the data into pageData. | |
| removeContainer | back to summary |
|---|---|
| protected final void removeContainer(LogInstant instant, boolean leaveStub) throws StandardException Implements abstract org. Remove the container.
| |
| truncatePages | back to summary |
|---|---|
| protected void truncatePages(long lastValidPagenum) Implements abstract org. | |
| writePage | back to summary |
|---|---|
| protected final void writePage(long pageNumber, byte[] pageData, boolean syncPage) throws IOException, StandardException Implements abstract org. Write a page from the supplied array.
| |