org.exolab.jms.config
Class DatabaseConfiguration

java.lang.Object
  |
  +--org.exolab.jms.config.DatabaseConfiguration
All Implemented Interfaces:
java.io.Serializable

public class DatabaseConfiguration
extends java.lang.Object
implements java.io.Serializable

Class DatabaseConfiguration.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
DatabaseConfiguration()
           
 
Method Summary
 void deleteGarbageCollectionBlockSize()
          Method deleteGarbageCollectionBlockSize
 void deleteGarbageCollectionInterval()
          Method deleteGarbageCollectionInterval
 void deleteGarbageCollectionThreadPriority()
          Method deleteGarbageCollectionThreadPriority
 int getGarbageCollectionBlockSize()
          Returns the value of field 'garbageCollectionBlockSize'.
 int getGarbageCollectionInterval()
          Returns the value of field 'garbageCollectionInterval'.
 int getGarbageCollectionThreadPriority()
          Returns the value of field 'garbageCollectionThreadPriority'.
 JdbmDatabaseConfiguration getJdbmDatabaseConfiguration()
          Returns the value of field 'jdbmDatabaseConfiguration'.
 RdbmsDatabaseConfiguration getRdbmsDatabaseConfiguration()
          Returns the value of field 'rdbmsDatabaseConfiguration'.
 boolean hasGarbageCollectionBlockSize()
          Method hasGarbageCollectionBlockSize
 boolean hasGarbageCollectionInterval()
          Method hasGarbageCollectionInterval
 boolean hasGarbageCollectionThreadPriority()
          Method hasGarbageCollectionThreadPriority
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setGarbageCollectionBlockSize(int garbageCollectionBlockSize)
          Sets the value of field 'garbageCollectionBlockSize'.
 void setGarbageCollectionInterval(int garbageCollectionInterval)
          Sets the value of field 'garbageCollectionInterval'.
 void setGarbageCollectionThreadPriority(int garbageCollectionThreadPriority)
          Sets the value of field 'garbageCollectionThreadPriority'.
 void setJdbmDatabaseConfiguration(JdbmDatabaseConfiguration jdbmDatabaseConfiguration)
          Sets the value of field 'jdbmDatabaseConfiguration'.
 void setRdbmsDatabaseConfiguration(RdbmsDatabaseConfiguration rdbmsDatabaseConfiguration)
          Sets the value of field 'rdbmsDatabaseConfiguration'.
static DatabaseConfiguration unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseConfiguration

public DatabaseConfiguration()
Method Detail

deleteGarbageCollectionBlockSize

public void deleteGarbageCollectionBlockSize()
Method deleteGarbageCollectionBlockSize

deleteGarbageCollectionInterval

public void deleteGarbageCollectionInterval()
Method deleteGarbageCollectionInterval

deleteGarbageCollectionThreadPriority

public void deleteGarbageCollectionThreadPriority()
Method deleteGarbageCollectionThreadPriority

getGarbageCollectionBlockSize

public int getGarbageCollectionBlockSize()
Returns the value of field 'garbageCollectionBlockSize'. The field 'garbageCollectionBlockSize' has the following description: This hints on the block size that the GC should use when removing messages. It can impact the performance of the system.
Returns:
the value of field 'garbageCollectionBlockSize'.

getGarbageCollectionInterval

public int getGarbageCollectionInterval()
Returns the value of field 'garbageCollectionInterval'. The field 'garbageCollectionInterval' has the following description: This specifies how often the garbage collector will run to remove processed persistent messages from the database. The value is specified in seconds, and defaults to 600 seconds if a value is not set.
Returns:
the value of field 'garbageCollectionInterval'.

getGarbageCollectionThreadPriority

public int getGarbageCollectionThreadPriority()
Returns the value of field 'garbageCollectionThreadPriority'. The field 'garbageCollectionThreadPriority' has the following description: This is the priority assigned to the garbage collection thread. It ranges from 1-10, and defaults to 5 if a value is not set.
Returns:
the value of field 'garbageCollectionThreadPriority'.

getJdbmDatabaseConfiguration

public JdbmDatabaseConfiguration getJdbmDatabaseConfiguration()
Returns the value of field 'jdbmDatabaseConfiguration'.
Returns:
the value of field 'jdbmDatabaseConfiguration'.

getRdbmsDatabaseConfiguration

public RdbmsDatabaseConfiguration getRdbmsDatabaseConfiguration()
Returns the value of field 'rdbmsDatabaseConfiguration'.
Returns:
the value of field 'rdbmsDatabaseConfiguration'.

hasGarbageCollectionBlockSize

public boolean hasGarbageCollectionBlockSize()
Method hasGarbageCollectionBlockSize

hasGarbageCollectionInterval

public boolean hasGarbageCollectionInterval()
Method hasGarbageCollectionInterval

hasGarbageCollectionThreadPriority

public boolean hasGarbageCollectionThreadPriority()
Method hasGarbageCollectionThreadPriority

isValid

public boolean isValid()
Method isValid

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal
Parameters:
out -  

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal
Parameters:
handler -  

setGarbageCollectionBlockSize

public void setGarbageCollectionBlockSize(int garbageCollectionBlockSize)
Sets the value of field 'garbageCollectionBlockSize'. The field 'garbageCollectionBlockSize' has the following description: This hints on the block size that the GC should use when removing messages. It can impact the performance of the system.
Parameters:
garbageCollectionBlockSize - the value of field 'garbageCollectionBlockSize'.

setGarbageCollectionInterval

public void setGarbageCollectionInterval(int garbageCollectionInterval)
Sets the value of field 'garbageCollectionInterval'. The field 'garbageCollectionInterval' has the following description: This specifies how often the garbage collector will run to remove processed persistent messages from the database. The value is specified in seconds, and defaults to 600 seconds if a value is not set.
Parameters:
garbageCollectionInterval - the value of field 'garbageCollectionInterval'.

setGarbageCollectionThreadPriority

public void setGarbageCollectionThreadPriority(int garbageCollectionThreadPriority)
Sets the value of field 'garbageCollectionThreadPriority'. The field 'garbageCollectionThreadPriority' has the following description: This is the priority assigned to the garbage collection thread. It ranges from 1-10, and defaults to 5 if a value is not set.
Parameters:
garbageCollectionThreadPriority - the value of field 'garbageCollectionThreadPriority'.

setJdbmDatabaseConfiguration

public void setJdbmDatabaseConfiguration(JdbmDatabaseConfiguration jdbmDatabaseConfiguration)
Sets the value of field 'jdbmDatabaseConfiguration'.
Parameters:
jdbmDatabaseConfiguration - the value of field 'jdbmDatabaseConfiguration'.

setRdbmsDatabaseConfiguration

public void setRdbmsDatabaseConfiguration(RdbmsDatabaseConfiguration rdbmsDatabaseConfiguration)
Sets the value of field 'rdbmsDatabaseConfiguration'.
Parameters:
rdbmsDatabaseConfiguration - the value of field 'rdbmsDatabaseConfiguration'.

unmarshal

public static DatabaseConfiguration unmarshal(java.io.Reader reader)
                                       throws org.exolab.castor.xml.MarshalException,
                                              org.exolab.castor.xml.ValidationException
Method unmarshal
Parameters:
reader -  

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.