public interface IStorageModule<ConfigType extends StorageConfig> extends IModule<ConfigType>
Modifier and Type | Method and Description |
---|---|
void |
backup(OutputStream os)
Backups storage to specified output stream
|
void |
commit()
Commits all changes generated by transactional methods since the last commit event
|
void |
restore(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(OutputStream os) throws IOException
os
- IOException
void restore(InputStream is) throws IOException
is
- IOException
void commit()
void rollback()
void sync(IStorageModule<?> storage) throws StorageException
storage
- StorageException
Copyright © 2016 Sensia Software LLC. All rights reserved.