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 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

      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 interface step.grid.client.TokenLifecycleStrategy
    • afterTokenReservationError

      public void afterTokenReservationError(step.grid.client.TokenLifecycleStrategyCallback callback, step.grid.TokenWrapper tokenWrapper, Exception e)
      Specified by:
      afterTokenReservationError in interface step.grid.client.TokenLifecycleStrategy
    • afterTokenCallError

      public void afterTokenCallError(step.grid.client.TokenLifecycleStrategyCallback callback, step.grid.TokenWrapper tokenWrapper, Exception e)
      Specified by:
      afterTokenCallError in interface step.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 interface step.grid.client.TokenLifecycleStrategy
    • addTokenError

      protected void addTokenError(step.grid.client.TokenLifecycleStrategyCallback callback, String errorMessage, Exception e)
    • registerTokenErrorListener

      public boolean registerTokenErrorListener(TokenErrorListener e)