• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/db-4.7.25.NC/docs/java/com/sleepycat/db/
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.5.0) on Thu May 15 17:17:31 EDT 2008 -->
6<TITLE>
7PanicHandler (Oracle - Berkeley DB Java API)
8</TITLE>
9
10<META NAME="keywords" CONTENT="com.sleepycat.db.PanicHandler interface">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17    parent.document.title="PanicHandler (Oracle - Berkeley DB Java API)";
18}
19</SCRIPT>
20<NOSCRIPT>
21</NOSCRIPT>
22
23</HEAD>
24
25<BODY BGCOLOR="white" onload="windowTitle();">
26
27
28<!-- ========= START OF TOP NAVBAR ======= -->
29<A NAME="navbar_top"><!-- --></A>
30<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
32<TR>
33<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34<A NAME="navbar_top_firstrow"><!-- --></A>
35<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36  <TR ALIGN="center" VALIGN="top">
37  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
38  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
39  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
40  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/PanicHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
45  </TR>
46</TABLE>
47</TD>
48<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
49<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM>
50</TD>
51</TR>
52
53<TR>
54<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55&nbsp;<A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
56&nbsp;<A HREF="../../../com/sleepycat/db/PreparedTransaction.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58  <A HREF="../../../index.html?com/sleepycat/db/PanicHandler.html" target="_top"><B>FRAMES</B></A>  &nbsp;
59&nbsp;<A HREF="PanicHandler.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
60&nbsp;<SCRIPT type="text/javascript">
61  <!--
62  if(window==top) {
63    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
64  }
65  //-->
66</SCRIPT>
67<NOSCRIPT>
68  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
69</NOSCRIPT>
70
71
72</FONT></TD>
73</TR>
74<TR>
75<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
76  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
79</TR>
80</TABLE>
81<A NAME="skip-navbar_top"></A>
82<!-- ========= END OF TOP NAVBAR ========= -->
83
84<HR>
85<!-- ======== START OF CLASS DATA ======== -->
86<H2>
87<FONT SIZE="-1">
88com.sleepycat.db</FONT>
89<BR>
90Interface PanicHandler</H2>
91<HR>
92<DL>
93<DT><PRE>public interface <B>PanicHandler</B></DL>
94</PRE>
95
96<P>
97An interface specifying a function to be called if the database
98environment panics.
99<P>
100
101<P>
102<HR>
103
104<P>
105
106<!-- ========== METHOD SUMMARY =========== -->
107
108<A NAME="method_summary"><!-- --></A>
109<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
110<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
111<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
112<B>Method Summary</B></FONT></TH>
113</TR>
114<TR BGCOLOR="white" CLASS="TableRowColor">
115<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
116<CODE>&nbsp;void</CODE></FONT></TD>
117<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,
118      <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A>&nbsp;e)</CODE>
119
120<BR>
121&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A function to be called if the database environment panics.</TD>
122</TR>
123</TABLE>
124&nbsp;
125<P>
126
127<!-- ============ METHOD DETAIL ========== -->
128
129<A NAME="method_detail"><!-- --></A>
130<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
131<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
132<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
133<B>Method Detail</B></FONT></TH>
134</TR>
135</TABLE>
136
137<A NAME="panic(com.sleepycat.db.Environment, com.sleepycat.db.DatabaseException)"><!-- --></A><H3>
138panic</H3>
139<PRE>
140void <B>panic</B>(<A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db">Environment</A>&nbsp;environment,
141           <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A>&nbsp;e)</PRE>
142<DL>
143<DD>A function to be called if the database environment panics.
144    <p>
145    Errors can occur in the Berkeley DB library where the only solution
146    is to shut down the application and run recovery (for example, if
147    Berkeley DB is unable to allocate heap memory).  In such cases, the
148    Berkeley DB methods will throw a <A HREF="../../../com/sleepycat/db/RunRecoveryException.html" title="class in com.sleepycat.db"><CODE>RunRecoveryException</CODE></A>.
149    <p>
150    It is often easier to simply exit the application when such errors    occur rather than gracefully return up the stack.  The panic
151    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
152    Berkeley DB method. 
153    <p>
154<P>
155<DD><DL>
156<DT><B>Parameters:</B><DD><CODE>environment</CODE> - The enclosing database environment handle.
157    <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
158    the calling method.</DL>
159</DD>
160</DL>
161<!-- ========= END OF CLASS DATA ========= -->
162<HR>
163
164
165<!-- ======= START OF BOTTOM NAVBAR ====== -->
166<A NAME="navbar_bottom"><!-- --></A>
167<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
168<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
169<TR>
170<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
171<A NAME="navbar_bottom_firstrow"><!-- --></A>
172<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
173  <TR ALIGN="center" VALIGN="top">
174  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
175  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
176  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
177  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/PanicHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
178  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
179  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
180  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
181  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
182  </TR>
183</TABLE>
184</TD>
185<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
186<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM>
187</TD>
188</TR>
189
190<TR>
191<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
192&nbsp;<A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
193&nbsp;<A HREF="../../../com/sleepycat/db/PreparedTransaction.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
194<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
195  <A HREF="../../../index.html?com/sleepycat/db/PanicHandler.html" target="_top"><B>FRAMES</B></A>  &nbsp;
196&nbsp;<A HREF="PanicHandler.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
197&nbsp;<SCRIPT type="text/javascript">
198  <!--
199  if(window==top) {
200    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
201  }
202  //-->
203</SCRIPT>
204<NOSCRIPT>
205  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
206</NOSCRIPT>
207
208
209</FONT></TD>
210</TR>
211<TR>
212<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
213  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
214<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
215DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
216</TR>
217</TABLE>
218<A NAME="skip-navbar_bottom"></A>
219<!-- ======== END OF BOTTOM NAVBAR ======= -->
220
221<HR>
222<font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
223</BODY>
224</HTML>
225