com.metamatrix.server.dqp.service
Class PlatformBufferService

java.lang.Object
  extended by com.metamatrix.server.dqp.service.PlatformBufferService
All Implemented Interfaces:
ApplicationService, BufferService

public class PlatformBufferService
extends java.lang.Object
implements BufferService


Constructor Summary
PlatformBufferService(Host host, java.lang.String processName, org.teiid.dqp.internal.cache.DQPContextCache cache)
           
 
Method Summary
 BufferManager getBufferManager()
           
 org.teiid.dqp.internal.cache.DQPContextCache getContextCache()
           
static BufferManager getServerBufferManager(java.lang.String lookup, java.util.Properties props)
          Helper to get a buffer manager all set up for unmanaged standalone use.
 void initialize(java.util.Properties props)
          Initialize the service with the specified properties.
 void start(ApplicationEnvironment environment)
          Start the service with the specified environment.
 void stop()
          Stop the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformBufferService

public PlatformBufferService(Host host,
                             java.lang.String processName,
                             org.teiid.dqp.internal.cache.DQPContextCache cache)
Method Detail

getBufferManager

public BufferManager getBufferManager()
Specified by:
getBufferManager in interface BufferService

initialize

public void initialize(java.util.Properties props)
                throws ApplicationInitializationException
Description copied from interface: ApplicationService
Initialize the service with the specified properties.

Specified by:
initialize in interface ApplicationService
Parameters:
props - Initialialization properties
Throws:
ApplicationInitializationException - If an error occurs during initialization

start

public void start(ApplicationEnvironment environment)
           throws ApplicationLifecycleException
Description copied from interface: ApplicationService
Start the service with the specified environment. The environment can be used to find other services or resources.

Specified by:
start in interface ApplicationService
Parameters:
environment - Environment
Throws:
ApplicationLifecycleException - If an error occurs while starting

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

stop

public void stop()
          throws ApplicationLifecycleException
Description copied from interface: ApplicationService
Stop the service.

Specified by:
stop in interface ApplicationService
Throws:
ApplicationLifecycleException - If an error occurs while starting

getContextCache

public org.teiid.dqp.internal.cache.DQPContextCache getContextCache()
Specified by:
getContextCache in interface BufferService


Copyright © 2009. All Rights Reserved.