|
Berkeley DB version 5.3.28 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BackupHandler
An interface that can optionally be used to override the default behavior
performed by the
Environment.backup
and
Environment.backupDatabase
methods. Implementation of this interface is required if the
Environment.backup or Environment.backupDatabase target parameter is null.
You configure the environment with this handler using the
EnvironmentConfig.setBackupHandler
method.
Method Summary | |
---|---|
int |
close(String dbname)
Called when ending a backup and closing a backup target. |
int |
open(String target,
String dbname)
Called when a target location is opened during a backup. |
int |
write(long file_pos,
byte[] buf,
int off,
int len)
Called when writing data during a backup. |
Method Detail |
---|
int close(String dbname)
dbname
- The name of the database that has been backed up.int open(String target, String dbname)
target
- The backup's directory destination.
dbname
- The name of the database being backed up.int write(long file_pos, byte[] buf, int off, int len)
file_pos
- Identifies the position in the target file where the bytes
from the buffer should be written.
buf
- Identifies the buffer which contains the data to be backed up.
off
- Specifies the start of the data in the buffer. This will always be
zero.
len
- Identifies the number of bytes to back up from the buffer.
|
Berkeley DB version 5.3.28 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |