|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.platform.config.spi.xml.XMLCurrentConfigurationReader
public class XMLCurrentConfigurationReader
Field Summary | |
---|---|
static java.lang.String |
INSTALL_DATE
The date of installation of the MetaMatrix suite |
Constructor Summary | |
---|---|
XMLCurrentConfigurationReader()
|
Method Summary | |
---|---|
void |
close()
This method should close the connection to the repository that holds the current configuration. |
void |
connect(java.util.Properties env)
This method should connect to the repository that holds the current configuration, using the specified properties. |
ConfigurationModelContainer |
getConfigurationModel()
Obtain the next startup configuration model. |
java.util.Properties |
getConfigurationProperties()
Obtain the properties for the current configuration. |
protected XMLConfigurationReader |
getConfigurationReader()
|
protected XMLConfigurationWriter |
getConfigurationWriter()
|
Configuration |
getNextStartupConfiguration()
Obtain the next startup configuration. |
protected ConfigUserTransaction |
getWriteTransaction()
|
void |
indicateSystemShutdown()
This will put the system into a state of StartupStateController.STATE_STOPPED . |
void |
performSystemInitialization(boolean forceInitialization)
This method should be called only by com.metamatrix.platform.util.MetaMatrixController
to initialize the system configurations during bootstrapping. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String INSTALL_DATE
Constructor Detail |
---|
public XMLCurrentConfigurationReader()
Method Detail |
---|
public void connect(java.util.Properties env) throws ConfigurationConnectionException
connect
in interface CurrentConfigurationReader
env
- the environment properties that define the information
ConfigurationConnectionException
- if there is an error establishing the connection.public void close() throws java.lang.Exception
close
in interface CurrentConfigurationReader
java.lang.Exception
- if there is an error establishing the connection.public java.util.Properties getConfigurationProperties() throws ConfigurationException
ConfigurationException
- if an error occurred within or during
communication with the repository.public Configuration getNextStartupConfiguration() throws ConfigurationException
ConfigurationException
- if an error occurred within or during
communication with the repository.public ConfigurationModelContainer getConfigurationModel() throws ConfigurationException
getConfigurationModel
in interface CurrentConfigurationReader
ConfigurationException
- if an error occurred within or during
communication with the repository.public void performSystemInitialization(boolean forceInitialization) throws StartupStateException, ConfigurationException
CurrentConfigurationReader
com.metamatrix.platform.util.MetaMatrixController
to initialize the system configurations during bootstrapping.
This method will attempt to put the system state into
StartupStateController.STATE_STARTING
, and then
commence with initialization. If the state is already
StartupStateController.STATE_STARTING
, then another
MetaMatrixController is already currently in the process of
starting the system, and a StartupStateException
will be thrown. If this method returns without an
exception, then the system state will be in state
StartupStateController.STATE_STARTING
, and the calling
code should proceed with startup.
performSystemInitialization
in interface CurrentConfigurationReader
forceInitialization
- if the system is in a state other than
StartupStateController.STATE_STOPPED
, and the
administrator thinks the system actually crashed and is
not really running, he can choose to force the
initialization. Otherwise, if the system is in one of these states,
an exception will be thrown.
StartupStateException
- if the system is
not in a state in which initialization can proceed. This
exception will indicate the current system state.
ConfigurationException
- if the current configuration and/or
bootstrap properties could not be obtained
NOTE: This method replaces the begin... and finish.. SystemInitialization methods
for the new configuration implementations.public void indicateSystemShutdown() throws ConfigurationException
CurrentConfigurationReader
StartupStateController.STATE_STOPPED
.
indicateSystemShutdown
in interface CurrentConfigurationReader
ConfigurationException
- if an error occurred in communication
with the configuration data sourcecom.metamatrix.common.config.reader.CurrentConfigurationInitializer#indicateSystemShutdown
protected ConfigUserTransaction getWriteTransaction() throws ConfigTransactionException, ConfigurationException
ConfigTransactionException
ConfigurationException
protected XMLConfigurationReader getConfigurationReader()
protected XMLConfigurationWriter getConfigurationWriter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |