Debian Codegraph @

docs/java/com/sleepycat/db/BackupHandler.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.6.0_51) on Mon Sep 09 11:47:04 EDT 2013 -->
6 <TITLE>
7 BackupHandler (Oracle - Berkeley DB Java API)
8 </TITLE>
9
10 <META NAME="date" CONTENT="2013-09-09">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="BackupHandler (Oracle - Berkeley DB Java API)";
19 }
20 }
21 </SCRIPT>
22 <NOSCRIPT>
23 </NOSCRIPT>
24
25 </HEAD>
26
27 <BODY BGCOLOR="white" onload="windowTitle();">
28 <HR>
29
30
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME="navbar_top"><!-- --></A>
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35 <TR>
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37 <A NAME="navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39 <TR ALIGN="center" VALIGN="top">
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/BackupHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48 </TR>
49 </TABLE>
50 </TD>
51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
53 </TD>
54 </TR>
55
56 <TR>
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58 &nbsp;PREV CLASS&nbsp;
59 &nbsp;<A HREF="../../../com/sleepycat/db/BackupOptions.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61 <A HREF="../../../index.html?com/sleepycat/db/BackupHandler.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="BackupHandler.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
63 &nbsp;<SCRIPT type="text/javascript">
64 <!--
65 if(window==top) {
66 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 }
68 //-->
69 </SCRIPT>
70 <NOSCRIPT>
71 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
72 </NOSCRIPT>
73
74
75 </FONT></TD>
76 </TR>
77 <TR>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82 </TR>
83 </TABLE>
84 <A NAME="skip-navbar_top"></A>
85 <!-- ========= END OF TOP NAVBAR ========= -->
86
87 <HR>
88 <!-- ======== START OF CLASS DATA ======== -->
89 <H2>
90 <FONT SIZE="-1">
91 com.sleepycat.db</FONT>
92 <BR>
93 Interface BackupHandler</H2>
94 <HR>
95 <DL>
96 <DT><PRE>public interface <B>BackupHandler</B></DL>
97 </PRE>
98
99 <P>
100 An interface that can optionally be used to override the default behavior
101 performed by the
102 <A HREF="../../../com/sleepycat/db/Environment.html#backup(java.lang.String, com.sleepycat.db.BackupOptions)"><CODE>Environment.backup</CODE></A>
103 and
104 <A HREF="../../../com/sleepycat/db/Environment.html#backupDatabase(java.lang.String, java.lang.String, boolean)"><CODE>Environment.backupDatabase</CODE></A>
105 methods. Implementation of this interface is required if the
106 Environment.backup or Environment.backupDatabase target parameter is null.
107 <p>
108 You configure the environment with this handler using the
109 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setBackupHandler(com.sleepycat.db.BackupHandler)"><CODE>EnvironmentConfig.setBackupHandler</CODE></A>
110 method.
111 <P>
112
113 <P>
114 <HR>
115
116 <P>
117
118 <!-- ========== METHOD SUMMARY =========== -->
119
120 <A NAME="method_summary"><!-- --></A>
121 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
122 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
123 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
124 <B>Method Summary</B></FONT></TH>
125 </TR>
126 <TR BGCOLOR="white" CLASS="TableRowColor">
127 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
128 <CODE>&nbsp;int</CODE></FONT></TD>
129 <TD><CODE><B><A HREF="../../../com/sleepycat/db/BackupHandler.html#close(java.lang.String)">close</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;dbname)</CODE>
130
131 <BR>
132 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when ending a backup and closing a backup target.</TD>
133 </TR>
134 <TR BGCOLOR="white" CLASS="TableRowColor">
135 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
136 <CODE>&nbsp;int</CODE></FONT></TD>
137 <TD><CODE><B><A HREF="../../../com/sleepycat/db/BackupHandler.html#open(java.lang.String, java.lang.String)">open</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;target,
138 <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;dbname)</CODE>
139
140 <BR>
141 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a target location is opened during a backup.</TD>
142 </TR>
143 <TR BGCOLOR="white" CLASS="TableRowColor">
144 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
145 <CODE>&nbsp;int</CODE></FONT></TD>
146 <TD><CODE><B><A HREF="../../../com/sleepycat/db/BackupHandler.html#write(long, byte[], int, int)">write</A></B>(long&nbsp;file_pos,
147 byte[]&nbsp;buf,
148 int&nbsp;off,
149 int&nbsp;len)</CODE>
150
151 <BR>
152 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when writing data during a backup.</TD>
153 </TR>
154 </TABLE>
155 &nbsp;
156 <P>
157
158 <!-- ============ METHOD DETAIL ========== -->
159
160 <A NAME="method_detail"><!-- --></A>
161 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
162 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
163 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
164 <B>Method Detail</B></FONT></TH>
165 </TR>
166 </TABLE>
167
168 <A NAME="close(java.lang.String)"><!-- --></A><H3>
169 close</H3>
170 <PRE>
171 int <B>close</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;dbname)</PRE>
172 <DL>
173 <DD>Called when ending a backup and closing a backup target.
174 <p>
175 <P>
176 <DD><DL>
177 <DT><B>Parameters:</B><DD><CODE>dbname</CODE> - The name of the database that has been backed up.</DL>
178 </DD>
179 </DL>
180 <HR>
181
182 <A NAME="open(java.lang.String, java.lang.String)"><!-- --></A><H3>
183 open</H3>
184 <PRE>
185 int <B>open</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;target,
186 <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;dbname)</PRE>
187 <DL>
188 <DD>Called when a target location is opened during a backup. This method
189 should do whatever is necessary to prepare the backup destination for
190 writing the data.
191 <p>
192 <P>
193 <DD><DL>
194 <DT><B>Parameters:</B><DD><CODE>target</CODE> - The backup's directory destination.
195 <p><DD><CODE>dbname</CODE> - The name of the database being backed up.</DL>
196 </DD>
197 </DL>
198 <HR>
199
200 <A NAME="write(long, byte[], int, int)"><!-- --></A><H3>
201 write</H3>
202 <PRE>
203 int <B>write</B>(long&nbsp;file_pos,
204 byte[]&nbsp;buf,
205 int&nbsp;off,
206 int&nbsp;len)</PRE>
207 <DL>
208 <DD>Called when writing data during a backup.
209 <p>
210 <P>
211 <DD><DL>
212 <DT><B>Parameters:</B><DD><CODE>file_pos</CODE> - Identifies the position in the target file where the bytes
213 from the buffer should be written.
214 <p><DD><CODE>buf</CODE> - Identifies the buffer which contains the data to be backed up.
215 <p><DD><CODE>off</CODE> - Specifies the start of the data in the buffer. This will always be
216 zero.
217 <p><DD><CODE>len</CODE> - Identifies the number of bytes to back up from the buffer.</DL>
218 </DD>
219 </DL>
220 <!-- ========= END OF CLASS DATA ========= -->
221 <HR>
222
223
224 <!-- ======= START OF BOTTOM NAVBAR ====== -->
225 <A NAME="navbar_bottom"><!-- --></A>
226 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
227 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
228 <TR>
229 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
230 <A NAME="navbar_bottom_firstrow"><!-- --></A>
231 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
232 <TR ALIGN="center" VALIGN="top">
233 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
234 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
235 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
236 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/BackupHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
237 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
238 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
239 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
240 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
241 </TR>
242 </TABLE>
243 </TD>
244 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
245 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
246 </TD>
247 </TR>
248
249 <TR>
250 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
251 &nbsp;PREV CLASS&nbsp;
252 &nbsp;<A HREF="../../../com/sleepycat/db/BackupOptions.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
253 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
254 <A HREF="../../../index.html?com/sleepycat/db/BackupHandler.html" target="_top"><B>FRAMES</B></A> &nbsp;
255 &nbsp;<A HREF="BackupHandler.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
256 &nbsp;<SCRIPT type="text/javascript">
257 <!--
258 if(window==top) {
259 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
260 }
261 //-->
262 </SCRIPT>
263 <NOSCRIPT>
264 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
265 </NOSCRIPT>
266
267
268 </FONT></TD>
269 </TR>
270 <TR>
271 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
272 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
273 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
274 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
275 </TR>
276 </TABLE>
277 <A NAME="skip-navbar_bottom"></A>
278 <!-- ======== END OF BOTTOM NAVBAR ======= -->
279
280 <HR>
281 <font size=1>Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.</font>
282 </BODY>
283 </HTML>