|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.platform.config.persistence.impl.file.FilePersistentConnection
public class FilePersistentConnection
| Field Summary | |
|---|---|
static java.lang.String |
CONFIG_FILE_PATH_PROPERTY
Defines the path location for the configuration files. |
static java.lang.String |
CONFIG_NS_FILE_NAME_PROPERTY
Defines the configuration file override to be used as NextStartup |
static java.lang.String |
NEXT_STARTUP_FILE_NAME
The actual name of the NextStart Configuration. |
| Constructor Summary | |
|---|---|
FilePersistentConnection(java.util.Properties props,
ConfigurationModelContainerAdapter adapter)
|
|
| Method Summary | |
|---|---|
void |
beginTransaction()
|
void |
close()
call close when the connection is no longer needed. |
void |
commit()
|
void |
delete(ConfigurationID configID,
java.lang.String principal)
Writes the collection of models to its persistent store based on the implementation of the persistent connection. |
int |
getServerState()
Call to get the current state |
java.util.Date |
getStartupTime()
Call to get the current state |
boolean |
isClosed()
call to determine is the connection is still available. |
ConfigurationModelContainer |
read(ConfigurationID configID)
Returns an ConfigurationModelContainer based on how the implementation read configuation information |
void |
rollback()
|
void |
setServerStarted()
Call to set the startup state to @see {StartupStateController.STARTED Started}. |
void |
setServerStarting()
Call to set the startup state to @see {StartupStateController.STARTING Starting}. |
void |
setServerStarting(boolean force)
Call to forcibly set the startup state to @see {StartupStateController.STARTING Starting}, regardless of the current state of the server. |
void |
setServerStopped()
Call to set the startup state to @see {StartupStateController.STOPPED Stopped}. |
void |
write(ConfigurationModelContainer model,
java.lang.String principal)
Writes the model to its persistent store based on the implementation of the persistent connection. |
void |
write(ConfigurationModelContainer model,
java.lang.String fileName,
java.lang.String principal)
|
| 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 CONFIG_NS_FILE_NAME_PROPERTY
public static final java.lang.String CONFIG_FILE_PATH_PROPERTY
public static final java.lang.String NEXT_STARTUP_FILE_NAME
| Constructor Detail |
|---|
public FilePersistentConnection(java.util.Properties props,
ConfigurationModelContainerAdapter adapter)
| Method Detail |
|---|
public void close()
close in interface PersistentConnectionConfigurationExceptionpublic boolean isClosed()
isClosed in interface PersistentConnection
public ConfigurationModelContainer read(ConfigurationID configID)
throws ConfigurationException
PersistentConnection
read in interface PersistentConnectionconfigID - indicates which configuration to read
ConfigurationException - if an error occurs
public void setServerStarting()
throws StartupStateException,
ConfigurationException
setServerStarting in interface PersistentConnectionStartupStateException - is thrown if the server state is not currently
set to STOPPED.
ConfigurationException
public void setServerStarting(boolean force)
throws StartupStateException,
ConfigurationException
setServerStarting in interface PersistentConnectionStartupStateException - is thrown if the server state cannot be set.
ConfigurationException
public void setServerStarted()
throws StartupStateException,
ConfigurationException
setServerStarted in interface PersistentConnectionStartupStateException - is thrown if the server state cannot be set.
ConfigurationException
public void setServerStopped()
throws StartupStateException,
ConfigurationException
setServerStopped in interface PersistentConnectionStartupStateException - is thrown if the server state cannot be set.
ConfigurationException
public int getServerState()
throws ConfigurationException
getServerState in interface PersistentConnectionConfigurationException - if an error occurs
public java.util.Date getStartupTime()
throws ConfigurationException
getStartupTime in interface PersistentConnectionConfigurationException - if an error occurs
public void write(ConfigurationModelContainer model,
java.lang.String principal)
throws ConfigurationException
PersistentConnection
write in interface PersistentConnectionmodel - to be writen to outputprincipal - is the user executing the write
ConfigurationException - if an error occurs
public void write(ConfigurationModelContainer model,
java.lang.String fileName,
java.lang.String principal)
throws ConfigurationException
ConfigurationException
public void delete(ConfigurationID configID,
java.lang.String principal)
throws ConfigurationException
PersistentConnection
delete in interface PersistentConnectionprincipal - is the user executing the write
ConfigurationException - if an error occurs
public void beginTransaction()
throws ConfigurationException
beginTransaction in interface PersistentConnectionConfigurationException
public void commit()
throws ConfigurationException
commit in interface PersistentConnectionConfigurationException
public void rollback()
throws ConfigurationException
rollback in interface PersistentConnectionConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||