public class DefaultAutoDisablingScriptStrategy extends java.lang.Object implements AutoDisablingScriptStrategy
ScriptExecutable and it
disables the ScriptExecutable after first
ScriptExecutionException. This strategy is only used for model
based scripts and it marks underlying ScriptModel as disabled so this
feature may be used in cluster environment.| Constructor and Description |
|---|
DefaultAutoDisablingScriptStrategy(PK pk,
ModelService modelService,
SessionService sessionService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDisabled(ScriptExecutable executable)
Checks whether given
ScriptExecutable is disabled. |
void |
onException(java.lang.Exception exception,
ScriptExecutable executable,
java.util.Map<java.lang.String,java.lang.Object> scriptContext)
This method reacts on Exception thrown from
ScriptExecutable. |
public DefaultAutoDisablingScriptStrategy(PK pk, ModelService modelService, SessionService sessionService)
public void onException(java.lang.Exception exception,
ScriptExecutable executable,
java.util.Map<java.lang.String,java.lang.Object> scriptContext)
AutoDisablingScriptStrategyScriptExecutable.onException in interface AutoDisablingScriptStrategypublic boolean isDisabled(ScriptExecutable executable)
AutoDisablingScriptStrategyScriptExecutable is disabled.isDisabled in interface AutoDisablingScriptStrategyCopyright © 2018 SAP SE. All Rights Reserved.