|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.onlinebackup.Neo4jBackup
public class Neo4jBackup
Online backup implementation for Neo4j.
| Method Summary | |
|---|---|
static Backup |
allDataSources(EmbeddedGraphDatabase source,
EmbeddedGraphDatabase destination)
Backup from a running EmbeddedGraphDatabase to another running
EmbeddedGraphDatabase. |
static Backup |
allDataSources(EmbeddedGraphDatabase source,
String destinationDir)
Backup from a running EmbeddedGraphDatabase to a destination
directory. |
static Backup |
customDataSources(EmbeddedGraphDatabase source,
EmbeddedGraphDatabase destination,
String... xaDataSourceNames)
Backup from a running EmbeddedGraphDatabase to another running
EmbeddedGraphDatabase. |
static Backup |
customDataSources(EmbeddedGraphDatabase source,
String destinationDir,
String... xaDataSourceNames)
Backup from a running EmbeddedGraphDatabase to a destination
directory. |
void |
disableFileLogger()
Disable logging to file. |
void |
doBackup()
Perform the backup. |
void |
enableFileLogger()
Enable logging to file. |
void |
enableFileLogger(FileHandler handler)
Enable a user-provided FileHandler |
void |
enableFileLogger(String filename)
Enable logging to the specified file. |
static Backup |
neo4jDataSource(EmbeddedGraphDatabase source,
EmbeddedGraphDatabase destination)
Backup from a running EmbeddedGraphDatabase to another running
EmbeddedGraphDatabase. |
static Backup |
neo4jDataSource(EmbeddedGraphDatabase source,
String destinationDir)
Backup from a running EmbeddedGraphDatabase to a destination
directory. |
void |
setLogLevelDebug()
Enable debug logging. |
void |
setLogLevelNormal()
Set logging to normal. |
void |
setLogLevelOff()
Turn off all logging. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Backup neo4jDataSource(EmbeddedGraphDatabase source,
String destinationDir)
EmbeddedGraphDatabase to a destination
directory. Only the data source representing the Neo4j database will be
used and if it isn't set to keep logical logs an
IllegalStateException will be thrown.
source - running database as backup sourcedestinationDir - location of backup destination
public static Backup neo4jDataSource(EmbeddedGraphDatabase source,
EmbeddedGraphDatabase destination)
EmbeddedGraphDatabase to another running
EmbeddedGraphDatabase. Only the data source representing the
Neo4j database will be used and if it isn't set to keep logical logs an
IllegalStateException will be thrown.
source - running database as backup sourcedestination - running database as backup destination
public static Backup allDataSources(EmbeddedGraphDatabase source,
String destinationDir)
EmbeddedGraphDatabase to a destination
directory. All registered XA data sources will be used and all those data
sources will have to be set to keep their logical logs, otherwise an
IllegalStateException will be thrown.
source - running database as backup sourcedestinationDir - location of backup destination
public static Backup allDataSources(EmbeddedGraphDatabase source,
EmbeddedGraphDatabase destination)
EmbeddedGraphDatabase to another running
EmbeddedGraphDatabase. All registered XA data sources will be
used and all those data sources will have to be set to keep their logical
logs, otherwise an IllegalStateException will be thrown.
source - running database as backup sourcedestination - running database as backup destination
public static Backup customDataSources(EmbeddedGraphDatabase source,
String destinationDir,
String... xaDataSourceNames)
EmbeddedGraphDatabase to a destination
directory. Which XA data sources to include in the backup can here be
explicitly specified. This is considered to be more of an "expert-mode".
If any of the specified data sources isn't set to keep its logical logs
an IllegalStateException will be thrown.
source - running database as backup sourcedestinationDir - location of backup destinationxaDataSourceNames - names of data sources to backup
public static Backup customDataSources(EmbeddedGraphDatabase source,
EmbeddedGraphDatabase destination,
String... xaDataSourceNames)
EmbeddedGraphDatabase to another running
EmbeddedGraphDatabase. Which XA data sources to include in the
backup can here be explicitly specified. This is considered to be more of
an "expert-mode". If any of the specified data sources isn't set to keep
its logical logs an IllegalStateException will be thrown.
source - running database as backup sourcedestination - running database as backup destinationxaDataSourceNames - names of data sources to backup
public void doBackup()
throws IOException
Backup
doBackup in interface BackupIOException
public void enableFileLogger()
throws SecurityException,
IOException
Backup
enableFileLogger in interface BackupSecurityException
IOException
public void enableFileLogger(String filename)
throws SecurityException,
IOException
Backup
enableFileLogger in interface Backupfilename - file name of log file
SecurityException
IOExceptionpublic void enableFileLogger(FileHandler handler)
BackupFileHandler
enableFileLogger in interface Backuphandler - file handler for loggingpublic void disableFileLogger()
Backup
disableFileLogger in interface Backuppublic void setLogLevelDebug()
Backup
setLogLevelDebug in interface Backuppublic void setLogLevelNormal()
Backup
setLogLevelNormal in interface Backuppublic void setLogLevelOff()
Backup
setLogLevelOff in interface Backup
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||