|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistentConnection
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 startup time of the server. |
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. |
Method Detail |
---|
void close()
ConfigurationException
boolean isClosed()
void setServerStarting() throws StartupStateException, ConfigurationException
StartupStateException
- is thrown if the server state is not currently
set to STOPPED.
ConfigurationException
void setServerStarting(boolean force) throws StartupStateException, ConfigurationException
StartupStateException
- is thrown if the server state cannot be set.
ConfigurationException
void setServerStarted() throws StartupStateException, ConfigurationException
StartupStateException
- is thrown if the server state cannot be set.
ConfigurationException
void setServerStopped() throws StartupStateException, ConfigurationException
StartupStateException
- is thrown if the server state cannot be set.
ConfigurationException
int getServerState() throws ConfigurationException
ConfigurationException
- if an error occursjava.util.Date getStartupTime() throws ConfigurationException
ConfigurationException
- if an error occursConfigurationModelContainer read(ConfigurationID configID) throws ConfigurationException
configID
- indicates which configuration to read
ConfigurationException
- if an error occursvoid write(ConfigurationModelContainer model, java.lang.String principal) throws ConfigurationException
model
- to be writen to outputprincipal
- is the user executing the write
ConfigurationException
- if an error occursvoid delete(ConfigurationID configID, java.lang.String principal) throws ConfigurationException
models
- to be writen to outputprincipal
- is the user executing the write
ConfigurationException
- if an error occursvoid beginTransaction() throws ConfigurationException
ConfigurationException
void rollback() throws ConfigurationException
ConfigurationException
void commit() throws ConfigurationException
ConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |