public interface IStorageModule<ConfigType extends StorageConfig> extends IModule<ConfigType>
CANNOT_INIT_MSG, CANNOT_LOAD_MSG, CANNOT_START_MSG, CANNOT_STOP_MSG, CANNOT_UPDATE_MSG
Modifier and Type | Method and Description |
---|---|
void |
backup(java.io.OutputStream os)
Backups storage to specified output stream
|
void |
commit()
Commits all changes generated by transactional methods since the last commit event
|
void |
restore(java.io.InputStream is)
Restores storage from backup obtained from specified input stream
|
void |
rollback()
Cancels all changes generated by transactional methods since the last commit event
|
void |
sync(IStorageModule<?> storage)
Synchronizes storage with another storage of the same type (potentially remote)
|
cleanup, getConfiguration, getCurrentError, getCurrentState, getLocalID, getName, getStatusMessage, init, init, isInitialized, isStarted, loadState, registerListener, requestInit, requestStart, requestStop, saveState, setConfiguration, start, stop, unregisterListener, updateConfig, waitForState
void backup(java.io.OutputStream os) throws java.io.IOException
os
- java.io.IOException
void restore(java.io.InputStream is) throws java.io.IOException
is
- java.io.IOException
void commit()
void rollback()
void sync(IStorageModule<?> storage) throws StorageException
storage
- StorageException