Debian Codegraph @

docs/java/com/sleepycat/db/EventHandler.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 EventHandler (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="EventHandler (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/EventHandler.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/ErrorHandler.html" title="interface in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
59 &nbsp;<A HREF="../../../com/sleepycat/db/EventHandlerAdapter.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/EventHandler.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="EventHandler.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 EventHandler</H2>
94 <DL>
95 <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../com/sleepycat/db/EventHandlerAdapter.html" title="class in com.sleepycat.db">EventHandlerAdapter</A></DD>
96 </DL>
97 <HR>
98 <DL>
99 <DT><PRE>public interface <B>EventHandler</B></DL>
100 </PRE>
101
102 <P>
103 An interface classs with prototype definitions of all event functions that
104 can be called via the Berkeley DB event callback mechanism.
105 <p>
106 A user can choose to implement the EventHandler class, and implement handlers
107 for all of the event types. Alternatively it is possible to extend the
108 EventHandlerAdapter class, and implement only those events relevant to the
109 specific application.
110 <p>
111 The <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setEventHandler(com.sleepycat.db.EventHandler)"><CODE>EnvironmentConfig.setEventHandler</CODE></A> is used to provide
112 a mechanism for reporting event messages from the Berkeley DB library
113 to the application.
114 <p>
115 Berkeley DB is not re-entrant. Callback functions should not attempt
116 to make library calls (for example, to release locks or close open
117 handles). Re-entering Berkeley DB is not guaranteed to work correctly,
118 and the results are undefined.
119 <P>
120
121 <P>
122 <HR>
123
124 <P>
125
126 <!-- ========== METHOD SUMMARY =========== -->
127
128 <A NAME="method_summary"><!-- --></A>
129 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
130 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
131 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
132 <B>Method Summary</B></FONT></TH>
133 </TR>
134 <TR BGCOLOR="white" CLASS="TableRowColor">
135 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
136 <CODE>&nbsp;void</CODE></FONT></TD>
137 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handlePanicEvent()">handlePanicEvent</A></B>()</CODE>
138
139 <BR>
140 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when a panic event is sent from the Berkeley DB library.</TD>
141 </TR>
142 <TR BGCOLOR="white" CLASS="TableRowColor">
143 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144 <CODE>&nbsp;void</CODE></FONT></TD>
145 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepClientEvent()">handleRepClientEvent</A></B>()</CODE>
146
147 <BR>
148 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when a Replication Client event is sent
149 from the Berkeley DB library.</TD>
150 </TR>
151 <TR BGCOLOR="white" CLASS="TableRowColor">
152 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
153 <CODE>&nbsp;void</CODE></FONT></TD>
154 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepConnectBrokenEvent()">handleRepConnectBrokenEvent</A></B>()</CODE>
155
156 <BR>
157 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when a Replication connect broken event
158 is sent from the Berkeley DB library.</TD>
159 </TR>
160 <TR BGCOLOR="white" CLASS="TableRowColor">
161 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162 <CODE>&nbsp;void</CODE></FONT></TD>
163 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepConnectEstablishedEvent()">handleRepConnectEstablishedEvent</A></B>()</CODE>
164
165 <BR>
166 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when a Replication connect established
167 event is sent from the Berkeley DB library.</TD>
168 </TR>
169 <TR BGCOLOR="white" CLASS="TableRowColor">
170 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171 <CODE>&nbsp;void</CODE></FONT></TD>
172 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepConnectTryFailedEvent()">handleRepConnectTryFailedEvent</A></B>()</CODE>
173
174 <BR>
175 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when a Replication connect retry failed
176 event is sent from the Berkeley DB library.</TD>
177 </TR>
178 <TR BGCOLOR="white" CLASS="TableRowColor">
179 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180 <CODE>&nbsp;void</CODE></FONT></TD>
181 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepDupmasterEvent()">handleRepDupmasterEvent</A></B>()</CODE>
182
183 <BR>
184 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when a Replication Client event is sent
185 from the Berkeley DB library.</TD>
186 </TR>
187 <TR BGCOLOR="white" CLASS="TableRowColor">
188 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189 <CODE>&nbsp;void</CODE></FONT></TD>
190 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepElectedEvent()">handleRepElectedEvent</A></B>()</CODE>
191
192 <BR>
193 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when an event is sent from the
194 Berkeley DB library.</TD>
195 </TR>
196 <TR BGCOLOR="white" CLASS="TableRowColor">
197 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198 <CODE>&nbsp;void</CODE></FONT></TD>
199 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepElectionFailedEvent()">handleRepElectionFailedEvent</A></B>()</CODE>
200
201 <BR>
202 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when an event is sent from the
203 Berkeley DB library.</TD>
204 </TR>
205 <TR BGCOLOR="white" CLASS="TableRowColor">
206 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207 <CODE>&nbsp;void</CODE></FONT></TD>
208 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepInitDoneEvent()">handleRepInitDoneEvent</A></B>()</CODE>
209
210 <BR>
211 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when an event is sent from the
212 Berkeley DB library.</TD>
213 </TR>
214 <TR BGCOLOR="white" CLASS="TableRowColor">
215 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216 <CODE>&nbsp;void</CODE></FONT></TD>
217 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepJoinFailureEvent()">handleRepJoinFailureEvent</A></B>()</CODE>
218
219 <BR>
220 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when an event is sent from the
221 Berkeley DB library.</TD>
222 </TR>
223 <TR BGCOLOR="white" CLASS="TableRowColor">
224 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225 <CODE>&nbsp;void</CODE></FONT></TD>
226 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepLocalSiteRemovedEvent()">handleRepLocalSiteRemovedEvent</A></B>()</CODE>
227
228 <BR>
229 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when a local site removed event is sent
230 from the Berkeley DB library.</TD>
231 </TR>
232 <TR BGCOLOR="white" CLASS="TableRowColor">
233 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
234 <CODE>&nbsp;void</CODE></FONT></TD>
235 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepMasterEvent()">handleRepMasterEvent</A></B>()</CODE>
236
237 <BR>
238 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when an event is sent from the
239 Berkeley DB library.</TD>
240 </TR>
241 <TR BGCOLOR="white" CLASS="TableRowColor">
242 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
243 <CODE>&nbsp;void</CODE></FONT></TD>
244 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepMasterFailureEvent()">handleRepMasterFailureEvent</A></B>()</CODE>
245
246 <BR>
247 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when an event is sent from the
248 Berkeley DB library.</TD>
249 </TR>
250 <TR BGCOLOR="white" CLASS="TableRowColor">
251 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
252 <CODE>&nbsp;void</CODE></FONT></TD>
253 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepNewMasterEvent(int)">handleRepNewMasterEvent</A></B>(int&nbsp;envId)</CODE>
254
255 <BR>
256 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when an event is sent from the
257 Berkeley DB library.</TD>
258 </TR>
259 <TR BGCOLOR="white" CLASS="TableRowColor">
260 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
261 <CODE>&nbsp;void</CODE></FONT></TD>
262 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepPermFailedEvent()">handleRepPermFailedEvent</A></B>()</CODE>
263
264 <BR>
265 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when an event is sent from the
266 Berkeley DB library.</TD>
267 </TR>
268 <TR BGCOLOR="white" CLASS="TableRowColor">
269 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
270 <CODE>&nbsp;void</CODE></FONT></TD>
271 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepSiteAddedEvent()">handleRepSiteAddedEvent</A></B>()</CODE>
272
273 <BR>
274 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when a site added event is sent from the
275 Berkeley DB library.</TD>
276 </TR>
277 <TR BGCOLOR="white" CLASS="TableRowColor">
278 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
279 <CODE>&nbsp;void</CODE></FONT></TD>
280 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepSiteRemovedEvent()">handleRepSiteRemovedEvent</A></B>()</CODE>
281
282 <BR>
283 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when a site removed event is sent from the
284 Berkeley DB library.</TD>
285 </TR>
286 <TR BGCOLOR="white" CLASS="TableRowColor">
287 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
288 <CODE>&nbsp;void</CODE></FONT></TD>
289 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepStartupDoneEvent()">handleRepStartupDoneEvent</A></B>()</CODE>
290
291 <BR>
292 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when an event is sent from the
293 Berkeley DB library.</TD>
294 </TR>
295 <TR BGCOLOR="white" CLASS="TableRowColor">
296 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
297 <CODE>&nbsp;void</CODE></FONT></TD>
298 <TD><CODE><B><A HREF="../../../com/sleepycat/db/EventHandler.html#handleWriteFailedEvent(int)">handleWriteFailedEvent</A></B>(int&nbsp;errorCode)</CODE>
299
300 <BR>
301 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A callback function to be called when an event is sent from the
302 Berkeley DB library.</TD>
303 </TR>
304 </TABLE>
305 &nbsp;
306 <P>
307
308 <!-- ============ METHOD DETAIL ========== -->
309
310 <A NAME="method_detail"><!-- --></A>
311 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
312 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
313 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
314 <B>Method Detail</B></FONT></TH>
315 </TR>
316 </TABLE>
317
318 <A NAME="handlePanicEvent()"><!-- --></A><H3>
319 handlePanicEvent</H3>
320 <PRE>
321 void <B>handlePanicEvent</B>()</PRE>
322 <DL>
323 <DD>A callback function to be called when a panic event is sent from the Berkeley DB library.
324 <p> This event callback is received when an error occurs in the Berkeley DB
325 library where the only solution is to shut down the application and run
326 recovery. In such cases, the Berkeley DB methods will throw
327 <A HREF="../../../com/sleepycat/db/RunRecoveryException.html" title="class in com.sleepycat.db"><CODE>RunRecoveryException</CODE></A> exceptions. It is often easier to simply exit
328 the application when such errors occur, rather than gracefully return up
329 the stack.
330 <p>
331 When this callback is received the database environment has failed. All
332 threads of control in the database environment should exit the environment
333 and recovery should be run.
334 <P>
335 <DD><DL>
336 </DL>
337 </DD>
338 </DL>
339 <HR>
340
341 <A NAME="handleRepClientEvent()"><!-- --></A><H3>
342 handleRepClientEvent</H3>
343 <PRE>
344 void <B>handleRepClientEvent</B>()</PRE>
345 <DL>
346 <DD>A callback function to be called when a Replication Client event is sent
347 from the Berkeley DB library.
348 <p>
349 This event callback is received when this member of a replication group is
350 now a client site.
351 <P>
352 <DD><DL>
353 </DL>
354 </DD>
355 </DL>
356 <HR>
357
358 <A NAME="handleRepConnectBrokenEvent()"><!-- --></A><H3>
359 handleRepConnectBrokenEvent</H3>
360 <PRE>
361 void <B>handleRepConnectBrokenEvent</B>()</PRE>
362 <DL>
363 <DD>A callback function to be called when a Replication connect broken event
364 is sent from the Berkeley DB library.
365 <p>
366 This event callback is received when a previously established connection
367 has been broken.
368 <P>
369 <DD><DL>
370 </DL>
371 </DD>
372 </DL>
373 <HR>
374
375 <A NAME="handleRepConnectEstablishedEvent()"><!-- --></A><H3>
376 handleRepConnectEstablishedEvent</H3>
377 <PRE>
378 void <B>handleRepConnectEstablishedEvent</B>()</PRE>
379 <DL>
380 <DD>A callback function to be called when a Replication connect established
381 event is sent from the Berkeley DB library.
382 <p>
383 This event callback is received when a connection with a remote site has
384 been established.
385 <P>
386 <DD><DL>
387 </DL>
388 </DD>
389 </DL>
390 <HR>
391
392 <A NAME="handleRepConnectTryFailedEvent()"><!-- --></A><H3>
393 handleRepConnectTryFailedEvent</H3>
394 <PRE>
395 void <B>handleRepConnectTryFailedEvent</B>()</PRE>
396 <DL>
397 <DD>A callback function to be called when a Replication connect retry failed
398 event is sent from the Berkeley DB library.
399 <p>
400 This event callback is received when an attempt to establish a new
401 connection to a known remote site failed.
402 <P>
403 <DD><DL>
404 </DL>
405 </DD>
406 </DL>
407 <HR>
408
409 <A NAME="handleRepDupmasterEvent()"><!-- --></A><H3>
410 handleRepDupmasterEvent</H3>
411 <PRE>
412 void <B>handleRepDupmasterEvent</B>()</PRE>
413 <DL>
414 <DD>A callback function to be called when a Replication Client event is sent
415 from the Berkeley DB library.
416 <p>
417 This event callback is received when a duplicate master site has been
418 discovered in the replication group.
419 <P>
420 <DD><DL>
421 </DL>
422 </DD>
423 </DL>
424 <HR>
425
426 <A NAME="handleRepElectedEvent()"><!-- --></A><H3>
427 handleRepElectedEvent</H3>
428 <PRE>
429 void <B>handleRepElectedEvent</B>()</PRE>
430 <DL>
431 <DD>A callback function to be called when an event is sent from the
432 Berkeley DB library.
433 <p>
434 This event callback is received when this site has just won an election. An
435 Application using the Base replication API should arrange for a call to
436 the <A HREF="../../../com/sleepycat/db/Environment.html#startReplication(com.sleepycat.db.DatabaseEntry, boolean)"><CODE>Environment.startReplication</CODE></A> method after receiving this
437 event to, reconfigure the local environment as a replication master.
438 <p>
439 Replication Manager applications may safely igore this event. The
440 Replication Manager calls <A HREF="../../../com/sleepycat/db/Environment.html#startReplication(com.sleepycat.db.DatabaseEntry, boolean)"><CODE>Environment.startReplication</CODE></A>
441 automatically on behalf of the application when appropriate (resulting in
442 firing of the <A HREF="../../../com/sleepycat/db/EventHandler.html#handleRepMasterEvent()"><CODE>EventHandler.handleRepMasterEvent</CODE></A> event).
443 <P>
444 <DD><DL>
445 </DL>
446 </DD>
447 </DL>
448 <HR>
449
450 <A NAME="handleRepElectionFailedEvent()"><!-- --></A><H3>
451 handleRepElectionFailedEvent</H3>
452 <PRE>
453 void <B>handleRepElectionFailedEvent</B>()</PRE>
454 <DL>
455 <DD>A callback function to be called when an event is sent from the
456 Berkeley DB library.
457 <p>
458 This event callback is received when the local site's attempt to initiate
459 or participate in a replication master election failed, due to the lack
460 of timely message response from a sufficient number of remote sites.
461 <P>
462 <DD><DL>
463 </DL>
464 </DD>
465 </DL>
466 <HR>
467
468 <A NAME="handleRepInitDoneEvent()"><!-- --></A><H3>
469 handleRepInitDoneEvent</H3>
470 <PRE>
471 void <B>handleRepInitDoneEvent</B>()</PRE>
472 <DL>
473 <DD>A callback function to be called when an event is sent from the
474 Berkeley DB library.
475 <p>
476 This event callback is received when internal initialization has been
477 completed.
478 <P>
479 <DD><DL>
480 </DL>
481 </DD>
482 </DL>
483 <HR>
484
485 <A NAME="handleRepJoinFailureEvent()"><!-- --></A><H3>
486 handleRepJoinFailureEvent</H3>
487 <PRE>
488 void <B>handleRepJoinFailureEvent</B>()</PRE>
489 <DL>
490 <DD>A callback function to be called when an event is sent from the
491 Berkeley DB library.
492 <p>
493 This event callback is received when the local site could not synchronize
494 with the master because an internal initialization was required, but
495 internal initialization has been turned off by the <A HREF="../../../com/sleepycat/db/ReplicationConfig.html#AUTOINIT"><CODE>ReplicationConfig.AUTOINIT</CODE></A>
496 flag to <A HREF="../../../com/sleepycat/db/Environment.html#setReplicationConfig(com.sleepycat.db.ReplicationConfig, boolean)"><CODE>Environment.setReplicationConfig</CODE></A>
497 <P>
498 <DD><DL>
499 </DL>
500 </DD>
501 </DL>
502 <HR>
503
504 <A NAME="handleRepLocalSiteRemovedEvent()"><!-- --></A><H3>
505 handleRepLocalSiteRemovedEvent</H3>
506 <PRE>
507 void <B>handleRepLocalSiteRemovedEvent</B>()</PRE>
508 <DL>
509 <DD>A callback function to be called when a local site removed event is sent
510 from the Berkeley DB library.
511 <p>
512 This event callback is received when the local site has been removed from
513 the group.
514 <P>
515 <DD><DL>
516 </DL>
517 </DD>
518 </DL>
519 <HR>
520
521 <A NAME="handleRepMasterEvent()"><!-- --></A><H3>
522 handleRepMasterEvent</H3>
523 <PRE>
524 void <B>handleRepMasterEvent</B>()</PRE>
525 <DL>
526 <DD>A callback function to be called when an event is sent from the
527 Berkeley DB library.
528 <p>
529 This event callback is received when this site is now the master site of
530 its replication group. It is the application's responsibility to begin
531 acting as the master environment.
532 <P>
533 <DD><DL>
534 </DL>
535 </DD>
536 </DL>
537 <HR>
538
539 <A NAME="handleRepMasterFailureEvent()"><!-- --></A><H3>
540 handleRepMasterFailureEvent</H3>
541 <PRE>
542 void <B>handleRepMasterFailureEvent</B>()</PRE>
543 <DL>
544 <DD>A callback function to be called when an event is sent from the
545 Berkeley DB library.
546 <p>
547 This event callback is received when the connection to the remote master
548 replication site has failed.
549 <P>
550 <DD><DL>
551 </DL>
552 </DD>
553 </DL>
554 <HR>
555
556 <A NAME="handleRepNewMasterEvent(int)"><!-- --></A><H3>
557 handleRepNewMasterEvent</H3>
558 <PRE>
559 void <B>handleRepNewMasterEvent</B>(int&nbsp;envId)</PRE>
560 <DL>
561 <DD>A callback function to be called when an event is sent from the
562 Berkeley DB library.
563 <p>
564 This event callback is received when the replication group of which this
565 site is a member has just established a new master; the local site is not
566 the new master.
567 <P>
568 <DD><DL>
569 <DT><B>Parameters:</B><DD><CODE>envId</CODE> - The environment ID of the new master site.</DL>
570 </DD>
571 </DL>
572 <HR>
573
574 <A NAME="handleRepPermFailedEvent()"><!-- --></A><H3>
575 handleRepPermFailedEvent</H3>
576 <PRE>
577 void <B>handleRepPermFailedEvent</B>()</PRE>
578 <DL>
579 <DD>A callback function to be called when an event is sent from the
580 Berkeley DB library.
581 <p>
582 This event callback is received when the replication manager did not
583 receive enough acknowledgements (based on the acknowledgement policy
584 configured with <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationManagerAckPolicy(com.sleepycat.db.ReplicationManagerAckPolicy)"><CODE>EnvironmentConfig.setReplicationManagerAckPolicy</CODE></A>)
585 to ensure a transaction's durability within the replication group. The
586 transaction will be flushed to the master's local disk storage for
587 durability.
588 <P>
589 <DD><DL>
590 </DL>
591 </DD>
592 </DL>
593 <HR>
594
595 <A NAME="handleRepSiteAddedEvent()"><!-- --></A><H3>
596 handleRepSiteAddedEvent</H3>
597 <PRE>
598 void <B>handleRepSiteAddedEvent</B>()</PRE>
599 <DL>
600 <DD>A callback function to be called when a site added event is sent from the
601 Berkeley DB library.
602 <p>
603 This event callback is received when a new site has joined the group.
604 <P>
605 <DD><DL>
606 </DL>
607 </DD>
608 </DL>
609 <HR>
610
611 <A NAME="handleRepSiteRemovedEvent()"><!-- --></A><H3>
612 handleRepSiteRemovedEvent</H3>
613 <PRE>
614 void <B>handleRepSiteRemovedEvent</B>()</PRE>
615 <DL>
616 <DD>A callback function to be called when a site removed event is sent from the
617 Berkeley DB library.
618 <p>
619 This event callback is received when an existing remote site has been
620 removed from the group.
621 <P>
622 <DD><DL>
623 </DL>
624 </DD>
625 </DL>
626 <HR>
627
628 <A NAME="handleRepStartupDoneEvent()"><!-- --></A><H3>
629 handleRepStartupDoneEvent</H3>
630 <PRE>
631 void <B>handleRepStartupDoneEvent</B>()</PRE>
632 <DL>
633 <DD>A callback function to be called when an event is sent from the
634 Berkeley DB library.
635 <p>
636 This event callback is received when the client has completed startup
637 synchronization and is now processing live log records received from the
638 master.
639 <P>
640 <DD><DL>
641 </DL>
642 </DD>
643 </DL>
644 <HR>
645
646 <A NAME="handleWriteFailedEvent(int)"><!-- --></A><H3>
647 handleWriteFailedEvent</H3>
648 <PRE>
649 void <B>handleWriteFailedEvent</B>(int&nbsp;errorCode)</PRE>
650 <DL>
651 <DD>A callback function to be called when an event is sent from the
652 Berkeley DB library.
653 <p>
654 This event callback is received when a Berkeley DB write to stable storage
655 failed.
656 <P>
657 <DD><DL>
658 <DT><B>Parameters:</B><DD><CODE>errorCode</CODE> - If an operating system specific error code is available for the failure it
659 will be passed in the errorCode parameter.</DL>
660 </DD>
661 </DL>
662 <!-- ========= END OF CLASS DATA ========= -->
663 <HR>
664
665
666 <!-- ======= START OF BOTTOM NAVBAR ====== -->
667 <A NAME="navbar_bottom"><!-- --></A>
668 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
669 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
670 <TR>
671 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
672 <A NAME="navbar_bottom_firstrow"><!-- --></A>
673 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
674 <TR ALIGN="center" VALIGN="top">
675 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
676 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
677 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
678 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/EventHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
679 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
680 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
681 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
682 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
683 </TR>
684 </TABLE>
685 </TD>
686 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
687 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
688 </TD>
689 </TR>
690
691 <TR>
692 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
693 &nbsp;<A HREF="../../../com/sleepycat/db/ErrorHandler.html" title="interface in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
694 &nbsp;<A HREF="../../../com/sleepycat/db/EventHandlerAdapter.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
695 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
696 <A HREF="../../../index.html?com/sleepycat/db/EventHandler.html" target="_top"><B>FRAMES</B></A> &nbsp;
697 &nbsp;<A HREF="EventHandler.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
698 &nbsp;<SCRIPT type="text/javascript">
699 <!--
700 if(window==top) {
701 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
702 }
703 //-->
704 </SCRIPT>
705 <NOSCRIPT>
706 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
707 </NOSCRIPT>
708
709
710 </FONT></TD>
711 </TR>
712 <TR>
713 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
714 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
715 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
716 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
717 </TR>
718 </TABLE>
719 <A NAME="skip-navbar_bottom"></A>
720 <!-- ======== END OF BOTTOM NAVBAR ======= -->
721
722 <HR>
723 <font size=1>Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.</font>
724 </BODY>
725 </HTML>