com.ibm.itim.apps.provisioning
Class ServiceRestartResult

java.lang.Object
  extended by 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

Nested Class Summary
static class ServiceRestartResult.ServiceRestartRetryResult
          Enumeration with values representing the result of the blocked request restart.
static class ServiceRestartResult.ServiceRestartTestResult
          Enumeration with values representing the result of the service test operation.
 
Constructor Summary
ServiceRestartResult(ServiceRestartResult.ServiceRestartRetryResult retryStatus)
          Constructs a service retry result with the outcome of the blocked request retry operation.
ServiceRestartResult(ServiceRestartResult.ServiceRestartTestResult testStatus)
          Constructs a service restart result with the outcome of the service test operation.
 
Method Summary
 java.lang.Throwable getCauseOfFailure()
          Returns the cause of the failure, in either step of the restart process.
 ServiceRestartResult.ServiceRestartRetryResult getRetryStatus()
          Returns the blocked request retry status.
 ServiceRestartResult.ServiceRestartTestResult getTestStatus()
          Returns the service test status.
 boolean isRetrySuccess()
          Returns whether the blocked request retry was successful or not required because there were not request to retry.
 boolean isTestSuccess()
          Returns whether the test was successful.
 void setCauseOfFailure(java.lang.Throwable t)
          Updates the cause of failure.
 void setRetryStatus(ServiceRestartResult.ServiceRestartRetryResult status)
          Updates the blocked request retry status.
 void setTestStatus(ServiceRestartResult.ServiceRestartTestResult status)
          Updates the service test status.
 java.lang.String toString()
          Returns a string representation of the status.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

setTestStatus

public void setTestStatus(ServiceRestartResult.ServiceRestartTestResult status)
Updates the service test status.

Parameters:
status - service test status

getTestStatus

public ServiceRestartResult.ServiceRestartTestResult getTestStatus()
Returns the service test status.

Returns:
test status

setRetryStatus

public void setRetryStatus(ServiceRestartResult.ServiceRestartRetryResult status)
Updates the blocked request retry status.

Parameters:
status - retry status

getRetryStatus

public ServiceRestartResult.ServiceRestartRetryResult getRetryStatus()
Returns the blocked request retry status.

Returns:
blocked request retry result

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


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.