com.metamatrix.dqp.embedded.services
Class EmbeddedBaseDQPService

java.lang.Object
  extended by com.metamatrix.dqp.embedded.services.EmbeddedBaseDQPService
All Implemented Interfaces:
ApplicationService
Direct Known Subclasses:
EmbeddedBufferService, EmbeddedConfigurationService, EmbeddedDataService, EmbeddedMetadataService, EmbeddedTrackingService, EmbeddedTransactionService, EmbeddedVDBService

public abstract class EmbeddedBaseDQPService
extends java.lang.Object
implements ApplicationService

This a base service for all the Embedded DQP Services.

Since:
4.3

Field Summary
static java.lang.String SYSTEM_PHYSICAL_MODEL_NAME
           
 
Constructor Summary
EmbeddedBaseDQPService()
           
 
Method Summary
protected  ConfigurationService getConfigurationService()
          Helper to find the configuration service
 void initialize(java.util.Properties props)
          Initialize the service with the specified properties.
abstract  void initializeService(java.util.Properties properties)
           
protected  boolean isStarted()
           
protected  boolean isValidVDB(VDBArchive vdb)
          checks the validity of the VDB
protected  ApplicationService lookupService(java.lang.String serviceName)
          Look up the the service
 void start(ApplicationEnvironment environment)
          Start the service with the specified environment.
abstract  void startService(ApplicationEnvironment environment)
           
 void stop()
          Stop the service.
abstract  void stopService()
           
protected  java.lang.String vdbId(java.lang.String name, java.lang.String version)
           
protected  java.lang.String vdbId(VDBArchive vdb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_PHYSICAL_MODEL_NAME

public static final java.lang.String SYSTEM_PHYSICAL_MODEL_NAME
See Also:
Constant Field Values
Constructor Detail

EmbeddedBaseDQPService

public EmbeddedBaseDQPService()
Method Detail

initialize

public final 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
Since:
4.3
See Also:
ApplicationService.initialize(java.util.Properties)

initializeService

public abstract void initializeService(java.util.Properties properties)
                                throws ApplicationInitializationException
Throws:
ApplicationInitializationException

start

public final 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
Since:
4.3
See Also:
ApplicationService.start(com.metamatrix.common.application.ApplicationEnvironment)

startService

public abstract void startService(ApplicationEnvironment environment)
                           throws ApplicationLifecycleException
Throws:
ApplicationLifecycleException

stop

public final 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
Since:
4.3
See Also:
ApplicationService.stop()

stopService

public abstract void stopService()
                          throws ApplicationLifecycleException
Throws:
ApplicationLifecycleException

lookupService

protected ApplicationService lookupService(java.lang.String serviceName)
Look up the the service

Parameters:
serviceName -
Returns:
Throws:
MetaMatrixComponentException
Since:
4.3

getConfigurationService

protected ConfigurationService getConfigurationService()
Helper to find the configuration service

Returns:
Throws:
MetaMatrixComponentException
Since:
4.3

isStarted

protected final boolean isStarted()

vdbId

protected java.lang.String vdbId(VDBArchive vdb)

vdbId

protected java.lang.String vdbId(java.lang.String name,
                                 java.lang.String version)

isValidVDB

protected boolean isValidVDB(VDBArchive vdb)
checks the validity of the VDB

Parameters:
vdb -
Returns:
true if valid; false otherwise.


Copyright © 2009. All Rights Reserved.