Class OAutomaticBackup
java.lang.Object
com.orientechnologies.orient.server.plugin.OServerPluginAbstract
com.orientechnologies.orient.server.handler.OAutomaticBackup
- All Implemented Interfaces:
OService,OServerPlugin,OServerPluginConfigurable
Automatically creates a backup at configured time. Starting from v2.2, this component is able
also to create incremental backup and export of databases. If you need a mix of different modes,
configure more instances of the same component.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic interfacestatic enum -
Field Summary
Fields inherited from class com.orientechnologies.orient.server.plugin.OServerPluginAbstract
enabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeConfig(ODocument document) voidconfig(OServer iServer, OServerParameterConfiguration[] iParams) Configures the handler.protected voidexportDatabase(String dbURL, String iPath, ODatabaseDocumentInternal db) protected voidfullBackupDatabase(String dbURL, String iPath, ODatabaseDocumentInternal db) protected StringgetFileName(Map.Entry<String, String> dbName) getName()protected voidincrementalBackupDatabase(String dbURL, String iPath, ODatabaseDocumentInternal db) voidvoidMethods inherited from class com.orientechnologies.orient.server.plugin.OServerPluginAbstract
getContent, onAfterClientRequest, onBeforeClientRequest, onClientConnection, onClientDisconnection, onClientError, sendShutdown, shutdown, startupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.server.plugin.OServerPlugin
onSocketAccepted, onSocketDestroyed
-
Constructor Details
-
OAutomaticBackup
public OAutomaticBackup()
-
-
Method Details
-
config
Description copied from interface:OServerPluginConfigures the handler. Called at startup.- Specified by:
configin interfaceOServerPlugin- Overrides:
configin classOServerPluginAbstract
-
incrementalBackupDatabase
protected void incrementalBackupDatabase(String dbURL, String iPath, ODatabaseDocumentInternal db) throws IOException - Throws:
IOException
-
fullBackupDatabase
protected void fullBackupDatabase(String dbURL, String iPath, ODatabaseDocumentInternal db) throws IOException - Throws:
IOException
-
exportDatabase
protected void exportDatabase(String dbURL, String iPath, ODatabaseDocumentInternal db) throws IOException - Throws:
IOException
-
getFileName
-
getName
-
getConfig
- Specified by:
getConfigin interfaceOServerPluginConfigurable
-
changeConfig
- Specified by:
changeConfigin interfaceOServerPluginConfigurable
-
registerListener
-
unregisterListener
-