Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.birt.core.archive.compound
Class BlockManager

    java.lang.Object
      org.eclipse.birt.core.archive.compound.BlockManager

    public class BlockManager

extends java.lang.Object

Field Summary
`static int` | `ALLOC_TABLE_BLOCK` the first block of allocation table
`static int` | `DEFAULT_BLOCK_SIZE` Size of a physical block, counted in bytes.
`static int` | `DEFAULT_BUFFER_POOL_SIZE` default size of buffer pool - number of buffer blocks in buffer pool
`static long` | `DOCUMENT_TAG` The magic tag of the archive file: "RPTDOC"
`static long` | `DOCUMENT_VERSION_0` After support system id in archive file, DOCUMENT_VERSION_1 is writen into header.
`static long` | `DOCUMENT_VERSION_1`
`static int` | `ENTRY_ITEM_SIZE` the size of a entry in the entry table, counted in bytes
`static int` | `ENTRY_TABLE_BLOCK` the first block of entry table
`static int` | `FILE_STATUS_FINISHED` File status value: finished
`static int` | `HEADER_BLOCK` the block of archive header
`static int` | `MIN_BUFFER_POOL_SIZE` Min size of buffer pool - number of buffer blocks in buffer pool
`static java.lang.String` | `PROPERTY_DEFAULT_BLOCK_SIZE` the system property defines the block size, it should be times of 1024.

Constructor Summary
`BlockManager(BlockManagerEventAdapter adapter)`

Method Summary
`void` | `flush()`
`Block` | `getBlock(int id)`
`void` | `setCacheSize(int cacheSize)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### DOCUMENT_TAG

    public static final long DOCUMENT_TAG

  The magic tag of the archive file: "RPTDOC"

  See Also:
    Constant Field Values

### DOCUMENT_VERSION_0

    public static final long DOCUMENT_VERSION_0

  After support system id in archive file, DOCUMENT_VERSION_1 is writen into header.

  See Also:
    Constant Field Values

### DOCUMENT_VERSION_1

    public static final long DOCUMENT_VERSION_1

See Also:
  Constant Field Values

### PROPERTY_DEFAULT_BLOCK_SIZE

    public static final java.lang.String PROPERTY_DEFAULT_BLOCK_SIZE

  the system property defines the block size, it should be times of 1024.

  See Also:
    Constant Field Values

### DEFAULT_BLOCK_SIZE

    public static final int DEFAULT_BLOCK_SIZE

  Size of a physical block, counted in bytes.

  See Also:
    Constant Field Values

### HEADER_BLOCK

    public static final int HEADER_BLOCK

  the block of archive header

  See Also:
    Constant Field Values

### ALLOC_TABLE_BLOCK

    public static final int ALLOC_TABLE_BLOCK

  the first block of allocation table

  See Also:
    Constant Field Values

### ENTRY_TABLE_BLOCK

    public static final int ENTRY_TABLE_BLOCK

  the first block of entry table

  See Also:
    Constant Field Values

### ENTRY_ITEM_SIZE

    public static final int ENTRY_ITEM_SIZE

  the size of a entry in the entry table, counted in bytes

  See Also:
    Constant Field Values

### FILE_STATUS_FINISHED

    public static final int FILE_STATUS_FINISHED

  File status value: finished

  See Also:
    Constant Field Values

### DEFAULT_BUFFER_POOL_SIZE

    public static final int DEFAULT_BUFFER_POOL_SIZE

  default size of buffer pool - number of buffer blocks in buffer pool

  See Also:
    Constant Field Values

### MIN_BUFFER_POOL_SIZE

    public static final int MIN_BUFFER_POOL_SIZE

  Min size of buffer pool - number of buffer blocks in buffer pool

  See Also:
    Constant Field Values

Constructor Detail

### BlockManager

    public BlockManager(BlockManagerEventAdapter adapter)

Method Detail

### setCacheSize

    public void setCacheSize(int cacheSize)

### flush

    public void flush()
               throws java.io.IOException

  Throws:
    `java.io.IOException`

### getBlock

    public Block getBlock(int id)
                   throws java.io.IOException

  Throws:
    `java.io.IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008 Actuate Corp. All rights reserved.