public class OAutomaticBackup extends OServerPluginAbstract implements OServerPluginConfigurable
Modifier and Type | Class and Description |
---|---|
static class |
OAutomaticBackup.MODE |
static interface |
OAutomaticBackup.OAutomaticBackupListener |
static class |
OAutomaticBackup.VARIABLES |
enabled
Constructor and Description |
---|
OAutomaticBackup() |
Modifier and Type | Method and Description |
---|---|
void |
changeConfig(ODocument document) |
void |
config(OServer iServer,
OServerParameterConfiguration[] iParams)
Configures the handler.
|
protected void |
exportDatabase(String dbURL,
String iPath,
ODatabaseDocumentInternal db) |
protected void |
fullBackupDatabase(String dbURL,
String iPath,
ODatabaseDocumentInternal db) |
ODocument |
getConfig() |
protected String |
getFileName(Map.Entry<String,String> dbName) |
String |
getName() |
protected void |
incrementalBackupDatabase(String dbURL,
String iPath,
ODatabaseDocumentInternal db) |
void |
registerListener(OAutomaticBackup.OAutomaticBackupListener listener) |
void |
unregisterListener(OAutomaticBackup.OAutomaticBackupListener listener) |
getContent, onAfterClientRequest, onBeforeClientRequest, onClientConnection, onClientDisconnection, onClientError, sendShutdown, shutdown, startup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onSocketAccepted, onSocketDestroyed
public void config(OServer iServer, OServerParameterConfiguration[] iParams)
OServerPlugin
config
in interface OServerPlugin
config
in class OServerPluginAbstract
protected void incrementalBackupDatabase(String dbURL, String iPath, ODatabaseDocumentInternal db) throws IOException
IOException
protected void fullBackupDatabase(String dbURL, String iPath, ODatabaseDocumentInternal db) throws IOException
IOException
protected void exportDatabase(String dbURL, String iPath, ODatabaseDocumentInternal db) throws IOException
IOException
public ODocument getConfig()
getConfig
in interface OServerPluginConfigurable
public void changeConfig(ODocument document)
changeConfig
in interface OServerPluginConfigurable
public void registerListener(OAutomaticBackup.OAutomaticBackupListener listener)
public void unregisterListener(OAutomaticBackup.OAutomaticBackupListener listener)
Copyright © 2009–2020 OrientDB. All rights reserved.