com.metamatrix.platform.config.spi.xml
Class XMLConfigurationMgr

java.lang.Object
  extended by com.metamatrix.platform.config.spi.xml.XMLConfigurationMgr

public class XMLConfigurationMgr
extends java.lang.Object

Created on Aug 27, 2002 The Mgr operates under the single pattern. It uses other components to manage the configuration. This would include transactions and persistence. Those components are implemented such they can be changed so that the behavior of the mgr is changed. NOTE: - STARTUP - before any changes can be made to any configuration, the the performSystemInitialization must be performed.


Nested Class Summary
protected  class XMLConfigurationMgr.ConfigurationChangeListener
           
 
Method Summary
 void applyTransaction(ConfigTransaction transaction)
          Apply transaction is called when the Transaction is committed.
protected  void clearCache()
           
protected  XMLConfigurationMgr.ConfigurationChangeListener createChangeListener()
           
 ConfigurationModelContainer getConfigurationModel(ConfigurationID configID)
          Returns the configuration for the specified configID.
static XMLConfigurationMgr getInstance()
          Always call getInstance to get the reference to the XMLConfigurationMgr to use to make other method calls on.
protected  java.util.Properties getProperties()
           
 int getServerStartupState()
           
 java.util.Date getServerStartupTime()
           
 void init(java.util.Properties properties)
           
 boolean isServerAvailable()
           
 boolean isServerStarting()
           
 boolean isServerStopped()
           
 void rollbackTransaction()
           
protected  void setServerStateToStarted()
           
protected  void setServerStateToStarting(boolean force)
          The setting of the server state is not part
protected  void setServerStateToStopped()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final XMLConfigurationMgr getInstance()
Always call getInstance to get the reference to the XMLConfigurationMgr to use to make other method calls on.


init

public void init(java.util.Properties properties)
          throws ConfigurationException
Throws:
ConfigurationException

getProperties

protected java.util.Properties getProperties()

getServerStartupTime

public java.util.Date getServerStartupTime()
                                    throws ConfigurationException
Throws:
ConfigurationException

getServerStartupState

public int getServerStartupState()
                          throws ConfigurationException
Throws:
ConfigurationException

isServerStarting

public boolean isServerStarting()
                         throws ConfigurationException
Throws:
ConfigurationException

isServerStopped

public boolean isServerStopped()
                        throws ConfigurationException
Throws:
ConfigurationException

isServerAvailable

public boolean isServerAvailable()
                          throws ConfigurationException
Throws:
ConfigurationException

setServerStateToStarting

protected void setServerStateToStarting(boolean force)
                                 throws StartupStateException,
                                        ConfigurationException
The setting of the server state is not part

Throws:
StartupStateException
ConfigurationException

setServerStateToStopped

protected void setServerStateToStopped()
                                throws StartupStateException,
                                       ConfigurationException
Throws:
StartupStateException
ConfigurationException

setServerStateToStarted

protected void setServerStateToStarted()
                                throws StartupStateException,
                                       ConfigurationException
Throws:
StartupStateException
ConfigurationException

getConfigurationModel

public ConfigurationModelContainer getConfigurationModel(ConfigurationID configID)
                                                  throws ConfigurationException
Returns the configuration for the specified configID. Configuration.

Throws:
ConfigurationException

rollbackTransaction

public void rollbackTransaction()

applyTransaction

public void applyTransaction(ConfigTransaction transaction)
                      throws ConfigTransactionException
Apply transaction is called when the Transaction is committed.

Parameters:
transaction - is the transaction that contains the object model that changed
Throws:
ConfigurationException - if a problem occurs setting the configuration.
ConfigTransactionException

clearCache

protected void clearCache()

createChangeListener

protected XMLConfigurationMgr.ConfigurationChangeListener createChangeListener()


Copyright © 2009. All Rights Reserved.