Debian Codegraph @

docs/java/com/sleepycat/db/PanicHandler.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:05 EDT 2013 -->
6 <TITLE>
7 PanicHandler (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="PanicHandler (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/PanicHandler.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;<A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
59 &nbsp;<A HREF="../../../com/sleepycat/db/PartitionHandler.html" title="interface 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/PanicHandler.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="PanicHandler.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 PanicHandler</H2>
94 <HR>
95 <DL>
96 <DT><PRE>public interface <B>PanicHandler</B></DL>
97 </PRE>
98
99 <P>
100 An interface specifying a function to be called if the database
101 environment panics.
102 <P>
103
104 <P>
105 <HR>
106
107 <P>
108
109 <!-- ========== METHOD SUMMARY =========== -->
110
111 <A NAME="method_summary"><!-- --></A>
112 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
113 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
114 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
115 <B>Method Summary</B></FONT></TH>
116 </TR>
117 <TR BGCOLOR="white" CLASS="TableRowColor">
118 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
119 <CODE>&nbsp;void</CODE></FONT></TD>
120 <TD><CODE><B><A HREF="../../../com/sleepycat/db/PanicHandler.html#panic(com.sleepycat.db.Environment, com.sleepycat.db.DatabaseException)">panic</A></B>(<A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db">Environment</A>&nbsp;environment,
121 <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A>&nbsp;e)</CODE>
122
123 <BR>
124 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A function to be called if the database environment panics.</TD>
125 </TR>
126 </TABLE>
127 &nbsp;
128 <P>
129
130 <!-- ============ METHOD DETAIL ========== -->
131
132 <A NAME="method_detail"><!-- --></A>
133 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
134 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
135 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
136 <B>Method Detail</B></FONT></TH>
137 </TR>
138 </TABLE>
139
140 <A NAME="panic(com.sleepycat.db.Environment, com.sleepycat.db.DatabaseException)"><!-- --></A><H3>
141 panic</H3>
142 <PRE>
143 void <B>panic</B>(<A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db">Environment</A>&nbsp;environment,
144 <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A>&nbsp;e)</PRE>
145 <DL>
146 <DD>A function to be called if the database environment panics.
147 <p>
148 Errors can occur in the Berkeley DB library where the only solution
149 is to shut down the application and run recovery (for example, if
150 Berkeley DB is unable to allocate heap memory). In such cases, the
151 Berkeley DB methods will throw a <A HREF="../../../com/sleepycat/db/RunRecoveryException.html" title="class in com.sleepycat.db"><CODE>RunRecoveryException</CODE></A>.
152 <p>
153 It is often easier to simply exit the application when such errors occur rather than gracefully return up the stack. The panic
154 callback function is a function called when <A HREF="../../../com/sleepycat/db/RunRecoveryException.html" title="class in com.sleepycat.db"><CODE>RunRecoveryException</CODE></A> is about to be thrown from a from a
155 Berkeley DB method.
156 <p>
157 <P>
158 <DD><DL>
159 <DT><B>Parameters:</B><DD><CODE>environment</CODE> - The enclosing database environment handle.
160 <p><DD><CODE>e</CODE> - The <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db"><CODE>DatabaseException</CODE></A> that would have been thrown to
161 the calling method.</DL>
162 </DD>
163 </DL>
164 <!-- ========= END OF CLASS DATA ========= -->
165 <HR>
166
167
168 <!-- ======= START OF BOTTOM NAVBAR ====== -->
169 <A NAME="navbar_bottom"><!-- --></A>
170 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
171 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
172 <TR>
173 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
174 <A NAME="navbar_bottom_firstrow"><!-- --></A>
175 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
176 <TR ALIGN="center" VALIGN="top">
177 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
178 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
179 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
180 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PanicHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
181 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
182 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
183 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
184 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
185 </TR>
186 </TABLE>
187 </TD>
188 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
189 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
190 </TD>
191 </TR>
192
193 <TR>
194 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
195 &nbsp;<A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
196 &nbsp;<A HREF="../../../com/sleepycat/db/PartitionHandler.html" title="interface in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
197 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
198 <A HREF="../../../index.html?com/sleepycat/db/PanicHandler.html" target="_top"><B>FRAMES</B></A> &nbsp;
199 &nbsp;<A HREF="PanicHandler.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
200 &nbsp;<SCRIPT type="text/javascript">
201 <!--
202 if(window==top) {
203 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
204 }
205 //-->
206 </SCRIPT>
207 <NOSCRIPT>
208 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
209 </NOSCRIPT>
210
211
212 </FONT></TD>
213 </TR>
214 <TR>
215 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
216 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
217 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
218 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
219 </TR>
220 </TABLE>
221 <A NAME="skip-navbar_bottom"></A>
222 <!-- ======== END OF BOTTOM NAVBAR ======= -->
223
224 <HR>
225 <font size=1>Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.</font>
226 </BODY>
227 </HTML>