All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class interbase.interclient.ServerProperties

java.lang.Object
   |
   +----java.util.Dictionary
           |
           +----java.util.Hashtable
                   |
                   +----java.util.Properties
                           |
                           +----interbase.interclient.ServerProperties

public final class ServerProperties
extends Properties
InterClient Extension for future release

This class is used to tailor server properties before starting the InterBase service.

See Also:
startup

Constructor Index

 o ServerProperties()
Construct a default InterBase service configuration. InterClient Extension.

Method Index

 o setDefaultCacheBuffers(int)
Set the default suggested number of cache buffers the server will use for database attachments. InterClient Extension.
 o setDefaultPageSize(int)
Set the default page size that will be used by the Server.createDatabase() method. InterClient Extension.

Constructors

 o ServerProperties
  public ServerProperties()
InterClient Extension for future release

Construct a default InterBase service configuration.

Methods

 o setDefaultPageSize
  public void setDefaultPageSize(int pageSize) throws SQLException
InterClient Extension for future release

Set the default page size that will be used by the Server.createDatabase() method.

Throws: SQLException
Not yet implemented.
See Also:
createDatabase, getDefaultPageSize
 o setDefaultCacheBuffers
  public void setDefaultCacheBuffers(int num) throws SQLException
InterClient Extension for future release

Set the default suggested number of cache buffers the server will use for database attachments.

Database cache is the number of memory pages reserved for each attached database. If the figure is set high enough to accommodate the page requirements for all attached databases, overall performance is maximized because all database activity can be handled in physical RAM rather than having it swapped to disk. If too many pages are reserved, however, and you have many databases running simultaneously, your request may exceed the amount of physical RAM available to the system. If that happens, some of your operations would be swapped to disk as the operating system tries to manage the excessive demands of your databases and the needs of other running applications (including itself).

To calculate the amount of memory required by a database, multiply the number of pages by the page size (these figures are defined when a database is created).

On Classic, the default page allocation is 75 for each connection. Minimum is 50 pages. There is no maximum, but the total allocation must not exceed system resources (see discussion above). Changes take effect in all calls made after the DBA presses either OK or Apply.

On Superserver, a single page buffer cache is allocated per database, and shared between connections. The default allocation is 256.

There are 3 ways to programmatically specify the number of cache buffers:

Cache buffers may also be set manually in the server's isc_config file by assigning the configuration parameter DATABASE_CACHE_PAGES. This manual server-wide setting takes precedence over any programmatic server-wide setting, but is overriden by the database-wide and connection-wide programmatic settings.

Throws: SQLException
Not yet implemented.
See Also:
getDefaultCacheBuffers, setCacheBuffers, setCacheBuffers, getCacheBuffers

All Packages  Class Hierarchy  This Package  Previous  Next  Index