1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_60) on Tue Feb 17 12:25:53 EST 2015 -->
<title>EventHandler (Oracle - Berkeley DB Java API)</title>
<meta name="date" content="2015-02-17">
<link rel="stylesheet" type="text/css" href="../../../style.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="EventHandler (Oracle - Berkeley DB Java API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/EventHandler.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><b>Berkeley DB</b><br><font size="-1"> version 6.1.23</font></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/sleepycat/db/ErrorHandler.html" title="interface in com.sleepycat.db"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../com/sleepycat/db/EventHandlerAdapter.html" title="class in com.sleepycat.db"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/sleepycat/db/EventHandler.html" target="_top">Frames</a></li>
<li><a href="EventHandler.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.sleepycat.db</div>
<h2 title="Interface EventHandler" class="title">Interface EventHandler</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><a href="../../../com/sleepycat/db/EventHandlerAdapter.html" title="class in com.sleepycat.db">EventHandlerAdapter</a></dd>
</dl>
<hr>
<br>
<pre>public interface <span class="strong">EventHandler</span></pre>
<div class="block">An interface classs with prototype definitions of all event functions that
can be called via the Berkeley DB event callback mechanism.
<p>
A user can choose to implement the EventHandler class, and implement handlers
for all of the event types. Alternatively it is possible to extend the
EventHandlerAdapter class, and implement only those events relevant to the
specific application.
<p>
The <a href="../../../com/sleepycat/db/EnvironmentConfig.html#setEventHandler(com.sleepycat.db.EventHandler)"><code>EnvironmentConfig.setEventHandler</code></a> is used to provide
a mechanism for reporting event messages from the Berkeley DB library
to the application.
<p>
Berkeley DB is not re-entrant. Callback functions should not attempt
to make library calls (for example, to release locks or close open
handles). Re-entering Berkeley DB is not guaranteed to work correctly,
and the results are undefined.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handlePanicEvent()">handlePanicEvent</a></strong>()</code>
<div class="block">A callback function to be called when a panic event is sent from the Berkeley DB library.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepAutoTakeoverFailedEvent()">handleRepAutoTakeoverFailedEvent</a></strong>()</code>
<div class="block">A callback function to be called when a Replication automatic takeover
failed event is sent from the Berkeley DB library.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepClientEvent()">handleRepClientEvent</a></strong>()</code>
<div class="block">A callback function to be called when a Replication Client event is sent
from the Berkeley DB library.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepConnectBrokenEvent()">handleRepConnectBrokenEvent</a></strong>()</code>
<div class="block">A callback function to be called when a Replication connect broken event
is sent from the Berkeley DB library.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepConnectEstablishedEvent()">handleRepConnectEstablishedEvent</a></strong>()</code>
<div class="block">A callback function to be called when a Replication connect established
event is sent from the Berkeley DB library.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepConnectTryFailedEvent()">handleRepConnectTryFailedEvent</a></strong>()</code>
<div class="block">A callback function to be called when a Replication connect retry failed
event is sent from the Berkeley DB library.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepDupmasterEvent()">handleRepDupmasterEvent</a></strong>()</code>
<div class="block">A callback function to be called when a Replication Client event is sent
from the Berkeley DB library.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepElectedEvent()">handleRepElectedEvent</a></strong>()</code>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepElectionFailedEvent()">handleRepElectionFailedEvent</a></strong>()</code>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepInitDoneEvent()">handleRepInitDoneEvent</a></strong>()</code>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepInQueueFullEvent()">handleRepInQueueFullEvent</a></strong>()</code>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepJoinFailureEvent()">handleRepJoinFailureEvent</a></strong>()</code>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepLocalSiteRemovedEvent()">handleRepLocalSiteRemovedEvent</a></strong>()</code>
<div class="block">A callback function to be called when a local site removed event is sent
from the Berkeley DB library.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepMasterEvent()">handleRepMasterEvent</a></strong>()</code>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepMasterFailureEvent()">handleRepMasterFailureEvent</a></strong>()</code>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepNewMasterEvent(int)">handleRepNewMasterEvent</a></strong>(int envId)</code>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepPermFailedEvent()">handleRepPermFailedEvent</a></strong>()</code>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepSiteAddedEvent()">handleRepSiteAddedEvent</a></strong>()</code>
<div class="block">A callback function to be called when a site added event is sent from the
Berkeley DB library.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepSiteRemovedEvent()">handleRepSiteRemovedEvent</a></strong>()</code>
<div class="block">A callback function to be called when a site removed event is sent from the
Berkeley DB library.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleRepStartupDoneEvent()">handleRepStartupDoneEvent</a></strong>()</code>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/sleepycat/db/EventHandler.html#handleWriteFailedEvent(int)">handleWriteFailedEvent</a></strong>(int errorCode)</code>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="handlePanicEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handlePanicEvent</h4>
<pre>void handlePanicEvent()</pre>
<div class="block">A callback function to be called when a panic event is sent from the Berkeley DB library.
<p> This event callback is received when an error occurs in the Berkeley DB
library where the only solution is to shut down the application and run
recovery. In such cases, the Berkeley DB methods will throw
<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
the application when such errors occur, rather than gracefully return up
the stack.
<p>
When this callback is received the database environment has failed. All
threads of control in the database environment should exit the environment
and recovery should be run.</div>
</li>
</ul>
<a name="handleRepAutoTakeoverFailedEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepAutoTakeoverFailedEvent</h4>
<pre>void handleRepAutoTakeoverFailedEvent()</pre>
<div class="block">A callback function to be called when a Replication automatic takeover
failed event is sent from the Berkeley DB library.
<p>
This event callback is received in a replication manager subordinate
process when it fails to take over as the replication process and
all replication manager threads in it are stopped unexpectedly.</div>
</li>
</ul>
<a name="handleRepClientEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepClientEvent</h4>
<pre>void handleRepClientEvent()</pre>
<div class="block">A callback function to be called when a Replication Client event is sent
from the Berkeley DB library.
<p>
This event callback is received when this member of a replication group is
now a client site.</div>
</li>
</ul>
<a name="handleRepConnectBrokenEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepConnectBrokenEvent</h4>
<pre>void handleRepConnectBrokenEvent()</pre>
<div class="block">A callback function to be called when a Replication connect broken event
is sent from the Berkeley DB library.
<p>
This event callback is received when a previously established connection
has been broken.</div>
</li>
</ul>
<a name="handleRepConnectEstablishedEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepConnectEstablishedEvent</h4>
<pre>void handleRepConnectEstablishedEvent()</pre>
<div class="block">A callback function to be called when a Replication connect established
event is sent from the Berkeley DB library.
<p>
This event callback is received when a connection with a remote site has
been established.</div>
</li>
</ul>
<a name="handleRepConnectTryFailedEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepConnectTryFailedEvent</h4>
<pre>void handleRepConnectTryFailedEvent()</pre>
<div class="block">A callback function to be called when a Replication connect retry failed
event is sent from the Berkeley DB library.
<p>
This event callback is received when an attempt to establish a new
connection to a known remote site failed.</div>
</li>
</ul>
<a name="handleRepDupmasterEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepDupmasterEvent</h4>
<pre>void handleRepDupmasterEvent()</pre>
<div class="block">A callback function to be called when a Replication Client event is sent
from the Berkeley DB library.
<p>
This event callback is received when a duplicate master site has been
discovered in the replication group.</div>
</li>
</ul>
<a name="handleRepElectedEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepElectedEvent</h4>
<pre>void handleRepElectedEvent()</pre>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.
<p>
This event callback is received when this site has just won an election. An
Application using the Base replication API should arrange for a call to
the <a href="../../../com/sleepycat/db/Environment.html#startReplication(com.sleepycat.db.DatabaseEntry,%20boolean)"><code>Environment.startReplication</code></a> method after receiving this
event to, reconfigure the local environment as a replication master.
<p>
Replication Manager applications may safely igore this event. The
Replication Manager calls <a href="../../../com/sleepycat/db/Environment.html#startReplication(com.sleepycat.db.DatabaseEntry,%20boolean)"><code>Environment.startReplication</code></a>
automatically on behalf of the application when appropriate (resulting in
firing of the <a href="../../../com/sleepycat/db/EventHandler.html#handleRepMasterEvent()"><code>EventHandler.handleRepMasterEvent</code></a> event).</div>
</li>
</ul>
<a name="handleRepElectionFailedEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepElectionFailedEvent</h4>
<pre>void handleRepElectionFailedEvent()</pre>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.
<p>
This event callback is received when the local site's attempt to initiate
or participate in a replication master election failed, due to the lack
of timely message response from a sufficient number of remote sites.</div>
</li>
</ul>
<a name="handleRepInitDoneEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepInitDoneEvent</h4>
<pre>void handleRepInitDoneEvent()</pre>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.
<p>
This event callback is received when internal initialization has been
completed.</div>
</li>
</ul>
<a name="handleRepInQueueFullEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepInQueueFullEvent</h4>
<pre>void handleRepInQueueFullEvent()</pre>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.
<p>
This event callback is received when replication Mananger incoming queue
has reached its maximum threshold.</div>
</li>
</ul>
<a name="handleRepJoinFailureEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepJoinFailureEvent</h4>
<pre>void handleRepJoinFailureEvent()</pre>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.
<p>
This event callback is received when the local site could not synchronize
with the master because an internal initialization was required, but
internal initialization has been turned off by the <a href="../../../com/sleepycat/db/ReplicationConfig.html#AUTOINIT"><code>ReplicationConfig.AUTOINIT</code></a>
flag to <a href="../../../com/sleepycat/db/Environment.html#setReplicationConfig(com.sleepycat.db.ReplicationConfig,%20boolean)"><code>Environment.setReplicationConfig</code></a></div>
</li>
</ul>
<a name="handleRepLocalSiteRemovedEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepLocalSiteRemovedEvent</h4>
<pre>void handleRepLocalSiteRemovedEvent()</pre>
<div class="block">A callback function to be called when a local site removed event is sent
from the Berkeley DB library.
<p>
This event callback is received when the local site has been removed from
the group.</div>
</li>
</ul>
<a name="handleRepMasterEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepMasterEvent</h4>
<pre>void handleRepMasterEvent()</pre>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.
<p>
This event callback is received when this site is now the master site of
its replication group. It is the application's responsibility to begin
acting as the master environment.</div>
</li>
</ul>
<a name="handleRepMasterFailureEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepMasterFailureEvent</h4>
<pre>void handleRepMasterFailureEvent()</pre>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.
<p>
This event callback is received when the connection to the remote master
replication site has failed.</div>
</li>
</ul>
<a name="handleRepNewMasterEvent(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepNewMasterEvent</h4>
<pre>void handleRepNewMasterEvent(int envId)</pre>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.
<p>
This event callback is received when the replication group of which this
site is a member has just established a new master; the local site is not
the new master.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>envId</code> - The environment ID of the new master site.</dd></dl>
</li>
</ul>
<a name="handleRepPermFailedEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepPermFailedEvent</h4>
<pre>void handleRepPermFailedEvent()</pre>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.
<p>
This event callback is received when the replication manager did not
receive enough acknowledgements (based on the acknowledgement policy
configured with <a href="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationManagerAckPolicy(com.sleepycat.db.ReplicationManagerAckPolicy)"><code>EnvironmentConfig.setReplicationManagerAckPolicy</code></a>)
to ensure a transaction's durability within the replication group. The
transaction will be flushed to the master's local disk storage for
durability.</div>
</li>
</ul>
<a name="handleRepSiteAddedEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepSiteAddedEvent</h4>
<pre>void handleRepSiteAddedEvent()</pre>
<div class="block">A callback function to be called when a site added event is sent from the
Berkeley DB library.
<p>
This event callback is received when a new site has joined the group.</div>
</li>
</ul>
<a name="handleRepSiteRemovedEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepSiteRemovedEvent</h4>
<pre>void handleRepSiteRemovedEvent()</pre>
<div class="block">A callback function to be called when a site removed event is sent from the
Berkeley DB library.
<p>
This event callback is received when an existing remote site has been
removed from the group.</div>
</li>
</ul>
<a name="handleRepStartupDoneEvent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleRepStartupDoneEvent</h4>
<pre>void handleRepStartupDoneEvent()</pre>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.
<p>
This event callback is received when the client has completed startup
synchronization and is now processing live log records received from the
master.</div>
</li>
</ul>
<a name="handleWriteFailedEvent(int)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>handleWriteFailedEvent</h4>
<pre>void handleWriteFailedEvent(int errorCode)</pre>
<div class="block">A callback function to be called when an event is sent from the
Berkeley DB library.
<p>
This event callback is received when a Berkeley DB write to stable storage
failed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>errorCode</code> - If an operating system specific error code is available for the failure it
will be passed in the errorCode parameter.</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/EventHandler.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><b>Berkeley DB</b><br><font size="-1"> version 6.1.23</font></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/sleepycat/db/ErrorHandler.html" title="interface in com.sleepycat.db"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../com/sleepycat/db/EventHandlerAdapter.html" title="class in com.sleepycat.db"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/sleepycat/db/EventHandler.html" target="_top">Frames</a></li>
<li><a href="EventHandler.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><font size=1>Copyright (c) 1996, 2015 Oracle and/or its affiliates. All rights reserved.</font></small></p>
</body>
</html>
|