com.metamatrix.common.buffer
Class BufferManagerFactory

java.lang.Object
  extended by com.metamatrix.common.buffer.BufferManagerFactory

public class BufferManagerFactory
extends java.lang.Object

Factory for BufferManager instances. One method will get a server buffer manager, as it should be instantiated in a running MetaMatrix server. That BufferManager is configured mostly by the passed in properties.

The other method returns a stand-alone, in-memory buffer manager. This is typically used for either in-memory testing or any time the query processor component is not expected to run out of memory, such as within the modeler.


Constructor Summary
BufferManagerFactory()
           
 
Method Summary
static BufferManager getServerBufferManager(java.lang.String lookup, java.util.Properties props)
          Helper to get a buffer manager all set up for unmanaged standalone use.
static BufferManager getStandaloneBufferManager()
          Helper to get a buffer manager all set up for unmanaged standalone use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferManagerFactory

public BufferManagerFactory()
Method Detail

getStandaloneBufferManager

public static BufferManager getStandaloneBufferManager()
                                                throws MetaMatrixComponentException
Helper to get a buffer manager all set up for unmanaged standalone use. This is typically used for testing or when memory is not an issue.

Returns:
BufferManager ready for use
Throws:
MetaMatrixComponentException

getServerBufferManager

public static BufferManager getServerBufferManager(java.lang.String lookup,
                                                   java.util.Properties props)
                                            throws MetaMatrixComponentException
Helper to get a buffer manager all set up for unmanaged standalone use. This is typically used for testing or when memory is not an issue.

Parameters:
lookup - Lookup implementation to use
props - Configuration properties
Returns:
BufferManager ready for use
Throws:
MetaMatrixComponentException


Copyright © 2009. All Rights Reserved.