public abstract class StacktraceFingerprintingTaskRecoveryStrategy<E extends Exception> extends Object implements RecoveryStrategy<E>
StacktraceFingerprintingRecoveryStrategy
.Constructor and Description |
---|
StacktraceFingerprintingTaskRecoveryStrategy(Class<E> exceptionClass,
String... samples)
Construct a new StacktraceFingerprintingTaskRecoveryStrategy given the parser, and
the expected exception class to be thrown for sample fragments of a task definition
that is to be parsed.
|
Modifier and Type | Method and Description |
---|---|
boolean |
shouldTrigger(String dslStart,
Exception exception)
Whether this completion should be triggered.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProposals
public StacktraceFingerprintingTaskRecoveryStrategy(Class<E> exceptionClass, String... samples)
exceptionClass
- the expected exception that results from parsing the sample
fragment stream definitions. Stack frames from the thrown exception are used to
store the fingerprint of this exception thrown by the parser.samples
- the sample fragments of task definitions.public boolean shouldTrigger(String dslStart, Exception exception)
RecoveryStrategy
shouldTrigger
in interface RecoveryStrategy<E extends Exception>
dslStart
- the partial DSL textexception
- the exception thrown when parsing the DSL textCopyright © 2024 Pivotal Software, Inc.. All rights reserved.