com.ibm.itim.apps.provisioning

Class ServiceRestartResult

  • java.lang.Object
    • com.ibm.itim.apps.provisioning.ServiceRestartResult
  • All Implemented Interfaces:
    java.io.Serializable


    public class ServiceRestartResult
    extends java.lang.Object
    implements java.io.Serializable
    Result of the service restart operation, which is a two step process. First, the service is tested to verify that communication to the adapter is successful. If it is, then any blocked requests are restarted.
    See Also:
    Serialized Form
    • Constructor Detail

      • ServiceRestartResult

        public ServiceRestartResult(ServiceRestartResult.ServiceRestartTestResult testStatus)
        Constructs a service restart result with the outcome of the service test operation.
        Parameters:
        testStatus - test result
      • ServiceRestartResult

        public ServiceRestartResult(ServiceRestartResult.ServiceRestartRetryResult retryStatus)
        Constructs a service retry result with the outcome of the blocked request retry operation.
        Parameters:
        retryStatus - retry status
    • Method Detail

      • setCauseOfFailure

        public void setCauseOfFailure(java.lang.Throwable t)
        Updates the cause of failure.
        Parameters:
        t - Throwable that caused the failure.
      • getCauseOfFailure

        public java.lang.Throwable getCauseOfFailure()
        Returns the cause of the failure, in either step of the restart process.
        Returns:
        Throwable cause of failure
      • isTestSuccess

        public boolean isTestSuccess()
        Returns whether the test was successful.
        Returns:
        true if the test was successful, false otherwise
      • isRetrySuccess

        public boolean isRetrySuccess()
        Returns whether the blocked request retry was successful or not required because there were not request to retry.
        Returns:
        true if the retry was successful or not required
      • toString

        public java.lang.String toString()
        Returns a string representation of the status.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String status