Package step.functions.execution
Class ConfigurableTokenLifecycleStrategy
java.lang.Object
step.functions.execution.ConfigurableTokenLifecycleStrategy
- All Implemented Interfaces:
step.grid.client.TokenLifecycleStrategy
public class ConfigurableTokenLifecycleStrategy
extends Object
implements step.grid.client.TokenLifecycleStrategy
-
Constructor Summary
ConstructorDescriptionConfigurableTokenLifecycleStrategy
(boolean addErrorOnTokenReleaseError, boolean addErrorOnTokenReservationError, boolean addErrorOnTokenCallError, boolean addErrorOnAgentError, Set<step.grid.io.AgentErrorCode> concernedAgentErrors) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addTokenError
(step.grid.client.TokenLifecycleStrategyCallback callback, String errorMessage, Exception e) void
afterTokenCall
(step.grid.client.TokenLifecycleStrategyCallback callback, step.grid.TokenWrapper tokenWrapper, step.grid.io.OutputMessage outputMessage) void
afterTokenCallError
(step.grid.client.TokenLifecycleStrategyCallback callback, step.grid.TokenWrapper tokenWrapper, Exception e) void
afterTokenReleaseError
(step.grid.client.TokenLifecycleStrategyCallback callback, step.grid.TokenWrapper tokenWrapper, Exception e) void
afterTokenReservationError
(step.grid.client.TokenLifecycleStrategyCallback callback, step.grid.TokenWrapper tokenWrapper, Exception e) Set<step.grid.io.AgentErrorCode>
boolean
boolean
boolean
boolean
boolean
void
setAddErrorOnAgentError
(boolean addErrorOnAgentError) void
setAddErrorOnTokenCallError
(boolean addErrorOnTokenCallError) void
setAddErrorOnTokenReleaseError
(boolean addErrorOnTokenReleaseError) void
setAddErrorOnTokenReservationError
(boolean addErrorOnTokenReservationError) void
setConcernedAgentErrors
(Set<step.grid.io.AgentErrorCode> concernedAgentErrors)
-
Constructor Details
-
ConfigurableTokenLifecycleStrategy
public ConfigurableTokenLifecycleStrategy(boolean addErrorOnTokenReleaseError, boolean addErrorOnTokenReservationError, boolean addErrorOnTokenCallError, boolean addErrorOnAgentError, Set<step.grid.io.AgentErrorCode> concernedAgentErrors)
-
-
Method Details
-
isAddErrorOnTokenReleaseError
public boolean isAddErrorOnTokenReleaseError() -
setAddErrorOnTokenReleaseError
public void setAddErrorOnTokenReleaseError(boolean addErrorOnTokenReleaseError) -
isAddErrorOnTokenReservationError
public boolean isAddErrorOnTokenReservationError() -
setAddErrorOnTokenReservationError
public void setAddErrorOnTokenReservationError(boolean addErrorOnTokenReservationError) -
isAddErrorOnTokenCallError
public boolean isAddErrorOnTokenCallError() -
setAddErrorOnTokenCallError
public void setAddErrorOnTokenCallError(boolean addErrorOnTokenCallError) -
isAddErrorOnAgentError
public boolean isAddErrorOnAgentError() -
setAddErrorOnAgentError
public void setAddErrorOnAgentError(boolean addErrorOnAgentError) -
getConcernedAgentErrors
-
setConcernedAgentErrors
-
afterTokenReleaseError
public void afterTokenReleaseError(step.grid.client.TokenLifecycleStrategyCallback callback, step.grid.TokenWrapper tokenWrapper, Exception e) - Specified by:
afterTokenReleaseError
in interfacestep.grid.client.TokenLifecycleStrategy
-
afterTokenReservationError
public void afterTokenReservationError(step.grid.client.TokenLifecycleStrategyCallback callback, step.grid.TokenWrapper tokenWrapper, Exception e) - Specified by:
afterTokenReservationError
in interfacestep.grid.client.TokenLifecycleStrategy
-
afterTokenCallError
public void afterTokenCallError(step.grid.client.TokenLifecycleStrategyCallback callback, step.grid.TokenWrapper tokenWrapper, Exception e) - Specified by:
afterTokenCallError
in interfacestep.grid.client.TokenLifecycleStrategy
-
afterTokenCall
public void afterTokenCall(step.grid.client.TokenLifecycleStrategyCallback callback, step.grid.TokenWrapper tokenWrapper, step.grid.io.OutputMessage outputMessage) - Specified by:
afterTokenCall
in interfacestep.grid.client.TokenLifecycleStrategy
-
addTokenError
-
registerTokenErrorListener
-