-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathPluginIntegrationTest.java
More file actions
658 lines (536 loc) · 27.9 KB
/
Copy pathPluginIntegrationTest.java
File metadata and controls
658 lines (536 loc) · 27.9 KB
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
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.amazon.lambda.durable;
import static org.junit.jupiter.api.Assertions.*;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.jupiter.api.Test;
import software.amazon.awssdk.services.lambda.model.ErrorObject;
import software.amazon.awssdk.services.lambda.model.OperationStatus;
import software.amazon.lambda.durable.config.StepConfig;
import software.amazon.lambda.durable.model.ExecutionStatus;
import software.amazon.lambda.durable.model.WaitForConditionResult;
import software.amazon.lambda.durable.plugin.*;
import software.amazon.lambda.durable.retry.RetryStrategies;
import software.amazon.lambda.durable.testing.LocalDurableTestRunner;
/** Integration tests verifying plugin hooks fire correctly during durable execution lifecycle. */
class PluginIntegrationTest {
// ─── Invocation-level hooks ──────────────────────────────────────────
@Test
void plugin_receivesInvocationStartAndEnd_onSuccessfulExecution() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class,
(input, context) -> context.step("greet", String.class, stepCtx -> "Hello " + input),
config);
var result = runner.runUntilComplete("World");
assertEquals(ExecutionStatus.SUCCEEDED, result.getStatus());
// Verify invocation hooks fired
assertEquals(1, plugin.invocationStarts.size());
assertTrue(plugin.invocationStarts.get(0).isFirstInvocation());
assertNotNull(plugin.invocationStarts.get(0).durableExecutionArn());
assertEquals(1, plugin.invocationEnds.size());
assertEquals(InvocationStatus.SUCCEEDED, plugin.invocationEnds.get(0).invocationStatus());
assertNull(plugin.invocationEnds.get(0).executionError());
}
@Test
void plugin_receivesInvocationEnd_withPendingStatus_onSuspension() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class,
(input, context) -> {
context.step("step1", String.class, stepCtx -> "done");
context.wait("pause", Duration.ofMinutes(5));
return "complete";
},
config);
var result = runner.run("input");
assertEquals(ExecutionStatus.PENDING, result.getStatus());
assertEquals(1, plugin.invocationEnds.size());
assertEquals(InvocationStatus.PENDING, plugin.invocationEnds.get(0).invocationStatus());
}
@Test
void plugin_receivesInvocationEnd_withFailedStatus_onError() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class,
(input, context) -> context.step(
"failing",
String.class,
stepCtx -> {
throw new RuntimeException("boom");
},
StepConfig.builder()
.retryStrategy(RetryStrategies.Presets.NO_RETRY)
.build()),
config);
var result = runner.run("input");
assertEquals(ExecutionStatus.FAILED, result.getStatus());
assertEquals(1, plugin.invocationEnds.size());
assertEquals(InvocationStatus.FAILED, plugin.invocationEnds.get(0).invocationStatus());
assertNotNull(plugin.invocationEnds.get(0).executionError());
}
// ─── Operation-level hooks ───────────────────────────────────────────
@Test
void plugin_receivesOperationStartAndEnd_forStep() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class, (input, context) -> context.step("my-step", String.class, stepCtx -> "result"), config);
runner.runUntilComplete("input");
// Should have at least one operation start for the step
assertTrue(
plugin.operationStarts.stream().anyMatch(info -> "my-step".equals(info.name())),
"Should have onOperationStart for 'my-step'");
// Should have operation end for completed step
assertTrue(
plugin.operationEnds.stream().anyMatch(info -> "my-step".equals(info.name())),
"Should have onOperationEnd for 'my-step'");
}
@Test
void plugin_receivesOperationStart_forMultipleSteps() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class,
(input, context) -> {
context.step("step-a", String.class, stepCtx -> "A");
context.step("step-b", String.class, stepCtx -> "B");
context.step("step-c", String.class, stepCtx -> "C");
return "done";
},
config);
runner.runUntilComplete("input");
var opNames = plugin.operationStarts.stream().map(OperationInfo::name).toList();
assertTrue(opNames.contains("step-a"));
assertTrue(opNames.contains("step-b"));
assertTrue(opNames.contains("step-c"));
}
@Test
void plugin_operationEnd_notFiredOnReplay() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class,
(input, context) -> {
context.step("step1", String.class, stepCtx -> "done");
context.wait("pause", Duration.ofMinutes(1));
context.step("step2", String.class, stepCtx -> "final");
return "complete";
},
config);
// First invocation: step1 completes, then suspends at wait
var result1 = runner.run("input");
assertEquals(ExecutionStatus.PENDING, result1.getStatus());
int operationEndsAfterFirstRun = plugin.operationEnds.size();
assertTrue(operationEndsAfterFirstRun > 0, "At least step1 should have ended");
// Advance time and re-run (replay step1, execute step2)
runner.advanceTime();
var result2 = runner.run("input");
assertEquals(ExecutionStatus.SUCCEEDED, result2.getStatus());
// operationEnd for step1 should NOT fire again on replay
long step1EndCount = plugin.operationEnds.stream()
.filter(info -> "step1".equals(info.name()))
.count();
assertEquals(1, step1EndCount, "step1 onOperationEnd should fire only once (not on replay)");
}
@Test
void plugin_operationEnd_firedForOperationCompletedDuringSuspension() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class,
(input, context) -> {
context.step("step1", String.class, stepCtx -> "done");
context.wait("pause", Duration.ofMinutes(1));
context.step("step2", String.class, stepCtx -> "final");
return "complete";
},
config);
// First invocation: step1 completes, then suspends at wait
var result1 = runner.run("input");
assertEquals(ExecutionStatus.PENDING, result1.getStatus());
// Advance time (wait completes externally while Lambda was frozen)
runner.advanceTime();
// Clear plugin state to only track second invocation
plugin.operationEnds.clear();
plugin.operationStarts.clear();
var result2 = runner.run("input");
assertEquals(ExecutionStatus.SUCCEEDED, result2.getStatus());
// onOperationEnd for "pause" should fire during the second invocation
// because the wait completed during suspension (it's in updatedOperationIds)
long pauseEndCount = plugin.operationEnds.stream()
.filter(info -> "pause".equals(info.name()))
.count();
assertEquals(1, pauseEndCount, "wait operation onOperationEnd should fire when it completes during suspension");
}
@Test
void plugin_operationEnd_firedOnceForStepCompletingInCurrentInvocation() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class,
(input, context) -> {
context.step("step1", String.class, stepCtx -> "done");
return "complete";
},
config);
// Single invocation: step1 completes within this invocation
var result = runner.runUntilComplete("input");
assertEquals(ExecutionStatus.SUCCEEDED, result.getStatus());
long step1EndCount = plugin.operationEnds.stream()
.filter(info -> "step1".equals(info.name()))
.count();
assertEquals(1, step1EndCount, "step1 onOperationEnd should fire exactly once");
}
@Test
void plugin_operationEnd_includesError_whenInvokeFailsDuringSuspension() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class,
(input, context) -> {
try {
context.invoke("call-target", "target-fn", "{}", String.class);
} catch (Exception e) {
// expected
}
return "done";
},
config);
// First invocation: invoke starts, suspends waiting for target
var result1 = runner.run("input");
assertEquals(ExecutionStatus.PENDING, result1.getStatus());
// Target fails while Lambda is frozen
runner.failChainedInvoke(
"call-target",
ErrorObject.builder()
.errorType("TargetError")
.errorMessage("target function failed")
.build());
// Clear plugin state to only track second invocation
plugin.operationEnds.clear();
var result2 = runner.run("input");
assertEquals(ExecutionStatus.SUCCEEDED, result2.getStatus());
// onOperationEnd for "call-target" should fire with error info
var invokeEnd = plugin.operationEnds.stream()
.filter(info -> "call-target".equals(info.name()))
.findFirst()
.orElse(null);
assertNotNull(invokeEnd, "onOperationEnd should fire for failed invoke during suspension");
assertNotNull(invokeEnd.error(), "error should be propagated for failed invoke");
assertEquals("target function failed", invokeEnd.error().getMessage());
}
@Test
void plugin_operationEnd_includesError_whenStepFailsViaCheckpoint() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class,
(input, context) -> context.step(
"failing-step",
String.class,
stepCtx -> {
throw new RuntimeException("step exploded");
},
StepConfig.builder()
.retryStrategy(RetryStrategies.Presets.NO_RETRY)
.build()),
config);
var result = runner.run("input");
assertEquals(ExecutionStatus.FAILED, result.getStatus());
// onOperationEnd for "failing-step" should fire with error info
var stepEnd = plugin.operationEnds.stream()
.filter(info -> "failing-step".equals(info.name()))
.findFirst()
.orElse(null);
assertNotNull(stepEnd, "onOperationEnd should fire for failed step");
assertNotNull(stepEnd.error(), "error should be propagated for failed step");
assertTrue(stepEnd.error().getMessage().contains("step exploded"));
}
@Test
void plugin_operationEnd_noError_whenOperationSucceeds() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class, (input, context) -> context.step("ok-step", String.class, stepCtx -> "success"), config);
runner.runUntilComplete("input");
var stepEnd = plugin.operationEnds.stream()
.filter(info -> "ok-step".equals(info.name()))
.findFirst()
.orElse(null);
assertNotNull(stepEnd, "onOperationEnd should fire for successful step");
assertNull(stepEnd.error(), "error should be null for successful step");
}
// ─── Operation change hook ───────────────────────────────────────────
@Test
void plugin_receivesOperationChange_forStep() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class, (input, context) -> context.step("my-step", String.class, stepCtx -> "result"), config);
runner.runUntilComplete("input");
// A checkpoint response that reports the step at a new status should fire onOperationChange
assertFalse(
plugin.operationChanges.isEmpty(), "onOperationChange should fire when an operation changes status");
var changeWithStep = plugin.operationChanges.stream()
.filter(info -> info.updatedOperations().values().stream().anyMatch(op -> "my-step".equals(op.name())))
.findFirst()
.orElse(null);
assertNotNull(changeWithStep, "onOperationChange should include the 'my-step' operation that changed status");
assertNotNull(changeWithStep.durableExecutionArn());
assertFalse(changeWithStep.operations().isEmpty(), "snapshot of all operations should be present");
}
@Test
void plugin_operationChange_includesErrorAndStatus_whenStepFails() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class,
(input, context) -> context.step(
"failing-step",
String.class,
stepCtx -> {
throw new RuntimeException("step exploded");
},
StepConfig.builder()
.retryStrategy(RetryStrategies.Presets.NO_RETRY)
.build()),
config);
var result = runner.run("input");
assertEquals(ExecutionStatus.FAILED, result.getStatus());
// The failing step transitions through several statuses; find the one reporting FAILED
var failedItem = plugin.operationChanges.stream()
.flatMap(info -> info.updatedOperations().values().stream())
.filter(op -> "failing-step".equals(op.name()) && op.status() == OperationStatus.FAILED)
.findFirst()
.orElse(null);
assertNotNull(failedItem, "onOperationChange should report 'failing-step' with FAILED status");
assertNotNull(failedItem.error(), "error should be propagated for the failed step");
assertTrue(failedItem.error().getMessage().contains("step exploded"));
}
// ─── User function hooks ─────────────────────────────────────────────
@Test
void plugin_receivesUserFunctionStartAndEnd_forStep() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class, (input, context) -> context.step("compute", String.class, stepCtx -> "42"), config);
runner.runUntilComplete("input");
assertTrue(
plugin.userFunctionStarts.stream().anyMatch(info -> "compute".equals(info.name())),
"Should have onUserFunctionStart for 'compute'");
assertTrue(
plugin.userFunctionEnds.stream().anyMatch(info -> "compute".equals(info.name()) && info.succeeded()),
"Should have successful onUserFunctionEnd for 'compute'");
}
@Test
void plugin_userFunctionEnd_succeeded_false_whenStepFails() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
// When a step fails and retries are exhausted, the step operation's handleStepFailure
// sends a FAIL checkpoint. However, from runUserHandler's perspective the wrapped lambda
// catches the exception internally, so onUserFunctionEnd still reports succeeded=true
// for the step handler wrapper. The actual failure is captured in onOperationEnd and onInvocationEnd.
var runner = LocalDurableTestRunner.create(
String.class,
(input, context) -> context.step(
"fail-step",
String.class,
stepCtx -> {
throw new RuntimeException("step failed");
},
StepConfig.builder()
.retryStrategy(RetryStrategies.Presets.NO_RETRY)
.build()),
config);
var result = runner.run("input");
assertEquals(ExecutionStatus.FAILED, result.getStatus());
// Verify failure is captured at invocation level
assertEquals(1, plugin.invocationEnds.size());
assertEquals(InvocationStatus.FAILED, plugin.invocationEnds.get(0).invocationStatus());
// The user function start/end hooks fire for the step execution thread
assertFalse(plugin.userFunctionStarts.isEmpty(), "Should have user function start for the step");
assertFalse(plugin.userFunctionEnds.isEmpty(), "Should have user function end for the step");
}
@Test
void plugin_userFunctionStart_includesAttemptNumber_forRetries() {
var attemptCounter = new AtomicInteger(0);
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class,
(input, context) -> context.step(
"retry-step",
String.class,
stepCtx -> {
if (attemptCounter.incrementAndGet() < 3) {
throw new RuntimeException("not yet");
}
return "success";
},
StepConfig.builder()
.retryStrategy(RetryStrategies.Presets.DEFAULT)
.build()),
config);
// Run until all retries succeed
runner.runUntilComplete("input");
// Check that attempt numbers are set on user function starts for the retry step
var retryStepStarts = plugin.userFunctionStarts.stream()
.filter(info -> "retry-step".equals(info.name()) && info.attempt() != null)
.toList();
assertFalse(retryStepStarts.isEmpty(), "Should have user function starts with attempt numbers");
assertEquals(Integer.valueOf(1), retryStepStarts.get(0).attempt());
}
// ─── Multiple plugins ────────────────────────────────────────────────
@Test
void multiplePlugins_allReceiveHooks() {
var plugin1 = new RecordingPlugin();
var plugin2 = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin1, plugin2).build();
var runner = LocalDurableTestRunner.create(
String.class, (input, context) -> context.step("step", String.class, stepCtx -> "result"), config);
runner.runUntilComplete("input");
// Both plugins should receive invocation hooks
assertEquals(1, plugin1.invocationStarts.size());
assertEquals(1, plugin2.invocationStarts.size());
assertEquals(1, plugin1.invocationEnds.size());
assertEquals(1, plugin2.invocationEnds.size());
}
@Test
void throwingPlugin_doesNotDisruptExecution() {
var throwingPlugin = new ThrowingPlugin();
var recordingPlugin = new RecordingPlugin();
var config = DurableConfig.builder()
.withPlugins(throwingPlugin, recordingPlugin)
.build();
var runner = LocalDurableTestRunner.create(
String.class, (input, context) -> context.step("step", String.class, stepCtx -> "safe"), config);
var result = runner.runUntilComplete("input");
// Execution should succeed despite throwing plugin
assertEquals(ExecutionStatus.SUCCEEDED, result.getStatus());
assertEquals("safe", result.getResult(String.class));
// The second plugin should still receive hooks
assertFalse(recordingPlugin.invocationStarts.isEmpty());
assertFalse(recordingPlugin.invocationEnds.isEmpty());
}
// ─── Child context hooks ─────────────────────────────────────────────
@Test
void plugin_receivesHooks_forChildContextOperations() {
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class,
(input, context) -> context.runInChildContext("child", String.class, childCtx -> {
return childCtx.step("inner-step", String.class, stepCtx -> "from-child");
}),
config);
runner.runUntilComplete("input");
// Should have operation start for both child context and inner step
var opNames = plugin.operationStarts.stream().map(OperationInfo::name).toList();
assertTrue(opNames.contains("child"), "Should track child context");
assertTrue(opNames.contains("inner-step"), "Should track inner step");
}
// ─── WaitForCondition hooks ──────────────────────────────────────────
@Test
void plugin_receivesAttemptNumbers_forWaitForCondition() {
var checkCount = new AtomicInteger(0);
var plugin = new RecordingPlugin();
var config = DurableConfig.builder().withPlugins(plugin).build();
var runner = LocalDurableTestRunner.create(
String.class,
(input, context) -> {
var result = context.waitForCondition("poll", String.class, (state, stepCtx) -> {
int count = checkCount.incrementAndGet();
if (count >= 2) {
return WaitForConditionResult.stopPolling("ready");
}
return WaitForConditionResult.continuePolling("waiting-" + count);
});
return result;
},
config);
runner.runUntilComplete("input");
// Should have user function starts with attempt numbers for the condition checks
var conditionStarts = plugin.userFunctionStarts.stream()
.filter(info -> "poll".equals(info.name()) && info.attempt() != null)
.toList();
assertTrue(conditionStarts.size() >= 2, "Should have at least 2 condition check attempts");
}
// ─── Test helper classes ─────────────────────────────────────────────
/** Plugin that records all hook invocations for assertions. */
private static class RecordingPlugin implements DurableExecutionPlugin {
final List<InvocationInfo> invocationStarts = Collections.synchronizedList(new ArrayList<>());
final List<InvocationEndInfo> invocationEnds = Collections.synchronizedList(new ArrayList<>());
final List<OperationInfo> operationStarts = Collections.synchronizedList(new ArrayList<>());
final List<OperationEndInfo> operationEnds = Collections.synchronizedList(new ArrayList<>());
final List<UserFunctionStartInfo> userFunctionStarts = Collections.synchronizedList(new ArrayList<>());
final List<UserFunctionEndInfo> userFunctionEnds = Collections.synchronizedList(new ArrayList<>());
final List<OperationChangeInfo> operationChanges = Collections.synchronizedList(new ArrayList<>());
@Override
public void onInvocationStart(InvocationInfo info) {
invocationStarts.add(info);
}
@Override
public void onInvocationEnd(InvocationEndInfo info) {
invocationEnds.add(info);
}
@Override
public void onOperationStart(OperationInfo info) {
operationStarts.add(info);
}
@Override
public void onOperationEnd(OperationEndInfo info) {
operationEnds.add(info);
}
@Override
public void onUserFunctionStart(UserFunctionStartInfo info) {
userFunctionStarts.add(info);
}
@Override
public void onUserFunctionEnd(UserFunctionEndInfo info) {
userFunctionEnds.add(info);
}
@Override
public void onOperationChange(OperationChangeInfo info) {
operationChanges.add(info);
}
}
/** Plugin that throws on every hook to verify error isolation. */
private static class ThrowingPlugin implements DurableExecutionPlugin {
@Override
public void onInvocationStart(InvocationInfo info) {
throw new RuntimeException("plugin error");
}
@Override
public void onInvocationEnd(InvocationEndInfo info) {
throw new RuntimeException("plugin error");
}
@Override
public void onOperationStart(OperationInfo info) {
throw new RuntimeException("plugin error");
}
@Override
public void onOperationEnd(OperationEndInfo info) {
throw new RuntimeException("plugin error");
}
@Override
public void onUserFunctionStart(UserFunctionStartInfo info) {
throw new RuntimeException("plugin error");
}
@Override
public void onUserFunctionEnd(UserFunctionEndInfo info) {
throw new RuntimeException("plugin error");
}
@Override
public void onOperationChange(OperationChangeInfo info) {
throw new RuntimeException("plugin error");
}
}
}