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
Constructors Constructor Description ConfigurableTokenLifecycleStrategy(boolean addErrorOnTokenReleaseError, boolean addErrorOnTokenReservationError, boolean addErrorOnTokenCallError, boolean addErrorOnAgentError, Set<step.grid.io.AgentErrorCode> concernedAgentErrors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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>
getConcernedAgentErrors()
boolean
isAddErrorOnAgentError()
boolean
isAddErrorOnTokenCallError()
boolean
isAddErrorOnTokenReleaseError()
boolean
isAddErrorOnTokenReservationError()
boolean
registerTokenErrorListener(TokenErrorListener e)
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 Detail
-
ConfigurableTokenLifecycleStrategy
public ConfigurableTokenLifecycleStrategy(boolean addErrorOnTokenReleaseError, boolean addErrorOnTokenReservationError, boolean addErrorOnTokenCallError, boolean addErrorOnAgentError, Set<step.grid.io.AgentErrorCode> concernedAgentErrors)
-
-
Method Detail
-
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
public Set<step.grid.io.AgentErrorCode> getConcernedAgentErrors()
-
setConcernedAgentErrors
public void setConcernedAgentErrors(Set<step.grid.io.AgentErrorCode> concernedAgentErrors)
-
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
protected void addTokenError(step.grid.client.TokenLifecycleStrategyCallback callback, String errorMessage, Exception e)
-
registerTokenErrorListener
public boolean registerTokenErrorListener(TokenErrorListener e)
-
-